/* 阿拉丁官网 — 暖色深色编辑风，与现有浅蓝下载页区分 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
    --ink: #07080f;
    --paper: #0f111a;
    --surface: rgba(22, 26, 42, 0.55);
    --line: rgba(255, 255, 255, 0.1);
    --text: #f2f0ea;
    --muted: #a8a4b8;
    --gold: #e8b04a;
    --gold-dim: #c48a2c;
    --ember: #ff6b4a;
    --mint: #3dd6a8;
    --sky: #5eb8ff;
    --violet: #a78bfa;
    --teal: #2dd4bf;
    --radius: 16px;
    --font: "Noto Sans SC", "PingFang SC", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, monospace;
    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.14);
    --shadow-glow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    color: var(--text);
    background: linear-gradient(165deg, #07080f 0%, #12182a 45%, #0a1628 100%);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    animation: blob-float 18s ease-in-out infinite;
}

.blob-a {
    width: 420px;
    height: 420px;
    background: rgba(232, 176, 74, 0.35);
    top: -80px;
    left: -60px;
}

.blob-b {
    width: 380px;
    height: 380px;
    background: rgba(94, 184, 255, 0.28);
    top: 20%;
    right: -100px;
    animation-delay: -6s;
}

.blob-c {
    width: 320px;
    height: 320px;
    background: rgba(167, 139, 250, 0.25);
    bottom: 10%;
    left: 25%;
    animation-delay: -12s;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(24px, -20px) scale(1.06); }
}

a { color: inherit; text-decoration: none; }

.wrap {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* 顶栏 */
.site-header,
.glass-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px) saturate(1.35);
    background: rgba(10, 12, 22, 0.65);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.site-header .inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.02em;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 4px 16px rgba(232, 176, 74, 0.35);
}

.nav-main {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    font-size: 14px;
    color: var(--muted);
}

.nav-main a {
    position: relative;
    padding: 4px 0;
    transition: color 0.2s;
}

.nav-main a:hover,
.nav-main a.is-active { color: var(--text); }

.nav-main a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s, background 0.2s;
}

.btn:active { transform: scale(0.98); }

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #c89246 100%);
    color: var(--ink);
    box-shadow: 0 8px 28px rgba(212, 160, 84, 0.25);
}

.btn-gold:hover {
    box-shadow: 0 12px 36px rgba(212, 160, 84, 0.35);
}

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}

.btn-shine:hover::after {
    transform: translateX(120%);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: rgba(212, 160, 84, 0.45); }

/* Hero */
.hero {
    padding: 72px 0 48px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding-top: 48px; }
}

.hero-kicker {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 20px;
}

