@charset "UTF-8";

/* Publication refinements: warm paper, legible Chinese, one restrained action color. */
:root {
  --paper: #f8f7f4;
  --surface: #fdfcf9;
  --ink: #241d39;
  --navy: #21194b;
  --muted: #706978;
  --gold: #b49a69;
  --gold-text: #826c45;
  --sand: #eae4d8;
  --line: #e1dcd3;
  --header: 76px;
  --ease: cubic-bezier(.2,.7,.25,1);
}
html { scroll-padding-top: 145px; }
body { color: var(--ink); background: var(--paper); line-height: 1.7; -webkit-font-smoothing: antialiased; }
button, a { transition: color 180ms var(--ease), background-color 180ms var(--ease), transform 180ms var(--ease); }
button:active { transform: translateY(1px); }
button:focus-visible, a:focus-visible, input:focus-visible, img[role="button"]:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 4px; }
.eyebrow { color: var(--muted); font-size: 11px; letter-spacing: 1px; }
.site-header { padding: 0 clamp(24px,3vw,48px); gap: 24px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: none; }
.brand img { width: 132px; height: 44px; }
.header-divider { height: 24px; background: var(--line); }
.header-caption { color: var(--muted); font-size: 12px; letter-spacing: 1px; }
.edition { color: var(--gold-text); font-size: 12px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.header-login { min-height: 44px; padding: 0 0 0 24px; gap: 18px; border-left-color: var(--line); font-size: 13px; color: var(--ink); }
.header-login:hover { color: var(--gold-text); }
.user-menu { color: var(--ink); font-size: 13px; }
.user-menu button { color: var(--muted); border-left-color: var(--line); min-height: 44px; }
.reading-progress > div { transition: none; }
.app-layout { max-width: 1536px; grid-template-columns: 280px minmax(0,1fr); }
.sidebar { height: calc(100dvh - var(--header)); padding: 40px 30px 28px 36px; background: var(--paper); border-right-color: var(--line); }
.sidebar-heading .eyebrow { color: var(--gold-text); font-size: 11px; letter-spacing: 1px; }
.issue-number { font-size: 58px; line-height: 1.15; letter-spacing: -2px; color: var(--ink); margin: 12px 0 14px; }
.issue-number > span { display: block; margin-top: 7px; color: var(--muted); font: 11px/1.5 "PingFang SC","Microsoft YaHei",sans-serif; letter-spacing: 1px; }
.sidebar h1 { font-size: 23px; line-height: 1.7; letter-spacing: .4px; margin: 6px 0 12px; }
.sidebar h1 span { font-size: 21px; }
.sidebar-intro { margin: 0; font-size: 12px; color: var(--muted); }
.sidebar-rule { background: var(--line); margin: 26px 0 22px; }
.nav-heading { font-size: 13px; }
.access-badge { padding: 0; background: none; font-size: 11px; color: var(--gold-text); }
.page-nav { max-height: 260px; scrollbar-color: #cdc4b7 transparent; }
.page-nav button { min-height: 43px; padding: 9px 11px; border-left: 2px solid transparent; border-radius: 0; color: var(--muted); font-size: 12px; }
.page-nav button:hover { color: var(--ink); background: #efece5; }
.page-nav button.active { color: var(--ink); background: var(--sand); border-left-color: var(--gold); font-weight: 500; }
.page-nav .nav-number { font-size: 12px; font-variant-numeric: tabular-nums; }
.nav-unlock { min-height: 48px; font-size: 12px; color: var(--ink); margin-top: 18px; border-top-color: var(--line); }
.sidebar-bottom { color: var(--muted); padding-top: 20px; }
.sidebar-bottom p { color: inherit; font-size: 11px; letter-spacing: 0; }
.sidebar-bottom span { color: inherit; font-size: 10px; letter-spacing: 0; }
.reader-main { padding: 36px clamp(28px,5.1vw,88px) 32px; }
.reader-heading { align-items: end; max-width: 740px; margin-bottom: 22px; }
.reader-heading .eyebrow { margin-bottom: 8px; color: var(--gold-text); font-size: 11px; letter-spacing: 1px; }
.reader-heading h2 { color: var(--ink); font-size: 21px; line-height: 1.55; letter-spacing: .4px; }
.free-label { font-size: 12px; color: var(--muted); padding-bottom: 3px; }
.free-label::before { display: none; }
.reader-toolbar { top: calc(var(--header) + 2px); max-width: 740px; min-height: 48px; height: auto; padding: 0 14px; margin-bottom: 18px; border: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--muted); font-size: 12px; }
.page-control { color: var(--muted); gap: 6px; white-space: nowrap; }
.page-control input { min-height: 40px; width: 35px; padding: 1px 0; border: 0; border-radius: 0; font: 18px/1.5 Georgia,"Times New Roman",serif; color: var(--ink); font-variant-numeric: tabular-nums; }
.zoom-hint { letter-spacing: 0; }
.icon-button { min-height: 44px; min-width: 44px; padding: 10px; }
.icon-button:hover { color: var(--gold-text); background: #eae4d866; }
.reader-toolbar .icon-button { color: var(--muted); margin: 0 -8px 0 9px; }
.reader-toolbar .icon { width: 17px; height: 17px; }
.pages { max-width: 740px; }
.paper-page { scroll-margin-top: 145px; margin-bottom: 26px; }
.paper-surface { background: var(--surface); box-shadow: 0 3px 16px #382a4110; }
.paper-page img { transition: opacity 200ms var(--ease); }
.page-placeholder, .page-error { color: var(--muted); background: var(--surface); font-size: 13px; }
.page-error button, .status-panel button { min-height: 44px; border-color: var(--line); }
.page-caption { color: var(--muted); font-size: 10px; letter-spacing: .5px; }
.page-caption span:first-child { font-variant-numeric: tabular-nums; }
.status-panel { max-width: 740px; background: transparent; color: var(--muted); }
.status-panel p { font-size: 13px; }
.loader { border-color: var(--sand); border-top-color: var(--gold); }

/* The preview ending reads as the next paragraph of the publication. */
.reading-gate { max-width: 740px; margin: 36px auto 0; padding: 24px 0 10px; border: 0; border-top: 1px solid var(--gold); text-align: left; background: transparent; }
.gate-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.gate-kicker { color: var(--gold-text); font-size: 12px; letter-spacing: 0; }
.gate-mark { color: var(--muted); font: 15px/1.5 Georgia,"Times New Roman",serif; font-variant-numeric: tabular-nums; }
.reading-gate h2 { font-size: 25px; line-height: 1.5; letter-spacing: .4px; margin: 14px 0 10px; }
.reading-gate p { margin: 0; max-width: 40em; color: var(--muted); font-size: 14px; line-height: 1.9; }
.primary-button { min-height: 50px; padding: 12px 20px; justify-content: space-between; gap: 20px; background: var(--navy); border-color: var(--navy); color: var(--surface); border-radius: 3px; font-size: 14px; font-weight: 500; letter-spacing: .4px; }
.primary-button:hover { background: #382c62; }
.gate-button { width: 100%; min-width: 0; margin: 24px 0 10px; }
.reading-gate .gate-register { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.text-button { min-height: 44px; padding: 8px 0 8px 16px; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.reading-end { max-width: 740px; font-size: 13px; color: var(--muted); }
.reading-end span { background: var(--line); }
.reader-footer { max-width: 740px; align-items: center; gap: 16px; margin: 28px auto 6px; border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); font-size: 11px; letter-spacing: 0; }
.reader-footer a { display: flex; align-items: center; min-height: 44px; }

/* A dedicated contact gutter replaces the floating bubble over the report. */
.floating-tools { right: 24px; bottom: 24px; gap: 8px; }
.dock-caption { display: none; }
.contact-button { min-height: 46px; width: auto; padding: 10px 15px; gap: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; box-shadow: none; color: var(--ink); font-size: 13px; }
.contact-button > span { display: inline; }
.contact-button:hover { background: var(--sand); }
.contact-button[aria-expanded=true] { color: var(--ink); background: var(--sand); border-color: var(--gold); }
.top-button { width: 44px; height: 44px; background: var(--surface); border-color: var(--line); color: var(--muted); }
.contact-panel { bottom: 108px; width: 360px; padding: 22px 22px 16px; border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 4px; background: var(--surface); box-shadow: 0 12px 48px #241d391a; animation: surface-in 200ms var(--ease); }
.contact-panel::after { display: none; }
.contact-panel-heading { align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.contact-panel-heading .eyebrow { font-size: 10px; color: var(--gold-text); letter-spacing: 1.2px; }
.contact-panel-heading h2 { font-size: 23px; line-height: 1.4; margin-top: 5px; }
.contact-panel-heading .icon-button { margin: -6px -8px 0 0; }
.contact-panel-heading .icon { color: var(--muted); width: 18px; height: 18px; }
.contact-row { display: grid; grid-template-columns: 44px minmax(0,1fr) 18px; align-items: center; width: 100%; min-height: 60px; gap: 10px; padding: 14px 0; border-top-color: var(--line); font-size: 13px; }
.contact-row:hover { color: var(--gold-text); }
.contact-label { width: auto; color: var(--muted); font-size: 12px; }
.contact-value { overflow-wrap: anywhere; }
.contact-row > .icon { width: 16px; height: 16px; color: var(--gold-text); margin: 0; }
.contact-tip { margin: 9px 0 0; color: var(--muted); font-size: 11px; }

/* Reader accounts use the same light masthead and numbered editorial sections. */
.auth-dialog { position: relative; width: 500px; max-width: calc(100vw - 40px); max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 100px #241d392e; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cfc6b8 transparent; }
.auth-dialog[open] { animation: surface-in 200ms var(--ease); }
.auth-dialog::backdrop, .zoom-dialog::backdrop { background: #241d3966; backdrop-filter: none; }
.dialog-close { top: 12px; right: 12px; color: var(--muted); border-radius: 3px; background: none; }
.dialog-close:hover { background: var(--sand); }
.auth-header { padding: 27px 32px 24px; border-bottom: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.auth-masthead { display: flex; align-items: center; gap: 16px; margin-bottom: 23px; padding-right: 30px; }
.auth-brand { margin: 0; }
.auth-brand img { width: 112px; height: 37px; }
.auth-masthead > span { padding-left: 14px; border-left: 1px solid var(--line); color: var(--muted); font-size: 11px; white-space: nowrap; }
.auth-header h2 { margin: 0 0 7px; color: var(--ink); font-size: 27px; line-height: 1.45; letter-spacing: .5px; }
.auth-description { margin: 0; color: var(--muted); font-size: 13px; }
.auth-body { padding: 22px 32px 24px; }
.auth-tabs { justify-content: flex-start; gap: 28px; margin: 0 0 24px; border-bottom-color: var(--line); }
.auth-tabs button { position: relative; flex: 0 1 auto; min-height: 44px; padding: 0 0 12px; border: 0; margin-bottom: 0; color: var(--muted); font-size: 13px; text-align: left; }
.auth-tabs button::after { position: absolute; inset: auto 0 -1px; content: ""; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 180ms var(--ease); }
.auth-tabs button.active { color: var(--ink); font-weight: 500; }
.auth-tabs button.active::after { transform: scaleX(1); }
.field { min-width: 0; margin-bottom: 18px; }
.field label { color: var(--ink); font-size: 13px; margin-bottom: 7px; }
.field input { min-width: 0; min-height: 48px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); font-size: 14px; }
.field input::placeholder { color: var(--muted); font-size: 13px; }
.field input:focus { background: var(--surface); border-color: var(--gold-text); outline: 2px solid #b49a6929; outline-offset: 1px; box-shadow: none; }
.field input[type=password], .field input[data-password] { padding-right: 48px; }
.field input[aria-invalid=true] { border-color: #a23f35; }
.field .password-toggle { display: flex; align-items: center; justify-content: center; right: 2px; top: 2px; width: 44px; height: 44px; padding: 10px; color: var(--muted); }
.password-toggle .icon { width: 18px; height: 18px; }
.field-error { color: #a23f35; font-size: 12px; line-height: 1.6; }
.field-error:empty { display: none; }
.form-section { min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
.form-section legend { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 14px; padding: 0 0 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 500; }
.form-section legend > span { color: var(--gold-text); font: 14px/1.5 Georgia,"Times New Roman",serif; font-variant-numeric: tabular-nums; }
.form-section .field:last-child { margin-bottom: 0; }
.form-section-fields { min-width: 0; }
@media (min-width: 761px) {
  .is-register .form-section-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 14px; row-gap: 14px; }
  .is-register .form-section .field { margin-bottom: 0; }
  .is-register .form-section:nth-child(2) .field:last-child { grid-column: 1 / -1; }
}
.is-register .auth-header { padding-bottom: 20px; }
.is-register .auth-masthead { margin-bottom: 17px; }
.is-register .auth-body { padding-top: 14px; }
.is-register .auth-tabs { margin-bottom: 20px; }
.form-error { margin: 0 0 14px; color: #a23f35; font-size: 13px; }
.consent { align-items: center; gap: 9px; min-height: 44px; margin: 4px 0 15px; color: var(--muted); font-size: 12px; }
.consent input { width: 17px; height: 17px; margin: 0; accent-color: var(--navy); }
.consent a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.auth-submit { border-radius: 3px; font-size: 14px; min-height: 50px; }
.wechat-note { margin-top: 14px; padding: 0 0 12px; border-bottom-color: var(--line); color: var(--muted); font-size: 12px; }
.wechat-note > button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; margin: 0; padding: 6px 0; color: var(--muted); text-align: left; font-size: 13px; }
.wechat-note > button span { color: var(--gold-text); }
.wechat-note p { margin: 3px 0 9px; padding: 12px 14px; border-left: 1px solid var(--gold); border-radius: 0; background: var(--paper); color: var(--muted); line-height: 1.8; }
.auth-switch { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.auth-switch button { min-height: 44px; padding: 6px; color: var(--navy); }
.zoom-dialog { background: var(--paper); padding-top: 48px; padding-bottom: 38px; }
.zoom-close { right: 9px; top: 4px; color: var(--ink); }
.zoom-dialog > p { color: var(--muted); font-size: 12px; }
.toast { background: var(--ink); color: var(--surface); font-size: 13px; width: max-content; overflow-wrap: anywhere; animation: toast-in 180ms var(--ease); }
@keyframes surface-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%,6px); } to { opacity: 1; transform: translate(-50%,0); } }

@media (max-width: 1220px) {
  .app-layout { grid-template-columns: 244px minmax(0,1fr); }
  .sidebar { padding-left: 28px; padding-right: 24px; }
  .sidebar h1 { font-size: 21px; }
  .sidebar h1 span { font-size: 19px; }
  .reader-main { padding-right: 36px; padding-left: 36px; }
  .reader-heading { display: block; }
  .free-label { display: block; margin-top: 9px; }
}
@media (min-width: 761px) and (max-width: 1400px) {
  .floating-tools { right: auto; left: 36px; align-items: flex-start; flex-direction: row; }
  .contact-panel { right: auto; left: 0; bottom: 62px; }
  .sidebar-bottom { padding-bottom: 74px; }
}
@media (max-width: 760px) {
  :root { --header: 65px; }
  html { scroll-padding-top: 125px; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .site-header { padding: 0 20px; gap: 12px; }
  .brand img { width: 119px; height: 40px; }
  .header-login { min-height: 44px; padding: 0; gap: 12px; font-size: 13px; border: 0; }
  .user-menu { font-size: 12px; }
  .user-menu > span { max-width: 112px; }
  .app-layout { display: block; }
  .reader-main { padding: 25px 20px 14px; }
  .reader-heading { margin-bottom: 19px; }
  .reader-heading .eyebrow { font-size: 10px; letter-spacing: .7px; margin-bottom: 9px; }
  .reader-heading h2 { font-size: 21px; line-height: 1.5; letter-spacing: .1px; }
  .free-label { font-size: 12px; margin-top: 9px; padding: 0; }
  .reader-toolbar { min-height: 48px; height: auto; padding: 0 9px 0 2px; margin-bottom: 16px; }
  .page-control { gap: 4px; font-size: 12px; }
  .page-control input { width: 32px; min-height: 44px; font-size: 18px; }
  .zoom-hint { font-size: 11px; }
  .reader-toolbar .icon-button { margin-left: 5px; padding: 10px; }
  .paper-page { margin-bottom: 23px; scroll-margin-top: 125px; }
  .page-caption, .page-caption span:last-child { font-size: 10px; padding-top: 0; letter-spacing: .5px; }
  .page-caption { padding-top: 8px; }
  .paper-surface { box-shadow: 0 2px 12px #382a410c; }
  .reading-gate { margin-top: 30px; padding: 22px 0 4px; background: transparent; }
  .reading-gate h2 { font-size: 25px; margin: 13px 0 12px; }
  .reading-gate > p { font-size: 14px; line-height: 1.85; max-width: 40em; margin: 0; }
  .gate-kicker { font-size: 12px; letter-spacing: 0; }
  .gate-button { min-height: 52px; margin-top: 23px; }
  .reading-gate .gate-register { font-size: 13px; }
  .reader-footer { font-size: 10px; margin: 20px auto 6px; padding-top: 10px; }
  .floating-tools { inset: auto 0 0; display: flex; flex-direction: row; align-items: center; gap: 0; min-height: calc(66px + env(safe-area-inset-bottom)); padding: 9px 16px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
  .dock-caption { display: block; flex: 1; font-size: 10px; letter-spacing: .2px; color: var(--muted); }
  .contact-button { width: auto; min-height: 44px; padding: 0 12px; border: 0; border-radius: 3px; background: transparent; font-size: 13px; gap: 7px; }
  .contact-button .icon { width: 17px; height: 17px; }
  .contact-button[aria-expanded=true] { background: var(--sand); }
  .top-button { width: 44px; height: 44px; margin-left: 8px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; }
  .contact-panel { position: absolute; right: 16px; left: auto; bottom: calc(100% + 10px); width: min(360px,calc(100vw - 32px)); max-height: calc(100dvh - 100px - env(safe-area-inset-bottom)); overflow: auto; padding: 22px 20px 17px; }
  .contact-row { min-height: 62px; grid-template-columns: 43px minmax(0,1fr) 17px; gap: 8px; font-size: 13px; }
  .contact-label { font-size: 12px; }
  .contact-tip { font-size: 12px; }
  .auth-dialog { position: fixed; inset: auto 0 0; width: 100%; max-width: 100vw; max-height: calc(100dvh - 20px); margin: 0; padding: 0; border: 0; border-radius: 12px 12px 0 0; }
  .auth-dialog[open] { animation-duration: 220ms; }
  .auth-header { padding: 28px 24px 21px; }
  .auth-sheet-handle { width: 36px; height: 3px; left: calc(50% - 18px); background: #c5bcae; }
  .dialog-close { top: 15px; right: 11px; width: 44px; height: 44px; }
  .auth-masthead { gap: 12px; margin-bottom: 21px; padding-right: 25px; }
  .auth-brand img { width: 104px; height: 35px; }
  .auth-masthead > span { font-size: 10px; padding-left: 11px; }
  .auth-header h2 { font-size: 27px; }
  .auth-description { font-size: 13px; }
  .auth-body { padding: 17px 24px calc(18px + env(safe-area-inset-bottom)); }
  .auth-tabs { gap: 28px; margin-bottom: 22px; }
  .auth-tabs button { font-size: 14px; }
  .field { margin-bottom: 18px; }
  .field label { font-size: 14px; margin-bottom: 7px; }
  .field input { min-height: 49px; font-size: 16px; padding-left: 13px; border-radius: 4px; }
  .field input::placeholder { font-size: 14px; }
  .field .password-toggle { top: 3px; right: 2px; }
  .consent { font-size: 12px; }
  .auth-submit { min-height: 52px; }
  .auth-switch { font-size: 13px; }
  .is-register .auth-header { padding-bottom: 18px; }
  .is-register .auth-masthead { margin-bottom: 13px; }
  .is-register .auth-header h2 { font-size: 25px; }
  .is-register .auth-body { padding-top: 12px; }
  .is-register .auth-tabs { margin-bottom: 18px; }
  .form-section { margin-bottom: 23px; }
  .form-section legend { font-size: 13px; margin-bottom: 13px; }
  .zoom-dialog { padding-top: 48px; padding-bottom: 37px; }
  .zoom-dialog > p { font-size: 11px; }
  .toast { bottom: calc(82px + env(safe-area-inset-bottom)); font-size: 13px; }
}
@media (max-width: 350px) {
  .site-header { padding-right: 16px; padding-left: 16px; }
  .reader-main { padding-right: 16px; padding-left: 16px; }
  .reader-heading h2 { font-size: 19px; }
  .zoom-hint { font-size: 10px; }
  .reader-toolbar .icon-button { margin-left: 1px; }
  .dock-caption { font-size: 9px; }
  .floating-tools { padding-right: 10px; padding-left: 14px; }
  .contact-button { padding-right: 8px; padding-left: 8px; font-size: 12px; }
  .top-button { margin-left: 4px; }
  .contact-row { grid-template-columns: 39px minmax(0,1fr) 16px; gap: 6px; font-size: 12px; }
  .auth-header, .auth-body { padding-right: 20px; padding-left: 20px; }
  .auth-masthead > span { font-size: 9px; }
  .auth-tabs { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
