/* website/style.css
   设计token直接照搬desktop-app/index.html的:root变量，
   不是凭印象配的近似色——保证网站和软件是同一套视觉语言 */
:root {
  --paper:           #F1F3EE;
  --paper-recessed:  #E7EAE2;
  --surface:         #FFFFFF;
  --ink:              #1C2B4A;
  --ink-soft:        #56627C;
  --ink-faint:       #98A0AC;
  --ink-mute:        #C2C8CE;
  --seal:            #B23B2E;
  --seal-tint:       #F4E3E0;
  --rule:            #DCE0D8;
  --rule-soft:       #E9ECE5;
  --gold:            #A87B1F;
  --gold-tint:       #F2E8D2;
  --moss:            #3F6B53;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans:  "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  --mono:  "JetBrains Mono", "Consolas", monospace;
  --r-sm: 4px; --r-md: 7px; --r-lg: 10px; --r-full: 999px;
  --shadow-card:  0 1px 2px rgba(28,43,74,.05), 0 1px 1px rgba(28,43,74,.03);
  --shadow-hover: 0 6px 16px rgba(28,43,74,.09);
  --ease-std: cubic-bezier(.4,0,.2,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* 手机上"横向能滑动一点点"——这条注释更新过一次：最初猜根因是.hero-actions
   或.download-meta这类flex行在窄屏下凑不下，没有实测验证，是猜的。后来用
   Playwright在375px视口下实测量出了真正的元凶：.hero img(下面那条规则)的
   max-width:360px选择器特异性比全局img{max-width:100%}高，会完全覆盖掉那条
   "不超过容器宽度"的安全限制(不是取两者较小值)，在可用内容区只有~319px的
   手机屏幕上，360px本身就比这个宽，溢出的部分整体往右边超出视口——已经在
   下面.hero img那条规则用min()函数修掉了根因(`max-width: min(360px, 100%)`)。
   这一行overflow-x:hidden继续保留，不是因为还需要靠它兜底这个具体问题(已经
   从源头修了)，是当成一道通用安全网——以后这个页面如果再加别的固定宽度元素，
   出现类似的"差几像素"问题，这行能防止它表现成滚动条，但不会让问题自己消失，
   该找根因还是要找，不能当成长期免修的借口 */
html, body { overflow-x: hidden; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink);
       -webkit-font-smoothing: antialiased; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* ── 顶部导航 ─────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(241,243,238,.92);
       backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.nav-inner { max-width: 1080px; margin: 0 auto; padding: 14px 28px;
             display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--serif); font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { background: var(--ink); color: #fff; padding: 8px 18px; border-radius: var(--r-md);
           font-size: 13.5px; font-weight: 600; }
.nav-cta:hover { background: #28406B; }

/* 活动通知——内容来自后台/api/notice接口(跟桌面客户端用的是同一套notices表，
   同一个数据源，不是网站单独维护一份)，默认隐藏，notice-widget.js拿到内容才会
   显示出来，没有活动时不占任何空间。
   做成药丸标签放在hero大标题/购买页标题正上方，不是铺满宽度的通栏色块——
   复用的是.card .tag(下面"专业版"那个小标签)已经建立的"金色文字+金色浅底+
   圆角"语言，不是另外发明一套新样式，跟全站的版式感更搭 */
.notice-pill-wrap { display: flex; align-items: center; justify-content: center;
                     gap: 8px; margin-bottom: 18px; }
.notice-pill { display: inline-flex; align-items: center; gap: 7px;
               background: var(--gold-tint); color: var(--gold);
               font-size: 13px; font-weight: 600; padding: 7px 16px;
               border-radius: var(--r-full); transition: background .15s var(--ease-std); }
.notice-pill:hover { background: #ECDDB8; }
.notice-pill-close { background: none; border: none; font-size: 16px; line-height: 1;
                      cursor: pointer; color: var(--ink-mute); padding: 2px; }
.notice-pill-close:hover { color: var(--ink-faint); }
@media (max-width: 760px) {
  .notice-pill { font-size: 12px; padding: 6px 13px; }
}

/* ── 按钮 ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 26px; border-radius: var(--r-md);
       font-size: 15px; font-weight: 600; cursor: pointer; border: 1.5px solid transparent;
       transition: all .15s var(--ease-std); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #28406B; box-shadow: var(--shadow-hover); }
.btn-primary:disabled { background: var(--ink-mute); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink-soft); color: var(--ink); background: var(--surface); }
.btn-seal { background: var(--seal); color: #fff; }
.btn-seal:hover { background: #973126; box-shadow: var(--shadow-hover); }

/* ── Hero ─────────────────────────────────────────────── */
.hero { padding: 96px 0 64px; text-align: center; }
.hero h1 { font-family: var(--serif); font-size: 42px; font-weight: 700; line-height: 1.35; margin-bottom: 18px; }
.hero h1 .accent { color: var(--seal); }
.hero p { font-size: 17px; color: var(--ink-soft); max-width: 560px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-bottom: 56px; }
.hero img { max-width: min(360px, 100%); margin: 0 auto; }
/* 之前是max-width:360px——这条规则的选择器特异性比全局img{max-width:100%}高，
   会完全覆盖掉那条"不超过容器宽度"的安全限制，不是取两者较小值。在375px宽的
   手机屏幕上，容器减去左右padding后可用宽度只有319px，360px本身就比这个宽，
   margin:0 auto在元素比容器还宽时不会居中(auto margin只在有多余空间时生效，
   元素比容器宽时auto算出来是0)，图片贴着容器左边缘起始渲染，多出来的部分整体
   往右溢出——这就是"插画不居中、右边被裁掉一块"的真正原因，不是居中逻辑本身
   有问题。用min()让宽度动态取"360px"和"容器100%宽度"中较小的一个，本来就该
   这么写，这次是真的在375px视口下用Playwright量出溢出元素、量出具体像素再
   改的，不是猜的 */

/* ── 区块标题 ─────────────────────────────────────────── */
.eyebrow { font-size: 12.5px; font-weight: 700; color: var(--seal); text-transform: uppercase;
           letter-spacing: 1px; margin-bottom: 10px; }
.section-title { font-family: var(--serif); font-size: 30px; font-weight: 700; margin-bottom: 14px; }
.section-desc { color: var(--ink-soft); font-size: 15.5px; max-width: 560px; margin-bottom: 48px; }
.section-head { text-align: center; }
.section-head .section-desc { margin-left: auto; margin-right: auto; }

/* ── 功能卡片 ─────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg);
        padding: 26px; box-shadow: var(--shadow-card); }
.card-icon { font-size: 26px; margin-bottom: 14px; }
.card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--ink-soft); line-height: 1.65; }
.card .tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--gold);
             background: var(--gold-tint); padding: 2px 8px; border-radius: var(--r-full); margin-bottom: 10px; }

/* ── tier对比 ─────────────────────────────────────────── */
.tier-table { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg);
              overflow: hidden; box-shadow: var(--shadow-card); }
.tier-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; border-bottom: 1px solid var(--rule-soft); }
.tier-row:last-child { border-bottom: none; }
.tier-row > div { padding: 14px 20px; font-size: 14px; }
.tier-row.head { background: var(--paper-recessed); font-weight: 700; font-size: 13px; color: var(--ink-soft); }
.tier-row .check { color: var(--moss); font-weight: 700; }
.tier-row .dash { color: var(--ink-mute); }

/* ── 由来 ─────────────────────────────────────────────── */
.story-quote { font-family: var(--serif); font-size: 18px; line-height: 1.9; color: var(--ink-soft);
               text-align: center; max-width: 760px; margin: 0 auto; }
.story-quote p { margin-bottom: 18px; }

/* ── 流程步骤 ─────────────────────────────────────────── */
.steps { display: flex; gap: 0; }
.step { flex: 1; text-align: center; position: relative; padding: 0 12px; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff;
            display: flex; align-items: center; justify-content: center; font-weight: 700;
            margin: 0 auto 14px; font-family: var(--mono); }
.step h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--ink-soft); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: 100%; width: 24px;
                                 height: 1px; background: var(--rule); }

