/* ================================================
   欢乐AI - Apple科技风样式 v2.0
   主色: #FF6B6B (珊瑚红)
   深色底: #050505 / #0a0a0a
   黑白极简基调 + 手风琴FAQ
   ================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --coral: #FF6B6B;
    --coral-dark: #e55a5a;
    --coral-light: #ff8e8e;
    --coral-glow: rgba(255,107,107,0.15);
    --deep-black: #050505;
    --dark-bg: #0a0a0a;
    --black: #000000;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.10);
    --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

a { color: var(--coral); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--coral-dark); }

/* ---------- Navigation ---------- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(5,5,5,0.88);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.navbar .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 52px;
}
.nav-logo { font-size: 1.35rem; font-weight: 700; color: var(--white); letter-spacing: -0.5px; }
.nav-logo span { color: var(--coral); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--gray-300); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--white); }
.nav-links .nav-user { color: var(--coral); font-weight: 600; }
.nav-points { color: var(--gray-400); font-size: 0.8rem; }
.nav-vip-badge { color: var(--coral); font-size: 0.75rem; font-weight: 600; }
.btn-nav {
    display: inline-flex; align-items: center; padding: 6px 18px;
    background: var(--coral); color: var(--white) !important;
    border-radius: 20px; font-weight: 600; font-size: 0.85rem;
    transition: background var(--transition), transform var(--transition);
}
.btn-nav:hover { background: var(--coral-dark); transform: translateY(-1px); }
.btn-nav-outline {
    background: transparent; border: 1.5px solid var(--coral);
    color: var(--coral) !important;
}
.btn-nav-outline:hover { background: var(--coral); color: var(--white) !important; }

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: var(--deep-black); color: var(--white); text-align: center;
    padding: 120px 24px 80px; position: relative; overflow: hidden;
}
.hero-bg {
    position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(ellipse at center, rgba(255,107,107,0.07) 0%, transparent 65%);
    animation: heroGlow 8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero h1 {
    font-size: 5rem; font-weight: 800; letter-spacing: -3px;
    line-height: 1.05; margin-bottom: 20px; color: var(--white);
}
.hero h1 span { color: var(--coral); }
.hero .subtitle { font-size: 1.5rem; color: var(--gray-400); font-weight: 400; margin-bottom: 48px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 36px; border-radius: 30px; font-weight: 600;
    font-size: 1rem; border: none; cursor: pointer; transition: all var(--transition);
    text-decoration: none; letter-spacing: -0.3px;
}
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,107,107,0.40); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--deep-black); }
.btn-outline-dark { background: transparent; border: 2px solid var(--gray-900); color: var(--gray-900); }
.btn-outline-dark:hover { background: var(--gray-900); color: var(--white); }
.btn-coral { background: var(--coral); color: var(--white); }
.btn-coral:hover { background: var(--coral-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,107,107,0.40); }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; border-radius: 20px; }
.btn-block { width: 100%; }
.btn-large { padding: 18px 44px; font-size: 1.1rem; border-radius: 34px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---------- Sections ---------- */
section { padding: 100px 0; }
.section-dark { background: var(--deep-black); color: var(--white); }
.section-light { background: var(--white); }
.section-gray { background: var(--dark-bg); color: var(--white); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: 2.5rem; font-weight: 700; letter-spacing: -1px; margin-bottom: 12px; }
.section-header p { font-size: 1.15rem; color: var(--gray-500); max-width: 600px; margin: 0 auto; }
.section-dark .section-header h2,
.section-gray .section-header h2 { color: var(--white); }
.section-dark .section-header p,
.section-gray .section-header p { color: var(--gray-400); }

