@font-face { font-family: "Material Symbols Rounded"; src: url("assets/material-symbols-rounded.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: block; }
:root {
  --pine-950: #0a2f27;
  --pine-900: #103d32;
  --pine-800: #185344;
  --pine-100: #dce9e1;
  --ivory: #f5f0e6;
  --paper: #fffdf8;
  --surface: #ffffff;
  --ink: #18251f;
  --muted: #6f766f;
  --line: #e3ddd1;
  --gold: #b98545;
  --gold-soft: #f2e6d4;
  --danger: #a94e3b;
  --success: #2f785d;
  --shadow: 0 18px 50px rgba(38, 45, 38, 0.08);
  font-family: "DM Sans", "Microsoft YaHei UI", sans-serif;
  color: var(--ink);
  background: var(--ivory);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--ivory); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
[hidden] { display: none !important; }
.material-symbols-rounded { display: inline-block; overflow: hidden; font-family: "Material Symbols Rounded"; font-size: 21px; font-weight: 400; font-style: normal; font-feature-settings: "liga"; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; word-wrap: normal; direction: ltr; }

.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(460px, 1.15fr) minmax(440px, .85fr); }
.auth-story { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px 64px; color: #f7f1e7; background: var(--pine-950); }
.auth-story::after { content: ""; position: absolute; width: 520px; height: 520px; right: -230px; bottom: -250px; border: 1px solid rgba(224, 194, 145, .28); border-radius: 50%; box-shadow: 0 0 0 74px rgba(224, 194, 145, .04), 0 0 0 148px rgba(224, 194, 145, .025); }
.auth-copy { position: relative; z-index: 1; max-width: 660px; }
.auth-copy h1 { margin: 18px 0 22px; font: 700 clamp(44px, 5vw, 72px)/1.18 "Noto Serif SC", serif; letter-spacing: -.04em; }
.auth-copy p { max-width: 580px; margin: 0; color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.9; }
.trust-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 26px; color: rgba(255,255,255,.78); font-size: 13px; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row i { color: #d7b479; font-style: normal; }
.auth-form-wrap { display: grid; place-items: center; padding: 48px; background: var(--paper); }
.auth-form { width: min(100%, 420px); display: grid; gap: 16px; }
.auth-form h2 { margin: 3px 0 0; font: 700 34px/1.25 "Noto Serif SC", serif; }
.auth-form > p:not(.form-message) { margin: 0 0 12px; color: var(--muted); line-height: 1.7; }
.auth-form label { display: grid; gap: 8px; }
.auth-form label span { color: #4f5953; font-size: 13px; font-weight: 700; }
.auth-form input, .admin-toolbar input { width: 100%; min-height: 48px; padding: 0 15px; border: 1px solid var(--line); border-radius: 8px; outline: none; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.auth-form input:focus, .admin-toolbar input:focus { border-color: var(--pine-800); box-shadow: 0 0 0 3px rgba(24,83,68,.1); }
.form-message { min-height: 20px; margin: -2px 0; color: var(--danger); font-size: 13px; }
.form-message.success { color: var(--success); }
.text-link { display: inline-flex; justify-content: center; align-items: center; gap: 7px; margin-top: 4px; color: var(--pine-800); font-size: 13px; font-weight: 700; text-decoration: none; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-light { color: #fff; }
.brand-icon { display: grid; place-items: center; width: 45px; height: 45px; border: 1px solid currentColor; border-radius: 50%; color: var(--gold); font-size: 25px; }
.brand > span:last-child { display: grid; gap: 2px; }
.brand strong { font: 700 18px/1.3 "Noto Serif SC", serif; letter-spacing: .04em; }
.brand small { color: var(--muted); font-size: 10px; letter-spacing: .16em; }
.brand-light small { color: rgba(255,255,255,.6); }
.kicker { color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .18em; }

.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid transparent; border-radius: 6px; color: var(--ink); font-weight: 700; text-decoration: none; transition: transform .18s, background .18s, box-shadow .18s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button.primary { color: #fff; background: var(--pine-800); box-shadow: 0 10px 24px rgba(16,61,50,.16); }
.button.primary:hover:not(:disabled) { background: var(--pine-900); }
.button.secondary { border-color: var(--line); background: #fff; }
.button.light { min-width: 120px; color: var(--pine-950); background: #fffaf0; }
.button.full { width: 100%; }

.portal { min-height: 100vh; background: #f7f3eb; }
.topbar { position: sticky; top: 0; z-index: 20; height: 78px; display: grid; grid-template-columns: 290px 1fr 230px; align-items: center; gap: 24px; padding: 0 38px; border-bottom: 1px solid rgba(16,61,50,.1); background: rgba(255,253,248,.96); backdrop-filter: blur(16px); }
.topnav { height: 100%; display: flex; align-items: center; justify-content: center; gap: 4px; }
.nav-link { height: 100%; position: relative; padding: 0 18px; color: #59635d; background: transparent; font-size: 14px; font-weight: 700; }
.nav-link::after { content: ""; position: absolute; right: 18px; bottom: 0; left: 18px; height: 2px; background: transparent; }
.nav-link.active { color: var(--pine-900); }
.nav-link.active::after { background: var(--gold); }
.account-menu { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; min-width: 0; padding: 7px 9px; border-radius: 8px; color: var(--ink); background: transparent; text-align: left; }
.account-menu:hover { background: #f1ece3; }
.account-menu img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.account-menu > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.account-menu strong, .account-menu small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu strong { font-size: 13px; }
.account-menu small { color: var(--muted); font-size: 10px; }

.portal-body { max-width: 1500px; min-height: calc(100vh - 78px); margin: 0 auto; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.sidebar { min-height: calc(100vh - 78px); display: flex; flex-direction: column; padding: 30px 20px; border-right: 1px solid var(--line); background: #fffdf8; }
.profile-card { display: grid; justify-items: center; padding: 5px 10px 28px; border-bottom: 1px solid var(--line); }
.profile-card img { width: 84px; height: 84px; border: 5px solid #eee7da; border-radius: 50%; object-fit: cover; }
.profile-card strong { margin-top: 13px; font: 700 17px "Noto Serif SC", serif; }
.membership-tag { margin-top: 7px; padding: 4px 9px; border: 1px solid #d9c7aa; border-radius: 999px; color: #7a5b30; background: #f8efe1; font-size: 10px; font-weight: 700; }
.membership-tag.active { border-color: #c5a66f; color: #fff; background: var(--gold); }
.side-nav { display: grid; gap: 5px; padding: 20px 0; }
.side-link { display: flex; align-items: center; gap: 13px; min-height: 45px; padding: 0 14px; border-radius: 6px; color: #535d57; background: transparent; font-size: 13px; font-weight: 700; text-align: left; }
.side-link:hover { background: #f2eee6; }
.side-link.active { color: #fff; background: var(--pine-900); }
.side-link .material-symbols-rounded { font-size: 19px; }
.logout-button { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 13px 14px; border-top: 1px solid var(--line); color: #6a716c; background: transparent; font-size: 13px; font-weight: 700; }

.content { min-width: 0; padding: 42px 46px 60px; }
.page-section { display: none; animation: reveal .28s ease both; }
.page-section.active { display: block; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.welcome-row, .page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 26px; }
.welcome-row h1, .page-heading h1 { margin: 8px 0 5px; font: 700 clamp(28px, 3vw, 38px)/1.25 "Noto Serif SC", serif; }
.welcome-row p, .page-heading p { margin: 0; color: var(--muted); }
.secure-badge { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid #cbded2; border-radius: 999px; color: var(--success); background: #eff6f1; font-size: 11px; font-weight: 700; }
.secure-badge .material-symbols-rounded { font-size: 17px; }

.membership-hero { display: grid; grid-template-columns: auto minmax(260px, 1fr) auto auto; align-items: center; gap: 24px; padding: 27px 30px; color: #fff; background: var(--pine-900); box-shadow: var(--shadow); }
.membership-hero.inactive { background: linear-gradient(115deg, #163c33, #224c40); }
.membership-hero.active { background: linear-gradient(115deg, #113b30, #1c5947); }
.hero-symbol { width: 62px; height: 62px; display: grid; place-items: center; border: 1px solid rgba(235,208,161,.5); border-radius: 50%; color: #e3bd7d; background: rgba(255,255,255,.06); }
.hero-symbol .material-symbols-rounded { font-size: 33px; }
.hero-copy span, .hero-meta span { color: rgba(255,255,255,.6); font-size: 11px; }
.hero-copy h2 { margin: 5px 0 4px; font: 700 24px "Noto Serif SC", serif; }
.hero-copy p { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; }
.hero-meta { min-width: 150px; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.18); }
.hero-meta strong { display: block; margin-top: 8px; font-size: 14px; }
.service-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.72); }
.service-strip > div { display: flex; align-items: center; gap: 14px; padding: 20px 23px; }
.service-strip > div + div { border-left: 1px solid var(--line); }
.service-strip > div > .material-symbols-rounded { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #d7c4a7; border-radius: 50%; color: var(--gold); }
.service-strip p { display: grid; gap: 4px; margin: 0; }
.service-strip strong { font-size: 13px; }
.service-strip small { color: var(--muted); font-size: 10px; }

.overview-grid, .membership-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.panel, .plan-card { padding: 25px 27px; border: 1px solid var(--line); background: rgba(255,255,255,.82); box-shadow: 0 10px 36px rgba(42,48,41,.04); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 20px; }
.panel-heading h3 { margin: 5px 0 0; font: 700 19px "Noto Serif SC", serif; }
.text-button { padding: 5px; color: var(--pine-800); background: transparent; font-size: 12px; font-weight: 700; }
.detail-list { margin: 0; }
.detail-list div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-top: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: 12px; }
.detail-list dd { margin: 0; font-size: 12px; font-weight: 700; text-align: right; }
.download-summary > p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.windows-mark, .shield-mark { color: var(--gold); font-size: 34px; }
.plain-list, .benefit-list { display: grid; gap: 11px; padding: 0; margin: 20px 0; list-style: none; }
.plain-list li, .benefit-list li { display: flex; align-items: center; gap: 9px; color: #4e5953; font-size: 12px; }
.plain-list .material-symbols-rounded, .benefit-list .material-symbols-rounded { color: var(--success); font-size: 18px; }

.plan-card { border-top: 3px solid var(--gold); background: var(--paper); }
.plan-label { display: inline-flex; padding: 5px 9px; color: #77572d; background: var(--gold-soft); font-size: 11px; font-weight: 700; }
.price { display: flex; align-items: baseline; margin: 18px 0 8px; }
.price > span { color: var(--gold); font: 700 23px "Noto Serif SC", serif; }
.price strong { color: var(--pine-900); font: 700 58px/1 "Noto Serif SC", serif; }
.price small { margin-left: 8px; color: var(--muted); }
.subtle { margin: 12px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.steps { display: grid; gap: 20px; padding: 0; margin: 4px 0 28px; list-style: none; }
.steps li { display: flex; align-items: center; gap: 14px; }
.steps li > span { flex: 0 0 30px; height: 30px; display: grid; place-items: center; border: 1px solid #d7c4a7; border-radius: 50%; color: var(--gold); font: 700 12px "Noto Serif SC", serif; }
.steps p { display: grid; gap: 3px; margin: 0; }
.steps strong { font-size: 13px; }
.steps small { color: var(--muted); font-size: 11px; }
.current-status { display: flex; justify-content: space-between; padding: 15px 0 0; border-top: 1px solid var(--line); font-size: 12px; }
.current-status span { color: var(--muted); }

.table-panel, .admin-table { overflow: hidden; border: 1px solid var(--line); background: rgba(255,255,255,.84); }
.table-head, .order-row { display: grid; grid-template-columns: 1.2fr .8fr .6fr .7fr 1fr; align-items: center; gap: 16px; padding: 15px 20px; }
.table-head, .admin-head { color: var(--muted); background: #f1ece3; font-size: 11px; font-weight: 700; }
.order-row { border-top: 1px solid var(--line); font-size: 12px; }
.order-row strong { color: var(--pine-900); }
.empty-state { display: grid; place-items: center; gap: 9px; min-height: 220px; color: var(--muted); text-align: center; }
.empty-state .material-symbols-rounded { color: #b8b1a5; font-size: 42px; }
.status-pill { width: max-content; padding: 4px 8px; border-radius: 999px; color: #7e612f; background: #f5ead7; font-size: 10px; font-weight: 700; }
.status-pill.paid { color: var(--success); background: #e8f2ec; }

.download-hero { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; padding: 35px; color: #fff; background: var(--pine-900); box-shadow: var(--shadow); }
.app-icon { width: 76px; height: 76px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); color: #e7c38a; font-size: 40px; }
.download-hero h2 { margin: 7px 0; font: 700 24px "Noto Serif SC", serif; }
.download-hero p { margin: 0; color: rgba(255,255,255,.7); font-size: 13px; }
.version-row { display: flex; gap: 8px; margin-top: 16px; }
.version-row span { padding: 5px 8px; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.72); font-size: 10px; }
.notice { display: flex; gap: 13px; margin-top: 20px; padding: 18px 20px; border-left: 3px solid var(--gold); background: #eee7db; }
.notice > .material-symbols-rounded { color: var(--gold); }
.notice p { display: grid; gap: 4px; margin: 0; }
.notice small { color: var(--muted); line-height: 1.6; }

.admin-toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.admin-toolbar input { max-width: 320px; min-height: 42px; }
.admin-toolbar span { color: var(--muted); font-size: 12px; }
.admin-head, .admin-user { display: grid; grid-template-columns: 1.2fr .6fr 1fr 1fr .7fr; align-items: center; gap: 14px; padding: 14px 18px; }
.admin-user { border-top: 1px solid var(--line); font-size: 12px; }
.admin-user small { color: var(--muted); }
.admin-user .button { min-height: 34px; padding: 0 11px; font-size: 11px; }

@media (max-width: 1100px) {
  .topbar { grid-template-columns: 250px 1fr auto; padding: 0 22px; }
  .topnav { display: none; }
  .portal-body { grid-template-columns: 210px minmax(0, 1fr); }
  .content { padding: 34px 28px 50px; }
  .membership-hero { grid-template-columns: auto 1fr auto; }
  .hero-meta { display: none; }
}

@media (max-width: 760px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-story { min-height: 340px; padding: 30px 24px; }
  .auth-copy h1 { font-size: 40px; }
  .trust-row { gap: 14px; }
  .auth-form-wrap { padding: 38px 22px; }
  .topbar { height: 68px; grid-template-columns: 1fr auto; }
  .topbar .brand small, .account-menu > span:nth-child(2), .account-menu > .material-symbols-rounded { display: none; }
  .account-menu { grid-template-columns: 38px; }
  .portal-body { display: block; }
  .sidebar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; min-height: 0; padding: 7px 10px; border: 0; border-top: 1px solid var(--line); }
  .profile-card, .logout-button { display: none; }
  .side-nav { grid-auto-flow: column; grid-auto-columns: 1fr; padding: 0; }
  .side-link { min-height: 48px; justify-content: center; padding: 0; font-size: 0; }
  .side-link .material-symbols-rounded { font-size: 22px; }
  .content { padding: 28px 18px 92px; }
  .welcome-row, .page-heading { align-items: flex-start; }
  .secure-badge { display: none; }
  .membership-hero { grid-template-columns: auto 1fr; padding: 22px; }
  .membership-hero .button { grid-column: 1 / -1; }
  .service-strip, .overview-grid, .membership-grid { grid-template-columns: 1fr; }
  .service-strip > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .table-panel { overflow-x: auto; }
  .table-head, .order-row { min-width: 720px; }
  .download-hero { grid-template-columns: 1fr; }
  .app-icon { width: 58px; height: 58px; }
  .admin-table { overflow-x: auto; }
  .admin-head, .admin-user { min-width: 760px; }
}
