/* ============================================================
   数创工坊 SHUCHK — 营销前台页共享样式表（蓝紫主题）
   适用于: index / download / guide / business / account / register
   风格: 深色主题 (参考 Framer)
   ============================================================ */

/* ===== 基础重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --bg: #0a0a0a;
    --bg-card: #131313;
    --bg-elevated: #1a1a1a;
    --text: #f5f5f5;
    --text-muted: #a1a1a1;
    --text-dim: #6b6b6b;
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.16);
    --accent: #0066ff;
    --accent-light: #3b82f6;
    --accent-glow: rgba(0,102,255,0.5);
    --nav-bg: rgba(10,10,10,0.72);
    --nav-bg-scrolled: rgba(10,10,10,0.88);
    --hover-overlay: rgba(255,255,255,0.04);
    --hover-overlay-strong: rgba(255,255,255,0.08);
    --alt-overlay: rgba(255,255,255,0.015);
    --hero-gradient: linear-gradient(180deg, #fff 30%, #a1a1a1);
    --radius: 20px;
    --radius-sm: 12px;
    --max-width: 1200px;
}
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== 导航栏 ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled { background: var(--nav-bg-scrolled); }
.nav-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
    height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    font-size: 18px; font-weight: 700; letter-spacing: -0.02em;
    display: flex; align-items: center; gap: 8px;
}
.nav-logo .dot {
    width: 28px; height: 28px; border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    display: inline-block;
}
.nav-logo .logo-mark {
    width: 28px; height: 28px; border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px;
}
.nav-logo img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 500;
    border: none; cursor: pointer; transition: all 0.2s ease; white-space: nowrap;
}
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--hover-overlay-strong); }
.btn-primary { background: var(--text); color: #000; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,255,255,0.15); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }
.btn-glow { background: linear-gradient(135deg, var(--accent), #8b5cf6); color: #fff; }
.btn-glow:hover { box-shadow: 0 8px 32px var(--accent-glow); transform: translateY(-1px); }
.btn-outline { border: 1px solid var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--border-hover); background: var(--hover-overlay); }
.btn-block { width: 100%; }

/* ===== 通用 Hero ===== */
.hero {
    position: relative; padding: 160px 0 80px; text-align: center; overflow: hidden;
}
.hero-glow {
    position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 900px; height: 600px;
    background: radial-gradient(ellipse at center, rgba(0,102,255,0.25), rgba(139,92,246,0.12) 40%, transparent 70%);
    filter: blur(60px); pointer-events: none; z-index: 0;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 500;
    background: var(--hover-overlay-strong); border: 1px solid var(--border);
    color: var(--text-muted); margin-bottom: 28px;
}
.hero-badge .pulse {
    width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34,197,94,0.5); animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
    70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.hero h1 {
    font-size: clamp(40px, 6vw, 72px); font-weight: 700; letter-spacing: -0.03em;
    line-height: 1.05; margin-bottom: 24px;
    background: var(--hero-gradient);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: clamp(17px, 2vw, 20px); color: var(--text-muted);
    max-width: 620px; margin: 0 auto 40px; line-height: 1.6;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-image {
    margin-top: 64px; border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
    position: relative; z-index: 1;
    cursor: pointer;
}
.hero-image img { width: 100%; }

/* ===== Hero 视频播放按钮 ===== */
.video-play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease; z-index: 2;
}
.video-play-btn svg { margin-left: 4px; }
.video-play-btn:hover {
    background: var(--accent); border-color: var(--accent);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 40px var(--accent-glow);
}
.video-play-btn::before {
    content: ''; position: absolute; inset: -2px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    animation: videoPulse 2.5s ease-out infinite;
}
@keyframes videoPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ===== 全屏视频弹窗 ===== */
.video-modal {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.video-modal.active { opacity: 1; visibility: visible; }
.video-modal-inner {
    width: 90%; max-width: 1100px;
    transform: scale(0.92); transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.video-modal.active .video-modal-inner { transform: scale(1); }
.video-modal video {
    width: 100%; border-radius: 12px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    outline: none;
}
.video-close-btn {
    position: fixed; top: 28px; right: 28px;
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff; cursor: pointer; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s ease;
}
.video-close-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: rotate(90deg) scale(1.05);
}

/* ===== 通用 Section ===== */
section { position: relative; }
.section { padding: 100px 0; }
.section-label {
    display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent-light);
    margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em;
}
.section-title {
    font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -0.02em;
    line-height: 1.1; margin-bottom: 16px;
}
.section-desc {
    font-size: 18px; color: var(--text-muted); max-width: 580px; line-height: 1.6;
}
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-desc { margin: 0 auto; }
.section-alt { background: linear-gradient(180deg, transparent, var(--alt-overlay), transparent); }

/* ===== 功能卡片 ===== */
.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: all 0.3s ease; display: flex; flex-direction: column;
}
.feature-card:hover {
    border-color: var(--border-hover); transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.feature-card-body { padding: 32px; flex: 1; }
.feature-card-body h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 12px; }
.feature-card-body p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.feature-card-link {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 20px;
    font-size: 14px; font-weight: 500; color: var(--accent-light); transition: gap 0.2s;
}
.feature-card-link:hover { gap: 10px; }
.feature-card-img { height: 220px; background: var(--bg-elevated); overflow: hidden; position: relative; }
.feature-card-img img { width: 100%; height: 100%; object-fit: cover; }

