@font-face { font-family: Manrope; src: url('assets/fonts/Manrope-variable.ttf') format('truetype'); font-weight: 200 800; font-display: swap; }

/* 信息页沿用首页的石灰、窗光与纸面语言：登录、政策与联系入口不再另起一套视觉。 */
:root {
  --paper: #e7e5df;
  --ink: #302a23;
  --muted: #625c53;
  --line: #c8c4ba;
  --accent: #765336;
  --ease: cubic-bezier(.16,1,.3,1);
  --page: clamp(24px,4vw,80px);
  --header-height: 88px;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-family: Manrope,sans-serif; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url('assets/home-stone/window-light-generated-v2.webp') center / cover no-repeat; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
h1,h2,h3,p,figure { margin: 0; }
a,button { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; cursor: pointer; }
a:focus-visible,button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: #fff; }

.info-header { position: relative; z-index: 2; height: var(--header-height); padding: 0 var(--page); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #f7f6f1; border-bottom: 1px solid var(--line); }
.info-brand { font: 39px/1 Georgia,serif; letter-spacing: -.035em; color: var(--ink); text-decoration: none; }
.info-nav { display: flex; align-items: center; gap: 24px; }
.info-nav a { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--ink); text-decoration: none; }
.info-nav a:hover,.info-nav a:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* 页面返回归属内容区，不挤占品牌导航；登录双栏共享独立首行。 */
.login-paper > .page-return-row { grid-column: 1 / -1; margin-bottom: 0; }
.login-main .login-paper { row-gap: 24px; }
.policy-paper { scroll-margin-top: calc(var(--header-height) + 24px); }

.info-main { flex: 1; width: min(calc(100% - var(--page)*2),1240px); margin: 0 auto; padding: 24px 0 80px; }
.info-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.info-lede { margin-top: 18px; max-width: 36ch; font-size: 14px; line-height: 1.9; color: var(--muted); }

/* 登录：左侧品牌说明，右侧白色纸面表单；表单列固定 396px，控件统一 6px 圆角。 */
.login-main { display: flex; align-items: center; justify-content: center; }
.login-paper { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(40px,6vw,96px); align-items: center; padding: clamp(32px,4vw,64px); background: #fff; box-shadow: 8px 16px 32px #302a2314; }
.login-aside h1 { margin-top: 0; font: 400 clamp(40px,4.4vw,64px)/1.02 Georgia,serif; letter-spacing: -.04em; }
.login-aside .info-lede { max-width: 30ch; }
.login-figure { display: flex; justify-content: center; margin-top: 34px; }
.login-figure img { height: clamp(190px,28vh,290px); width: auto; filter: drop-shadow(8px 16px 14px #51493f22); }
.login-form-column { width: 100%; max-width: 396px; }
.login-form-column h2 { margin-top: 0; font: 400 clamp(32px,3.2vw,44px)/1.05 Georgia,serif; letter-spacing: -.035em; }
.login-sub { margin-top: 12px; font-size: 13px; line-height: 1.7; color: var(--muted); }
#account-form { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 11px; line-height: 1.4; color: var(--ink); }
.field input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 12px 14px; color: var(--ink); font: 14px/1.5 Manrope,sans-serif; }
.field input::placeholder { color: #6f675d; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #73533626; }
.code-input-row { position: relative; }
.code-input-row input { padding-right: 132px; }
.code-resend { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); min-height: 34px; max-width: 124px; border: 0; padding: 7px 8px; background: transparent; color: var(--ink); font: 600 11px/1.2 Manrope,sans-serif; text-align: right; white-space: nowrap; }
.code-resend:hover,.code-resend:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.code-resend:disabled { color: var(--muted); cursor: wait; text-decoration: none; }
.field-help { margin: 0; font-size: 11px; line-height: 1.5; color: var(--muted); }

/* 密码行：标签与“忘记密码”同一行，输入框内右端一个眼睛图标。 */
.field-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-head > label { font-size: 11px; line-height: 1.4; color: var(--ink); }
.field-link { flex: 0 0 auto; margin-left: auto; border: 0; padding: 0; background: none; color: var(--muted); font: 400 12px/1.4 Manrope,sans-serif; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.field-link:hover,.field-link:focus-visible { color: var(--ink); }
.password-field { position: relative; display: flex; }
.login-page .password-field input { padding-right: 46px; }
.login-page .password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; border: 0; padding: 0; background: none; color: var(--muted); }
.login-page .password-toggle:hover { color: var(--ink); text-decoration: none; }
.login-page .password-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.login-page .password-toggle .eye-slash { display: none; }
.login-page .password-toggle[aria-pressed="true"] .eye-slash { display: inline; }

.login-foot { display: grid; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.login-note:empty { display: none; }
.login-legal { font-size: 12px; line-height: 1.7; color: var(--muted); }
.login-legal a { color: var(--muted); text-underline-offset: 3px; }
.login-legal a:hover,.login-legal a:focus-visible { color: var(--ink); }
.info-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px; border: 1px solid var(--ink); border-radius: 6px; background: var(--ink); color: #fffefa; padding: 14px 18px; font: 600 12px/1 Manrope,sans-serif; text-align: center; }
.info-button:hover { background: #66503c; }
.form-status { font-size: 12px; line-height: 1.7; color: var(--accent); }
.form-status:empty { display: none; }
.login-switch { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 18px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.login-switch button { border: 0; padding: 0; background: none; color: var(--ink); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.login-switch button:hover { color: var(--accent); }
.login-demo { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.7; color: var(--muted); }

/* 政策：左侧锚点导航，右侧白色纸面。 */
.policy-shell { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: clamp(32px,5vw,72px); align-items: start; }
.policy-nav { position: sticky; top: calc(var(--header-height) + 24px); display: flex; flex-direction: column; gap: 11px; padding-top: 12px; }
.policy-nav a { font-size: 13px; line-height: 1.4; color: var(--ink); text-decoration: none; }
.policy-nav a:hover,.policy-nav a:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
/* 当前栏目沿用原有文字与下划线样式，不以新增颜色或装饰表示选中。 */
.policy-nav a[aria-current="location"] { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.policy-paper { background: #fff; padding: clamp(32px,4vw,64px); box-shadow: 8px 16px 32px #302a2314; }
.policy-paper h1 { margin-top: 14px; font: 400 clamp(48px,5vw,72px)/1 Georgia,serif; letter-spacing: -.04em; }
.policy-lede { max-width: 64ch; margin-top: 20px; font-size: 15px; line-height: 1.85; color: var(--muted); }
.policy-updated { margin-top: 18px; font-size: 11px; color: var(--muted); }
.policy-paper section { margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-height) + 24px); }
/* 独立栏目没有前置介绍，不再保留用于分隔长文章节的顶部空白与横线。 */
.policy-paper[data-section-view] section { margin-top: 0; padding-top: 0; border-top: 0; }
.policy-paper h2 { font: 400 28px/1.15 Georgia,serif; letter-spacing: -.02em; }
.policy-paper p,.policy-paper li { max-width: 68ch; margin-top: 12px; font-size: 14px; line-height: 1.85; color: var(--muted); }
.policy-paper strong { color: var(--ink); font-weight: 600; }
.policy-paper a { color: var(--ink); text-underline-offset: 3px; }
.policy-paper ul { margin: 12px 0 0; padding-left: 18px; }
.policy-paper li + li { margin-top: 6px; }
.policy-action { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 11px 14px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 12px; }
.policy-action:hover { background: var(--ink); color: #fffefa; }

.info-footer { margin: 0; padding: 28px var(--page) 80px; border-top: 1px solid var(--line); background: #f7f6f1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.info-footer-brand { font: 25px/1 Georgia,serif; letter-spacing: -.04em; color: var(--ink); }
.info-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.info-footer a,.info-footer button { border: 0; padding: 0; background: none; color: var(--ink); font: 500 12px/1.5 Manrope,sans-serif; text-decoration: none; }
.info-footer a:hover,.info-footer button:hover,.info-footer a:focus-visible,.info-footer button:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.info-footer p { margin: 0; }

@media (max-width: 900px) {
  .login-paper { grid-template-columns: 1fr; gap: 32px; }
  .login-figure { display: none; }
  .login-main { align-items: flex-start; }
  .policy-shell { grid-template-columns: 1fr; gap: 18px; }
  .policy-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px 18px; padding-top: 0; }
}
@media (max-width: 700px) {
  :root { --header-height: 64px; --page: 20px; }
  .info-brand { font-size: 30px; }
  .info-nav { gap: 12px; }
  .info-nav a { font-size: 12px; }
  .info-nav a:first-child { display: none; }
  .info-main { padding: 8px 0 48px; }
  .login-paper { padding: 28px 22px; }
  /* 手机登录优先呈现表单；品牌介绍保留在桌面，避免把主要操作推到首屏之外。 */
  .login-aside { display: none; }
  .login-main .login-paper { row-gap: 16px; padding: 20px 18px; }
  .login-form-column h2 { font-size: 32px; }
  .login-page .field input { font-size: 16px; min-height: 48px; }
  .login-page .password-toggle { width: 44px; height: 44px; }
  .login-page .field-link,.login-switch button,.login-switch a { min-height: 44px; display: inline-flex; align-items: center; }
  .login-page .code-resend { min-height: 44px; }
  .policy-paper { padding: 28px 22px; }
  .policy-paper h1 { font-size: 44px; }
  .policy-paper section { margin-top: 32px; padding-top: 22px; }
  .info-footer { flex-direction: column; align-items: flex-start; padding: 24px var(--page) 68px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
