/*
 * HPZS 落地页母版样式
 * 设计参考 lobsterai.youdao.com：橙色主调，浅色背景，圆角卡片。
 * 品牌主色通过 CSS 变量 --primary，便于站点专属页覆盖。
 */

:root {
    --primary: #1A6DFF;
    --primary-dark: #0B47CC;
    --primary-soft: #EAF1FF;
    --text: #0B1220;
    --text-muted: #5B6473;
    --bg: #FFFFFF;
    --bg-soft: #F5F8FF;
    --border: #E2E8F4;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 3px rgba(11, 18, 32, 0.04), 0 8px 24px rgba(11, 18, 32, 0.05);
    --maxw: 1120px;
    --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============ 按钮 ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity .2s ease, background-color .2s ease;
    white-space: nowrap;
}
.btn--primary { background: linear-gradient(135deg, #2B8CFF, #0B47CC); color: #fff; }
.btn--primary:hover { opacity: .9; }
.btn--sm { padding: 8px 20px; font-size: 14px; }
.btn--lg { padding: 14px 36px; font-size: 16px; }

/* ============ 顶部导航 ============ */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav-h);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav__brand { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.nav__logo { width: 26px; height: 26px; color: var(--primary); display: inline-flex; }
.nav__logo svg { width: 100%; height: 100%; }
.nav__name { font-size: 18px; font-weight: 700; }
.nav__sub { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.nav__menu { display: flex; gap: 28px; margin-left: 12px; }
.nav__menu a { font-size: 15px; color: var(--text-muted); transition: color .2s ease; }
.nav__menu a:hover { color: var(--primary); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav__login { font-size: 15px; font-weight: 500; color: var(--text-muted); transition: color .2s ease; }
.nav__login:hover { color: var(--primary); }

/* ============ Hero ============ */
.hero {
    background: linear-gradient(180deg, var(--primary-soft) 0%, var(--bg) 60%);
    padding: 72px 0 56px;
    text-align: center;
}
.hero__title {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #2B8CFF, #0B47CC);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__subtitle {
    margin-top: 16px;
    font-size: 19px;
    color: var(--text-muted);
}

/* ============ 三特性卡 ============ */
.features {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: left;
}
.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.feature-card:hover { border-color: var(--primary); box-shadow: 0 10px 30px rgba(26, 109, 255, 0.12); }
.feature-card__icon {
    display: inline-flex;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    margin-bottom: 16px;
}
.feature-card__icon svg { width: 24px; height: 24px; }
.feature-card__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card__desc { font-size: 14px; color: var(--text-muted); }

/* ============ 下载区 ============ */
.download { padding: 56px 0; }
.download__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dl-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}
.dl-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.dl-card__os { width: 40px; height: 40px; color: var(--text); display: inline-flex; }
.dl-card__os svg { width: 100%; height: 100%; }
.dl-card__title { font-size: 18px; font-weight: 700; }
.dl-card__hint { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.dl-card__body { display: flex; flex-direction: column; gap: 12px; }
.dl-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.dl-item:hover { border-color: var(--primary); }
.dl-item__info { display: flex; flex-direction: column; }
.dl-item__name { font-size: 15px; font-weight: 600; }
.dl-item__desc { font-size: 12.5px; color: var(--text-muted); }
.dl-item__btn {
    flex-shrink: 0;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
}
/* 无下载链接时的降级态 */
.dl-item.is-disabled { cursor: not-allowed; opacity: .6; }
.dl-item.is-disabled:hover { border-color: var(--border); }
.dl-item.is-disabled .dl-item__btn { background: #B8BCC2; }

/* ============ 优势标签墙 ============ */
.advantages { padding: 56px 0; background: var(--bg-soft); }
.section-title { text-align: center; font-size: 28px; font-weight: 800; margin-bottom: 36px; }
.section-title span { color: var(--primary); }
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 880px;
    margin: 0 auto;
}
.adv-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
}
.adv-chip__icon {
    width: 32px; height: 32px;
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
}
.adv-chip__icon svg { width: 18px; height: 18px; }

/* ============ 三段图文 ============ */
.scenes { padding: 64px 0; }
.scene {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 64px;
}
.scene:last-child { margin-bottom: 0; }
.scene__title { font-size: 26px; font-weight: 800; color: var(--primary); margin-bottom: 16px; }
.scene__text p { color: var(--text-muted); margin-bottom: 12px; }
.scene__media { display: flex; }
.scene__placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #0B0F14, #1A2230);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
}
.scene__placeholder span { font-size: 30px; font-weight: 800; }
.scene__placeholder small { font-size: 14px; color: #7FB6FF; }

/* ============ 底部 CTA ============ */
.cta { padding: 56px 0; }
.cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--primary-soft);
    border-radius: var(--radius);
    padding: 40px 48px;
}
.cta__title { font-size: 28px; font-weight: 800; }
.cta__title span { color: var(--primary); }
.cta__subtitle { color: var(--text-muted); margin-top: 6px; }

/* ============ 页脚 ============ */
.footer { background: #0B0F14; color: #C8CDD4; padding: 48px 0 24px; }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__name { font-size: 20px; font-weight: 800; color: #fff; }
.footer__slogan { font-size: 14px; color: #8A9099; margin-top: 8px; }
.footer__links { display: flex; gap: 28px; align-items: flex-start; }
.footer__links a { font-size: 14px; color: #C8CDD4; transition: color .2s ease; }
.footer__links a:hover { color: #fff; }
.footer__bottom {
    max-width: var(--maxw);
    margin: 32px auto 0;
    padding: 20px 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 16px;
    justify-content: center;
    font-size: 13px;
    color: #6B727B;
}
.footer__bottom a { color: #6B727B; transition: color .2s ease; }
.footer__bottom a:hover { color: #C8CDD4; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
    .features { grid-template-columns: 1fr; }
    .download__grid { grid-template-columns: 1fr; }
    .advantages__grid { grid-template-columns: 1fr 1fr; }
    .scene { grid-template-columns: 1fr; gap: 24px; }
    .scene--right .scene__media { order: 2; }
    .nav__menu { display: none; }
}
@media (max-width: 560px) {
    .hero__title { font-size: 44px; }
    .hero { padding: 48px 0 36px; }
    .advantages__grid { grid-template-columns: 1fr; }
    .cta__inner { flex-direction: column; text-align: center; padding: 32px 24px; }
    .footer__inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
