/* ============================================================
   行星时间 Planetary Hours — 营销页样式
   设计基调：深空夜色 + 古典行星色板 + 米白纸感
   ============================================================ */

:root {
    /* 色板对齐 App 图标：深梅紫底 + 霓虹薰衣草描边 */
    --bg: #faf8ff;
    --card: #ffffff;
    --ink: #241a35;
    --ink-soft: #6e6284;
    --accent: #5b2fa8;
    --accent-bright: #8b4fe0;
    --night-1: #1c1030;
    --night-2: #3b1d63;
    --glow: #c9a2f5;
    --border: #e7dff2;
    --radius: 18px;
    --max-w: 1120px;

    /* 七大古典行星色 */
    --sun: #f0a500;
    --moon: #8fb2d9;
    --mars: #e23c2e;
    --mercury: #35a3c4;
    --jupiter: #9b5cf6;
    --venus: #ef4d9b;
    --saturn: #8a8f98;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 双语切换 ---------- */
body[data-lang="zh"] .len { display: none; }
body[data-lang="en"] .lzh { display: none; }

/* ---------- 顶部导航 ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(21, 12, 38, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
}
.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    flex: none;
}
.nav-links {
    display: flex;
    gap: 22px;
    margin-left: auto;
    font-size: 0.92rem;
}
.nav-links a { color: rgba(255,255,255,0.78); transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-cta {
    background: var(--accent-bright);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: transform .15s, box-shadow .15s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(139,79,224,.4); }
.lang-btn {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
}
.lang-btn:hover { background: rgba(255,255,255,0.22); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(ellipse 90% 60% at 75% 0%, rgba(139, 79, 224, 0.30), transparent 60%),
        radial-gradient(ellipse 70% 55% at 15% 25%, rgba(201, 162, 245, 0.14), transparent 60%),
        linear-gradient(165deg, #17102b 5%, var(--night-2) 92%);
    color: #fff;
    overflow: hidden;
}
/* 星点：多层径向渐变模拟星空 */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.9), transparent),
        radial-gradient(1px 1px at 28% 60%, rgba(255,255,255,.6), transparent),
        radial-gradient(1.5px 1.5px at 42% 14%, rgba(255,255,255,.75), transparent),
        radial-gradient(1px 1px at 57% 44%, rgba(255,255,255,.5), transparent),
        radial-gradient(1.5px 1.5px at 68% 18%, rgba(255,255,255,.85), transparent),
        radial-gradient(1px 1px at 78% 58%, rgba(255,255,255,.55), transparent),
        radial-gradient(1.5px 1.5px at 88% 30%, rgba(255,255,255,.8), transparent),
        radial-gradient(1px 1px at 20% 78%, rgba(255,255,255,.4), transparent),
        radial-gradient(1.5px 1.5px at 50% 82%, rgba(255,255,255,.5), transparent),
        radial-gradient(1px 1px at 92% 74%, rgba(255,255,255,.6), transparent);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 84px 24px 96px;
}
.hero-copy .eyebrow {
    display: inline-block;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    color: var(--glow);
    border: 1px solid rgba(201, 162, 245, 0.45);
    border-radius: 999px;
    padding: 5px 14px;
    margin-bottom: 22px;
}
.hero-copy h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    line-height: 1.18;
    font-weight: 800;
    margin-bottom: 18px;
}
.hero-copy h1 .glow {
    color: var(--glow);
    text-shadow: 0 0 22px rgba(201, 162, 245, 0.55);
}
.hero-copy .lead {
    font-size: 1.08rem;
    color: rgba(255,255,255,0.78);
    max-width: 34em;
    margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.98rem;
    transition: transform .15s, box-shadow .15s, background .2s;
}
.btn-primary {
    background: var(--accent-bright);
    color: #fff;
    box-shadow: 0 8px 24px rgba(139, 79, 224, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(139,79,224,.55); }
.btn-ghost {
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.hero-note { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-top: 16px; }

/* 营销海报卡：新截图自带设备模型与星空底，无需 CSS 手机框 */
.hero-shot {
    justify-self: center;
    width: min(350px, 82vw);
    aspect-ratio: 1320 / 2868;
    border-radius: 26px;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    transform: rotate(2deg);
}
.hero-shot img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 数据条 ---------- */
.stats {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 34px 0;
    text-align: center;
}
.stat b {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--accent);
}
.stat span { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- 通用节标题 ---------- */
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    font-weight: 800;
    margin-bottom: 12px;
}
.section-head p { color: var(--ink-soft); font-size: 1.02rem; }
.kicker {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* ---------- 功能网格 ---------- */
.features { background: var(--bg); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px;
    transition: transform .18s, box-shadow .18s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(43, 36, 54, 0.10);
}
.feature-card .glyph {
    width: 46px; height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 16px;
    flex: none;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--ink-soft); }
.tag-new {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent-bright);
    border: 1px solid var(--accent-bright);
    border-radius: 999px;
    padding: 1px 8px;
    margin-left: 6px;
    vertical-align: 2px;
}