/* ===== 平台功能网格 ===== */
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.platform-item {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 28px; transition: all 0.3s ease; cursor: pointer;
}
.platform-item:hover { border-color: var(--border-hover); background: var(--bg-elevated); }
.platform-item .icon {
    width: 44px; height: 44px; border-radius: 10px; margin-bottom: 20px;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
    background: linear-gradient(135deg, rgba(0,102,255,0.15), rgba(139,92,246,0.15));
}
.platform-item h4 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.platform-item p { font-size: 14px; color: var(--text-dim); line-height: 1.5; }

/* ===== 展示画廊 ===== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item {
    aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden;
    border: 1px solid var(--border); position: relative; cursor: pointer; transition: all 0.3s ease;
}
.gallery-item:hover { transform: scale(1.02); border-color: var(--border-hover); }
.gallery-item .gradient-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.gallery-item .gradient-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.gallery-item .gradient-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.gallery-item .gradient-4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.gallery-item .gradient-5 { background: linear-gradient(135deg, #fa709a, #fee140); }
.gallery-item .gradient-6 { background: linear-gradient(135deg, #30cfd0, #330867); }
.gallery-item .gradient-7 { background: linear-gradient(135deg, #a8edea, #fed6e3); }
.gallery-item .gradient-8 { background: linear-gradient(135deg, #ff9a9e, #fecfef); }
.gallery-item .label {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 16px;
    background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent);
    font-size: 14px; font-weight: 500;
}

/* ===== 信任区域 ===== */
.trusted { text-align: center; }
.logo-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 48px; margin-top: 48px; }
.logo-item { font-size: 22px; font-weight: 700; color: var(--text-dim); opacity: 0.6; transition: all 0.2s; letter-spacing: -0.02em; }
.logo-item:hover { opacity: 1; color: var(--text-muted); }

/* ===== 社区统计 ===== */
.stats-section { background: linear-gradient(180deg, transparent, rgba(0,102,255,0.04), transparent); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.stat-card {
    text-align: center; padding: 40px 24px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
}
.stat-number {
    font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--accent-light), #8b5cf6);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}
.stat-label { font-size: 15px; color: var(--text-muted); }

/* ===== 最终 CTA ===== */
.cta-section { text-align: center; padding: 120px 0; position: relative; overflow: hidden; }
.cta-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 700px; height: 400px;
    background: radial-gradient(ellipse at center, rgba(0,102,255,0.2), rgba(139,92,246,0.1) 40%, transparent 70%);
    filter: blur(80px); pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-section h2 {
    font-size: clamp(36px, 5vw, 60px); font-weight: 700; letter-spacing: -0.03em;
    line-height: 1.1; margin-bottom: 24px;
}
.cta-section p { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; }

/* ===== 页脚 ===== */
footer { border-top: 1px solid var(--border); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 40px; margin-bottom: 48px; }
.footer-brand { grid-column: span 2; }
.footer-brand p { color: var(--text-dim); font-size: 14px; margin-top: 16px; max-width: 280px; }
.footer-col h5 { font-size: 14px; font-weight: 600; margin-bottom: 20px; color: var(--text); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 14px; color: var(--text-dim); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
    border-top: 1px solid var(--border); padding-top: 32px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: var(--text-dim);
}
.social-links { display: flex; gap: 16px; }
.social-links a {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card); border: 1px solid var(--border);
    transition: all 0.2s; font-size: 16px;
}
.social-links a:hover { border-color: var(--border-hover); background: var(--bg-elevated); }