.hero-lead {
    color: var(--muted);
    font-size: 16px;
    max-width: 34em;
    margin-bottom: 28px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual,
.glass-panel {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: calc(var(--radius) + 8px);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
}

.hero-visual canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-visual .cap,
.glass-cap {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: rgba(8, 10, 18, 0.55);
    border: 1px solid var(--glass-border);
    font-size: 13px;
    color: var(--muted);
    backdrop-filter: blur(10px);
}

.grad-text {
    background: linear-gradient(90deg, var(--gold), var(--sky));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.hero-chips span {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(94, 184, 255, 0.12);
    border: 1px solid rgba(94, 184, 255, 0.35);
    color: #cfe9ff;
}

.pill {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
    border: 1px solid var(--glass-border);
}

.pill-gold { background: rgba(232, 176, 74, 0.15); color: #ffd891; }
.pill-sky { background: rgba(94, 184, 255, 0.15); color: #b8e0ff; }
.pill-mint { background: rgba(61, 214, 168, 0.15); color: #aaf5dc; }
.pill-coral { background: rgba(255, 107, 74, 0.15); color: #ffc4b8; }

.page-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.2;
    margin: 0 0 16px;
}

.lead-wide {
    font-size: 17px;
    color: var(--muted);
    max-width: 42em;
    line-height: 1.75;
}

.link-gold { color: var(--gold); font-weight: 600; }

.section-hero-lite { border-top: none; padding-top: 40px; }

.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: calc(var(--radius) + 4px);
    padding: 22px 20px;
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-glow);
    transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.22);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.feature-card .feature-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
}

.feature-card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.feature-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.65; }

.accent-coral .feature-icon { background: rgba(255,107,74,0.2); color: #ffb09e; box-shadow: 0 0 24px rgba(255,107,74,0.25); }
.accent-sky .feature-icon { background: rgba(94,184,255,0.2); color: #b8e0ff; box-shadow: 0 0 24px rgba(94,184,255,0.25); }
.accent-mint .feature-icon { background: rgba(61,214,168,0.2); color: #aaf5dc; box-shadow: 0 0 24px rgba(61,214,168,0.25); }
.accent-violet .feature-icon { background: rgba(167,139,250,0.2); color: #ddd0ff; box-shadow: 0 0 24px rgba(167,139,250,0.25); }
.accent-gold .feature-icon { background: rgba(232,176,74,0.2); color: #ffd891; box-shadow: 0 0 24px rgba(232,176,74,0.25); }
.accent-teal .feature-icon { background: rgba(45,212,191,0.2); color: #aaf0e8; box-shadow: 0 0 24px rgba(45,212,191,0.25); }

.accent-coral { border-top: 2px solid rgba(255,107,74,0.55); }
.accent-sky { border-top: 2px solid rgba(94,184,255,0.55); }
.accent-mint { border-top: 2px solid rgba(61,214,168,0.55); }
.accent-violet { border-top: 2px solid rgba(167,139,250,0.55); }
.accent-gold { border-top: 2px solid rgba(232,176,74,0.55); }
.accent-teal { border-top: 2px solid rgba(45,212,191,0.55); }

.steps-glass {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.steps-glass li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
}

.step-n {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), var(--ember));
    color: #1a1020;
}

.steps-glass p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.cta-band { padding-top: 24px; }

.cta-inner {
    text-align: center;
    padding: 36px 28px;
    background: linear-gradient(135deg, rgba(232,176,74,0.12), rgba(94,184,255,0.1));
}

.cta-inner h2 { margin: 0 0 8px; }
.cta-inner p { margin: 0; color: var(--muted); }

/* 区块 */
.section {
    padding: 56px 0;
    border-top: 1px solid var(--line);
}

.section-head {
    margin-bottom: 32px;
}

.section-head h2 {
    margin: 0 0 8px;
    font-size: 1.65rem;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    max-width: 40em;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 22px;
    backdrop-filter: blur(12px);
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.card:hover {
    border-color: rgba(232, 176, 74, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.card-num {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--gold-dim);
    margin-bottom: 10px;
}

.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; font-size: 14px; color: var(--muted); }

/* 套餐 */
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.price-card {
    position: relative;
    padding: 28px 24px;
    border-radius: calc(var(--radius) + 4px);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-glow);
}

.price-card.featured {
    border-color: rgba(212, 160, 84, 0.5);
    box-shadow: 0 0 0 1px rgba(212, 160, 84, 0.15);
}

.price-card .tag {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(212, 160, 84, 0.15);
    color: var(--gold);
}

.price-card h3 { margin: 0 0 6px; }
.price-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }

.price-val {
    font-family: var(--mono);
    font-size: 2rem;
    color: var(--gold);
}

.price-val small { font-size: 14px; color: var(--muted); }

.stock {
    font-size: 12px;
    color: var(--muted);
    margin: 12px 0 20px;
}

.stock.low { color: var(--ember); }

/* 教程缩略图 16:9 */
.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tutorial-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    transition: transform 0.25s;
}

.tutorial-card:hover { transform: scale(1.02); }

.tutorial-thumb {
    aspect-ratio: 16/9;
    background: #0a0908 center/cover no-repeat;
    position: relative;
}

.tutorial-thumb::after {
    content: "▶";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 28px;
    color: rgba(255,255,255,0.85);
    background: rgba(0,0,0,0.25);
    opacity: 0;
    transition: opacity 0.2s;
}

.tutorial-card:hover .tutorial-thumb::after { opacity: 1; }

.tutorial-body { padding: 16px 18px; }
.tutorial-body h3 { margin: 0; font-size: 15px; }

/* 表单 */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
}

.form-field input:focus, .form-field textarea:focus {
    outline: none;
    border-color: rgba(212, 160, 84, 0.55);
}

.pay-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    max-width: 520px;
}

.pay-amount {
    font-family: var(--mono);
    font-size: 1.75rem;
    color: var(--gold);
    word-break: break-all;
}

.wallet-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin: 12px 0;
}

.wallet-row input {
    flex: 1;
    font-family: var(--mono);
    font-size: 12px;
}

/* 滚动入场 */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 32px 24px 48px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

/* 客服浮窗 */
.chat-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--gold);
    color: var(--ink);
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.chat-panel {
    position: fixed;
    right: 22px;
    bottom: 86px;
    z-index: 80;
    width: min(360px, calc(100vw - 44px));
    max-height: 420px;
    display: none;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,0.45);
}

.chat-panel.open { display: flex; }

.chat-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    font-weight: 600;
}

.chat-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    font-size: 13px;
}

.chat-msgs .msg { margin-bottom: 10px; padding: 8px 10px; border-radius: 8px; max-width: 90%; }
.chat-msgs .msg.customer { background: rgba(212,160,84,0.12); margin-left: auto; }
.chat-msgs .msg.admin { background: rgba(255,255,255,0.06); }

.chat-input-row {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--line);
}

.chat-input-row input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--text);
}
