/* 物时官网 · 设计令牌
   主色 #e11d48 与其余标签页主题色均取自应用真实界面（res 与源码 Theme）
   展示字体 Fredoka 直接取自 APK 的 res/font/fredoka.ttf */
@font-face {
  font-family: "Fredoka";
  src: url("/assets/fonts/fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --brand: #e11d48;
  --brand-700: #be123c;
  --brand-50: #fff1f2;
  --brand-200: #fecdd3;
  /* 应用内各标签页主题色 */
  --c-todo: #e73257;
  --c-items: #3474ef;
  --c-timetable: #10877c;
  --c-manager: #13b1ea;
  --c-settings: #8750f0;
  --amber: #f59e0b;
  --danger: #d93025;
  --ok: #1d873b;
  --ink: #1c1418;
  --ink-2: #5c4a51;
  --ink-3: #8f7d84;
  --paper: #fdfaf9;
  --surface: #ffffff;
  --surface-2: #f7f3f4;
  --line: rgba(225, 29, 72, .16);
  --line-2: rgba(225, 29, 72, .09);
  --shadow-s: 0 1px 2px rgba(60, 10, 25, .06), 0 4px 16px rgba(60, 10, 25, .06);
  --shadow-l: 0 24px 60px -24px rgba(60, 10, 25, .35), 0 2px 6px rgba(60, 10, 25, .06);
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 26px;
  --display: "Fredoka", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  --max: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #fb5c78;
    --brand-700: #e11d48;
    --brand-50: #3a0d18;
    --brand-200: #6d1a2c;
    --ink: #f7ecee;
    --ink-2: #cbb4ba;
    --ink-3: #9c838a;
    --paper: #171014;
    --surface: #21181c;
    --surface-2: #2a1f24;
    --line: rgba(251, 92, 120, .2);
    --line-2: rgba(251, 92, 120, .1);
    --shadow-s: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .3);
    --shadow-l: 0 24px 60px -24px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0 0 .45em;
}
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .9em; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.22em; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.center { text-align: center; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--line-2);
}
.nav-in { display: flex; align-items: center; gap: 1.4rem; height: 66px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--display); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand b { font-size: 1.22rem; font-weight: 600; letter-spacing: .02em; }
.brand small { display: block; font-size: .62rem; letter-spacing: .22em; color: var(--ink-3); text-transform: uppercase; }
.nav-links { display: flex; gap: .3rem; margin-left: auto; align-items: center; }
.nav-links a:not(.btn) {
  text-decoration: none; padding: .48rem .82rem; border-radius: 999px;
  font-size: .94rem; color: var(--ink-2); transition: .18s;
}
.nav-links a:not(.btn):hover { background: var(--surface-2); color: var(--ink); }
.nav-links a:not(.btn)[aria-current="page"] { background: var(--brand); color: #fff; }
.nav-cta { margin-left: .4rem; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .72rem 1.3rem; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: .18s;
  font-family: var(--body);
}
.btn .ic { width: 1.15em; height: 1.15em; }
.btn-primary { background: linear-gradient(135deg, var(--c-todo), var(--brand)); color: #fff; box-shadow: var(--shadow-s); }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: var(--shadow-l); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: .45rem .9rem; font-size: .88rem; }
.btn-sm.btn-ghost:hover { background: var(--surface-2); }

/* ---------- 首页 hero ---------- */
.hero { position: relative; padding: 4.2rem 0 3rem; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1;
}
.hero::before { width: 460px; height: 460px; background: rgba(245, 94, 119, .3); top: -140px; right: -80px; }
.hero::after { width: 360px; height: 360px; background: rgba(52, 116, 239, .18); bottom: -180px; left: -120px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8rem; letter-spacing: .08em;
  color: var(--brand); background: var(--brand-50);
  border: 1px solid var(--line); padding: .32rem .8rem; border-radius: 999px; margin-bottom: 1.1rem;
}
h1.title { font-size: clamp(2.6rem, 6.2vw, 4.3rem); margin-bottom: .2em; }
h1.title span { display: block; font-size: .3em; letter-spacing: .4em; color: var(--brand); font-weight: 500; }
.slogan { font-family: var(--display); font-size: clamp(1.15rem, 2.3vw, 1.5rem); color: var(--ink-2); margin-bottom: .7rem; }
.lede { color: var(--ink-2); max-width: 46ch; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.6rem 0 1.1rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .86rem; color: var(--ink-3); }
.hero-meta b { color: var(--ink-2); font-weight: 600; }

/* ---------- 真实截图手机框 ---------- */
.stage { display: grid; justify-items: center; position: relative; }
.shot { margin: 0; display: grid; justify-items: center; gap: .8rem; }
.shot-frame {
  position: relative; width: min(300px, 78vw);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 34px; padding: 10px; box-shadow: var(--shadow-l);
}
.shot-frame img { display: block; width: 100%; height: auto; border-radius: 26px; }
.shot figcaption {
  max-width: 320px; text-align: center; font-size: .86rem; color: var(--ink-2);
}
.shot figcaption b { display: block; font-family: var(--display); color: var(--ink); margin-bottom: .15rem; }
.shot-hero figcaption { display: none; }
.float {
  position: absolute; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: .45rem .7rem; box-shadow: var(--shadow-l);
  font-size: .74rem; display: flex; align-items: center; gap: .45rem; white-space: nowrap;
}
.float b { font-family: var(--display); color: var(--brand); }
.float-1 { top: 12%; left: -38%; animation: bob 5s ease-in-out infinite; }
.float-2 { bottom: 8%; right: -26%; animation: bob 6.5s ease-in-out .8s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }

.shot-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem 1.2rem; }
.shot-gallery .shot-frame { width: min(240px, 70vw); }
.shot-gallery figcaption { max-width: 260px; }

/* 底部导航真实标签小条 */
.nav-strip { font-size: .86rem; color: var(--ink-3); display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.nav-chips { display: inline-flex; gap: .4rem; flex-wrap: wrap; }
.nav-chip {
  display: inline-flex; align-items: center; gap: .35em;
  border: 1px solid var(--line); border-radius: 999px; padding: .22rem .75rem;
  background: var(--surface); color: var(--ink-2); font-size: .82rem;
}
.nav-chip .ic { width: 1em; height: 1em; color: var(--brand); }

/* ---------- 区块 ---------- */
section.band { padding: 4.2rem 0; }
section.band:nth-of-type(even) { background: var(--surface); }
.page-head { padding-top: 3.2rem; }
.sec-head { max-width: 62ch; margin-bottom: 2.4rem; }
.sec-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.sec-head p { color: var(--ink-2); }
.kicker { font-family: var(--display); color: var(--brand); font-size: .84rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: .5rem; }
.rule { border: 0; border-top: 1px solid var(--line-2); margin: 2.6rem auto; }

.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip-jump {
  text-decoration: none; font-size: .88rem; font-weight: 600;
  border: 1px solid var(--line); background: var(--brand-50); color: var(--brand);
  border-radius: 999px; padding: .28rem .95rem; transition: .18s;
}
.chip-jump:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.grid { display: grid; gap: 1.1rem; align-items: start; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.card-feat {
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-m);
  padding: 1.5rem 1.5rem 1.3rem; transition: .22s; position: relative; overflow: hidden;
}
section.band:nth-of-type(even) .card-feat { background: var(--paper); }
.card-feat:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: var(--shadow-l); }
.ico {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand); border: 1px solid var(--line); margin-bottom: 1rem;
}
.ico svg { width: 23px; height: 23px; }
.card-feat h3 { font-size: 1.18rem; }
.card-feat p { color: var(--ink-2); font-size: .95rem; margin-bottom: .9rem; }
.card-feat ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; }
.card-feat li { font-size: .86rem; color: var(--ink-2); padding-left: 1.15rem; position: relative; }
.card-feat li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-200); }
.miles { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.05rem; }
.mile { border: 1px solid var(--line); border-radius: 999px; padding: .2rem .7rem; font-size: .74rem; color: var(--brand); background: var(--brand-50); }
.mile b { font-family: var(--display); }