/* ---------- AI Workshop Cards ---------- */
.workshop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.workshop-card {
    background: var(--white); border: 1.5px solid var(--gray-200);
    border-radius: var(--radius); padding: 40px 28px; text-align: center;
    transition: all var(--transition); cursor: pointer;
}
.workshop-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(255,107,107,0.12);
    border-color: var(--coral);
}
.workshop-icon { font-size: 3.6rem; margin-bottom: 18px; display: block; }
.workshop-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.workshop-card .points {
    display: inline-block; padding: 5px 16px;
    background: var(--coral); color: var(--white);
    border-radius: 14px; font-size: 0.8rem; font-weight: 600; margin-top: 10px;
}
.workshop-card .desc { color: var(--gray-500); font-size: 0.9rem; }

/* ---------- Course Cards ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.course-card {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.08);
    border-color: var(--coral-light);
}
.course-img {
    height: 180px;
    background: var(--gray-50);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.course-img-icon { font-size: 3.5rem; }
.course-trial-tag {
    position: absolute; top: 14px; right: 14px;
    background: rgba(255,107,107,0.12); color: var(--coral);
    padding: 4px 12px; border-radius: 8px;
    font-size: 0.75rem; font-weight: 600;
    backdrop-filter: blur(6px);
}
.course-body { padding: 24px; }
.course-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.course-body p { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 14px; line-height: 1.5; }
.course-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.course-tag {
    display: inline-block; padding: 4px 12px;
    background: var(--gray-100); border-radius: 6px;
    font-size: 0.75rem; color: var(--gray-600); font-weight: 500;
}
.course-tag-vip { background: rgba(255,107,107,0.10); color: var(--coral); }

/* ---------- Trust Section ---------- */
.trust-section { background: var(--dark-bg); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px; text-align: center; }
.trust-item .trust-num {
    font-size: 3rem; font-weight: 800; color: var(--coral);
    letter-spacing: -1.5px; margin-bottom: 6px;
}
.trust-item .trust-label { color: var(--gray-400); font-size: 1rem; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; max-width: 800px; margin: 0 auto; }
.pricing-card {
    background: var(--white); border: 2px solid var(--gray-200);
    border-radius: var(--radius); padding: 40px 32px; text-align: center;
    transition: all var(--transition); position: relative;
}
.pricing-card.featured { border-color: var(--coral); box-shadow: 0 8px 40px rgba(255,107,107,0.15); }
.pricing-card .badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--coral); color: var(--white); padding: 4px 20px;
    border-radius: 12px; font-size: 0.8rem; font-weight: 600;
}
.pricing-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.pricing-price { font-size: 3rem; font-weight: 800; color: var(--coral); letter-spacing: -2px; }
.pricing-price small { font-size: 1rem; font-weight: 400; color: var(--gray-500); }
.pricing-features { list-style: none; margin: 24px 0; text-align: left; }
.pricing-features li { padding: 6px 0; color: var(--gray-600); font-size: 0.9rem; }
.pricing-features li::before { content: '✓ '; color: var(--coral); font-weight: 700; }

/* ---------- Compare Table ---------- */
.compare-section { background: var(--dark-bg); }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }
.compare-table { width: 100%; border-collapse: collapse; border-radius: var(--radius); overflow: hidden; min-width: 600px; }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: center; }
.compare-table th { background: var(--deep-black); color: var(--white); font-weight: 600; font-size: 0.9rem; }
.compare-table th:first-child { text-align: left; }
.compare-table td { border-bottom: 1px solid var(--gray-200); background: var(--white); color: var(--gray-800); }
.compare-table td:first-child { text-align: left; font-weight: 500; }
.compare-table tr:nth-child(even) td { background: var(--gray-50); }
.compare-table .check { color: var(--coral); font-weight: 700; font-size: 1.1rem; }
.compare-table .cross { color: var(--gray-400); }

/* ---------- FAQ Accordion ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-question {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 22px 0; background: none; border: none; cursor: pointer;
    font-size: 1.05rem; font-weight: 600; color: var(--gray-900);
    font-family: inherit; text-align: left; transition: color var(--transition);
}
.faq-question:hover { color: var(--coral); }
.faq-arrow {
    font-size: 1.4rem; font-weight: 300; color: var(--gray-400);
    transition: transform var(--transition); min-width: 28px; text-align: center;
}
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-answer.open { max-height: 300px; }
.faq-answer p {
    padding: 0 0 22px 0; color: var(--gray-500); font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- CTA Bottom ---------- */