/* ── 价格卡片 ─────────────────────────────────────────── */
.price-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg);
              padding: 30px 26px; box-shadow: var(--shadow-card); text-align: center;
              cursor: pointer; transition: all .15s var(--ease-std); position: relative; }
.price-card:hover { border-color: var(--ink-soft); box-shadow: var(--shadow-hover); }
.price-card.selected { border-color: var(--seal); box-shadow: 0 0 0 2px var(--seal-tint); }
.price-card .badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
                      background: var(--seal); color: #fff; font-size: 11px; font-weight: 700;
                      padding: 3px 12px; border-radius: var(--r-full); }
.price-card .tier-label { font-size: 13px; color: var(--ink-faint); margin-bottom: 8px; }
.price-card .amount { font-family: var(--mono); font-size: 32px; font-weight: 700; color: var(--ink); }
.price-card .amount .unit { font-size: 14px; color: var(--ink-faint); font-weight: 400; }
.price-card .original { font-size: 13px; color: var(--ink-mute); text-decoration: line-through; margin-top: 4px; }
.price-card ul { list-style: none; margin: 18px 0 0; text-align: left; font-size: 13.5px; color: var(--ink-soft); }
.price-card ul li { padding: 5px 0; border-top: 1px solid var(--rule-soft); }
.price-card ul li:first-child { border-top: none; }
.price-card ul li::before { content: "✓ "; color: var(--moss); font-weight: 700; }