/* ===== 滚动渐入动画 ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   下载页 (download) 样式
   ============================================================ */
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.download-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 40px 32px; transition: all 0.3s ease; display: flex; flex-direction: column;
}
.download-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.download-card .os-icon {
    width: 56px; height: 56px; border-radius: 14px; margin-bottom: 24px;
    display: flex; align-items: center; justify-content: center; font-size: 28px;
    background: linear-gradient(135deg, rgba(0,102,255,0.15), rgba(139,92,246,0.15));
}
.download-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.download-card .version { font-size: 13px; color: var(--text-dim); margin-bottom: 24px; }
.download-card .file-size { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; }
.download-card .btn { margin-bottom: 20px; }
.download-card .checksum { font-size: 12px; color: var(--text-dim); word-break: break-all; line-height: 1.6; }
.download-tips {
    margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.tip-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 32px;
}
.tip-card h4 { font-size: 18px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.tip-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ============================================================
   指南页 (guide) 样式
   ============================================================ */
.guide-hero { padding: 140px 0 60px; text-align: center; position: relative; overflow: hidden; }
.guide-stats { display: flex; justify-content: center; gap: 48px; margin-top: 40px; flex-wrap: wrap; }
.guide-stat { text-align: center; }
.guide-stat .num {
    font-size: 32px; font-weight: 700;
    background: linear-gradient(135deg, var(--accent-light), #8b5cf6);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.guide-stat .label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.guide-nav {
    display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 48px;
}
.guide-nav a {
    padding: 8px 18px; border-radius: 100px; font-size: 14px; font-weight: 500;
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted);
    transition: all 0.2s;
}
.guide-nav a:hover { border-color: var(--accent); color: var(--text); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; transition: all 0.3s ease; position: relative;
}
.step-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.step-card .step-num {
    font-size: 14px; font-weight: 700; color: var(--accent-light); margin-bottom: 16px;
    letter-spacing: 0.05em;
}
.step-card h4 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.task-formula { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.formula-item {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 24px;
}
.formula-item .num { font-size: 13px; font-weight: 700; color: var(--accent-light); margin-bottom: 8px; }
.formula-item .title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.formula-item .desc { font-size: 13px; color: var(--text-dim); }
.task-example {
    margin-top: 32px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px; border-left: 3px solid var(--accent);
}
.task-example p { color: var(--text-muted); line-height: 1.8; font-size: 15px; }
.task-by-type { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.type-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; transition: all 0.3s;
}
.type-card:hover { border-color: var(--border-hover); }
.type-card h4 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.type-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.type-card .tag { display: inline-block; font-size: 12px; color: var(--accent-light); font-weight: 500; }
.templates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.template-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 24px; transition: all 0.3s; cursor: pointer;
}
.template-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.template-card h5 { font-size: 16px; font-weight: 600; margin-bottom: 10px; color: var(--accent-light); }
.template-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    margin-bottom: 12px; overflow: hidden;
}
.faq-question {
    padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    font-size: 16px; font-weight: 500; transition: background 0.2s;
}
.faq-question:hover { background: var(--bg-elevated); }
.faq-question .toggle { color: var(--text-dim); font-size: 20px; transition: transform 0.3s; }
.faq-item.open .faq-question .toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; padding: 0 24px; color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 20px; }

/* ============================================================
   定价页 (business) 样式
   ============================================================ */
.price-hero { padding: 140px 0 60px; text-align: center; position: relative; overflow: hidden; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.price-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 40px 32px; text-align: center; position: relative; overflow: hidden;
    transition: all 0.3s ease; display: flex; flex-direction: column;
}
.price-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.price-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 20px 48px rgba(0,102,255,0.15);
}
.price-card.featured::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), #8b5cf6);
}
.price-card .recommend-badge {
    position: absolute; top: 16px; right: -32px; transform: rotate(45deg);
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: #fff; font-size: 12px; font-weight: 600; padding: 4px 36px;
}
.price-card .plan-name { font-size: 15px; font-weight: 600; color: var(--accent-light); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.price-card .plan-desc { font-size: 13px; color: var(--text-dim); margin-bottom: 24px; min-height: 40px; }
.price-card .price-amount { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 4px; line-height: 1; }
.price-card .price-amount .currency { font-size: 24px; vertical-align: top; }
.price-card .price-amount .free { font-size: 48px; }
.price-card .price-period { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.price-card .btn { margin-bottom: 28px; }
.price-card .price-features { text-align: left; margin-bottom: 0; flex: 1; }
.price-card .price-features li {
    list-style: none; padding: 10px 0; border-bottom: 1px solid var(--border);
    font-size: 14px; color: var(--text-muted); display: flex; align-items: flex-start; gap: 8px; line-height: 1.5;
}
.price-card .price-features li:last-child { border-bottom: none; }
.price-card .price-features li::before { content: '✓'; color: #22c55e; font-weight: 700; flex-shrink: 0; }
.price-card .price-features li.disabled { color: var(--text-dim); }
.price-card .price-features li.disabled::before { content: '—'; color: var(--text-dim); }

.price-features { text-align: left; margin-bottom: 32px; }
.price-features li {
    list-style: none; padding: 12px 0; border-bottom: 1px solid var(--border);
    font-size: 15px; color: var(--text-muted); display: flex; align-items: flex-start; gap: 10px;
}
.price-features li:last-child { border-bottom: none; }
.price-features li::before { content: '✓'; color: #22c55e; font-weight: 700; flex-shrink: 0; }
.compare-table { width: 100%; border-collapse: collapse; margin-top: 40px; }
.compare-table th, .compare-table td {
    padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px;
}
.compare-table th { font-weight: 600; color: var(--text); }
.compare-table th:first-child { width: 25%; }
.compare-table td { color: var(--text-muted); }
.compare-table td.yes { color: #22c55e; font-weight: 600; }
.compare-table td.no { color: var(--text-dim); }
.compare-table tr:hover td { background: var(--bg-card); }
.buy-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.buy-step {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px;
}
.buy-step .num { font-size: 14px; font-weight: 700; color: var(--accent-light); margin-bottom: 16px; }
.buy-step h4 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.buy-step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.order-box {
    max-width: 480px; margin: 48px auto 0;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 40px;
}
.order-box .form-group { margin-bottom: 20px; }
.order-box label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--text); }
.order-box input, .order-box select {
    width: 100%; padding: 12px 16px; border-radius: 10px;
    background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text);
    font-size: 15px; font-family: inherit; transition: border-color 0.2s;
}
.order-box input:focus, .order-box select:focus { outline: none; border-color: var(--accent); }
.order-box .order-summary {
    padding: 20px; background: var(--bg-elevated); border-radius: 12px; margin-bottom: 24px;
}
.order-box .order-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; color: var(--text-muted); }
.order-box .order-row.total { font-size: 18px; font-weight: 700; color: var(--text); border-top: 1px solid var(--border); padding-top: 12px; margin-top: 6px; }
.order-box .help-text { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin-top: 16px; }

/* ===== 移动端汉堡菜单按钮 ===== */
.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; background: transparent; border: none; cursor: pointer;
    padding: 0; z-index: 1001;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px; background: var(--text);
    border-radius: 2px; transition: all 0.3s ease; margin: 0 auto;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    z-index: 998; opacity: 0; transition: opacity 0.3s ease;
}
.nav-overlay.active { display: block; opacity: 1; }