.cta-section {
    text-align: center; padding: 80px 24px;
    background: var(--dark-bg);
}
.cta-section h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -1px; color: var(--white); }
.cta-section p { color: var(--gray-400); font-size: 1.1rem; margin-bottom: 32px; }

/* ========================================== */
/*  Pay Page Styles                           */
/* ========================================== */
.pay-page { min-height: 100vh; padding: 100px 0 60px; background: var(--gray-50); }
.pay-title { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 40px; letter-spacing: -0.5px; }

.pay-form-card {
    max-width: 520px; margin: 0 auto;
    background: var(--white); padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 4px 32px rgba(0,0,0,0.06);
}
.plan-summary-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 24px; margin-bottom: 28px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 1.2rem; font-weight: 700;
}
.plan-summary-bar .price { font-size: 2rem; font-weight: 800; color: var(--coral); letter-spacing: -1px; }

.pay-methods { display: flex; gap: 16px; margin-bottom: 28px; }
.pay-method-option {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 20px 16px; border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
    cursor: pointer; transition: all var(--transition);
}
.pay-method-option input[type="radio"] { display: none; }
.pay-method-option:hover { border-color: var(--coral-light); }
.pay-method-option.selected { border-color: var(--coral); background: rgba(255,107,107,0.04); }
.pay-method-icon { font-size: 2rem; }
.pay-method-name { font-size: 0.9rem; font-weight: 600; color: var(--gray-700); }
.pay-footer-note {
    text-align: center; color: var(--gray-500); font-size: 0.8rem;
    margin-top: 20px;
}

.pay-confirm-card {
    max-width: 560px; margin: 0 auto;
    background: var(--white); padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 4px 32px rgba(0,0,0,0.06);
}
.order-info-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 20px; margin-bottom: 28px;
    border-bottom: 1px solid var(--gray-200);
}
.info-item { text-align: center; }
.info-label { display: block; font-size: 0.8rem; color: var(--gray-500); text-transform: uppercase; margin-bottom: 4px; }
.info-value { font-size: 1.1rem; font-weight: 700; }
.info-value.amount { color: var(--coral); font-size: 1.4rem; }

/* QR Section */
.qr-section { text-align: center; margin-bottom: 28px; }
.qr-section h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 20px; color: var(--gray-700); }
.qr-wrapper {
    display: inline-block; padding: 20px;
    background: var(--gray-50); border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}
.qr-image { width: 240px; height: 240px; object-fit: contain; display: block; }
.qr-placeholder {
    display: inline-block; padding: 40px;
    background: var(--gray-50); border-radius: var(--radius);
    border: 2px dashed var(--gray-300);
    text-align: center; min-width: 280px;
}
.qr-placeholder-icon { font-size: 3rem; margin-bottom: 12px; }
.qr-placeholder p { color: var(--gray-700); font-size: 0.95rem; }
.qr-placeholder-hint { font-size: 0.8rem !important; color: var(--gray-500) !important; margin-top: 8px; }
.qr-placeholder-hint code { background: var(--gray-200); padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; }
.qr-amount-show {
    margin-top: 20px; padding: 16px;
    background: var(--white); border-radius: var(--radius-sm);
    border: 1px solid var(--coral);
}
.qr-amount-show span { display: block; color: var(--gray-500); font-size: 0.85rem; }
.qr-big-amount { font-size: 1.8rem !important; font-weight: 800 !important; color: var(--coral) !important; margin-top: 4px !important; }

.pay-confirm-form .form-group { margin-bottom: 20px; }
.confirm-hint {
    text-align: center; color: var(--gray-500); font-size: 0.85rem;
    margin-bottom: 20px; line-height: 1.5;
}