/* ---------- 截图展示 ---------- */
.showcase { background: linear-gradient(180deg, var(--bg), #f1eafa); }
.shots {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}
.shot {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    text-align: center;
    transition: transform .18s, box-shadow .18s;
}
.shot:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(43,36,54,0.12);
}
.shot img {
    border-radius: 12px;
    width: 100%;
    aspect-ratio: 1320 / 2868;
    object-fit: cover;
}
.shot figcaption {
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
}

/* ---------- 1.3 新版本带 ---------- */
.v13 {
    background:
        radial-gradient(ellipse 60% 80% at 85% 20%, rgba(155,92,246,0.18), transparent 65%),
        radial-gradient(ellipse 55% 70% at 10% 80%, rgba(201,162,245,0.14), transparent 65%),
        linear-gradient(160deg, var(--night-1), #1d0f2e);
    color: #fff;
}
.v13-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.v13-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: 24px 20px;
}
.v13-card .glyph {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 14px;
    background: rgba(255,255,255,0.12);
}
.v13-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.v13-card p { font-size: 0.88rem; color: rgba(255,255,255,0.72); }

/* ---------- Watch / Widget 分栏 ---------- */
.duo {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}
.duo-copy h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    margin-bottom: 14px;
}
.duo-copy p { color: var(--ink-soft); margin-bottom: 12px; }
.duo-copy ul { list-style: none; margin-top: 14px; }
.duo-copy li {
    padding-left: 26px;
    position: relative;
    margin-bottom: 10px;
    color: var(--ink);
    font-size: 0.95rem;
}
.duo-copy li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--glow);
}
.duo-visual {
    display: flex;
    justify-content: center;
}
.duo-poster {
    width: min(320px, 72vw);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(24, 16, 40, 0.28);
}

/* ---------- 三步走 ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: step;
}
.step {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    position: relative;
}
.step::before {
    counter-increment: step;
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-list details {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-list summary {
    cursor: pointer;
    padding: 18px 22px;
    font-weight: 700;
    font-size: 0.98rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+";
    font-size: 1.3rem;
    color: var(--accent);
    transition: transform .2s;
    flex: none;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
    padding: 0 22px 18px;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

/* ---------- 底部下载 CTA ---------- */
.cta {
    background:
        radial-gradient(ellipse 70% 90% at 50% 110%, rgba(139,79,224,0.40), transparent 65%),
        linear-gradient(170deg, var(--night-1), var(--night-2));
    color: #fff;
    text-align: center;
}
.cta h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 14px;
}
.cta p { color: rgba(255,255,255,0.72); margin-bottom: 30px; }
.cta .planets-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 30px;
}
.cta .planets-row span {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.05rem;
    box-shadow: 0 0 18px rgba(255,255,255,0.15);
}

/* ---------- 页脚 ---------- */
.footer {
    background: #120a22;
    color: rgba(255,255,255,0.6);
    padding: 40px 0;
    font-size: 0.86rem;
    text-align: center;
}
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-bottom: 18px;
}
.footer-links a { color: rgba(255,255,255,0.78); }
.footer-links a:hover { color: #fff; }

/* ---------- 进场动画（仅在 JS 可用时启用，禁 JS 时内容直接可见） ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .v13-grid { grid-template-columns: repeat(2, 1fr); }
    .shots { grid-template-columns: repeat(3, 1fr); }
    .shots .shot:nth-child(n+4) { display: none; }
}

@media (max-width: 768px) {
    .nav-inner { gap: 12px; }
    .hero-inner {
        grid-template-columns: 1fr;
        padding: 56px 24px 72px;
        text-align: center;
    }
    .hero-copy .lead { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .nav-links a:not(.nav-cta) { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .section { padding: 60px 0; }
    .shots { grid-template-columns: repeat(2, 1fr); }
    .shots .shot:nth-child(n+3) { display: none; }
    .duo { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .v13-grid { grid-template-columns: 1fr; }
    /* 截图区改为横向滑动，可浏览全部 5 张 */
    .shots {
        display: flex;
        overflow-x: auto;
        gap: 14px;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .shots .shot {
        flex: 0 0 76%;
        scroll-snap-align: center;
    }
    .hero-shot { transform: none; }
}