/* ============================================================
   账户中心 (account) 样式
   ============================================================ */
.account-hero { padding: 140px 0 80px; }
.account-hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; letter-spacing: -0.02em; margin: 12px 0 16px; }
.account-desc { color: var(--text-muted); font-size: 16px; margin-bottom: 32px; }
.account-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px 32px; display: flex; justify-content: space-between; align-items: flex-start;
    gap: 24px; margin-bottom: 16px;
}
.account-card-left { flex: 1; }
.account-status { display: inline-block; padding: 3px 10px; background: rgba(34,197,94,0.15); color: #22c55e; font-size: 12px; font-weight: 600; border-radius: 4px; margin-bottom: 12px; }
.account-title { font-size: 18px; font-weight: 600; display: block; margin-bottom: 8px; }
.account-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 12px; }
.account-id { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-dim); flex-wrap: wrap; }
.account-id code { font-family: monospace; color: var(--text); background: var(--bg-elevated); padding: 4px 10px; border-radius: 4px; font-size: 12px; }
.copy-btn { background: transparent; border: 1px solid var(--border); color: var(--text-muted); padding: 3px 10px; border-radius: 4px; cursor: pointer; font-size: 12px; transition: all 0.2s; }
.copy-btn:hover { color: var(--accent-light); border-color: var(--accent); }
.logout-btn { background: transparent; border: 1px solid var(--border); color: var(--text-muted); padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 14px; transition: all 0.2s; flex-shrink: 0; }
.logout-btn:hover { color: #ef4444; border-color: #ef4444; }
.account-tabs {
    display: flex; gap: 8px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 6px; margin-bottom: 24px; overflow-x: auto; flex-wrap: wrap;
}
.account-tab { padding: 8px 16px; color: var(--text-muted); text-decoration: none; font-size: 14px; border-radius: 6px; transition: all 0.2s; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.account-tab:hover { color: var(--text); }
.account-tab.active { background: var(--bg-elevated); color: var(--text); }
.tab-num { background: var(--border); color: var(--text-muted); font-size: 11px; padding: 1px 6px; border-radius: 8px; min-width: 18px; text-align: center; }
.account-tab.active .tab-num { background: var(--accent); color: #fff; }
.account-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.account-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: all 0.2s; }
.account-stat:hover { border-color: var(--border-hover); }
.account-stat-label { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.account-stat-value { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; line-height: 1.1; }
.account-stat-hint { font-size: 12px; color: var(--text-dim); }
.account-content { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.account-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.account-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 20px; }
.empty-state { text-align: center; padding: 40px 20px; }
.empty-icon { font-size: 48px; opacity: 0.4; margin-bottom: 12px; }
.empty-state p { color: var(--text-muted); margin-bottom: 6px; }
.empty-state span { font-size: 13px; color: var(--text-dim); }
.action-list { display: flex; flex-direction: column; gap: 12px; }
.action-item {
    display: flex; align-items: center; gap: 14px; padding: 14px;
    background: var(--bg-elevated); border-radius: 10px; text-decoration: none; color: var(--text);
    transition: all 0.2s;
}
.action-item:hover { background: rgba(0,102,255,0.1); transform: translateX(2px); }
.action-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.action-info { flex: 1; }
.action-title { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.action-desc { font-size: 12px; color: var(--text-dim); }
.action-arrow { color: var(--text-dim); font-size: 18px; }

/* ============================================================
   注册页 (register) 样式 —— 蓝紫主题
   ============================================================ */
.auth-page { background: var(--bg); }
.auth-page .auth-main { min-height: calc(100vh - 80px); display: flex; align-items: stretch; padding: 40px 0; }
.auth-container { max-width: 1100px; margin: 0 auto; width: 100%; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; min-height: 720px; }
.auth-page .auth-form-side { padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.auth-form-header { margin-bottom: 24px; }
.auth-form-header h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.auth-form-header p { color: var(--text-muted); font-size: 14px; }
.social-login { display: flex; gap: 12px; margin-bottom: 20px; }
.social-btn { flex: 1; padding: 10px 12px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; color: var(--text); cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s; }
.social-btn:hover { border-color: var(--border-hover); transform: translateY(-1px); }
.social-btn.wechat { color: #22c55e; }
.social-btn.qq { color: #3b82f6; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-dim); font-size: 13px; margin: 8px 0 16px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.auth-form-footer { text-align: center; color: var(--text-muted); font-size: 14px; }
.auth-promo-side { position: relative; background: linear-gradient(135deg, rgba(0,102,255,0.15), rgba(139,92,246,0.15)); overflow: hidden; }
.auth-promo-bg {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0,102,255,0.3) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(139,92,246,0.3) 0%, transparent 40%);
}
.auth-promo-content { position: relative; height: 100%; padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.auth-promo-logo { width: 56px; height: 56px; margin-bottom: 20px; }
.auth-promo-logo .logo-mark {
    width: 56px; height: 56px; background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: #fff; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 28px;
}
.auth-promo-content h2 { font-size: 26px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.02em; }
.auth-promo-content > p { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.auth-promo-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.auth-promo-list li { display: flex; gap: 12px; align-items: flex-start; }
.promo-check { width: 20px; height: 20px; background: linear-gradient(135deg, var(--accent), #8b5cf6); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.auth-promo-list strong { display: block; font-size: 14px; margin-bottom: 2px; }
.auth-promo-list span { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.auth-promo-quote { padding: 16px; background: rgba(0,0,0,0.3); border-radius: 10px; border-left: 3px solid var(--accent); }
.auth-promo-quote p { font-style: italic; color: var(--text); margin-bottom: 6px; font-size: 14px; }
.auth-promo-quote span { font-size: 12px; color: var(--text-dim); }

/* 表单 */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select {
    background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px;
    padding: 10px 14px; color: var(--text); font-size: 14px; transition: all 0.2s; width: 100%;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--accent); background: var(--bg-card); }
.input-group { display: flex; gap: 8px; }
.input-group input { flex: 1; }
.btn-send-code { background: transparent; border: 1px solid var(--border); color: var(--accent-light); padding: 0 16px; border-radius: 8px; cursor: pointer; font-size: 13px; white-space: nowrap; transition: all 0.2s; }
.btn-send-code:hover { background: rgba(0,102,255,0.1); border-color: var(--accent); }
.btn-send-code:disabled { color: var(--text-dim); cursor: not-allowed; }
.form-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.checkbox { display: flex; align-items: center; gap: 6px; color: var(--text-muted); cursor: pointer; }
.checkbox input { width: 14px; height: 14px; accent-color: var(--accent); }
.link { color: var(--accent-light); text-decoration: none; transition: opacity 0.2s; }
.link:hover { opacity: 0.8; text-decoration: underline; }

/* ===== 主题切换 (浅色 / 深色) ===== */
[data-theme="light"] {
    --bg: #ffffff;
    --bg-card: #ffffff;
    --bg-elevated: #f5f5f5;
    --text: #1a1a1a;
    --text-muted: #555555;
    --text-dim: #8a8a8a;
    --border: rgba(0,0,0,0.08);
    --border-hover: rgba(0,0,0,0.16);
    --nav-bg: rgba(255,255,255,0.72);
    --nav-bg-scrolled: rgba(255,255,255,0.88);
    --hover-overlay: rgba(0,0,0,0.04);
    --hover-overlay-strong: rgba(0,0,0,0.06);
    --alt-overlay: rgba(0,0,0,0.015);
    --hero-gradient: linear-gradient(180deg, #1a1a1a 30%, #555555);
}
[data-theme="light"] .btn-primary { color: #fff; }
[data-theme="light"] .btn-primary:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.20); }
[data-theme="light"] .hero-image { box-shadow: 0 40px 80px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.05); }
[data-theme="light"] .feature-card:hover,
[data-theme="light"] .download-card:hover,
[data-theme="light"] .price-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.10); }

/* ===== 主题切换按钮 ===== */
.theme-toggle {
    width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 1px solid var(--border);
    color: var(--text-muted); cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
    padding: 0; flex-shrink: 0;
}
.theme-toggle:hover {
    border-color: var(--border-hover);
    background: var(--hover-overlay);
    color: var(--text);
}
.theme-toggle:focus { outline: none; }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { display: block; }
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .nav-actions .btn-ghost { display: none; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: var(--bg-card); border-left: 1px solid var(--border);
        flex-direction: column; align-items: flex-start; gap: 0;
        padding: 80px 24px 24px; transition: right 0.35s cubic-bezier(0.16,1,0.3,1);
        z-index: 999; overflow-y: auto;
    }
    .nav-links.active { right: 0; }
    .nav-links a {
        width: 100%; padding: 16px 0; font-size: 16px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links a:hover, .nav-links a.active { color: var(--accent-light); }

    .hero, .guide-hero, .price-hero { padding: 100px 0 50px; }
    .hero h1 { font-size: clamp(32px, 8vw, 48px); }
    .hero p { font-size: 16px; padding: 0 8px; }
    .hero-actions { flex-direction: column; width: 100%; padding: 0 8px; }
    .hero-actions .btn { width: 100%; }
    .hero-image { margin-top: 40px; }

    .section { padding: 60px 0; }
    .section-title { font-size: clamp(26px, 6vw, 36px); }
    .section-desc { font-size: 16px; }
    .section-header { margin-bottom: 36px; }

    .feature-cards { grid-template-columns: 1fr; }
    .feature-card-body { padding: 24px; }
    .feature-card-img { height: 180px; }

    .platform-grid { grid-template-columns: repeat(2, 1fr); }
    .platform-item { padding: 20px; }

    .gallery { grid-template-columns: repeat(2, 1fr); }

    .stats-grid { grid-template-columns: 1fr; gap: 16px; }
    .stat-card { padding: 28px 20px; }

    .logo-wall { gap: 16px 24px; }
    .logo-item { font-size: 18px; }

    .cta-section { padding: 80px 0; }
    .cta-section h2 { font-size: clamp(28px, 6vw, 40px); }
    .cta-section p { font-size: 16px; padding: 0 16px; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 36px; }
    footer { padding: 48px 0 32px; }

    .download-grid { grid-template-columns: 1fr; }
    .download-card { padding: 32px 24px; }
    .download-tips { grid-template-columns: 1fr; }
    .tip-card { padding: 24px; }

    .steps-grid { grid-template-columns: 1fr; }
    .step-card { padding: 24px; }
    .task-formula { grid-template-columns: repeat(2, 1fr); }
    .formula-item { padding: 20px; }
    .task-example { padding: 24px; margin-top: 24px; }
    .task-by-type { grid-template-columns: 1fr; }
    .type-card { padding: 24px; }
    .templates-grid { grid-template-columns: 1fr; }
    .template-card { padding: 20px; }
    .guide-nav { gap: 8px; }
    .guide-nav a { padding: 6px 14px; font-size: 13px; }
    .guide-stats { gap: 24px; }
    .guide-stat .num { font-size: 26px; }

    .price-grid { grid-template-columns: 1fr; gap: 16px; }
    .price-card { padding: 32px 24px; }
    .price-card .price-amount { font-size: 40px; }
    .price-card .price-amount .currency, .price-card .price-amount .free { font-size: 20px; }
    .compare-table { font-size: 13px; }
    .compare-table th, .compare-table td { padding: 12px 10px; }
    .buy-steps { grid-template-columns: repeat(2, 1fr); }
    .buy-step { padding: 24px; }
    .order-box { padding: 28px 20px; margin: 32px 12px 0; }

    .faq-question { padding: 16px; font-size: 15px; }
    .faq-answer { padding: 0 16px; font-size: 13px; }
    .faq-item.open .faq-answer { padding: 0 16px 16px; }

    .account-hero { padding: 100px 0 60px; }
    .account-card { flex-direction: column; padding: 20px; }
    .logout-btn { align-self: flex-start; }
    .account-stats { grid-template-columns: repeat(2, 1fr); }
    .account-content { grid-template-columns: 1fr; }

    .auth-container { grid-template-columns: 1fr; }
    .auth-promo-side { display: none; }
    .auth-form-side { padding: 32px 24px; }
    .auth-form-header h1 { font-size: 24px; }
}

@media (max-width: 560px) {
    .container { padding: 0 16px; }
    .nav-inner { padding: 0 16px; }
    .platform-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .task-formula { grid-template-columns: 1fr; }
    .buy-steps { grid-template-columns: 1fr; }
    .video-play-btn { width: 60px; height: 60px; }
    .video-play-btn svg { width: 24px; height: 24px; }
    .video-close-btn { top: 16px; right: 16px; width: 40px; height: 40px; }
    .video-modal-inner { width: 95%; }
    .guide-stats { flex-direction: row; justify-content: space-around; gap: 12px; }
    .guide-stat .num { font-size: 22px; }
    .guide-stat .label { font-size: 12px; }
    .nav-links { width: 100%; }
    .btn-lg { padding: 12px 24px; font-size: 15px; }
    .account-stats { grid-template-columns: 1fr; }
    .account-id { font-size: 12px; }
    .auth-main { padding: 20px 0; }
    .auth-form-side { padding: 24px 20px; }
    .social-login { flex-direction: column; }
    .form-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .theme-toggle { width: 32px; height: 32px; }
    .theme-toggle svg { width: 15px; height: 15px; }
}

@media (max-width: 380px) {
    .hero h1 { font-size: 28px; }
    .section-title { font-size: 24px; }
    .cta-section h2 { font-size: 26px; }
    .price-card .price-amount { font-size: 34px; }
}

/* ===== 导航语言选择器 ===== */
.language-selector { position: relative; font-size: 14px; color: var(--text-muted); cursor: pointer; }
.language-selector .language-toggle { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; transition: background 0.2s; white-space: nowrap; }
.language-selector .language-toggle:hover { background: var(--hover-overlay); }
.language-menu {
    position: absolute; top: 100%; right: 0; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 8px; padding: 8px 0;
    min-width: 130px; opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.3s ease; z-index: 1001; list-style: none; margin: 0;
}
.language-selector:hover .language-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.language-menu li { list-style: none; }
.language-menu a { padding: 8px 16px; color: var(--text-muted); font-size: 14px; display: flex; align-items: center; gap: 8px; transition: all 0.2s; }
.language-menu a:hover { background: var(--hover-overlay-strong); color: var(--text); }
.language-menu img { width: 18px; height: 18px; border-radius: 2px; }

/* ===== 登录弹窗 (pintuer .dialogs) ===== */
.dialog-mask { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 9998; }
.dialog { border: 1px solid var(--border); box-shadow: 0 20px 60px rgba(0,0,0,0.5); border-radius: 12px; background-color: #fff; display: none; }
.dialog.open { display: block; }
.dialog-win { z-index: 9999 !important; }

/* ===== 登录弹窗 (账号登录 + 微信扫码) ===== */
.dialog.login-dialog {
    position: relative; display: flex; width: 100%; max-width: 800px; min-height: 520px;
    margin: 0 auto; border-radius: 16px; overflow: hidden; background: #fff;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5); border: none;
}
.login-dialog .dialog-close {
    position: absolute; top: 14px; right: 14px; z-index: 10;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(0,0,0,0.06); border: none; cursor: pointer;
    color: #666; font-size: 20px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.login-dialog .dialog-close:hover { background: rgba(0,0,0,0.14); color: #1a1a1a; }
.login-panel { width: 100%; display: flex; }
.login-cover { flex: 1; min-height: 520px; background-size: cover; background-position: center; }
.login-form-wrap { flex: 1; padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.login-title { font-size: 22px; font-weight: 600; color: #1a1a1a; margin-bottom: 28px; text-align: center; }
.login-field { margin-bottom: 16px; }
.login-field input[type="text"], .login-field input[type="password"] {
    width: 100%; padding: 12px 16px; border: 1px solid #e0e0e0; border-radius: 8px;
    font-size: 14px; color: #1a1a1a; background: #fff; transition: border-color 0.2s;
    box-sizing: border-box;
}
.login-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,102,255,0.08); }
.login-verify { display: flex; gap: 8px; align-items: center; }
.login-verify input { flex: 1; min-width: 0; }
.login-verify .addon { flex-shrink: 0; }
.login-verify .addon img { width: 100px; height: 42px; border-radius: 6px; cursor: pointer; display: block; }
.login-submit {
    width: 100%; padding: 13px; margin-top: 8px; border: none; border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6); color: #fff;
    font-size: 15px; font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.login-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-glow); }
.login-links { margin-top: 20px; text-align: center; }
.login-links a { color: var(--accent-light); font-size: 14px; text-decoration: none; }
.login-links a:hover { text-decoration: underline; }
.login-agree { margin-top: 24px; text-align: center; font-size: 12px; color: #999; line-height: 1.6; }
.login-agree a { color: #999; text-decoration: none; }
.login-agree a:hover { color: var(--accent-light); }
.wechat-panel { align-items: center; text-align: center; }
.wechat-title { color: #22c55e; font-size: 18px; margin-bottom: 28px; }
.wechat-qr { width: 240px; height: 260px; background: #fff; padding: 10px; border: 1px solid #e0e0e0; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); margin-bottom: 20px; }
.wechat-qr iframe { width: 100%; height: 100%; border: none; }
.wechat-tip { color: #666; font-size: 14px; margin-bottom: 10px; }
.wechat-sub { font-size: 12px; color: #999; line-height: 1.6; }
.wechat-sub a { color: #22c55e; text-decoration: none; }
.wechat-reg { margin-top: 10px; font-size: 12px; }
.wechat-reg a { color: #22c55e; text-decoration: none; }

@media (max-width: 700px) {
    .login-cover { display: none; }
    .login-form-wrap { padding: 32px 24px; }
    .dialog.login-dialog { min-height: auto; }
}

/* ============================================================
   产品详情页 (product detail) 样式
   ============================================================ */
.pd-hero { padding: 108px 0 72px; position: relative; }
.pd-breadcrumb { font-size: 13px; color: var(--text-dim); margin-bottom: 28px; }
.pd-breadcrumb a { color: var(--text-dim); transition: color 0.2s; }
.pd-breadcrumb a:hover { color: var(--accent-light); }

.pd-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }

/* ===== 左侧画廊 ===== */
.pd-gallery { position: sticky; top: 88px; }
.pd-main-img {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    aspect-ratio: 4 / 3; transition: border-color 0.3s ease;
}
.pd-main-img:hover { border-color: var(--border-hover); }
.pd-main-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-img-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; width: 100%; color: var(--text-dim); font-size: 14px;
}
.pd-img-empty svg { opacity: 0.4; }
.pd-thumbs { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.pd-thumb {
    width: 84px; height: 84px; border-radius: var(--radius-sm); overflow: hidden;
    border: 1px solid var(--border); background: var(--bg-card); cursor: pointer;
    padding: 0; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover { border-color: var(--border-hover); }
.pd-thumb.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* ===== 右侧信息 ===== */
.pd-info h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 12px; }
.pd-desc { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 24px; }

.pd-price-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px 24px; margin-bottom: 28px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.pd-price-label { font-size: 13px; color: var(--text-dim); }
.pd-price-symbol { font-size: 17px; font-weight: 600; color: var(--accent-light); }
.pd-price-card #users_price, .pd-price-card .ey-price {
    font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1;
    background: linear-gradient(135deg, var(--accent-light), #8b5cf6);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.pd-price-card #old_price { color: var(--text-dim); font-size: 15px; }
.pd-total { font-size: 13px; color: var(--text-dim); margin-left: auto; }
.pd-total #totol_price { color: var(--text); font-weight: 600; font-size: 17px; }

/* ===== 规格选择 ===== */
.pd-spec-group { margin-bottom: 20px; }
.pd-spec-label { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; display: block; }
.pd-spec-btn {
    display: inline-flex; align-items: center; gap: 6px; margin: 0 10px 10px 0;
    padding: 8px 16px; border-radius: 100px; font-size: 14px;
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted);
    cursor: pointer; transition: all 0.2s ease; text-decoration: none;
}
.pd-spec-btn:hover { border-color: var(--border-hover); color: var(--text); }
.pd-spec-btn.spec-active {
    background: rgba(0,102,255,0.12); border-color: var(--accent); color: var(--accent-light); font-weight: 500;
}

/* ===== 数量与库存 ===== */
.pd-buy-row { display: flex; align-items: center; gap: 28px; margin-bottom: 28px; flex-wrap: wrap; }
.pd-qty { display: flex; align-items: center; gap: 12px; }
.pd-qty-label { font-size: 13px; color: var(--text-muted); }
.pd-qty-box {
    display: inline-flex; align-items: center; border: 1px solid var(--border);
    border-radius: 10px; background: var(--bg-card); overflow: hidden;
}
.pd-qty-box button {
    width: 40px; height: 42px; border: none; background: transparent; color: var(--text-muted);
    font-size: 18px; cursor: pointer; transition: all 0.2s; line-height: 1; padding: 0;
}
.pd-qty-box button:hover { background: var(--hover-overlay-strong); color: var(--text); }
.pd-qty-box input {
    width: 56px; height: 42px; border: none; background: transparent; color: var(--text);
    font-size: 15px; text-align: center; outline: none;
    border-left: 1px solid var(--border); border-right: 1px solid var(--border);
}
.pd-stock { font-size: 13px; color: var(--text-dim); }
.pd-stock #stock_count { color: var(--text-muted); font-weight: 500; }

/* ===== 购买按钮（提高优先级覆盖 shopcart.css） ===== */
.pd-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.pd-actions .btn {
    flex: 1; min-width: 180px; padding: 14px 28px; font-size: 16px; border-radius: 12px;
    border: 1px solid transparent; font-weight: 500; cursor: pointer; text-align: center;
    display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s ease;
}
.pd-actions .btn-outline { border: 1px solid var(--border); background: transparent; color: var(--text); }
.pd-actions .btn-outline:hover { border-color: var(--border-hover); background: var(--hover-overlay); }
.pd-actions .btn-glow { background: linear-gradient(135deg, var(--accent), #8b5cf6); color: #fff; }
.pd-actions .btn-glow:hover { box-shadow: 0 8px 32px var(--accent-glow); transform: translateY(-1px); }
.pd-tips { margin-top: 18px; font-size: 12px; color: var(--text-dim); line-height: 1.6; }

/* ===== 商品介绍 ===== */
.pd-detail { padding: 72px 0; background: linear-gradient(180deg, transparent, var(--alt-overlay), transparent); }
.pd-article {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 40px 48px; overflow-x: auto;
}
.pd-article p { color: var(--text-muted); line-height: 1.8; font-size: 15px; margin-bottom: 14px; }
.pd-article h2, .pd-article h3, .pd-article h4 { color: var(--text); margin: 28px 0 14px; letter-spacing: -0.01em; }
.pd-article h2 { font-size: 22px; } .pd-article h3 { font-size: 19px; } .pd-article h4 { font-size: 16px; }
.pd-article img { max-width: 100%; height: auto; border-radius: 10px; margin: 16px 0; }
.pd-article a { color: var(--accent-light); }
.pd-article ul, .pd-article ol { padding-left: 22px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.8; }
.pd-article table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.pd-article table th, .pd-article table td { border: 1px solid var(--border); padding: 10px 14px; font-size: 14px; color: var(--text-muted); }
.pd-article table th { color: var(--text); font-weight: 600; }
.pd-article video, .pd-article iframe { max-width: 100%; border-radius: 10px; }

/* ===== 产品推荐 ===== */
.pd-related { padding: 72px 0 100px; }
.pd-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.pd-related-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: all 0.3s ease; display: flex; flex-direction: column; color: var(--text);
}
.pd-related-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
[data-theme="light"] .pd-related-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.10); }
.pd-related-img { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-elevated); }
.pd-related-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.pd-related-card:hover .pd-related-img img { transform: scale(1.04); }
.pd-related-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.pd-related-title {
    font-size: 15px; font-weight: 600; line-height: 1.5; margin-bottom: 10px; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 44px;
}
.pd-related-price { margin-top: auto; font-size: 18px; font-weight: 700; color: var(--accent-light); }

/* ===== 产品页响应式 ===== */
@media (max-width: 900px) {
    .pd-hero { padding: 96px 0 48px; }
    .pd-grid { grid-template-columns: 1fr; gap: 32px; }
    .pd-gallery { position: static; }
    .pd-related-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .pd-article { padding: 24px 20px; }
    .pd-detail { padding: 48px 0; }
    .pd-related { padding: 48px 0 64px; }
    .pd-total { margin-left: 0; }
}
@media (max-width: 560px) {
    .pd-related-grid { grid-template-columns: 1fr; }
    .pd-actions .btn { min-width: 0; }
    .pd-thumb { width: 68px; height: 68px; }
    .pd-price-card #users_price, .pd-price-card .ey-price { font-size: 28px; }
}