/* Payment Success */
.pay-success-card {
    max-width: 520px; margin: 0 auto;
    background: var(--white); padding: 48px 40px; text-align: center;
    border-radius: var(--radius);
    box-shadow: 0 4px 32px rgba(0,0,0,0.06);
}
.success-icon {
    width: 72px; height: 72px; line-height: 72px;
    background: #d1fae5; color: #065f46;
    border-radius: 50%; font-size: 2rem; font-weight: 700;
    margin: 0 auto 20px;
}
.pay-success-card h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.success-sub { color: var(--gray-500); font-size: 0.95rem; margin-bottom: 32px; }
.order-summary {
    text-align: left; margin-bottom: 28px;
    background: var(--gray-50); border-radius: var(--radius-sm); padding: 20px 24px;
}
.order-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--gray-200); font-size: 0.9rem; }
.order-row:last-child { border-bottom: none; }
.order-row .amount { font-weight: 700; color: var(--coral); }
.success-actions { margin-top: 8px; }

/* ---------- Admin Panel ---------- */
.admin-panel {
    max-width: 800px; margin: 60px auto;
    background: var(--white); border-radius: var(--radius);
    box-shadow: 0 4px 32px rgba(0,0,0,0.06); padding: 40px;
}
.admin-panel h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 24px; }
.admin-panel table { width: 100%; border-collapse: collapse; }
.admin-panel th, .admin-panel td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--gray-200); }
.admin-panel th { font-size: 0.8rem; color: var(--gray-500); text-transform: uppercase; }
.admin-panel .btn-confirm { margin-right: 8px; }

/* ---------- Auth Pages ---------- */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--gray-50); padding: 24px; }
.auth-card { background: var(--white); border-radius: var(--radius); padding: 48px 40px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.auth-card h2 { font-size: 1.8rem; font-weight: 700; text-align: center; margin-bottom: 8px; letter-spacing: -0.5px; }
.auth-card .auth-sub { text-align: center; color: var(--gray-500); margin-bottom: 32px; font-size: 0.9rem; }
.auth-card .auth-sub a { font-weight: 600; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; color: var(--gray-700); }
.form-group input, .form-group select {
    width: 100%; padding: 12px 16px; border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm); font-size: 0.95rem; transition: border-color var(--transition);
    font-family: inherit; outline: none;
}
.form-group input:focus, .form-group select:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,107,107,0.1); }
.form-group .error { color: var(--coral); font-size: 0.8rem; margin-top: 4px; }
.form-actions { margin-top: 28px; }

/* ---------- Messages ---------- */
.msg { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.9rem; font-weight: 500; }
.msg-info { background: #f0f7ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.msg-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.msg-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.msg-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* ---------- Dashboard ---------- */
.dashboard { padding: 100px 0 60px; min-height: 100vh; }
.dash-header { margin-bottom: 40px; }
.dash-header h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.5px; }
.dash-header .welcome { color: var(--gray-500); margin-top: 4px; }
.dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-bottom: 40px; }
.dash-card {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius); padding: 28px;
}
.dash-card h3 { font-size: 0.85rem; color: var(--gray-500); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.dash-card .value { font-size: 2.2rem; font-weight: 800; letter-spacing: -1px; }
.dash-card .value.vip { color: var(--coral); }
.dash-section { margin-bottom: 40px; }
.dash-section h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; }
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th, .orders-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--gray-200); }
.orders-table th { font-size: 0.8rem; color: var(--gray-500); text-transform: uppercase; }
.badge-status { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 0.75rem; font-weight: 600; }
.badge-completed { background: #d1fae5; color: #065f46; }
.badge-pending { background: #fef3c7; color: #92400e; }

/* ---------- AI Tools Page ---------- */
.tools-page { padding: 100px 0 60px; min-height: 100vh; }
.tools-page h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.5px; }
.tools-page .subtitle { color: var(--gray-500); margin-bottom: 40px; }
.tool-card {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius); padding: 32px; margin-bottom: 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.tool-card .tool-info h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.tool-card .tool-info p { color: var(--gray-500); font-size: 0.9rem; }
.tool-cost { display: flex; align-items: center; gap: 8px; }
.tool-cost .cost-badge { padding: 6px 14px; background: var(--coral); color: var(--white); border-radius: 14px; font-weight: 600; font-size: 0.85rem; }
.tool-result { margin-top: 24px; padding: 24px; background: var(--gray-50); border-radius: var(--radius); display: none; }
.tool-result.show { display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--dark-bg); padding: 40px 0; text-align: center; }
.footer p { color: var(--gray-500); font-size: 0.85rem; }

