/* ===================================================================
   WotOPT — Apple 风格 · 一屏下载页
   设计语言：SF Pro 字体栈 / 深色满屏 Hero / 毛玻璃吸顶导航 /
   蓝链药丸按钮 / 滚动渐显动画 / 极简页脚
   =================================================================== */

:root {
    --bg-white: #ffffff;
    --bg-gray: #f5f5f5;
    --bg-dark: #000000;

    --text-primary: #111111;
    --text-secondary: #6b6b6b;
    --text-invert: #ffffff;
    --text-invert-dim: rgba(255, 255, 255, 0.6);

    --accent-blue: #111111;
    --btn-blue: #111111;
    --btn-blue-hover: #000000;

    --border-light: #e3e3e3;

    --nav-height: 48px;
    --max-content: 980px;
    --max-wide: 1200px;

    --font-sf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: var(--font-sf);
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.5;
    letter-spacing: -0.01em;
    overflow-x: hidden;
}

/* ===================== 吸顶毛玻璃导航 ===================== */
.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background 0.3s ease;
}
.nav-scrolled { background: rgba(255, 255, 255, 0.85); }
.nav-inner {
    max-width: var(--max-wide);
    height: 100%;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 2px;
}
.lang-switch button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 7px;
    border-radius: 7px;
    line-height: 1;
    transition: color 0.2s ease, background 0.2s ease;
}
.lang-switch button.active {
    color: var(--text-primary);
    font-weight: 600;
    background: rgba(0, 0, 0, 0.06);
}
.lang-sep { color: var(--text-secondary); opacity: 0.4; }
.nav-cta {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #111;
    padding: 7px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: #000; transform: translateY(-1px); }

/* ===================== 按钮 ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    padding: 14px 30px;
    border-radius: 12px;
    border: 1.5px solid transparent;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease,
                border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.btn-primary { background: #111; color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18); }
.btn-primary:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-lg { font-size: 17px; padding: 17px 42px; border-radius: 14px; }

/* ===================== 一屏 Hero ===================== */
.hero {
    position: relative;
    background: var(--bg-dark);
    color: var(--text-invert);
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 22px;
    overflow: hidden;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-content);
    margin: 0 auto;
}
.hero-eyebrow {
    font-size: 19px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 10px;
    letter-spacing: 0.01em;
}
.hero-title {
    font-size: clamp(56px, 11vw, 110px);
    font-weight: 700;
    line-height: 1.02;
    margin: 0 0 14px;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #ffffff 30%, #b0b0b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: clamp(22px, 4vw, 38px);
    font-weight: 600;
    line-height: 1.12;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}
.hero-desc {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-invert-dim);
    max-width: 600px;
    margin: 0 auto 36px;
}
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-points {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 32px;
    margin: 52px 0 0;
    padding: 0;
}
.hero-points li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-invert-dim);
}
.hero-points li > span:first-child { font-size: 18px; }

/* Hero 光晕 */
.hero-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 62%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