/* ── 购买面板 ─────────────────────────────────────────── */
.buy-panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg);
             padding: 32px; box-shadow: var(--shadow-card); max-width: 420px; margin: 40px auto 0; text-align: center; }
.buy-field { margin-bottom: 18px; text-align: left; }
.buy-field label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.buy-field input { width: 100%; padding: 11px 14px; font-size: 14px; border: 1px solid var(--rule);
                    border-radius: var(--r-md); background: var(--paper); color: var(--ink); }
.buy-field input:focus { outline: none; border-color: var(--ink-soft); }
.buy-qr { min-height: 200px; display: flex; align-items: center; justify-content: center; margin: 20px 0; }
.buy-status { font-size: 14px; color: var(--ink-soft); min-height: 22px; }
.buy-status.success { color: var(--moss); font-weight: 600; }
.buy-status.error { color: var(--seal); font-weight: 600; }

/* ── 下载区 ───────────────────────────────────────────── */
.download-box { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg);
                padding: 36px; text-align: center; box-shadow: var(--shadow-card); }
.download-meta { display: flex; justify-content: center; gap: 22px; margin: 18px 0 26px;
                 font-size: 13.5px; color: var(--ink-soft); }

/* ── 页脚 ─────────────────────────────────────────────── */
footer { padding: 40px 0; text-align: center; color: var(--ink-faint); font-size: 13px; border-top: 1px solid var(--rule); }

/* ── 截图卡片 ──────────────────────────────────────────── */
.screenshot-card .screenshot-img-wrap {
  width: 100%; height: 240px; overflow: hidden; background: var(--paper-recessed);
  display: flex; align-items: center; justify-content: center;
}
.screenshot-card .screenshot-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .2s var(--ease-std);
}
.screenshot-card:hover .screenshot-img-wrap img { transform: scale(1.03); }

/* ── Lightbox ──────────────────────────────────────────── */
.lightbox-overlay {
  display: none; position: fixed; z-index: 999; inset: 0;
  background: rgba(28,43,74,.88); cursor: zoom-out;
  align-items: center; justify-content: center; padding: 40px;
}
.lightbox-overlay.show { display: flex; }
.lightbox-overlay img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: var(--r-md); box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.lightbox-close {
  position: fixed; top: 20px; right: 28px; font-size: 36px; color: #fff;
  cursor: pointer; line-height: 1; opacity: .7; transition: opacity .15s;
  background: none; border: none; font-family: var(--sans);
}
.lightbox-close:hover { opacity: 1; }

@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .tier-row { grid-template-columns: 1.2fr 1fr 1fr; font-size: 12.5px; }
  .nav-links { display: none; }
  .steps { flex-direction: column; gap: 24px; }
  .step:not(:last-child)::after { display: none; }
  .hero h1 { font-size: 30px; }
  /* 这两行是窄屏下最容易比可用宽度多挤出几像素的flex行(按钮组/带emoji的
     元信息)，光靠上面html/body的overflow-x:hidden只是把溢出的部分裁掉
     看不见，体验上是"按钮被切了一块"；让它们能换行，看起来才是设计好的
     样子，不是溢出被遮住 */
  .hero-actions { flex-wrap: wrap; }
  .download-meta { flex-wrap: wrap; gap: 10px 18px; }
}
