/* 离垚 AI - 火土浅色: the brand's flame and earth in light tones - warm ivory and apricot behind,
   frosted glass in front (as an iPhone's panels), terracotta for what can be pressed, earth brown for
   where you are. One set of tokens, always light; motion is slow and stops for reduced motion. */
:root {
  --bg: #fbf2e8;
  --card: rgba(255, 252, 248, .62);
  --card-solid: #fffcf8;
  --text: #3b2417;
  --muted: #8b6a56;
  --line: rgba(178, 104, 52, .17);
  --accent: #d8612b;
  --accent-strong: #b9471f;
  --accent-ink: #ffffff;
  --grad: linear-gradient(135deg, #f8ab48 0%, #ee7735 46%, #d34d2b 100%);
  --ok: #2f7a4b;
  --warn: #b26509;
  --bad: #c43b2c;
  --soft-ok: #e8f4ea;
  --soft-warn: #fff0d9;
  --soft-bad: #fde8e3;
  --soft-accent: #fdecdf;
  --glass-border: rgba(255, 255, 255, .78);
  --shadow: 0 1px 2px rgba(90, 44, 16, .05), 0 16px 36px rgba(158, 82, 32, .10);
  --glow: 0 10px 26px rgba(226, 104, 44, .30);
  --tile-1: #ffe3c9; --tile-2: #fde9d4; --tile-3: #f9e1d5; --tile-4: #fcefd0; --tile-5: #f7e4dd; --tile-6: #f0e6dc;
  --pill: #4b2c1b; --pill-ink: #fff6ec;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--text); min-height: 100vh;
  font: 15px/1.65 "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(760px 520px at 6% -6%, rgba(255, 199, 140, .55), transparent 62%),
    radial-gradient(720px 520px at 102% 4%, rgba(255, 168, 128, .38), transparent 60%),
    radial-gradient(900px 640px at 72% 106%, rgba(252, 214, 168, .55), transparent 62%),
    radial-gradient(700px 500px at -6% 90%, rgba(255, 186, 150, .30), transparent 60%),
    linear-gradient(168deg, #fff8f0 0%, #fcf0e4 52%, #f9e8da 100%);
  background-attachment: scroll;  /* painted with the page: the same light on screen and in a full-page capture */
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- header ---- */
.top {
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(178, 104, 52, .12);
  background: rgba(255, 249, 242, .72); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.top-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 9px 20px; }
.brand { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: block; filter: drop-shadow(0 4px 10px rgba(226, 104, 44, .22)); }
.brand-word { height: 24px; width: auto; display: block; }
.nav { display: flex; gap: 2px; align-items: center; font-size: 14px; flex: 1; }
.nav a[data-route] { color: var(--text); padding: 7px 12px; border-radius: 999px; white-space: nowrap; transition: background .15s, color .15s; }
.nav a[data-route]:hover { text-decoration: none; background: var(--soft-accent); color: var(--accent-strong); }
.nav a[data-route].on { background: var(--pill); color: var(--pill-ink); font-weight: 650; }
.account { display: flex; align-items: center; gap: 12px; font-size: 14px; flex: none; margin-left: auto; }
.who { color: var(--muted); white-space: nowrap; }
.guest { display: flex; gap: 8px; margin-left: auto; }
.guest .button { padding: 7px 18px; border-radius: 999px; }

/* ---- layout ---- */
.container { max-width: 1160px; margin: 0 auto; padding: 26px 20px 48px; }
.foot { max-width: 1160px; margin: 0 auto; padding: 0 20px 34px; color: var(--muted); font-size: 13px; }
.foot p { margin: 4px 0; }
.card {
  background: var(--card); border: 1px solid var(--glass-border); border-radius: 22px; padding: 22px 24px; margin-bottom: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), var(--shadow);
  backdrop-filter: blur(20px) saturate(165%); -webkit-backdrop-filter: blur(20px) saturate(165%);
}
.card h2 { margin: 0 0 12px; font-size: 18px; letter-spacing: .01em; }
.card h3 { margin: 16px 0 8px; font-size: 15px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.grid2 > .card { margin-bottom: 0; }
.grid2 + * { margin-top: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 10px 0 4px; }
label .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=password], input[type=number], input[type=tel], input[type=email], select, textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line); border-radius: 13px;
  background: rgba(255, 253, 250, .9); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #b39582; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px rgba(216, 97, 43, .14); }
textarea { min-height: 90px; resize: vertical; }
input[type=file] { font: inherit; width: 100%; }

/* ---- buttons and messages ---- */
button, .button {
  display: inline-block; border: 0; background: var(--grad); color: #fff; border-radius: 14px; padding: 9px 18px;
  font: inherit; font-weight: 650; cursor: pointer; text-align: center; box-shadow: 0 6px 18px rgba(226, 104, 44, .24);
  transition: transform .15s, box-shadow .15s, filter .15s, background .15s;
}
button:hover, .button:hover { text-decoration: none; filter: brightness(1.05) saturate(1.05); box-shadow: 0 9px 24px rgba(226, 104, 44, .32); }
button:active, .button:active { transform: translateY(1px); }
button.secondary, .button.secondary { background: rgba(255, 253, 250, .78); color: var(--accent-strong); box-shadow: inset 0 0 0 1px rgba(216, 97, 43, .32); }
button.secondary:hover, .button.secondary:hover { background: var(--soft-accent); box-shadow: inset 0 0 0 1px var(--accent); filter: none; }
button.big, .button.big { padding: 12px 28px; font-size: 16px; border-radius: 16px; }
button:disabled { opacity: .5; cursor: not-allowed; filter: grayscale(.3); box-shadow: none; }
button.link { background: none; border: none; color: var(--accent); padding: 0; font-weight: 500; box-shadow: none; }
button.link:hover { text-decoration: underline; background: none; filter: none; box-shadow: none; }
button.link.danger { color: var(--bad); }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.error { background: var(--soft-bad); color: var(--bad); border-radius: 13px; padding: 10px 13px; margin: 10px 0; white-space: pre-wrap; }
.notice { background: var(--soft-warn); color: var(--warn); border-radius: 13px; padding: 10px 13px; margin: 10px 0; }
.success { background: var(--soft-ok); color: var(--ok); border-radius: 13px; padding: 10px 13px; margin: 10px 0; }
.info { background: var(--soft-accent); border-radius: 13px; padding: 10px 13px; margin: 10px 0; }
.info .button { margin: 4px 6px 4px 0; padding: 5px 12px; font-size: 14px; }
.info p { margin: 6px 0 0; }
.pill { display: inline-block; border-radius: 99px; padding: 1px 10px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.pill.QUEUED, .pill.PENDING { background: var(--soft-accent); color: var(--accent-strong); }
.pill.RUNNING { background: var(--soft-warn); color: var(--warn); }
.pill.SUCCEEDED, .pill.DONE, .pill.PASS { background: var(--soft-ok); color: var(--ok); }
.pill.FAILED, .pill.FAILED_UNKNOWN, .pill.UNKNOWN, .pill.MUST_FIX, .pill.UNRESOLVED { background: var(--soft-bad); color: var(--bad); }
.pill.NEEDS_ATTENTION, .pill.SHOULD_FIX { background: var(--soft-warn); color: var(--warn); }
.pill.RESOLVED, .pill.FIXED { background: var(--soft-ok); color: var(--ok); }
.pill.SKIPPED, .pill.NOT_SENT { background: var(--soft-accent); color: var(--muted); }
.pending { display: inline-block; background: var(--soft-warn); color: var(--warn); border-radius: 6px; padding: 0 7px; font-size: 13px; }
.tag { display: inline-block; font-size: 12px; border: 1px solid var(--line); color: var(--muted); border-radius: 6px; padding: 0 6px; margin-right: 6px; }
.tag.on { border-color: var(--accent); color: var(--accent); }

/* ---- tables and lists ---- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
.tablewrap { overflow-x: auto; }
.stats b, td { font-variant-numeric: tabular-nums; }
td.amount.plus { color: var(--ok); font-weight: 650; }
td.amount.minus { color: var(--bad); font-weight: 650; }
td.code, pre.codes { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .04em; }
pre.codes { margin: 8px 0 0; padding: 8px 10px; background: var(--card-solid); border: 1px solid var(--line); border-radius: 10px; user-select: all; white-space: pre-wrap; }
tr.selected td { background: var(--soft-accent); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 10px; align-items: baseline; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.steps li:last-child { border-bottom: none; }
.steps .mark { width: 20px; text-align: center; font-weight: 700; }
.steps .DONE .mark { color: var(--ok); }
.steps .RUNNING .mark { color: var(--warn); }
.steps .FAILED .mark { color: var(--bad); }
.steps .PENDING .mark { color: var(--muted); }
.steps .err { color: var(--bad); font-size: 13px; }
.tasklist a.task { display: flex; justify-content: space-between; gap: 12px; padding: 10px 10px; border-bottom: 1px solid var(--line); color: var(--text); border-radius: 12px; }
.tasklist a.task:last-child { border-bottom: none; }
.tasklist a.task:hover { text-decoration: none; background: var(--soft-accent); }
.task-state { white-space: nowrap; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs button { background: rgba(255, 253, 250, .78); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; border-radius: 999px; }
.tabs button:hover { background: var(--soft-accent); color: var(--accent-strong); filter: none; }
.tabs button.on { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(226, 104, 44, .26); }
.quote { border-left: 3px solid var(--line); padding: 2px 10px; margin: 4px 0; color: var(--muted); font-size: 14px; }
.ev { padding: 8px 0; border-bottom: 1px solid var(--line); }
.chapter h3 { margin-top: 18px; }
.chapter h5 { margin: 10px 0 4px; font-size: 14px; }
.chapter p { text-indent: 2em; margin: 6px 0; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 14px; font-size: 14px; margin: 8px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.big-number { font-size: 22px; font-weight: 750; }
.stats { display: flex; gap: 28px; flex-wrap: wrap; margin: 8px 0; }
.stats div span { display: block; color: var(--muted); font-size: 13px; }
.filelist { margin: 6px 0 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.filelist li.bad { color: var(--bad); }
details summary { cursor: pointer; color: var(--accent); margin-top: 12px; }
label.check { font-weight: 400; display: flex; gap: 8px; align-items: baseline; margin-top: 12px; }
.warn-text { color: var(--warn); }
.ok-text { color: var(--ok); }
.icon { display: inline-grid; place-items: center; }
.icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- the public home: warm light, frosted glass ---- */
body.home {
  background:
    radial-gradient(520px 420px at 80% 300px, rgba(255, 160, 96, .48), transparent 66%),
    radial-gradient(440px 360px at 64% 520px, rgba(255, 212, 150, .55), transparent 66%),
    radial-gradient(360px 300px at 94% 560px, rgba(240, 120, 72, .22), transparent 66%),
    radial-gradient(760px 520px at 4% 2%, rgba(255, 205, 150, .55), transparent 62%),
    radial-gradient(800px 600px at 96% 96%, rgba(246, 168, 128, .32), transparent 60%),
    linear-gradient(168deg, #fff9f1 0%, #fdf1e5 50%, #f9e7d8 100%);
}
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); gap: 34px 52px; align-items: center; padding: 44px 6px 18px; }
/* the brand's flame rising from behind the frosted sign-in card: its tip in the open, the rest seen through the glass
   - all still, so the frost is drawn once */
.auth-wrap { position: relative; padding-top: 92px; }
.auth-wrap::before { content: ""; position: absolute; left: 50%; top: 30px; width: 300px; height: 300px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(circle, rgba(255, 170, 96, .55), transparent 64%); }
.auth-flame { position: absolute; left: 50%; top: 0; width: 230px; transform: translateX(-50%); pointer-events: none; user-select: none;
  filter: drop-shadow(0 12px 28px rgba(226, 104, 44, .25)); }
.auth-wrap .auth { position: relative; z-index: 1; }
.eyebrow-chip {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 16px 7px 12px; border-radius: 999px; font-size: 13px; letter-spacing: .03em; color: var(--accent-strong);
  background: rgba(255, 253, 249, .62); border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 8px 22px rgba(158, 82, 32, .08);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.eyebrow-chip img { width: 18px; height: 18px; }
.hero h1 { font-size: 56px; line-height: 1.12; margin: 22px 0 16px; letter-spacing: -.01em; color: var(--text); text-wrap: balance; }
.hero h1 .keep { display: inline-block; }
.glow { background: linear-gradient(100deg, #f6a33f 0%, #e8692f 52%, #c8432a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--muted); font-size: 17px; max-width: 31em; margin: 0 0 28px; }
.eyebrow { color: var(--accent-strong); font-weight: 650; font-size: 13px; letter-spacing: .08em; margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
/* the calls to action: pills - the main one warm and glowing, its arrow stepping forward; the other glass */
.cta, .cta-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px !important; }
.cta { position: relative; overflow: hidden; box-shadow: var(--glow); }
.cta-ghost { background: rgba(255, 253, 250, .66) !important; color: var(--accent-strong) !important; box-shadow: inset 0 0 0 1px rgba(216, 97, 43, .3), 0 8px 22px rgba(158, 82, 32, .08) !important;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.cta-ghost:hover { background: rgba(255, 246, 236, .9) !important; }
.cta svg, .cta-ghost svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.cta:hover svg { transform: translateX(4px); }
.cta-ghost:hover svg { transform: rotate(45deg); }
.cta::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-130%); transition: transform .8s ease; }
.cta:hover::after, .cta:focus-visible::after { transform: translateX(130%); }
button.big.cta:hover, .button.big.cta:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(226, 104, 44, .42); }
.hero-facts { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 34em; }
.hero-facts li {
  display: grid; gap: 2px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 253, 249, .56); border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 10px 26px rgba(158, 82, 32, .07); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.hero-facts b { color: var(--text); font-size: 16px; letter-spacing: .02em; }
.hero-facts span { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.sources-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.sources-row .src { padding: 6px 15px; border-radius: 999px; background: rgba(255, 253, 249, .6); border: 1px solid var(--glass-border); color: #6d4a35; font-weight: 600; letter-spacing: .02em;
  box-shadow: 0 6px 16px rgba(158, 82, 32, .06); }
.auth { margin: 0; }
.home .auth {
  padding: 26px 26px 22px; border-radius: 28px; background: rgba(255, 252, 248, .56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 30px 70px rgba(150, 74, 26, .16); backdrop-filter: blur(26px) saturate(175%); -webkit-backdrop-filter: blur(26px) saturate(175%);
}
.auth .tabs { margin-bottom: 4px; }
.auth form .actions { margin-top: 14px; }
.auth form .actions button { width: 100%; border-radius: 999px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 30px 0 20px; }
.feature {
  background: var(--card); border: 1px solid var(--glass-border); border-radius: 24px; padding: 22px 22px 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), var(--shadow); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 22px 46px rgba(158, 82, 32, .16); }
.feature h3 { margin: 14px 0 6px; font-size: 16px; color: var(--text); }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.feature-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; color: #fff; background: var(--grad); box-shadow: 0 8px 20px rgba(226, 104, 44, .30); }
.feature-icon svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature:nth-child(2) .feature-icon { background: linear-gradient(135deg, #f6b552, #e47f2c); }
.feature:nth-child(3) .feature-icon { background: linear-gradient(135deg, #f08a55, #cf4a2b); }
.feature:nth-child(4) .feature-icon { background: linear-gradient(135deg, #e0a849, #bd7425); }
.feature:nth-child(5) .feature-icon { background: linear-gradient(135deg, #f29a6a, #d55a3a); }
.feature:nth-child(6) .feature-icon { background: linear-gradient(135deg, #c48a62, #8f5536); }
.flow { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; }
.flow li { counter-increment: step; display: flex; align-items: center; gap: 10px; }
.flow li::before {
  content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 750; font-size: 13px; flex: none; box-shadow: 0 6px 14px rgba(226, 104, 44, .25);
}

/* ---- the workspace: warm glass, apricot tiles ---- */
.banner {
  position: relative; overflow: hidden; border-radius: 28px; padding: 30px 32px; margin-bottom: 20px; color: var(--text);
  background: radial-gradient(560px 240px at 100% 0%, rgba(255, 170, 110, .32), transparent 65%), radial-gradient(520px 240px at 0% 100%, rgba(255, 210, 160, .38), transparent 62%), var(--card);
  border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), var(--shadow);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.banner > * { position: relative; z-index: 1; }
.banner .eyebrow { color: var(--accent-strong); }
.banner h1 { margin: 6px 0 6px; font-size: 30px; line-height: 1.3; color: var(--text); padding-right: 240px; }
.banner p { margin: 0; color: var(--muted); }
.banner .hero-actions { margin-top: 18px; }
.banner .hero-actions .button { border-radius: 999px; }
/* the balance: an earth-brown pill with its warm mark */
.banner .balance {
  position: absolute; right: 26px; top: 26px; display: grid; grid-template-columns: 42px auto; column-gap: 12px; align-items: center;
  padding: 12px 22px 12px 12px; border-radius: 24px; background: var(--pill); color: var(--pill-ink); box-shadow: 0 16px 34px rgba(75, 44, 27, .28);
}
.banner .balance::before { content: "积"; grid-row: 1 / span 3; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; }
.banner .balance:hover { text-decoration: none; transform: translateY(-1px); }
.banner .balance span { font-size: 12px; opacity: .72; }
.banner .balance b { font-size: 24px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.app-tile {
  position: relative; display: grid; justify-items: start; align-content: start; gap: 6px; min-height: 150px; padding: 20px 64px 22px 20px; border-radius: 26px;
  color: var(--text); background: linear-gradient(160deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%), var(--tile, var(--card));
  border: 1px solid rgba(255, 255, 255, .75); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.app-tile.t-c1 { --tile: var(--tile-1); } .app-tile.t-c2 { --tile: var(--tile-2); } .app-tile.t-c3 { --tile: var(--tile-3); }
.app-tile.t-c4 { --tile: var(--tile-4); } .app-tile.t-c5 { --tile: var(--tile-5); } .app-tile.t-c6 { --tile: var(--tile-6); }
.app-tile::after {
  content: "↗"; position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pill); color: var(--pill-ink); font-size: 17px; transition: transform .25s ease;
}
.app-tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 20px 40px rgba(158, 82, 32, .16); }
.app-tile:hover::after { transform: rotate(45deg); }
.app-tile b { font-size: 17px; margin-top: 6px; }
.app-tile span.small { color: var(--muted); }
.app-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; color: #fff; background: var(--grad); box-shadow: 0 8px 18px rgba(226, 104, 44, .28); }
.app-icon.c2 { background: linear-gradient(135deg, #f6b552, #e47f2c); }
.app-icon.c3 { background: linear-gradient(135deg, #f08a55, #cf4a2b); }
.app-icon.c4 { background: linear-gradient(135deg, #e0a849, #bd7425); }
.app-icon.c5 { background: linear-gradient(135deg, #f29a6a, #d55a3a); }
.app-icon.c6 { background: linear-gradient(135deg, #c48a62, #8f5536); }
.workspace { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: stretch; margin-bottom: 18px; }
.workspace > .card { margin-bottom: 0; }
.stack { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; min-width: 0; }
.stack > .card { margin-bottom: 0; }
.quick h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.quick h2 span { font-size: 12px; color: var(--muted); font-weight: 500; }
.quick { display: flex; flex-direction: column; }
.quick > .actions { margin-bottom: 18px; }
/* the quick start's own four steps, at its foot: the column ends level with the one beside it */
.quick-steps { list-style: none; counter-reset: q; margin: auto 0 0; padding: 16px 0 0; border-top: 1px dashed var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.quick-steps li { counter-increment: q; display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); }
.quick-steps li::before { content: counter(q); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: var(--soft-accent); color: var(--accent-strong); font-weight: 750; font-size: 12px; box-shadow: inset 0 0 0 1px rgba(216, 97, 43, .25); }
.admin-card ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }

/* ---- forms in steps ---- */
.step { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 16px; }
.step h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.step-no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 12px; font-weight: 750; }
.upload { background: var(--soft-accent); border: 1px dashed rgba(216, 97, 43, .35); border-radius: 16px; padding: 4px 14px 12px; margin-top: 10px; }
.upload p { margin: 6px 0 0; }
.progress { margin-top: 14px; background: var(--soft-accent); border-radius: 12px; overflow: hidden; position: relative; padding: 8px 12px; }
.progress .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--grad); opacity: .25; transition: width .2s; }
.progress span { position: relative; }
.quote-box { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; margin-top: 12px; background: var(--soft-accent); border-radius: 16px; padding: 12px 14px; }
.quote-box div span { display: block; color: var(--muted); font-size: 13px; }
.quote-box b { font-size: 20px; font-variant-numeric: tabular-nums; }
.quote-box p { flex-basis: 100%; margin: 0; }
.quote-box.short { background: var(--soft-warn); }
.quote-box.short p { color: var(--warn); font-weight: 650; }
.paper-pick { background: var(--soft-accent); border-radius: 14px; padding: 2px 14px 10px; margin-bottom: 4px; }
.paper-pick p { margin: 6px 0 0; }
.privacy { background: var(--soft-accent); border-radius: 12px; padding: 8px 12px; color: var(--muted); margin: 6px 0 0; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.choices.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 0; padding: 12px 14px; border-radius: 16px; cursor: pointer; background: rgba(255, 253, 250, .82); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s, background .15s; }
label.choice:has(input:checked) { box-shadow: inset 0 0 0 2px var(--accent); background: var(--soft-accent); }
label.choice input { margin-top: 4px; accent-color: var(--accent); }
label.choice > span { display: grid; gap: 2px; }
textarea.outline { min-height: 220px; font-family: inherit; line-height: 1.8; }
.outline-view { background: var(--soft-accent); border-radius: 14px; padding: 8px 12px; font-size: 14px; }
.outline-preview, .outline-preview ul { list-style: none; margin: 4px 0; padding-left: 0; }
.outline-preview ul { padding-left: 18px; }
.outline-preview .lv { display: inline-block; font-size: 11px; color: var(--accent); background: var(--card-solid); border-radius: 4px; padding: 0 4px; }

/* ---- the literature assistant ---- */
.lit { background: var(--soft-accent); border-radius: 18px; padding: 12px 14px; margin-top: 10px; }
.lit-head { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.lit-head > div { flex: 1; min-width: 220px; }
.lit-status { margin: 10px 0 0; }
.lit-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.lit-item { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--card-solid); box-shadow: inset 0 0 0 1px var(--line); }
.lit-item.off { opacity: .8; }
.lit-item input { margin-top: 5px; accent-color: var(--accent); }
.lit-item > div { min-width: 0; }
/* titles and names are mostly English: a Latin face first, so their quotes and spacing read as English */
.lit-item .t, .lit-item .m, .lit-item .badge { font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; }
.lit-item .t { font-weight: 650; overflow-wrap: anywhere; }
.lit-item .m { color: var(--muted); font-size: 13px; }
.badge { display: inline-block; font-size: 12px; border-radius: 99px; padding: 1px 8px; margin: 4px 6px 0 0; max-width: 100%; overflow-wrap: anywhere; }
.badge.full { background: var(--soft-ok); color: var(--ok); }
.badge.meta { background: var(--card-solid); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.badge.unav { background: var(--soft-warn); color: var(--warn); }
.badge.rec { background: var(--soft-accent); color: var(--accent-strong); }
.lit-sum { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---- the task's progress ---- */
.phases { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 12px 0 6px; }
.phase { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 13px; color: var(--muted); }
.phase .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; background: var(--card-solid); box-shadow: inset 0 0 0 2px var(--line); color: var(--muted); z-index: 1; }
.phase::before { content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.phase:first-child::before { display: none; }
.phase.done .dot { background: var(--grad); color: #fff; box-shadow: none; }
.phase.done::before, .phase.now::before { background: linear-gradient(90deg, #f6a545, #d9532b); }
.phase.now { color: var(--text); font-weight: 650; }
.phase.now .dot { color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 6px rgba(216, 97, 43, .14); animation: pulse 1.6s ease-in-out infinite; }
.phase.failed .dot { background: var(--soft-bad); color: var(--bad); box-shadow: inset 0 0 0 2px var(--bad); }
@keyframes pulse { 50% { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 10px rgba(216, 97, 43, .06); } }
.meter { height: 8px; border-radius: 99px; background: var(--soft-accent); overflow: hidden; margin: 10px 0 4px; }
.meter > div { height: 100%; background: var(--grad); border-radius: 99px; transition: width .4s; }
.progress-line { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

/* ---- journals ---- */
.match-head h2 { overflow-wrap: anywhere; }
.running { display: flex; align-items: center; gap: 10px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accent); border-right-color: transparent; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.journal-head { display: flex; gap: 14px; align-items: flex-start; }
.journal-head .grow { flex: 1; min-width: 0; }
.journal-head h3 { margin: 2px 0 2px; font-size: 18px; overflow-wrap: anywhere; }
.journal-head button { flex: none; }
.rank { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; background: var(--grad); color: #fff; font-weight: 750; }
.reasons, .examples { margin-top: 12px; }
.reasons ul, .examples ul, .confirm ul { margin: 4px 0 0; padding-left: 20px; }
.reasons li, .examples li, .confirm li { margin: 2px 0; }
.examples li { font-size: 14px; }
.facts { background: var(--soft-accent); border-radius: 14px; padding: 12px 14px; margin-top: 12px; }
.linkrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.linkrow a { border: 1px solid var(--line); border-radius: 99px; padding: 3px 12px; font-size: 13px; background: var(--card-solid); }
.linkrow a:hover { border-color: var(--accent); text-decoration: none; }
.linkrow .link { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.linkrow .link .state, .kv .link .state, .checklist .link .state { font-size: 12px; border-radius: 99px; padding: 0 7px; }
.link.ok .state { background: var(--soft-ok); color: var(--ok); }
.link.bad .state { background: var(--soft-bad); color: var(--bad); }
.link.unknown .state { background: var(--soft-accent); color: var(--muted); }
.link.bad a { text-decoration: line-through; }
.kv .link, .checklist .link { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.info .linkrow { margin: 8px 0 0; }
.link-note { margin: 6px 0 0; }
.confirm summary { font-size: 14px; }
.confirm { margin-top: 12px; }
.confirm li { font-size: 14px; color: var(--muted); }
.essentials { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 10px 0 0; }
.essentials span { color: var(--muted); }
details.more { margin-top: 10px; }
details.more > summary { font-size: 14px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.checklist li:last-child { border-bottom: none; }
.checklist label.check { margin: 0; }
.checklist a { white-space: nowrap; font-size: 14px; }
textarea.letter { min-height: 360px; font-family: inherit; line-height: 1.7; }

/* ---- usage records, back office, the rest ---- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 4px 0 12px; }
.tile { display: grid; gap: 2px; background: var(--soft-accent); border-radius: 16px; padding: 10px 12px; }
.tile > span:first-child { color: var(--muted); font-size: 13px; }
.tile b { font-size: 20px; font-variant-numeric: tabular-nums; }
.filters { align-items: end; }
.filter-go { display: flex; align-items: end; padding-bottom: 2px; }
.privacy-page section h3 { margin-bottom: 4px; }
.privacy-page section p { margin: 0 0 8px; }
.manage { box-shadow: var(--shadow), inset 0 0 0 2px rgba(216, 97, 43, .35); }
.feedback-box { margin-top: 12px; }
.feedback .grow { grid-column: span 2; }
.feedback-text { max-width: 28em; white-space: pre-wrap; }
.login { max-width: 380px; margin: 40px auto; }
.auth .login { margin: 0; max-width: none; }
.qr-current img { width: 160px; border: 1px solid var(--line); border-radius: 12px; }

/* ---- the floating buttons: 意见反馈 and 联系客服 together, their panels opening above them ---- */
.fabs {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none;
}
.fabs > * { pointer-events: auto; }
.fab { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 11px 20px; font-weight: 650; }
.fab svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.support-fab { box-shadow: var(--glow); }
.feedback-fab {
  background: rgba(255, 252, 247, .84); color: var(--accent-strong); box-shadow: inset 0 0 0 1px rgba(216, 97, 43, .28), 0 10px 26px rgba(158, 82, 32, .16);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
}
.feedback-fab:hover { background: rgba(255, 244, 232, .95); filter: none; }
.widget-panel {
  width: min(340px, calc(100vw - 36px)); max-height: min(72vh, 620px); overflow-y: auto; margin-bottom: 4px;
  background: rgba(255, 252, 248, .94); border-radius: 22px; padding: 16px 18px; color: var(--text);
  box-shadow: 0 24px 56px rgba(110, 54, 20, .22), inset 0 0 0 1px rgba(255, 255, 255, .8);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.support-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.support-qr { display: block; width: 180px; max-width: 100%; margin: 4px auto 8px; border-radius: 12px; border: 1px solid var(--line); }
.support-name { font-weight: 750; margin: 4px 0; }
.support-contact { margin: 4px 0; overflow-wrap: anywhere; }
.support-contact .sel { user-select: all; }
.support-item { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 8px; }
.support-item p { margin: 4px 0; }
.feedback-panel .feedback .row { grid-template-columns: 1fr; }
.feedback-panel .feedback .grow { grid-column: auto; }
/* a screen wide enough to leave a margin beside the page (1260 px and up): a slim bar at the right edge,
   the two buttons one above the other (icon over label) beside the page rather than over it, each panel
   opening to the bar's left */
@media (min-width: 1260px) {
  .fabs { right: 10px; top: 50%; bottom: auto; transform: translateY(-50%); align-items: stretch; }
  .fab { flex-direction: column; justify-content: center; gap: 5px; width: 58px; padding: 11px 0 10px; border-radius: 18px; font-size: 12px; line-height: 1.25; }
  .fab svg { width: 20px; height: 20px; }
  .fabs .widget-panel { position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%); margin: 0; }
}

/* ---- the welcome: flames gathering into the logo (intro.js), then the page coming in ---- */
.intro { display: none; position: fixed; inset: 0; z-index: 1000; overflow: hidden; transition: opacity .9s ease;
  background: radial-gradient(circle at 50% 44%, #fffaf3 0%, #fcf0e2 52%, #f6e0cb 100%); }
html.intro-on .intro { display: block; }
html.intro-on { overflow: hidden; }
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro.leaving { opacity: 0; pointer-events: none; }
.intro-tagline { position: absolute; left: 0; right: 0; top: 70%; margin: 0; text-align: center; font-size: 15px; letter-spacing: .32em; color: #9a6a4c;
  opacity: 0; transform: translateY(8px); transition: opacity .9s ease, transform .9s ease; }
.intro-tagline.on { opacity: 1; transform: none; }
.intro-skip { position: absolute; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: rgba(255, 255, 255, .55); color: #8b5a3c; box-shadow: inset 0 0 0 1px rgba(176, 104, 52, .25); }
.intro-skip:hover { background: rgba(255, 255, 255, .8); filter: none; box-shadow: inset 0 0 0 1px rgba(176, 104, 52, .4); }
html.intro-on body > :not(.intro) { opacity: 0; transform: scale(.985); }
html.intro-reveal body > :not(.intro) { opacity: 1; transform: none; transition: opacity 1s ease .05s, transform 1.2s cubic-bezier(.2, .7, .2, 1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 760px) {
  .top-inner { flex-wrap: wrap; gap: 6px 12px; padding: 8px 16px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-word { height: 21px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .nav::-webkit-scrollbar { display: none; }
  .account { gap: 10px; }
  .who { font-size: 13px; }
  .container { padding: 16px 16px 32px; }
  .foot { padding: 0 16px 24px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 22px 0 10px; }
  .hero h1 { font-size: 36px; }
  .auth-wrap { padding-top: 70px; }
  .auth-flame { width: 172px; }
  .auth-wrap::before { width: 240px; height: 240px; top: 20px; }
  .hero-facts { grid-template-columns: 1fr; max-width: none; }
  .sources-row { justify-content: flex-start; }
  .hero-actions .button, .hero-actions button { flex: 1 1 100%; }
  .card { padding: 16px 16px; border-radius: 18px; }
  .grid2, .features, .workspace, .choices, .choices.three { grid-template-columns: 1fr; }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banner { padding: 22px 18px; }
  .banner h1 { font-size: 23px; padding-right: 0; }
  .banner .balance { position: static; display: inline-grid; margin-top: 14px; }
  .app-tile { min-height: 136px; padding-right: 20px; padding-bottom: 64px; }
  .phases { grid-template-columns: 1fr; gap: 6px; }
  .phase { grid-template-columns: 34px 1fr; justify-items: start; text-align: left; align-items: center; }
  .phase::before { display: none; }
  .feedback .grow { grid-column: auto; }
  .tasklist a.task { flex-direction: column; gap: 4px; }
  .kv { grid-template-columns: 92px 1fr; }
  .journal-head { flex-wrap: wrap; }
  .journal-head button { width: 100%; }
  .checklist li { flex-direction: column; gap: 2px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fabs { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
  .fab { padding: 9px 16px; font-size: 14px; }
  /* a table scrolls inside its own box rather than squeezing a column to one character */
  .tablewrap table { min-width: 640px; }
  .tablewrap th, .tablewrap td { white-space: nowrap; }
  .tablewrap td.feedback-text, .tablewrap td .err { white-space: normal; min-width: 14em; }
}