/* 两栏：文字 + 真实截图 */
.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 2.6rem; align-items: center; }
.split.rev { grid-template-columns: 1.05fr .95fr; }
.split.rev > :last-child { order: -1; }
.split h3 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); }
.shot-plain {
  border: 1px dashed var(--line); border-radius: var(--r-m); background: var(--brand-50);
  padding: 1.6rem; font-size: .95rem; color: var(--ink-2); display: grid; gap: .6rem; justify-items: start;
}
.shot-plain .ic { width: 30px; height: 30px; color: var(--brand); }

.specs { width: 100%; border-collapse: collapse; font-size: .94rem; }
.specs th, .specs td { text-align: left; padding: .85rem .6rem; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.specs th { width: 34%; color: var(--ink-3); font-weight: 500; font-size: .86rem; }
.specs td code { background: var(--surface-2); padding: .1rem .4rem; border-radius: 6px; font-size: .84rem; }
.specs tr:hover td, .specs tr:hover th { background: var(--brand-50); }

/* 权限 / 列表 */
.perm { display: grid; gap: .55rem; }
.perm div { display: grid; grid-template-columns: 1fr; gap: .1rem; padding: .7rem .9rem; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--paper); }
.perm code { color: var(--brand); font-weight: 600; font-size: .84rem; }
.perm p { margin: 0; font-size: .86rem; color: var(--ink-2); }
.perm1 { font-size: .88rem; color: var(--ink-2); }
.perm1 code { color: var(--brand); }
.tick { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.tick li { padding-left: 1.9rem; position: relative; color: var(--ink-2); }
.tick li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e11d48' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12.5l4.2 4.2L18.5 8'/%3E%3C/svg%3E") center/12px no-repeat;
  border: 1px solid var(--line);
}
.tick li b { color: var(--ink); }
.note { border-left: 3px solid var(--amber); background: color-mix(in srgb, var(--amber) 9%, var(--surface)); padding: .8rem 1rem; border-radius: 0 var(--r-s) var(--r-s) 0; font-size: .9rem; color: var(--ink-2); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line-2); padding: .3rem 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: .85rem 2.2rem .85rem 0;
  font-family: var(--display); font-size: 1.06rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .4rem; top: 50%; translate: 0 -50%;
  width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%;
  background: var(--brand-50); color: var(--brand); font-weight: 700; transition: .2s;
}
.faq details[open] summary::after { content: "−"; background: var(--brand); color: #fff; }
.faq details p { color: var(--ink-2); margin: 0 0 .9rem; font-size: .95rem; max-width: 68ch; }

/* 下载页 */
.dl-card {
  background: linear-gradient(150deg, var(--c-todo) 0%, var(--brand-700) 60%, #7a0e22 100%);
  color: #fff; border-radius: var(--r-l); padding: 2.2rem; box-shadow: var(--shadow-l);
  display: grid; gap: 1.1rem;
}
.dl-card h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.dl-card .lede { color: rgba(255, 255, 255, .85); }
.dl-file { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.dl-file .badge { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; padding: .3rem .85rem; font-size: .82rem; }
.dl-card .btn-white { background: #fff; color: var(--brand-700); }
.dl-card .btn-white:hover { filter: none; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); }
.dl-card .btn-line { border-color: rgba(255, 255, 255, .45); color: #fff; background: none; }
.dl-card .btn-line:hover { border-color: #fff; }
.hashline { display: grid; gap: .3rem; font-size: .82rem; color: rgba(255, 255, 255, .75); }
.hashline code { word-break: break-all; background: rgba(0, 0, 0, .25); color: #ffd9e0; padding: .4rem .6rem; border-radius: 8px; font-size: .78rem; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.steps li { counter-increment: s; position: relative; padding-left: 2.6rem; color: var(--ink-2); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: .05rem; width: 30px; height: 30px;
  border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center;
  font-family: var(--display); font-size: .9rem;
}
.steps li b { color: var(--ink); }
.log { display: grid; gap: .55rem; }
.log div { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.1rem 1.2rem; border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--paper); }
.log .ver { font-family: var(--display); font-size: 1.35rem; color: var(--brand); line-height: 1; }
.log .ver small { display: block; font-size: .62rem; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; margin-top: .25rem; }
.log ul { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--ink-2); font-size: .93rem; }
.log li { margin-bottom: .2rem; }

/* CTA */
section.band.cta { padding: 4.6rem 0; }
section.band.cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
section.band.cta .lede { color: var(--ink-2); }

/* 页脚 */
footer.foot { border-top: 1px solid var(--line-2); background: var(--surface); padding: 2.6rem 0 2rem; margin-top: 3rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.foot h5 { font-family: var(--display); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .8rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .92rem; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--brand); }
.foot .fine { font-size: .82rem; color: var(--ink-3); max-width: 40ch; }
.foot-bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line-2); font-size: .82rem; color: var(--ink-3); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* 滚动进场 */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; transition: none; } }

/* 响应式 */
@media (max-width: 1000px) {
  .hero-grid, .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev > :last-child { order: 0; }
  .split > .shot { order: -1; }
  .hero-grid { gap: 2rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .float { display: none; }
}
@media (max-width: 700px) {
  .nav-links a:not(.nav-cta) { display: none; }
  section.band { padding: 2.8rem 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .specs th { display: block; width: auto; border-bottom: 0; padding-bottom: 0; }
  .specs td { display: block; padding-top: .1rem; }
  .specs tr { display: block; border-bottom: 1px solid var(--line-2); }
}
