/* 交易指南頁面樣式 */
.guide-container {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-header p {
    color: #666;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* 導航樣式 */
.guide-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 80px;
    z-index: 90;
}

.nav-item {
    padding: 12px 24px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.nav-item:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-2px);
}

.nav-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-dark);
}

/* 內容區域樣式 */
.guide-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

.guide-section {
    padding: 50px 40px;
    border-bottom: 1px solid #eee;
}

.guide-section:last-child {
    border-bottom: none;
}

.guide-section h2 {
    color: var(--primary-dark);
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    position: relative;
}

.guide-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* 步驟樣式 */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.step-card:hover {
    background: #f0f7f0;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.step-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 標準網格樣式 */
.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.standard-card {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.standard-card:hover {
    background: white;
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.standard-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.standard-card h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.standard-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.standard-card li {
    padding: 8px 0;
    color: #666;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;
}

.standard-card li:last-child {
    border-bottom: none;
}

.standard-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 物流方式樣式 */
.shipping-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.method-card {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.method-card h3 {
    color: var(--primary-dark);
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.method-details p {
    margin-bottom: 8px;
    color: #666;
}

.method-details strong {
    color: #333;
}

/* 提示網格樣式 */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tip-item:hover {
    background: #f0f7f0;
    transform: translateX(5px);
}

.tip-item i {
    color: var(--primary-color);
    font-size: 20px;
    width: 24px;
}

.tip-item p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* 支付方式樣式 */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.payment-card {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.payment-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.payment-card h3 {
    color: var(--primary-dark);
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.payment-card > p {
    color: #666;
    margin-bottom: 20px;
}

.payment-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pros h4, .cons h4 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.pros h4 {
    color: var(--success-color);
}

.cons h4 {
    color: var(--error-color);
}

.pros ul, .cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros li, .cons li {
    padding: 5px 0;
    font-size: 14px;
    color: #666;
    position: relative;
    padding-left: 15px;
}

.pros li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.cons li::before {
    content: '⚠';
    position: absolute;
    left: 0;
    color: var(--error-color);
    font-weight: bold;
}

/* 安全提示樣式 */
.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.safety-card {
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid;
}

.safety-card.warning {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.safety-card.info {
    background: #d1ecf1;
    border-left-color: #17a2b8;
}

.safety-card.success {
    background: #d4edda;
    border-left-color: #28a745;
}

.safety-card.danger {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.safety-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.safety-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.safety-card li {
    padding: 8px 0;
    color: #666;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    padding-left: 20px;
}

.safety-card li:last-child {
    border-bottom: none;
}

.safety-card li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: inherit;
    font-weight: bold;
}

/* 幫助區域樣式 */
.help-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 16px;
    text-align: center;
}

.help-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
}

.help-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.help-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .guide-container {
        padding: 20px 0;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .guide-nav {
        padding: 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .nav-item {
        text-align: center;
        padding: 10px 15px;
    }
    
    .guide-section {
        padding: 30px 20px;
    }
    
    .guide-section h2 {
        font-size: 24px;
    }
    
    .steps-container,
    .standards-grid,
    .shipping-methods,
    .payment-methods,
    .safety-grid {
        grid-template-columns: 1fr;
    }
    
    .step-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .payment-pros-cons {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .help-section {
        padding: 30px 20px;
    }
    
    .help-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .help-actions .btn {
        width: 200px;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 24px;
    }
    
    .page-header p {
        font-size: 16px;
    }
    
    .guide-section h2 {
        font-size: 22px;
    }
    
    .step-content h3 {
        font-size: 16px;
    }
    
    .standard-card h3,
    .method-card h3,
    .payment-card h3 {
        font-size: 18px;
    }
}