/* ---------- Responsive ---------- */

/* ---- Hamburger Menu ---- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 0;
    z-index: 1001;
    min-width: 44px;
    min-height: 44px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 998;
}
.nav-overlay.show { display: block; }

/* ---- Tablet: 768px - 1024px ---- */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero h1 { font-size: 3.8rem; }
    .hero .subtitle { font-size: 1.25rem; }
    section { padding: 80px 0; }
    .section-header h2 { font-size: 2.2rem; }
    .workshop-grid { grid-template-columns: repeat(3, 1fr); }
    .course-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 0.85rem; }
    .tools-v2 .container { max-width: 720px; }
}

/* ---- Mobile: < 768px ---- */
@media (max-width: 768px) {
    /* Nav */
    .navbar .container { height: 48px; padding: 0 16px; }
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; right: -280px;
        width: 260px;
        height: 100vh;
        background: rgba(5,5,5,0.97);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 28px 28px;
        gap: 12px;
        transition: right 0.3s ease;
        z-index: 999;
        border-left: 1px solid rgba(255,255,255,0.06);
    }
    .nav-links.open { right: 0; }
    .nav-links a {
        font-size: 1rem;
        padding: 12px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        display: block;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .nav-links a:last-child { border-bottom: none; }
    .nav-links .btn-nav,
    .nav-links .btn-nav-outline {
        display: flex;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        border-radius: 22px;
        margin-top: 4px;
        font-size: 0.9rem;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 100px 20px 60px;
    }
    .hero h1 { font-size: 2.6rem; letter-spacing: -1.5px; }
    .hero .subtitle { font-size: 1.05rem; margin-bottom: 32px; }
    .hero-buttons { flex-direction: column; gap: 12px; }
    .hero-buttons .btn { width: 100%; justify-content: center; min-height: 48px; }

    /* Sections */
    section { padding: 50px 0; }
    .section-header { margin-bottom: 36px; }
    .section-header h2 { font-size: 1.7rem; }

    /* Workshop grid */
    .workshop-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .workshop-card { padding: 24px 16px; }
    .workshop-icon { font-size: 2.6rem; }
    .workshop-card h3 { font-size: 1.05rem; }

    /* Course grid */
    .course-grid { grid-template-columns: 1fr; }
    .course-img { height: 140px; }

    /* Trust grid */
    .trust-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .trust-item .trust-num { font-size: 2.2rem; }

    /* Pricing */
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
    .pricing-card { padding: 32px 24px; }

    /* Compare table */
    .table-scroll { -webkit-overflow-scrolling: touch; }

    /* CTA */
    .cta-section { padding: 50px 20px; }
    .cta-section h2 { font-size: 1.8rem; }

    /* FAQ */
    .faq-question { font-size: 0.95rem; padding: 16px 0; min-height: 44px; }

    /* Auth pages */
    .auth-page { padding: 16px; }
    .auth-card { padding: 32px 24px; }
    .auth-card h2 { font-size: 1.5rem; }

    /* Forms */
    .form-group input,
    .form-group select { min-height: 44px; }

    /* Dashboard */
    .dashboard { padding: 70px 0 40px; }
    .dash-header h1 { font-size: 1.5rem; }
    .dash-cards { grid-template-columns: 1fr; }

    /* Pay page */
    .pay-page { padding: 70px 0 40px; }
    .pay-title { font-size: 1.5rem; }
    .pay-methods { flex-direction: column; }
    .pay-method-option { min-height: 44px; }
    .order-info-bar { flex-direction: column; gap: 12px; }
    .pay-form-card,
    .pay-confirm-card,
    .pay-success-card { padding: 24px 20px; }
    .qr-image { width: 180px; height: 180px; }
    .plan-summary-bar { flex-direction: column; gap: 8px; text-align: center; }

    /* Tools page v1 */
    .tool-card { flex-direction: column; text-align: center; }

    /* Admin */
    .admin-panel { margin: 40px 16px; padding: 24px; }

    /* Footer */
    .footer { padding: 28px 0; }

    /* Buttons general */
    .btn { min-height: 44px; display: inline-flex; align-items: center; }
    .btn-block { width: 100%; }

    /* Container */
    .container { padding: 0 16px; }
}

