/* One light surface palette across login, inner pages and legal dialogs. */
body{--paper:#faf9f6;--panel:#fffefa;--line:#e5e1d8;padding-top:80px}
body:not(.public-homepage){background:#faf9f6!important;background-image:none!important}
body.public-homepage{background-color:#faf7ef;background-image:linear-gradient(#fffcf680,#fffcf680),linear-gradient(180deg,transparent 0%,transparent 76%,#faf7ef 100%),url('/assets/home-landscape-v1.jpg');background-size:100% 100%,100% calc(56.25vw - 80px),100% auto;background-position:center top,center top,center -80px;background-repeat:no-repeat}
.public-site{padding-top:0!important}
.login-page .auth-card{background:var(--panel);border-color:var(--line);box-shadow:0 8px 28px #51402a08}
.public-detail{background:var(--panel);border-color:var(--line)}
.sidebar,.admin-page .sidebar{background:#f1f0eb}
.app-shell{min-height:calc(100vh - 80px)}
/* Identical fixed top bar on every page. */
.site-topbar{position:fixed!important;z-index:100;top:0;left:0;right:0;width:100%;max-width:none!important;height:80px;min-height:80px!important;margin:0!important;padding:12px max(24px,calc((100vw - 1176px)/2))!important;display:flex!important;align-items:center;justify-content:space-between;gap:24px;background:#fffdf8f2;border-bottom:1px solid #e5e1d8!important;backdrop-filter:blur(12px)}
.site-topbar .public-brand{display:flex;align-items:center;gap:14px;flex-shrink:0;color:#343a40!important;text-decoration:none!important;font:700 24px/1.35 "Songti SC","STSong",serif}
.site-topbar .public-brand img{display:block;width:48px;height:48px;object-fit:contain}
.site-topbar .public-brand small{display:block;font:11px/1.8 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#687078;letter-spacing:.06em}
.site-topbar nav{display:flex;flex-direction:row;align-items:center;gap:26px;flex-wrap:nowrap;margin:0}
.site-topbar nav a{font:500 14px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#454b4c;padding:7px 0;min-height:0;border:0;border-radius:0;background:none;white-space:nowrap;text-decoration:none}
.site-topbar nav a:hover{color:#a33227;background:none}
.site-topbar nav a[aria-current=page]{color:#a33227;border-bottom:2px solid #a33227;background:none}
.site-topbar nav a.account-link{color:#a33227;border:1px solid #b47b63;border-radius:999px;padding:7px 18px}
.public-home .site-topbar nav{gap:26px}.public-home .site-topbar nav a{font-size:14px;color:#454b4c}.public-home .site-topbar nav a.account-link{padding:7px 18px;color:#a33227;border-color:#b47b63}
.public-home .public-features article{background:#fffdf7e8;border-color:#e7d9c6}
/* Native dialog supplies keyboard focus containment and Escape handling. */
html.legal-modal-open{overflow:hidden}
.legal-modal{padding:0;border:1px solid #e5e1d8;border-radius:18px;width:min(760px,calc(100vw - 36px));max-width:none;max-height:calc(100dvh - 48px);background:#fffefa;color:#343a40;box-shadow:0 24px 100px #342b2030;font:15px/1.8 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;overflow:hidden}
.legal-modal::backdrop{background:#25292366;backdrop-filter:blur(3px)}
.legal-modal-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 24px;border-bottom:1px solid #e5e1d8;background:#faf9f6}
.legal-modal-header h2{margin:0;padding:0;font:600 20px/1.5 "Songti SC",serif;color:#343a40}
.legal-modal-close{display:grid;place-items:center;width:36px;height:36px;min-height:36px;padding:0;border:1px solid #e5e1d8;border-radius:50%;background:#fffefa;color:#535953;cursor:pointer;font:26px/1 sans-serif}
.legal-modal-close:hover{background:#eeeae2}
.legal-modal-content{padding:22px 30px 30px;max-height:calc(100dvh - 120px);overflow:auto;overscroll-behavior:contain;overflow-wrap:anywhere}
.legal-modal-content main{margin:0;padding:0;border:0;background:none;max-width:none}
.legal-modal-content h1{font:600 26px/1.5 "Songti SC",serif!important;margin:0 0 20px!important;color:#343a40}
.legal-modal-content h2{font:600 19px/1.5 "Songti SC",serif!important;margin:24px 0 10px!important;color:#343a40}
.legal-modal-content p,.legal-modal-content li{font-size:14px;line-height:1.95;margin-top:0;color:#454b4c}
.legal-modal :focus-visible{outline:2px solid #ad7656;outline-offset:3px}
@media(max-width:760px){body{padding-top:112px}.site-topbar{height:112px;min-height:112px!important;padding:10px 18px!important;display:flex!important;flex-wrap:wrap;gap:6px}.site-topbar .public-brand{font-size:21px;gap:10px}.site-topbar .public-brand img{width:40px;height:40px}.site-topbar .public-brand small{font-size:10px}.site-topbar nav,.public-home .site-topbar nav{width:100%;justify-content:space-between;gap:6px!important}.site-topbar nav a,.public-home .site-topbar nav a{font-size:12px;padding:5px 0}.site-topbar nav a.account-link,.public-home .site-topbar nav a.account-link{padding:5px 11px}.app-shell{min-height:calc(100vh - 112px)}body.public-homepage{background-size:100% 100%,auto 720px,auto 720px;background-position:center top,45% top,45% top}.legal-modal{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:14px}.legal-modal-header{padding:12px 16px}.legal-modal-content{padding:18px 20px 22px;max-height:calc(100dvh - 96px)}.legal-modal-content h1{font-size:23px!important}}
/* Supplied background and measured layout from the 1672 × 941 reference. */
:root{--site-content-width:min(1370px,calc(86vw - 64px));--topbar-height:94px}
body{padding-top:var(--topbar-height)}
body.public-homepage{min-height:100vh;background-color:#fbf8f4;background-image:url('/assets/home-supplied-lossless.webp?v=1dd2bb9c26b205480daf');background-size:100% auto;background-position:center top;background-repeat:no-repeat}
.public-site{width:86%;max-width:1434px;padding-left:32px;padding-right:32px}
.site-topbar{height:var(--topbar-height);min-height:var(--topbar-height)!important;padding:16px max(24px,calc((100vw - var(--site-content-width))/2))!important}
.site-topbar .public-brand{font-size:28px;gap:18px}.site-topbar .public-brand img{width:58px;height:58px}.site-topbar .public-brand small{font-size:14px;line-height:1.7}
.site-topbar nav,.public-home .site-topbar nav{gap:44px}.site-topbar nav a,.public-home .site-topbar nav a{font-size:18px;line-height:1.5;font-weight:500;padding:8px 0;color:#272727}.site-topbar nav a[aria-current=page],.public-home .site-topbar nav a[aria-current=page]{color:#a92316;border-bottom:3px solid #a92316}
.site-topbar nav a.account-link,.public-home .site-topbar nav a.account-link{padding:9px 25px;border-color:#ad2a20;color:#9d2016;border-width:1px}
.app-shell{min-height:calc(100vh - var(--topbar-height))}
.public-home .public-hero{padding:60px 0 66px 15%;min-height:0}
.public-home p.public-kicker{font-size:18px!important;line-height:1.5!important;letter-spacing:.14em;gap:16px;margin-bottom:20px!important;color:#a52c1d}.public-home .public-kicker::before,.public-home .public-kicker::after{width:44px;background:linear-gradient(90deg,transparent,#ad4028)}.public-home .public-kicker::after{background:linear-gradient(90deg,#ad4028,transparent)}
.public-home h1{font-family:"Songti SC","STSong","Noto Serif CJK SC",serif!important;font-size:clamp(54px,4.07vw,68px)!important;line-height:1.16!important;font-weight:700!important;letter-spacing:.045em;color:#292724;margin-bottom:18px!important}
.public-home p.public-subtitle{font-size:20px!important;line-height:1.6!important;max-width:29em;color:#2f2e2b;margin-bottom:28px!important}
.public-home .public-actions{gap:26px}.public-home .public-actions a{min-height:56px;padding:12px 38px;font-size:18px;font-weight:550;color:#a12417;border-color:#ad342a;background:#fffaf54d}.public-home .public-actions .primary{background:linear-gradient(105deg,#ad150e,#c4291a);color:#fff;border-color:#ad150e}
.public-home .public-benefits{margin-top:40px;font-size:17px;line-height:1.5;color:#2e2d2b}.public-home .public-benefits span{padding:0 30px;gap:12px;border-color:#b3483359}.public-home .public-benefits span:first-child{padding-left:8px}.public-home .public-benefits svg{width:24px;height:24px;color:#b12f1d}
.public-home .public-features{gap:26px;margin:0 0 14px}.public-home .public-features article{background:#fffdf84d;border-color:#e4dcd0;border-radius:20px;box-shadow:none}.public-home .public-feature-link{grid-template-columns:76px minmax(0,1fr) 14px;gap:24px;padding:22px 32px;min-height:142px}.public-home .public-feature-icon{width:76px;height:76px;background:#f5dfc67d;border-radius:36%;color:#b3331c}.public-home .public-feature-icon svg{width:40px;height:40px}.public-home .public-feature-arrow{font-size:32px;color:#ad2b1c}.public-home .public-features h2{font-size:26px!important;line-height:1.35!important;margin-bottom:9px!important;color:#292724}.public-home .public-features p{font-size:15px!important;line-height:1.8!important;color:#383633}
.public-home p.public-home-price{font-size:11px!important;color:#756f65;margin-bottom:22px!important}
@media(min-width:761px) and (max-width:1200px){.site-topbar nav,.public-home .site-topbar nav{gap:24px}.site-topbar nav a,.public-home .site-topbar nav a{font-size:14px}.site-topbar .public-brand{font-size:24px;gap:12px}.site-topbar .public-brand small{font-size:11px}.site-topbar .public-brand img{width:48px;height:48px}.public-home .public-hero{padding:44px 0 40px 8%}.public-home h1{font-size:50px!important}.public-home p.public-kicker{font-size:13px!important}.public-home p.public-subtitle{font-size:16px!important}.public-home .public-actions a{font-size:15px;padding:11px 25px;min-height:48px}.public-home .public-benefits{font-size:13px;margin-top:30px}.public-home .public-benefits span{padding:0 20px}.public-home .public-feature-link{grid-template-columns:52px minmax(0,1fr) 12px;gap:16px;padding:22px 20px}.public-home .public-feature-icon{width:52px;height:52px}.public-home .public-feature-icon svg{width:30px;height:30px}.public-home .public-features h2{font-size:21px!important}.public-home .public-features p{font-size:13px!important}}
@media(max-width:760px){:root{--topbar-height:112px}.public-site{width:100%;padding-left:18px;padding-right:18px}.site-topbar{padding:10px 18px!important}.site-topbar .public-brand{font-size:21px;gap:10px}.site-topbar .public-brand img{width:40px;height:40px}.site-topbar .public-brand small{font-size:10px}.site-topbar nav,.public-home .site-topbar nav{gap:6px}.site-topbar nav a,.public-home .site-topbar nav a{font-size:12px;padding:5px 0}.site-topbar nav a.account-link,.public-home .site-topbar nav a.account-link{padding:5px 11px}body.public-homepage{background-size:auto 760px;background-position:48% top}.public-home .public-hero{padding:30px 10px 28px;background:#fffaf580}.public-home p.public-kicker{font-size:10px!important;gap:9px;margin-bottom:18px!important}.public-home .public-kicker::before,.public-home .public-kicker::after{width:22px}.public-home h1{font-size:39px!important;line-height:1.22!important}.public-home p.public-subtitle{font-size:14px!important;margin-bottom:21px!important}.public-home .public-actions{gap:10px}.public-home .public-actions a{font-size:12px;min-height:43px;padding:9px 15px}.public-home .public-benefits{font-size:11px;margin-top:24px}.public-home .public-benefits span{padding:0 10px;gap:6px}.public-home .public-benefits span:first-child{padding-left:0}.public-home .public-benefits svg{width:16px;height:16px}.public-home .public-features{gap:12px}.public-home .public-feature-link{padding:20px 16px;grid-template-columns:44px minmax(0,1fr) 12px;gap:12px;min-height:125px}.public-home .public-feature-icon{width:44px;height:44px}.public-home .public-feature-icon svg{width:27px;height:27px}.public-home .public-features h2{font-size:18px!important;margin-bottom:7px!important}.public-home .public-features p{font-size:12px!important}.public-home p.public-home-price{font-size:10px!important}}
@media(min-width:1201px){.site-topbar nav,.public-home .site-topbar nav{gap:50px;margin-right:14px}.site-topbar nav a.account-link,.public-home .site-topbar nav a.account-link{padding-left:28px;padding-right:28px}.public-home .public-hero{padding-left:calc(15% - 2px);padding-bottom:72px}.public-home p.public-kicker{transform:translateX(-43px)}.public-home .public-kicker::before,.public-home .public-kicker::after{width:80px}.public-home p.public-subtitle{margin-bottom:22px!important}.public-home .public-actions a{min-width:256px}.public-home .public-actions a.primary{min-width:242px}.public-home .public-features article:first-child .public-feature-link{padding-left:42px;padding-right:42px}}
.public-home .public-feature-icon svg{fill:currentColor;stroke:#fff9f0}

/* Clean line icons and a soft transition matching the fixed top navigation. */
.public-home .public-feature-icon svg{fill:none;stroke:currentColor;stroke-width:1.8}
body.public-homepage{background-image:linear-gradient(180deg,#fffdf8 0px,#fffdf8 var(--topbar-height),#fffdf800 calc(var(--topbar-height) + 180px)),url('/assets/home-supplied-lossless.webp?v=1dd2bb9c26b205480daf');background-size:100% 100%,100% auto;background-position:center top,center top}
.public-home .site-topbar{background:#fffdf8;backdrop-filter:none;border-bottom-color:transparent!important}
.public-home .public-features{margin-bottom:58px}
@media(max-width:760px){body.public-homepage{background-size:100% 100%,auto 760px;background-position:center top,48% top}.public-home .public-features{margin-bottom:30px}}

/* Reference card icons: open book and three-layer stack. */
.public-home .public-feature-icon{position:relative;background:linear-gradient(145deg,#f8ece380,#f4dcca66);border-radius:30%;color:#b63a25}
.public-home .public-feature-icon::after{content:"";position:absolute;right:-13px;top:3px;bottom:3px;width:1px;background:#d6aa8d80}
.public-home .public-feature-icon svg{width:54px;height:54px;fill:none;stroke:currentColor;stroke-width:1.5}
@media(min-width:761px) and (max-width:1200px){.public-home .public-feature-icon svg{width:38px;height:38px}}
@media(max-width:760px){.public-home .public-feature-icon svg{width:32px;height:32px}.public-home .public-feature-icon::after{display:none}}

.login-page .tabbar.has-wechat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.login-page .tabbar.has-wechat button { padding-inline: 3px; }
.login-page .wechat-login .wechat-scan-start { width: 100%; min-height: 42px; }
.wechat-scan-status { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.wechat-scan-status:empty { display: none; }
.wechat-scan-code {
  display: grid;
  grid-template-columns: minmax(105px, 136px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.wechat-scan-code img {
  display: block;
  width: 100%;
  height: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.login-page .wechat-login .wechat-scan-status { text-align: center; }
.login-page .wechat-login .wechat-scan-code {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}
.login-page .wechat-login .wechat-scan-code img { max-width: 192px; }
.wechat-scan-code p { margin: 0 0 4px; font-size: 13px; }
.wechat-confirmation-code {
  display: block;
  margin: 4px 0;
  letter-spacing: .08em;
  font: 700 21px ui-monospace, monospace;
  color: var(--red);
}
.wechat-scan-code .muted { font-variant-numeric: tabular-nums; }

.account-avatar{width:40px;height:40px;flex:none;border-radius:50%;object-fit:cover;vertical-align:middle}

.site-footer {
  box-sizing: border-box;
  display: block;
  border-top: 1px solid #e6dfd5;
  margin: 0 auto;
  padding: 18px 0 22px;
  color: #66523e;
  font-size: 14px;
  line-height: 1.5;
}
.auth-page .site-footer {
  width: min(calc(100% - 36px), 1180px);
  padding: 18px 0 22px;
}
.site-footer-main,
.site-footer-main nav,
.site-footer-filings {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.site-footer-main { flex-direction: column; }
.site-footer-main nav { justify-content: center; }
.site-footer a {
  color: #a02116;
  overflow-wrap: anywhere;
}
.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}
.site-footer-filings {
  flex-direction: column;
  gap: 5px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e6dfd5;
  text-align: center;
  font-size: 13px;
}
.public-security-filing { display: inline-flex; align-items: center; gap: 5px; }
.public-security-filing img { flex: none; width: 16px; height: 16px; }
.site-footer-filings a { max-width: 100%; }
