/* 星愿浏览器官网 - 全站样式 */
:root {
  --star: #ffd21e;
  --star-deep: #f5b800;
  --night: #0c1230;
  --night-2: #131b42;
  --night-3: #1b2454;
  --ink: #212741;
  --ink-soft: #4c5573;
  --line: #e7e9f2;
  --bg-soft: #f6f7fb;
  --radius: 14px;
  --shadow: 0 12px 34px rgba(18, 24, 60, .10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
.container { width: min(1160px, 92%); margin: 0 auto; }

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(12, 18, 48, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 210, 30, .14);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 19px; font-weight: 700; letter-spacing: .5px; }
.brand img { width: 132px; }
.brand .star-dot { color: var(--star); font-size: 20px; }
.main-nav ul { display: flex; gap: 34px; }
.main-nav a { color: #cfd4ec; font-size: 15.5px; padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--star); border-bottom-color: var(--star); }
.nav-cta {
  background: linear-gradient(135deg, var(--star), var(--star-deep));
  color: var(--night); font-weight: 700; font-size: 15px;
  padding: 9px 22px; border-radius: 999px;
  transition: transform .15s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255, 210, 30, .35); }
.nav-toggle { display: none; color: #fff; font-size: 24px; line-height: 1; padding: 6px 10px; }

/* ===== 首屏 ===== */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 70% -10%, #26306b 0%, var(--night-2) 45%, var(--night) 100%);
  color: #fff;
  padding: 88px 0 96px;
}
/* 纯 CSS 星空 */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 26%, rgba(255,255,255,.9) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 28% 68%, rgba(255,255,255,.65) 50%, transparent 51%),
    radial-gradient(2px 2px at 41% 15%, rgba(255,255,255,.85) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 55% 45%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 67% 22%, rgba(255,255,255,.9) 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 74% 71%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1.7px 1.7px at 86% 36%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 93% 12%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 8% 82%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 35% 90%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 60% 84%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(2.1px 2.1px at 80% 88%, rgba(255,255,255,.85) 50%, transparent 51%);
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }
.hero::after {
  content: ""; position: absolute; left: -140px; bottom: -260px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,210,30,.16), transparent 65%);
  border-radius: 50%; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 56px; }