/* ---- Small Mobile: < 480px ---- */
@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .hero .subtitle { font-size: 0.95rem; }
    .workshop-grid { grid-template-columns: 1fr; gap: 12px; }
    .workshop-card { padding: 28px 20px; }
    .trust-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .trust-item .trust-num { font-size: 1.9rem; }
    .section-header h2 { font-size: 1.5rem; }
    .auth-card { padding: 28px 20px; }
    .qr-image { width: 160px; height: 160px; }
    .nav-links { width: 240px; right: -240px; }
    .compare-table { font-size: 0.82rem; }
    .compare-table th,
    .compare-table td { padding: 10px 12px; }
    .pricing-price { font-size: 2.4rem; }
    .btn-large { padding: 14px 28px; font-size: 1rem; }
    .tab-btn { font-size: 0.72rem; padding: 8px 6px; min-height: 44px; }
}


/* ======================================== */
/* Duck Mascot Styles (柯尔鸭IP)           */
/* ======================================== */

/* Hero mascot */
.hero-mascot {
    margin-bottom: 20px;
}
.mascot-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(255,107,107,0.3);
    box-shadow: 0 8px 32px rgba(255,107,107,0.2);
    object-fit: cover;
    transition: transform 0.3s ease;
}
.mascot-img:hover {
    transform: scale(1.05) rotate(-5deg);
}

/* Workshop duck header */
.workshop-duck {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 10px 16px;
    background: rgba(255,107,107,0.06);
    border-radius: 12px;
    border: 1px solid rgba(255,107,107,0.12);
}
.ws-duck-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,107,107,0.3);
    object-fit: cover;
}
.workshop-duck span {
    color: #FF6B6B;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Trust duck */
.trust-duck {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}
.duck-show-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(255,107,107,0.4);
    box-shadow: 0 6px 24px rgba(255,107,107,0.25);
    object-fit: cover;
    transition: transform 0.3s ease;
}
.duck-show-img:hover {
    transform: scale(1.1);
}

/* Gallery Wall */
.gallery-wall {
    padding-top: 20px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}
.gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-frame {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(255,255,255,0.03);
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    cursor: default;
    text-align: center;
    font-size: 0.9rem;
    padding: 20px;
}
.gallery-frame:hover {
    border-color: rgba(255,107,107,0.4);
    color: rgba(255,255,255,0.5);
    background: rgba(255,107,107,0.04);
}
.gallery-frame span {
    display: block;
    line-height: 1;
}

/* Back to top duck button */
.back-to-top-duck {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,107,107,0.3);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    cursor: pointer;
    background: #1a1a1a;
}
.back-to-top-duck.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top-duck:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,107,107,0.3);
    border-color: rgba(255,107,107,0.6);
}
.bt-duck-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mascot-img {
        width: 90px;
        height: 90px;
    }
    .back-to-top-duck {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .trust-duck {
        grid-column: 1 / -1;
    }
}
