:root {
  --ink: #171719;
  --ink-soft: #5f6067;
  --ink-faint: #8a8b91;
  --paper: #ffffff;
  --surface: #f6f7f8;
  --surface-2: #eef0f2;
  --line: #e4e5e8;
  --line-dark: #d1d3d7;
  --accent: #ff5a4f;
  --accent-dark: #e94b42;
  --accent-soft: #fff0ee;
  --green: #1f9d68;
  --green-soft: #eaf8f2;
  --dark: #171719;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shell: 1180px;
  --shadow-soft: 0 22px 70px rgba(25, 25, 27, .09);
  --font: Inter, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
img, svg { display: block; max-width: 100%; }
.site-shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 9999; transform: translateY(-150%); background: var(--ink); color: white; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.ui-icon { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: 0 0 auto; }
.ui-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ui-icon:has(svg path[d*="M3 4.5"]) svg, .ui-icon:has(svg path[d*="M3 4.5"]) path { fill: currentColor; stroke: none; }

.liuhen-mark { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid currentColor; border-radius: 8px; color: var(--accent); transform: rotate(0deg); }
.liuhen-mark span:first-child { width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: 2px; }
.liuhen-mark span:last-child { position: absolute; width: 1.5px; height: 8px; background: currentColor; right: -4px; top: 10px; }
.liuhen-mark.mark-small { width: 24px; height: 24px; border-radius: 6px; }
.liuhen-mark.mark-small span:first-child { width: 8px; height: 8px; }
.liuhen-mark.mark-small span:last-child { height: 6px; top: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 760; letter-spacing: -.04em; }
.brand-light { color: white; }

.site-header { position: sticky; top: 0; z-index: 1000; height: 78px; background: rgba(255, 255, 255, .92); border-bottom: 1px solid transparent; backdrop-filter: blur(14px); transition: border-color .2s ease, height .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); height: 70px; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.primary-nav { display: flex; align-items: center; gap: 34px; margin-left: 60px; }
.primary-nav a { color: #505158; font-size: 14px; font-weight: 560; transition: color .2s ease; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.mobile-nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; place-items: center; }
.mobile-nav-toggle .icon-close { display: none; }

.button { min-height: 46px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: 14px; font-weight: 680; letter-spacing: -.01em; cursor: pointer; transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: white; }
.button-primary:hover { background: var(--accent-dark); color: white; }
.button-quiet { background: transparent; border-color: var(--line); }
.button-quiet:hover { border-color: var(--line-dark); background: var(--surface); }
.button-outline { border-color: var(--line-dark); background: white; }
.button-outline:hover { border-color: var(--ink); }
.button-light { background: white; color: var(--ink); }
.button-light:hover { background: var(--surface); }
.button-danger { color: #ba302b; background: #fff4f3; border-color: #ffd7d3; }
.button-small { min-height: 38px; padding: 0 14px; font-size: 13px; }

.hero-section { position: relative; overflow: hidden; min-height: 720px; padding: 88px 0 105px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(560px, 1.12fr); gap: 72px; align-items: center; }
.hero-copy { padding-bottom: 22px; }
.hero-copy h1 { max-width: 580px; margin: 0; font-size: clamp(58px, 6.35vw, 86px); line-height: .99; letter-spacing: -.075em; font-weight: 720; }
.hero-copy > p { max-width: 470px; margin: 34px 0 0; color: var(--ink-soft); font-size: 19px; line-height: 1.75; letter-spacing: -.015em; }
.hero-actions { display: flex; gap: 12px; margin-top: 37px; }
.hero-actions .button { min-height: 52px; padding-inline: 24px; }
.hero-footnote { margin-top: 25px; display: flex; align-items: center; gap: 9px; color: var(--ink-faint); font-size: 13px; }
.mini-shield { width: 24px; height: 24px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 7px; }
.mini-shield .ui-icon { width: 14px; height: 14px; }
.hero-product { position: relative; padding: 22px 0 0 20px; }
.product-window { position: relative; z-index: 2; background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-soft); overflow: hidden; }
.window-bar { height: 68px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.window-brand { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.status { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 12px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.window-body { padding: 20px 22px 22px; background: #fafafa; }
.device-row { display: grid; grid-template-columns: 42px 1fr 12px; align-items: center; gap: 13px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.device-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #676870; background: var(--surface); border-radius: 11px; }
.device-icon .ui-icon { width: 21px; height: 21px; }
.device-row span { display: block; font-size: 13px; font-weight: 680; }
.device-row small { display: block; margin-top: 1px; color: var(--ink-faint); font-size: 11px; }
.device-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; }
.event-flow { position: relative; padding: 28px 16px 4px; }
.event-source { display: flex; gap: 11px; width: 75%; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; color: #725f43; background: #efe8dc; border-radius: 9px; font-size: 12px; font-weight: 740; }
.message-line { position: relative; width: 100%; padding: 12px 14px 13px; border: 1px solid var(--line); border-radius: 5px 13px 13px 13px; background: white; }
.message-line small { color: var(--ink-faint); font-size: 10px; }
.message-line p { margin: 3px 0 0; font-size: 12px; }
.message-line time { position: absolute; right: 11px; bottom: -22px; color: var(--ink-faint); font-size: 9px; }
.flow-rail { height: 50px; margin: 17px 0 0 48px; display: flex; align-items: center; color: var(--accent); }
.flow-rail span { width: 2px; height: 43px; background: linear-gradient(var(--accent), rgba(255, 90, 79, .1)); border-radius: 2px; }
.flow-rail i { margin: 33px 0 0 -9px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: white; font-style: normal; }
.flow-rail .ui-icon { width: 11px; height: 11px; }
.recall-card { margin-left: 38px; padding: 16px; border: 1px solid #ffd4d0; border-radius: 14px; background: var(--accent-soft); }
.recall-head { display: flex; align-items: center; gap: 10px; }
.recall-head > span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--accent); background: white; border-radius: 9px; }
.recall-head .ui-icon { width: 17px; height: 17px; }
.recall-head small { display: block; color: #8c6764; font-size: 9px; }
.recall-head strong { display: block; font-size: 11px; }
.recall-card > p { margin: 13px 0 5px; font-size: 12px; }
.recall-card > time { color: #9c7471; font-size: 9px; }
.privacy-strip { display: flex; align-items: center; gap: 7px; margin-top: 22px; }
.privacy-strip span { padding: 7px 9px; display: inline-flex; align-items: center; gap: 5px; color: var(--ink-faint); border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 9px; }
.privacy-strip .ui-icon { width: 11px; height: 11px; color: var(--green); }
.hero-accent-line { position: absolute; z-index: 1; left: -85px; right: 70px; bottom: -40px; height: 190px; border: 2px solid var(--accent); border-top: 0; border-right: 0; border-radius: 0 0 0 70px; opacity: .38; transform: rotate(-4deg); }

.section { padding: 120px 0; }
.section-heading h2, .privacy-copy h2, .closing-inner h2 { margin: 0; font-size: clamp(40px, 4.35vw, 62px); line-height: 1.08; letter-spacing: -.055em; font-weight: 680; }
.section-heading p, .privacy-copy > p { color: var(--ink-soft); font-size: 17px; line-height: 1.8; }
.split-heading { display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: end; }
.split-heading p { margin: 0 0 5px; }
.workflow-section { background: var(--surface); }
.workflow-track { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 82px; border-top: 1px solid var(--line-dark); }
.workflow-step { position: relative; padding: 38px 48px 0 0; }
.workflow-step + .workflow-step { padding-left: 48px; border-left: 1px solid var(--line-dark); }
.step-number { position: absolute; top: -14px; left: 0; padding-right: 12px; color: var(--ink-faint); background: var(--surface); font-size: 12px; font-weight: 680; }
.workflow-step + .workflow-step .step-number { left: 48px; }
.step-visual { position: relative; width: 94px; height: 94px; display: grid; place-items: center; color: var(--accent); border: 1px solid var(--line-dark); border-radius: 25px; background: white; }
.step-visual > span .ui-icon { width: 36px; height: 36px; }
.step-visual > i { position: absolute; right: -8px; top: 22px; width: 16px; height: 16px; background: var(--accent); border: 4px solid var(--surface); border-radius: 4px; }
.workflow-step h3 { margin: 28px 0 10px; font-size: 22px; letter-spacing: -.035em; }
.workflow-step p { max-width: 275px; margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }

.privacy-section { overflow: hidden; background: var(--dark); color: white; }
.privacy-grid { display: grid; grid-template-columns: .84fr 1.16fr; gap: 95px; align-items: center; }
.privacy-copy > p { max-width: 490px; margin: 27px 0 0; color: #b8b8bd; }
.check-list { margin: 34px 0 0; padding: 0; display: grid; gap: 14px; list-style: none; }
.check-list li { display: flex; align-items: center; gap: 11px; color: #dedee1; font-size: 14px; }
.check-list .ui-icon { width: 19px; height: 19px; color: var(--accent); }
.privacy-diagram { position: relative; min-height: 530px; border: 1px solid #303034; border-radius: 28px; background: #1d1d20; }
.diagram-node { position: absolute; z-index: 2; width: 210px; min-height: 112px; padding: 17px; display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; border: 1px solid #3a3a3f; border-radius: 15px; background: #242428; }
.diagram-node .diagram-icon { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; color: var(--accent); background: #303035; border-radius: 11px; }
.diagram-node .diagram-icon > .ui-icon { width: 22px; height: 22px; }
.diagram-node strong { align-self: end; font-size: 13px; }
.diagram-node small { align-self: start; color: #929298; font-size: 10px; }
.node-control { left: 42px; top: 54px; }
.node-device { right: 38px; top: 205px; border-color: rgba(255, 90, 79, .55); }
.node-wechat { left: 54px; bottom: 48px; }
.diagram-line { position: absolute; z-index: 1; color: #73737a; border: 1px dashed #56565c; border-left: 0; border-bottom: 0; }
.diagram-line span { position: absolute; padding: 2px 7px; color: #77777e; background: #1d1d20; font-size: 9px; white-space: nowrap; }
.line-a { left: 252px; top: 109px; width: 155px; height: 153px; border-radius: 0 24px 0 0; }
.line-a span { left: 38px; top: -11px; }
.line-b { left: 158px; bottom: 101px; width: 242px; height: 159px; transform: rotate(180deg); border-radius: 0 24px 0 0; }
.line-b span { left: 82px; top: -11px; transform: rotate(180deg); }
.blocked-path { position: absolute; left: 48%; top: 54%; display: grid; gap: 2px; padding: 8px 10px; color: #8f8f96; background: #1d1d20; border: 1px solid #38383d; border-radius: 8px; font-size: 9px; text-align: center; transform: translate(-50%, -50%); }
.blocked-path b { color: var(--accent); font-weight: 600; }

.pricing-section { padding-bottom: 105px; }
.pricing-heading { text-align: center; }
.pricing-heading p { max-width: 620px; margin: 20px auto 0; }
.pricing-table { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 66px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.price-plan { min-height: 500px; padding: 32px 30px; display: flex; flex-direction: column; background: white; }
.price-plan + .price-plan { border-left: 1px solid var(--line); }
.price-plan h3 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.price-plan > div:first-child p { margin: 7px 0 0; color: var(--ink-soft); font-size: 13px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 36px; }
.price strong { font-size: 42px; line-height: 1; letter-spacing: -.055em; }
.price span { color: var(--ink-faint); font-size: 12px; }
.price-plan ul { margin: 34px 0 30px; padding: 0; display: grid; gap: 13px; list-style: none; }
.price-plan li { position: relative; padding-left: 20px; color: var(--ink-soft); font-size: 13px; }
.price-plan li::before { content: ""; position: absolute; left: 1px; top: 9px; width: 8px; height: 5px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.price-plan .button { margin-top: auto; }
.price-featured { background: var(--surface); box-shadow: inset 0 3px 0 var(--accent); }
.pricing-note { margin: 18px 0 0; color: var(--ink-faint); font-size: 12px; text-align: center; }

.faq-section { background: var(--surface); }
.faq-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 105px; }
.faq-grid .section-heading p { margin-top: 16px; }
.faq-list { border-top: 1px solid var(--line-dark); }
.faq-list details { border-bottom: 1px solid var(--line-dark); }
.faq-list summary { position: relative; padding: 25px 42px 25px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 650; letter-spacing: -.025em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span::before, .faq-list summary span::after { content: ""; position: absolute; right: 4px; top: 35px; width: 14px; height: 1.5px; background: var(--ink); transition: transform .2s ease; }
.faq-list summary span::after { transform: rotate(90deg); }
.faq-list details[open] summary span::after { transform: rotate(0deg); }
.faq-list details p { max-width: 690px; margin: -5px 0 24px; color: var(--ink-soft); font-size: 14px; }

.closing-section { background: var(--accent); color: white; }
.closing-inner { min-height: 400px; display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.closing-inner h2 { font-size: clamp(42px, 4.7vw, 68px); }
.closing-inner .button { min-height: 54px; padding-inline: 26px; }

.site-footer { padding: 70px 0 24px; background: var(--dark); color: white; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 100px; padding-bottom: 60px; }
.footer-brand p { max-width: 310px; margin: 18px 0 0; color: #919197; font-size: 13px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-links div { display: grid; align-content: start; gap: 11px; }
.footer-links strong { margin-bottom: 7px; color: #f6f6f7; font-size: 12px; }
.footer-links a { color: #94949a; font-size: 12px; }
.footer-links a:hover { color: white; }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 30px; color: #77777d; border-top: 1px solid #2b2b2f; font-size: 10px; }

/* Authentication */
.auth-page { min-height: calc(100vh - 78px); padding: 70px 0 95px; background: var(--surface); }
.auth-layout { display: grid; grid-template-columns: 1fr minmax(420px, 500px); gap: 120px; align-items: center; }
.auth-intro { max-width: 500px; }
.auth-brand { margin-bottom: 80px; }
.auth-intro h1 { margin: 0; font-size: clamp(48px, 5vw, 72px); line-height: 1; letter-spacing: -.07em; }
.auth-intro > p { max-width: 420px; margin: 24px 0 0; color: var(--ink-soft); font-size: 18px; }
.auth-privacy { margin-top: 55px; padding-top: 24px; display: flex; gap: 13px; color: var(--ink-soft); border-top: 1px solid var(--line-dark); font-size: 13px; }
.auth-privacy .ui-icon { color: var(--accent); }
.auth-privacy strong { display: block; color: var(--ink); }
.auth-panel { padding: 38px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 18px 50px rgba(20, 20, 22, .06); }
.auth-form h2 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.auth-form > p { margin: 8px 0 28px; color: var(--ink-soft); font-size: 13px; }
.form-field { margin-top: 17px; }
.form-field label { display: block; margin-bottom: 7px; color: #44454b; font-size: 12px; font-weight: 650; }
.form-field input, .form-field select { width: 100%; height: 48px; padding: 0 14px; color: var(--ink); border: 1px solid var(--line-dark); border-radius: 9px; background: white; font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.form-field input:focus, .form-field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 90, 79, .12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-meta { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: 12px; }
.form-meta label { display: inline-flex; align-items: center; gap: 7px; }
.auth-form .button { width: 100%; margin-top: 24px; }
.auth-switch { margin: 20px 0 0; color: var(--ink-soft); font-size: 12px; text-align: center; }
.auth-switch a { color: var(--accent-dark); font-weight: 650; }
.form-message { margin: 0 0 18px; padding: 10px 12px; border: 1px solid #ffd4d0; border-radius: 8px; background: var(--accent-soft); color: #9d3732; font-size: 12px; }
.form-message.success { color: #177d55; border-color: #c9eddf; background: var(--green-soft); }

/* Dashboard */
.liuhen-dashboard-page .site-header, .liuhen-dashboard-page .site-footer { display: none; }
.dashboard-main { min-height: 100vh; background: #f5f6f7; }
.dash-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.dash-sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 20px 22px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: white; }
.dash-sidebar .brand { padding: 0 10px; }
.dash-nav { margin-top: 46px; display: grid; gap: 6px; }
.dash-nav button { width: 100%; height: 44px; padding: 0 12px; display: flex; align-items: center; gap: 11px; color: var(--ink-soft); border: 0; border-radius: 9px; background: transparent; font-size: 13px; text-align: left; cursor: pointer; }
.dash-nav button:hover, .dash-nav button.is-active { color: var(--ink); background: var(--surface); }
.dash-nav button.is-active { font-weight: 650; }
.dash-nav .nav-dot { width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 2px; }
.dash-account { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid var(--line); }
.account-person { display: flex; align-items: center; gap: 10px; }
.account-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent-dark); font-size: 12px; font-weight: 750; }
.account-person strong { display: block; max-width: 135px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.account-person small { display: block; color: var(--ink-faint); font-size: 9px; }
.dash-logout { display: inline-block; margin-top: 13px; color: var(--ink-faint); font-size: 11px; }
.dash-content { min-width: 0; padding: 31px 38px 60px; }
.dash-topbar { display: flex; align-items: center; justify-content: space-between; }
.dash-topbar h1 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.dash-topbar p { margin: 3px 0 0; color: var(--ink-faint); font-size: 11px; }
.dash-plan { padding: 7px 10px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 10px; }
.dash-view { display: none; margin-top: 30px; }
.dash-view.is-active { display: block; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(300px, .58fr); gap: 18px; }
.dash-panel { border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.panel-pad { padding: 22px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-head h2 { margin: 0; font-size: 15px; letter-spacing: -.025em; }
.panel-head p { margin: 3px 0 0; color: var(--ink-faint); font-size: 10px; }
.node-summary { min-height: 290px; padding: 23px; }
.node-main { margin-top: 24px; padding: 18px; display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.node-main-icon { width: 50px; height: 50px; display: grid; place-items: center; color: #55565d; border: 1px solid var(--line); border-radius: 12px; background: white; }
.node-main-icon .ui-icon { width: 25px; height: 25px; }
.node-main strong { display: block; font-size: 13px; }
.node-main small { display: block; margin-top: 2px; color: var(--ink-faint); font-size: 9px; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 7px; background: var(--surface-2); color: var(--ink-soft); font-size: 9px; }
.status-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #a2a3a8; }
.status-chip.online { color: #14764f; background: var(--green-soft); }
.status-chip.online::before { background: var(--green); }
.node-actions { margin-top: 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.node-actions small { color: var(--ink-faint); font-size: 9px; }
.pair-card { min-height: 290px; padding: 23px; color: white; background: var(--dark); }
.pair-code-wrap { margin-top: 27px; display: grid; gap: 8px; }
.pair-code { min-height: 72px; display: grid; place-items: center; border: 1px solid #3b3b40; border-radius: 12px; background: #222226; color: #aaaab0; font-size: 11px; letter-spacing: .08em; }
.pair-code.has-code { color: white; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 24px; font-weight: 700; letter-spacing: .18em; }
.pair-card .button { width: 100%; margin-top: 12px; }
.pair-note { display: block; margin-top: 11px; color: #83838a; font-size: 9px; text-align: center; }
.settings-panel { margin-top: 18px; padding: 23px; }
.settings-list { margin-top: 20px; display: grid; }
.setting-row { min-height: 66px; padding: 13px 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; border-top: 1px solid var(--line); }
.setting-row strong { display: block; font-size: 12px; }
.setting-row small { display: block; margin-top: 2px; color: var(--ink-faint); font-size: 9px; }
.switch { position: relative; width: 38px; height: 22px; display: inline-block; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { position: absolute; inset: 0; background: #d7d8db; border-radius: 12px; cursor: pointer; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: white; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.14); transition: transform .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); }
.setting-select { height: 34px; padding: 0 28px 0 10px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 10px; }
.activity-panel { margin-top: 18px; overflow: hidden; }
.activity-head { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.activity-head h2 { margin: 0; font-size: 14px; }
.activity-empty { min-height: 150px; display: grid; place-items: center; color: var(--ink-faint); text-align: center; }
.activity-empty .ui-icon { width: 26px; height: 26px; margin: 0 auto 8px; color: #b7b8bd; }
.activity-empty p { margin: 0; font-size: 11px; }
.dashboard-notice { margin-bottom: 18px; padding: 11px 13px; display: flex; gap: 9px; color: #6c5742; border: 1px solid #ead9c7; border-radius: 9px; background: #fffaf4; font-size: 10px; }
.dashboard-notice .ui-icon { width: 16px; height: 16px; color: #b8793d; }
.toast { position: fixed; z-index: 4000; right: 22px; bottom: 22px; padding: 12px 15px; color: white; border-radius: 9px; background: var(--dark); box-shadow: 0 12px 30px rgba(0,0,0,.18); font-size: 12px; transform: translateY(20px); opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.is-visible { transform: translateY(0); opacity: 1; }
.dash-loading { opacity: .58; pointer-events: none; }
.subscription-card { max-width: 760px; padding: 28px; }
.subscription-card h2 { margin: 0; font-size: 20px; }
.subscription-price { margin-top: 18px; font-size: 36px; font-weight: 730; letter-spacing: -.05em; }
.subscription-price span { color: var(--ink-faint); font-size: 12px; font-weight: 500; }
.subscription-meta { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.subscription-meta div { padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.subscription-meta small { display: block; color: var(--ink-faint); font-size: 9px; }
.subscription-meta strong { display: block; margin-top: 4px; font-size: 12px; }

/* Legal */
.legal-page { min-height: 70vh; padding: 95px 0 120px; }
.legal-shell { max-width: 820px; }
.legal-header h1 { margin: 0; font-size: clamp(44px, 5vw, 64px); letter-spacing: -.06em; }
.legal-content { margin-top: 48px; color: var(--ink-soft); font-size: 15px; }
.legal-content h2 { margin: 40px 0 12px; color: var(--ink); font-size: 23px; }
.legal-content p, .legal-content li { line-height: 1.9; }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: .8fr 1.2fr; gap: 36px; }
  .hero-copy h1 { font-size: 62px; }
  .primary-nav { gap: 24px; margin-left: 20px; }
  .privacy-grid { gap: 55px; }
  .auth-layout { gap: 65px; }
}

@media (max-width: 900px) {
  .site-shell { width: min(calc(100% - 36px), var(--shell)); }
  .site-header, .site-header.is-scrolled { height: 68px; }
  .header-login { display: none; }
  .mobile-nav-toggle { display: grid; }
  .primary-nav { position: fixed; inset: 68px 0 auto; height: calc(100vh - 68px); margin: 0; padding: 35px 24px; display: none; align-items: stretch; align-content: start; gap: 0; background: white; }
  .primary-nav a { padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 20px; }
  body.nav-open .primary-nav { display: grid; }
  body.nav-open .mobile-nav-toggle .icon-menu { display: none; }
  body.nav-open .mobile-nav-toggle .icon-close { display: grid; }
  .hero-section { min-height: 0; padding: 70px 0 85px; }
  .hero-grid { grid-template-columns: 1fr; gap: 70px; }
  .hero-copy { max-width: 660px; }
  .hero-copy h1 { font-size: clamp(58px, 11vw, 86px); }
  .hero-product { width: min(680px, 100%); justify-self: center; padding-left: 0; }
  .split-heading, .privacy-grid, .faq-grid, .footer-grid, .auth-layout { grid-template-columns: 1fr; gap: 50px; }
  .workflow-track { grid-template-columns: 1fr; border-top: 0; }
  .workflow-step, .workflow-step + .workflow-step { padding: 38px 0 38px 0; border-top: 1px solid var(--line-dark); border-left: 0; }
  .workflow-step + .workflow-step .step-number { left: 0; }
  .workflow-step p { max-width: 520px; }
  .privacy-grid { gap: 70px; }
  .privacy-diagram { width: min(640px, 100%); justify-self: center; }
  .pricing-table { grid-template-columns: 1fr; }
  .price-plan { min-height: 430px; }
  .price-plan + .price-plan { border-left: 0; border-top: 1px solid var(--line); }
  .closing-inner { min-height: 360px; align-items: flex-start; justify-content: center; flex-direction: column; }
  .auth-intro { max-width: none; }
  .auth-brand { margin-bottom: 40px; }
  .dash-shell { grid-template-columns: 82px minmax(0, 1fr); }
  .dash-sidebar { padding-inline: 14px; }
  .dash-sidebar .brand span:last-child, .dash-nav button span:last-child, .dash-account, .dash-sidebar .liuhen-mark + span { display: none; }
  .dash-sidebar .brand { justify-content: center; padding: 0; }
  .dash-nav button { justify-content: center; padding: 0; }
  .overview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-shell { width: min(calc(100% - 28px), var(--shell)); }
  .hero-section { padding-top: 52px; }
  .hero-copy h1 { font-size: 54px; }
  .hero-copy > p { margin-top: 25px; font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .product-window { border-radius: 17px; }
  .window-body { padding: 14px; }
  .device-row { grid-template-columns: 38px 1fr 8px; padding: 12px; }
  .event-flow { padding-inline: 0; }
  .event-source { width: 89%; }
  .recall-card { margin-left: 18px; }
  .privacy-strip { flex-wrap: wrap; }
  .section { padding: 82px 0; }
  .section-heading h2, .privacy-copy h2 { font-size: 39px; }
  .workflow-track { margin-top: 55px; }
  .privacy-diagram { min-height: 600px; }
  .diagram-node { width: 190px; }
  .node-control { left: 22px; top: 42px; }
  .node-device { right: 20px; top: 237px; }
  .node-wechat { left: 28px; bottom: 42px; }
  .line-a { left: 168px; top: 110px; width: 94px; height: 180px; }
  .line-b { left: 120px; bottom: 98px; width: 142px; height: 206px; }
  .blocked-path { top: 50%; }
  .pricing-table { margin-top: 48px; }
  .faq-grid { gap: 30px; }
  .closing-inner { gap: 35px; }
  .closing-inner h2 { font-size: 42px; }
  .footer-grid { gap: 45px; }
  .footer-links { gap: 20px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
  .auth-page { padding: 42px 0 70px; }
  .auth-layout { gap: 38px; }
  .auth-intro h1 { font-size: 50px; }
  .auth-privacy { margin-top: 35px; }
  .auth-panel { padding: 25px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .dash-shell { display: block; }
  .dash-sidebar { position: static; width: 100%; height: auto; padding: 14px; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .dash-sidebar .brand { justify-content: flex-start; }
  .dash-sidebar .brand span:last-child, .dash-sidebar .liuhen-mark + span { display: inline; }
  .dash-nav { margin: 0 0 0 auto; grid-auto-flow: column; }
  .dash-nav button { width: 36px; height: 36px; }
  .dash-nav button:nth-child(n+4) { display: none; }
  .dash-content { padding: 22px 14px 45px; }
  .node-main { grid-template-columns: 42px 1fr; }
  .node-main .status-chip { grid-column: 1 / -1; justify-self: start; }
  .node-actions { align-items: stretch; flex-direction: column; }
  .setting-row { grid-template-columns: minmax(0, 1fr) auto; }
  .subscription-meta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

