/* Pasa 官网：令牌取自 App（lib/core/theme/ps_colors.dart），纸色底、墨色字、主色蓝、粗线分区 */
@font-face {
  font-family: "PhetsarathOT";
  src: url("/fonts/PhetsarathOT.woff2") format("woff2");
  font-display: swap;
}
:root {
  --bg: #F6F4EF; --surface: #FFFFFF; --surface2: #EFECE4;
  --fg: #1A1A1A; --fg2: #4E4C47; --fg3: #666259;
  --rule: #1A1A1A; --line: #E3E0D7; --control: #8C887D;
  --blue: #1F55D6; --blue-deep: #153C9E; --blue-soft: #E8EEFC; --on-blue: #FFFFFF;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif;
  --lao: "PhetsarathOT", "Noto Sans Lao", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110; --surface: #1B1B19; --surface2: #252522;
    --fg: #F2F1EC; --fg2: #C9C7BF; --fg3: #9C9991;
    --rule: #F2F1EC; --line: #2F2E2A; --control: #78756E;
    --blue: #8DAEFF; --blue-deep: #5B7FD6; --blue-soft: #1B2748; --on-blue: #07122E;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.65 var(--sans); overflow-x: hidden;
}
html[lang="lo"] body { font-family: var(--lao), var(--sans); line-height: 1.75; }
.lo { font-family: var(--lao); line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* 顶栏 */
.top { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand img { border-radius: 9px; display: block; }
.brand-name { font-weight: 700; font-size: 20px; letter-spacing: .2px; }
.lang { display: flex; border: 1px solid var(--control); border-radius: 8px; overflow: hidden; }
.lang button {
  appearance: none; border: 0; background: transparent; color: var(--fg2);
  font: inherit; font-size: 14px; line-height: 1; padding: 9px 12px; min-height: 36px; cursor: pointer;
}
.lang button + button { border-left: 1px solid var(--control); }
.lang button[aria-pressed="true"] { background: var(--blue); color: var(--on-blue); font-weight: 600; }
.lang button:focus-visible, .btn:focus-visible, .store-on:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* 首屏 */
.hero { padding: 40px 0 56px; border-bottom: 3px solid var(--rule); background:
  repeating-linear-gradient(to bottom, transparent 0, transparent 35px, var(--line) 35px, var(--line) 36px); background-size: 100% 180px; background-repeat: no-repeat; background-position: 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.hero-logo { border-radius: 22px; display: block; margin-bottom: 20px; }
h1 { margin: 0 0 12px; font-size: 44px; line-height: 1.2; letter-spacing: .5px; }
.h-lo { font-size: 40px; color: var(--blue); margin-left: 6px; }
.tagline { margin: 0 0 12px; font-size: 22px; font-weight: 600; line-height: 1.4; }
.lead { margin: 0 0 24px; color: var(--fg2); max-width: 32em; }
.hero-shot { display: flex; justify-content: center; }
.shot { display: block; width: 100%; border-radius: 22px; border: 1px solid var(--control); background: var(--surface); }
.hero-shot .shot { max-width: 240px; }

.btn {
  display: inline-block; text-decoration: none; font: inherit; font-weight: 600;
  padding: 12px 22px; border-radius: 10px; min-height: 48px; line-height: 24px;
}
.btn-primary { background: var(--blue); color: var(--on-blue); box-shadow: 0 4px 0 var(--blue-deep); }
.btn-ghost { border: 2px solid var(--control); color: var(--fg); }

/* 分区 */
section { padding: 48px 0; }
.sec-title { margin: 0 0 24px; padding-top: 14px; border-top: 3px solid var(--rule); font-size: 24px; line-height: 1.4; }
.feat-list { list-style: none; margin: 0; padding: 0; }
.feat-list > li > div { min-width: 0; }
.feat-list > li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.feat-list > li:first-child { border-top: 0; padding-top: 0; }
.num { font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; font-size: 18px; padding-top: 2px; }
.feat-list h3 { margin: 0 0 4px; font-size: 19px; line-height: 1.4; }
.feat-list p { margin: 0; color: var(--fg2); max-width: 36em; }
.tones { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; }
.tones li { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px 4px 6px; }
.tones svg { width: 34px; height: 26px; }
.tones path { fill: none; stroke: var(--blue); stroke-width: 4; stroke-linecap: round; }
.tones b { font-variant-numeric: tabular-nums; font-size: 18px; font-family: var(--sans); }

/* 截图 */
.gallery { background: var(--surface2); }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 8px; text-align: center; color: var(--fg2); font-size: 14px; }

/* 下载 */
.dl-list { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.store {
  display: flex; flex-direction: column; justify-content: center; text-decoration: none;
  min-height: 60px; padding: 8px 22px; border-radius: 12px; line-height: 1.2;
  background: #000; color: #fff; border: 1px solid #000;
}
@media (prefers-color-scheme: dark) { .store-on { border-color: #fff; } }
.store-small { font-size: 12px; opacity: .85; }
.store-big { font-size: 22px; font-weight: 600; }
.store-off { background: var(--surface2); color: var(--fg3); border: 1px dashed var(--control); cursor: not-allowed; }
.store-off .store-small { opacity: 1; }
.apk { margin-top: 2px; }
.apk-meta { display: block; color: var(--fg2); font-size: 14px; font-variant-numeric: tabular-nums; }
.note { margin: 10px 0 0; font-size: 14px; color: var(--fg3); line-height: 1.6; }

/* 页脚 */
.foot { border-top: 3px solid var(--rule); padding: 28px 0 36px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.co { margin: 0; color: var(--fg2); font-size: 14px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.links a { color: var(--fg); font-size: 14px; padding: 6px 0; }

@media (min-width: 720px) {
  .wrap { padding: 0 32px; }
  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: 1.2fr 1fr; gap: 56px; }
  h1 { font-size: 64px; } .h-lo { font-size: 56px; }
  .tagline { font-size: 28px; }
  .hero-shot .shot { max-width: 300px; }
  section { padding: 72px 0; }
  .shots { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .feat-list > li { grid-template-columns: 64px 1fr; padding: 28px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.apk-meta[hidden] { display: none; }
