﻿@charset "utf-8";

/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { overflow-x: hidden; }
body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 15px;
    color: #374151;
    background: #f0f2f8;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
input, button { font-family: inherit; }

/* ===== Header ===== */
.pay-header {
    background: #fff;
    border-bottom: 1px solid #eef0f5;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.pay-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pay-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.pay-logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.02em;
}

.pay-logo-text {
    display: flex;
    flex-direction: column;
}

.pay-logo-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #11162b;
    letter-spacing: -0.01em;
}

.pay-logo-sub {
    font-size: 0.72rem;
    color: #9ca3af;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.pay-header-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #6b7280;
    background: #f3f4f6;
    transition: all 0.25s ease;
}

.pay-header-nav a:hover {
    color: #4361ee;
    background: rgba(67, 97, 238, 0.06);
}

/* ===== Main ===== */
.pay-main-wrap {
    padding: 48px 24px 80px;
}

.pay-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Page Title */
.pay-page-title {
    text-align: center;
    margin-bottom: 40px;
}

.pay-page-title h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #11162b;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.pay-page-title p {
    font-size: 0.95rem;
    color: #6b7280;
}

/* Grid Layout */
.pay-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

/* ===== Card ===== */
.pay-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04), 0 1px 4px rgba(0,0,0,0.03);
    border: 1px solid #eef0f5;
}

/* ===== Section ===== */
.pay-section {
    margin-bottom: 36px;
}

.pay-section:last-of-type {
    margin-bottom: 32px;
}

.pay-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pay-section-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #11162b;
}

.pay-step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ===== Form Inputs ===== */
.pay-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pay-form-group {
    position: relative;
}

.pay-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 8px;
}

.pay-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #11162b;
    background: #fafbfc;
    transition: all 0.25s ease;
    outline: none;
}

.pay-input:focus {
    border-color: #4361ee;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.08);
}

.pay-input::placeholder {
    color: #c4c9d4;
}

.pay-tip {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 6px;
    min-height: 1em;
}

/* ===== Amount Selector ===== */
.pay-amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.pay-amount-item {
    cursor: pointer;
}

.pay-amount-item input[type="radio"] {
    display: none;
}

.pay-amount-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 20px 16px;
    border: 2px solid #eef0f5;
    border-radius: 14px;
    background: #fafbfc;
    transition: all 0.25s ease;
    user-select: none;
}

.pay-amount-item:hover .pay-amount-card {
    border-color: #c4c9d4;
    background: #fff;
}

.pay-amount-item.cur .pay-amount-card {
    border-color: #4361ee;
    background: rgba(67, 97, 238, 0.03);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.06);
}

.pay-amount-icon {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 600;
}

.pay-amount-item.cur .pay-amount-icon {
    color: #4361ee;
}

.pay-amount-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: #11162b;
    letter-spacing: -0.02em;
    line-height: 1;
}

.pay-amount-item.cur .pay-amount-num {
    color: #4361ee;
}

.pay-amount-text {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 500;
}

.pay-amount-item.cur .pay-amount-text {
    color: #4361ee;
}

/* ===== Payment Method ===== */
.pay-method-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pay-method-item {
    cursor: pointer;
}

.pay-method-item input[type="radio"] {
    display: none;
}

.pay-method-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border: 2px solid #eef0f5;
    border-radius: 14px;
    background: #fafbfc;
    transition: all 0.25s ease;
    user-select: none;
}

.pay-method-item:hover .pay-method-card {
    border-color: #c4c9d4;
    background: #fff;
}

.pay-method-item.cur .pay-method-card {
    border-color: #4361ee;
    background: rgba(67, 97, 238, 0.03);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.06);
}

.pay-method-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(67, 97, 238, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4361ee;
}

.pay-method-item.cur .pay-method-icon {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: #fff;
}

.pay-method-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
}

.pay-method-item.cur .pay-method-name {
    color: #4361ee;
}

/* ===== Order Summary ===== */
.pay-summary {
    background: #f8f9fc;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 28px;
    border: 1px solid #eef0f5;
}

.pay-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #6b7280;
}

.pay-summary-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.pay-summary-price strong {
    font-size: 1.8rem;
    font-weight: 800;
    color: #e53e3e;
    letter-spacing: -0.02em;
}

.pay-summary-price span {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

/* ===== Submit Button ===== */
.pay-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(67, 97, 238, 0.25);
    letter-spacing: 0.02em;
}

.pay-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(67, 97, 238, 0.35);
}

.pay-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.pay-submit-btn svg {
    transition: transform 0.3s ease;
}

.pay-submit-btn:hover svg {
    transform: translateX(4px);
}

/* ===== Side Cards ===== */
.pay-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pay-side-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    border: 1px solid #eef0f5;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pay-side-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.pay-side-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4361ee;
}

.pay-security .pay-side-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.pay-contact .pay-side-icon {
    background: rgba(67, 97, 238, 0.1);
    color: #4361ee;
}

.pay-support .pay-side-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.pay-side-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #11162b;
    margin-bottom: 6px;
}

.pay-side-card p {
    font-size: 0.82rem;
    color: #9ca3af;
    line-height: 1.5;
}

/* ===== Footer ===== */
.pay-footer {
    background: #fff;
    border-top: 1px solid #eef0f5;
    padding: 28px 24px;
}

.pay-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.pay-footer-inner p {
    font-size: 0.82rem;
    color: #9ca3af;
    line-height: 2;
}

.pay-footer-inner a {
    color: #6b7280;
    transition: color 0.25s ease;
}

.pay-footer-inner a:hover {
    color: #4361ee;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .pay-grid {
        grid-template-columns: 1fr;
    }

    .pay-side {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .pay-main-wrap {
        padding: 40px 16px 60px;
    }

    .pay-card {
        padding: 28px;
        border-radius: 16px;
    }
}

@media (max-width: 767.98px) {
    .pay-page-title h1 {
        font-size: 1.4rem;
    }

    .pay-form-grid {
        grid-template-columns: 1fr;
    }

    .pay-amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pay-side {
        grid-template-columns: 1fr;
    }

    .pay-card {
        padding: 24px 20px;
    }

    .pay-summary {
        padding: 16px 18px;
    }

    .pay-submit-btn {
        height: 50px;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .pay-main-wrap {
        padding: 28px 12px 48px;
    }

    .pay-page-title {
        margin-bottom: 24px;
    }

    .pay-card {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .pay-header-inner {
        padding: 0 16px;
    }

    .pay-logo-name {
        font-size: 0.85rem;
    }
}