/* ===================== 极简页脚 ===================== */
.site-footer {
    background: var(--bg-gray);
    border-top: 1px solid var(--border-light);
    padding: 22px 22px;
    font-size: 12px;
    color: var(--text-secondary);
}
.footer-inner { max-width: var(--max-wide); margin: 0 auto; text-align: center; }
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 10px;
}
.footer-links a, .footer-qq {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-fine { color: #86868b; margin: 0; }

/* ===================== 滚动渐显 ===================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===================== 响应式 ===================== */
@media (max-width: 640px) {
    .hero { padding: 90px 18px; }
    .hero-actions { flex-direction: column; gap: 18px; }
    .hero-points { gap: 10px 18px; margin-top: 40px; }
}

/* Shared layout for the localized marketing pages. */
.skip-link {
    position: fixed;
    z-index: 1100;
    top: 8px;
    left: 8px;
    transform: translateY(calc(-100% - 10px));
    padding: 8px 14px;
    background: var(--bg-white);
    color: var(--text-primary);
    border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }
.localized-site :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.localized-site main:focus { outline: none; }
.localized-site section[id] { scroll-margin-top: 84px; }
.site-nav { height: auto; }
.site-nav .nav-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand pages languages";
    gap: 16px;
    min-height: var(--nav-height);
}
.site-nav .nav-brand { grid-area: brand; }
.page-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 10px;
}
.page-links { grid-area: pages; justify-content: center; }
.page-links a, .locale-links a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 7px 8px;
    border-radius: 7px;
    font-size: .875rem;
}
.language-selector { position: relative; grid-area: languages; justify-self: end; }
.language-selector > summary {
    display: flex;
    min-height: 36px;
    align-items: center;
    gap: 10px;
    padding: 5px 9px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    font-size: .875rem;
    list-style: none;
}
.language-selector > summary::-webkit-details-marker { display: none; }
.language-chevron {
    width: 7px;
    height: 7px;
    margin: -3px 2px 0 0;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}
.language-selector[open] .language-chevron { transform: rotate(225deg); margin-top: 3px; }
.locale-links {
    position: absolute;
    z-index: 1;
    inset: calc(100% + 6px) 0 auto auto;
    display: grid;
    width: min(180px, calc(100vw - 24px));
    max-height: 60vh;
    max-height: 60dvh;
    overflow: auto;
    padding: 5px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: var(--bg-white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.locale-links a { padding: 8px 10px; overflow-wrap: anywhere; }
.page-links a:hover, .locale-links a:hover,
.page-links a[aria-current], .locale-links a[aria-current] {
    background: rgba(0, 0, 0, .06);
    text-decoration: underline;
    text-underline-offset: .2em;
}

.localized-site .hero {
    min-height: calc(100vh - var(--nav-height));
    min-height: calc(100svh - var(--nav-height));
}
.localized-site .hero .btn-primary { background: var(--bg-white); color: var(--text-primary); }
.localized-site .hero .btn-primary:hover { background: var(--bg-gray); }
.site-copy { max-width: 860px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) 22px; }
.site-copy section { margin-block: 36px; }
.site-copy section:last-child { margin-bottom: 0; }
.page-heading h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -.03em;
    margin: 0 0 16px;
}
.site-copy h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); line-height: 1.25; margin: 0 0 12px; }
.site-copy p, .site-copy ol { margin: 0 0 12px; }
.site-copy li + li { margin-top: 8px; }
.site-copy p, .site-copy li { overflow-wrap: anywhere; }
.site-copy a:not(.btn) { color: var(--text-primary); text-underline-offset: .2em; }
.page-heading p { color: var(--text-secondary); }
.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}
.inline-links li + li { margin-top: 0; }
.download-actions { margin-top: 24px; }
.download-actions p { margin-top: 10px; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}
.pricing-plan {
    padding: 16px;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    background: var(--bg-gray);
}
.pricing-plan dd { font-size: 1.25rem; font-weight: 700; margin: 4px 0 0; }
.questions details { border-bottom: 1px solid var(--border-light); padding: 12px 0; }
.questions summary { cursor: pointer; font-weight: 600; }
.questions details p { padding-inline-start: 18px; margin: 10px 0 0; }
.localized-site .footer-links { gap: 10px 22px; font-size: .9375rem; }

@media (max-width: 760px) {
    .site-nav .nav-inner {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: "brand languages" "pages pages";
        gap: 0;
        padding: 4px 12px;
    }
    .page-links { justify-content: flex-start; gap: 0; }
    .page-links a { padding: 6px; }
    .localized-site section[id] { scroll-margin-top: 150px; }
    .localized-site .hero { min-height: calc(100svh - 86px); padding-block: 52px; }
}
@media (max-width: 460px) {
    .pricing-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html:has(.localized-site) { scroll-behavior: auto; }
    .localized-site *, .localized-site *::before, .localized-site *::after { transition: none; }
}