.hero-copy { flex: 1.15; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255, 210, 30, .45); color: var(--star);
  font-size: 13.5px; padding: 5px 14px; border-radius: 999px; margin-bottom: 22px;
  background: rgba(255, 210, 30, .07);
}
.hero h1 { font-size: 44px; line-height: 1.28; font-weight: 800; letter-spacing: 1px; }
.hero h1 em { font-style: normal; color: var(--star); }
.hero-slogan { margin: 14px 0 10px; }
.hero-slogan img { width: min(390px, 90%); }
.hero-sub { color: #aab3dd; font-size: 16.5px; max-width: 520px; margin-bottom: 30px; }
.hero-platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.hero-platforms span {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: #dfe4fa; font-size: 13.5px; padding: 6px 14px; border-radius: 8px;
}
.hero-platforms .dot { width: 7px; height: 7px; border-radius: 50%; background: #37d67a; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 12px; font-size: 16.5px; font-weight: 700;
  padding: 14px 34px; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-star {
  background: linear-gradient(135deg, var(--star), var(--star-deep));
  color: var(--night); box-shadow: 0 10px 26px rgba(255, 210, 30, .32);
}
.btn-star:hover { box-shadow: 0 14px 32px rgba(255, 210, 30, .45); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: var(--star); color: var(--star); }
.hero-note { margin-top: 16px; color: #8890bd; font-size: 13px; }
.hero-visual { flex: .85; position: relative; }
.hero-visual .shot {
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255,255,255,.09);
  transform: rotate(1.6deg);
  transition: transform .4s ease;
}
.hero-visual .shot:hover { transform: rotate(0deg) scale(1.015); }
.hero-visual .shot img { aspect-ratio: 16 / 9; object-fit: cover; }
.hero-visual .float-tag {
  position: absolute; top: -16px; right: -10px;
  background: rgba(255, 210, 30, .94); color: var(--night);
  font-size: 13px; font-weight: 700; padding: 7px 16px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}

/* ===== 信任条 ===== */
.trust-strip { background: var(--night); color: #b9c0e4; padding: 18px 0; }
.trust-strip ul { display: flex; flex-wrap: wrap; gap: 12px 42px; justify-content: center; font-size: 14.5px; }
.trust-strip li { display: flex; align-items: center; gap: 8px; }
.trust-strip .tick { color: var(--star); font-weight: 700; }

/* ===== 通用区块 ===== */
.section { padding: 76px 0; }
.section.alt { background: var(--bg-soft); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.sec-head .kicker {
  display: inline-block; color: var(--star-deep); font-size: 13.5px; font-weight: 700;
  letter-spacing: 3px; margin-bottom: 10px; text-transform: uppercase;
}
.sec-head h2 { font-size: 32px; font-weight: 800; letter-spacing: .5px; }
.sec-head p { color: var(--ink-soft); margin-top: 12px; font-size: 15.5px; }

/* 功能大图行 */
.feature-row {
  display: flex; align-items: center; gap: 52px; margin-bottom: 72px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.flip { flex-direction: row-reverse; }
.feature-media { flex: 1.15; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.feature-media img { aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.feature-media:hover img { transform: scale(1.03); }
.feature-text { flex: 1; }
.feature-text .fnum {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 16px;
  background: var(--night); color: var(--star); font-weight: 800; font-size: 17px;
}
.feature-text h3 { font-size: 25px; font-weight: 800; margin-bottom: 12px; }
.feature-text p { color: var(--ink-soft); font-size: 15.5px; }
.feature-text .mini-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.feature-text .mini-tags span {
  background: #fff; border: 1px solid var(--line); color: var(--ink-soft);
  font-size: 12.5px; padding: 4px 12px; border-radius: 999px;
}
.feature-row.flip .feature-text { text-align: left; }

/* 小功能网格 */
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.mini-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .2s, box-shadow .25s, border-color .25s;
}
.mini-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(255, 210, 30, .6); }
.mini-card .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px; font-size: 21px;
  background: linear-gradient(135deg, #fff7d6, #ffefad); margin-bottom: 14px;
}
.mini-card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; }
.mini-card p { color: var(--ink-soft); font-size: 14px; }

/* ===== 版本下载卡 ===== */
.version-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.version-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; text-align: center; position: relative;
  transition: transform .2s, box-shadow .25s;
}
.version-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.version-card .plat-ico { font-size: 34px; margin-bottom: 10px; }
.version-card h3 { font-size: 20px; font-weight: 800; }
.version-card .ver { color: var(--star-deep); font-weight: 700; font-size: 14.5px; margin: 6px 0 2px; }
.version-card .date { color: #9aa1bd; font-size: 13px; margin-bottom: 18px; }
.version-card .desc { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 20px; min-height: 46px; }
.version-card .btn { width: 100%; padding: 12px 20px; font-size: 15.5px; }
.btn-night { background: var(--night); color: #fff; }
.btn-night:hover { background: var(--night-3); }
.btn-baidu { background: #2168d4; color: #fff; }
.btn-baidu:hover { background: #3b7ee8; box-shadow: 0 10px 24px rgba(33,104,212,.35); }
.pri-note { margin-top: 18px; font-size: 13px; color: #9aa1bd; text-align: center; }

/* ===== 二维码区块 ===== */
.qr-zone {
  background: var(--night); border-radius: var(--radius); color: #fff;
  padding: 40px 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px;
}
.qr-zone h3 { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.qr-zone .lead { color: #aab3dd; font-size: 14.5px; max-width: 460px; }
.qr-pair { display: flex; gap: 34px; }
.qr-item { text-align: center; }
.qr-item .cap { margin-top: 12px; font-size: 13.5px; color: #cfd4ec; }
.qr-item .cap b { color: var(--star); }

/* 二维码呼吸边框（不刺眼） */
.qr-glow {
  display: inline-block; padding: 8px; background: #fff; border-radius: 12px;
  border: 3px solid var(--star);
  animation: qrBreath 3s ease-in-out infinite;
}
@keyframes qrBreath {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 210, 30, .30); }
  50% { transform: scale(1.045); box-shadow: 0 0 16px 3px rgba(255, 210, 30, .22); }
}
.qr-glow img { width: 148px; height: auto; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  .qr-glow, .hero::before { animation: none; }
}

/* ===== 资源详情（下载页）===== */
.res-panel {
  display: flex; flex-wrap: wrap; gap: 40px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 40px;
}
.res-list { flex: 1.2; min-width: 280px; }
.res-list h3 { font-size: 21px; font-weight: 800; margin-bottom: 18px; }
.res-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-soft); font-size: 15px; margin-bottom: 12px; }
.res-list .ok { color: #22a55e; font-weight: 700; }
.res-qr { flex: .8; min-width: 240px; text-align: center; }
.res-qr .cap { margin: 12px 0 18px; color: var(--ink-soft); font-size: 14px; }
.tip-box {
  margin-top: 26px; background: #fffbe9; border: 1px solid #ffe58a; border-radius: 12px;
  padding: 18px 22px; font-size: 14px; color: #7a5c00;
}
.tip-box b { color: #b8860b; }

/* 信息表格 */
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14.5px; min-width: 560px; }
.data-table th, .data-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.data-table th { background: var(--night); color: #e8ebfa; font-weight: 600; white-space: nowrap; }
.data-table tr:hover td { background: #fdf9e7; }
.data-table td:first-child { font-weight: 700; }

/* 更新日志 */
.log-list li { position: relative; padding: 0 0 26px 30px; border-left: 2px solid var(--line); margin-left: 8px; }
.log-list li:last-child { padding-bottom: 0; }
.log-list li::before {
  content: ""; position: absolute; left: -7px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--star); box-shadow: 0 0 0 4px rgba(255, 210, 30, .22);
}
.log-list .ver-line { font-weight: 800; font-size: 16.5px; }
.log-list .date { color: #9aa1bd; font-size: 13px; margin-left: 10px; }
.log-list p { color: var(--ink-soft); font-size: 14.5px; margin-top: 6px; }

/* ===== 教程步骤 ===== */
.steps { counter-reset: step; }
.step-item { display: flex; gap: 26px; margin-bottom: 44px; }
.step-item:last-child { margin-bottom: 0; }
.step-no {
  counter-increment: step; flex: none;
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--night); color: var(--star);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
}
.step-no::before { content: counter(step); }
.step-body h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.step-body p { color: var(--ink-soft); font-size: 15px; }
.step-body .code {
  display: inline-block; background: #eef1fa; border-radius: 6px;
  padding: 1px 10px; font-family: Consolas, monospace; font-size: 13.5px; color: #3a4470;
}

/* ===== FAQ ===== */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-size: 16.5px; font-weight: 700; color: var(--ink);
}
.faq-q .arrow { color: var(--star-deep); transition: transform .25s; font-size: 14px; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--ink-soft); font-size: 15px; }

/* ===== CTA ===== */
.cta-band {
  background: radial-gradient(900px 400px at 50% -40%, #2a3575, var(--night));
  color: #fff; text-align: center; padding: 70px 0; border-radius: var(--radius);
}
.cta-band h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: #aab3dd; margin-bottom: 30px; }

/* ===== 页脚 ===== */
.site-footer { background: #0a0f28; color: #8b93bb; padding: 56px 0 30px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 40px 70px; justify-content: space-between; margin-bottom: 40px; }
.foot-brand { max-width: 330px; }
.foot-brand img { width: 128px; margin-bottom: 14px; }
.foot-brand p { font-size: 13.5px; line-height: 1.8; }
.foot-col h4 { color: #e6e9f8; font-size: 15px; margin-bottom: 14px; }
.foot-col a { display: block; font-size: 14px; padding: 4px 0; color: #8b93bb; transition: color .2s; }
.foot-col a:hover { color: var(--star); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; font-size: 13px; text-align: center; line-height: 2; }

/* ===== 下载弹窗（PC）===== */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 11, 30, .72); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
  padding: 20px;
}
.modal-mask.show { opacity: 1; pointer-events: auto; }
.modal-box {
  background: #fff; border-radius: 18px; width: min(430px, 100%);
  padding: 34px 34px 30px; text-align: center; position: relative;
  transform: translateY(14px); transition: transform .3s ease;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.modal-mask.show .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute; top: 14px; right: 16px; font-size: 22px; color: #9aa1bd; line-height: 1;
}
.modal-close:hover { color: var(--ink); }
.modal-box h3 { font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.modal-box .m-sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 22px; }
.modal-box .qr-glow img { width: 172px; }
.m-pan { font-size: 15px; margin-top: 16px; }
.m-pan b { color: #2168d4; }
.m-pan.quark b { color: #c7402f; }
.m-tip {
  margin-top: 20px; background: #fffbe9; border: 1px dashed #f3d66a; border-radius: 10px;
  padding: 12px 16px; font-size: 13px; color: #7a5c00; text-align: left; line-height: 1.7;
}
.m-safe { margin-top: 14px; color: #22a55e; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; }

/* ===== 移动端下载条 ===== */
.m-dl-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  background: rgba(12, 18, 48, .97); color: #fff;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.m-dl-bar .txt { font-size: 13.5px; line-height: 1.5; }
.m-dl-bar .txt b { color: var(--star); }
.m-dl-bar button {
  flex: none; background: linear-gradient(135deg, var(--star), var(--star-deep));
  color: var(--night); font-weight: 700; font-size: 14.5px;
  padding: 10px 22px; border-radius: 999px;
}

/* ===== 内页头部 ===== */
.page-hero {
  background: radial-gradient(900px 380px at 50% -60%, #26306b, var(--night));
  color: #fff; text-align: center; padding: 64px 0 58px;
}
.page-hero h1 { font-size: 34px; font-weight: 800; letter-spacing: 1px; }
.page-hero .crumbs { margin-top: 14px; font-size: 13.5px; color: #8890bd; }
.page-hero .crumbs a:hover { color: var(--star); }
.breadcrumb { font-size: 13.5px; color: #9aa1bd; margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--star-deep); }

/* 响应式 */
@media (max-width: 960px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-copy { order: 0; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-platforms, .hero-actions { justify-content: center; }
  .hero-visual { width: 100%; }
  .feature-row, .feature-row.flip { flex-direction: column; gap: 26px; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .version-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 66px; left: 0; right: 0;
    background: rgba(12, 18, 48, .98); border-bottom: 1px solid rgba(255,210,30,.15);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 420px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 6%; }
  .main-nav li { border-bottom: 1px solid rgba(255,255,255,.07); }
  .main-nav a { display: block; padding: 13px 2px; border-bottom: 0; }
  .nav-cta { display: none; }
  .qr-zone { padding: 30px 22px; }
  .qr-pair { width: 100%; justify-content: space-around; }
  .hero h1 { font-size: 31px; }
  .page-hero h1 { font-size: 27px; }
  .section { padding: 56px 0; }
  .res-panel { padding: 26px 20px; }
  .m-dl-bar.show { display: flex; }
  body.has-dlbar { padding-bottom: 66px; }
}
@media (max-width: 560px) {
  .mini-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .hero { padding: 58px 0 64px; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .qr-glow img { width: 128px; }
}
