/* 寰宇书馆 · 账号 / 书架 / 商城 —— styles ported from
 * design_handoff_account_store/平台·登录与个人中心.dc.html.
 * 字体沿用自托管子集方案（assets/fonts/），不引 Google Fonts CDN；
 * 正文回退系统衬线 CJK，视觉接近 Noto Serif SC。 */

@font-face {
  font-family: 'Ma Shan Zheng';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./assets/fonts/MaShanZheng-subset.woff2?v=20260719-submaps-v2') format('woff2');
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* 若干容器类设了 display:flex/grid，会盖过 UA 的 [hidden]；统一压回去。 */
[hidden] { display: none !important; }

:root {
  --paper: #f4eddc;
  --card: #fbf8f0;
  --ink: #2b2723;
  --ink-hover: #443c33;
  --cinnabar: #9c3b32;
  --cinnabar-dark: #7a2a23;
  --teal: #3d5a4c;
  --ok: #2e6b46;
  --line-soft: rgba(60, 55, 48, .14);
  --line-mid: rgba(60, 55, 48, .22);
  --dim-45: rgba(60, 55, 48, .45);
  --dim-55: rgba(60, 55, 48, .55);
  --dim-6: rgba(60, 55, 48, .6);
  --serif: 'Noto Serif SC', 'Songti SC', 'Noto Serif CJK SC', 'Source Han Serif SC', STSong, serif;
  --brush: 'Ma Shan Zheng', var(--serif);
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

body {
  background: var(--paper);
  font-family: var(--serif);
  color: #2b2b2b;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cinnabar); text-decoration: none; }
a:hover { color: var(--cinnabar-dark); text-decoration: underline; }
::selection { background: rgba(156, 59, 50, .18); }
input::placeholder { color: rgba(60, 55, 48, .35); font-family: var(--serif); }
button { font-family: var(--serif); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

#ac-root {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(252, 248, 238, .9), transparent 70%),
    linear-gradient(170deg, #f7f1e2 0%, #efe5cd 100%);
}

/* ===== 印章 / 头像 ===== */
.ac-seal {
  border-radius: 8px;
  background: var(--cinnabar);
  color: #fbf5e8;
  display: grid;
  place-items: center;
  font-family: var(--brush);
}
.ac-seal-lg { width: 46px; height: 46px; font-size: 26px; box-shadow: 0 4px 12px rgba(60, 20, 15, .4); }
.ac-seal-sm { width: 32px; height: 32px; border-radius: 7px; font-size: 19px; }
.ac-avatar {
  border-radius: 50%;
  background: var(--teal);
  color: #f0e9d8;
  display: grid;
  place-items: center;
  font-family: var(--brush);
}
.ac-avatar-sm { width: 34px; height: 34px; font-size: 15px; cursor: pointer; }
.ac-avatar-lg { width: 76px; height: 76px; font-size: 34px; box-shadow: 0 8px 20px -8px rgba(43, 60, 50, .5); }

/* ===== 登录 ===== */
.ac-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 56px 24px;
}
.ac-auth-card {
  display: flex;
  width: 920px;
  max-width: 94vw;
  min-height: 580px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(70, 55, 35, .35), 0 2px 8px rgba(70, 55, 35, .06);
  animation: fadeUp .5s ease both;
}
.ac-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 350px;
  flex: none;
  position: relative;
  overflow: hidden;
  background-image: url('./assets/maps/red-chamber-jiafu.png');
  background-size: cover;
  background-position: 38% center;
}
.ac-brand-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(30, 26, 20, .1) 0%, rgba(30, 26, 20, .55) 100%);
}
.ac-brand-top {
  position: relative;
  padding: 30px 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.ac-brand-motto {
  writing-mode: vertical-rl;
  font-family: var(--brush);
  font-size: 21px;
  color: rgba(251, 245, 232, .92);
  letter-spacing: 8px;
  text-shadow: 0 2px 8px rgba(30, 26, 20, .6);
}
.ac-brand-bottom { position: relative; padding: 0 30px 32px; }
.ac-brand-name {
  font-family: var(--brush);
  font-size: 34px;
  color: #fbf5e8;
  text-shadow: 0 2px 10px rgba(30, 26, 20, .7);
}
.ac-brand-sub { margin-top: 8px; font-size: 13px; letter-spacing: 3px; color: rgba(251, 245, 232, .75); }

.ac-form-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 60px;
  min-width: 0;
}
.ac-pane { display: flex; flex-direction: column; }
.ac-pane h1 { font-size: 26px; font-weight: 700; letter-spacing: 1px; }
.ac-pane-sub { margin-top: 8px; font-size: 13.5px; color: var(--dim-6); }
.ac-fields { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.ac-fields-tight { margin-top: 30px; gap: 11px; }
.ac-divider { margin-top: 26px; display: flex; align-items: center; gap: 14px; }
.ac-divider span { flex: 1; height: 1px; background: var(--line-soft); }
.ac-divider em { font-style: normal; font-size: 12px; color: rgba(60, 55, 48, .5); letter-spacing: 2px; }
.ac-alt-row { margin-top: 18px; display: flex; gap: 12px; }
.ac-pane-links { margin-top: 22px; display: flex; justify-content: center; gap: 24px; }
.ac-reset-back { margin-top: 24px; align-self: center; }
.ac-terms { margin-top: 34px; font-size: 11.5px; line-height: 1.8; color: var(--dim-45); }
.ac-terms a { font-size: 11.5px; }
.ac-magic-form { display: flex; flex-direction: column; gap: 10px; }
.ac-magic-form label { font-size: 12.5px; color: var(--dim-6); }
.ac-test-login-note {
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgba(156, 59, 50, .18);
  border-radius: 9px;
  background: rgba(156, 59, 50, .05);
  color: var(--cinnabar-dark);
  font-size: 12px;
  line-height: 1.6;
}
.ac-magic-status {
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 12.5px;
  line-height: 1.7;
  background: rgba(60, 55, 48, .05);
  color: var(--dim-6);
}
.ac-magic-status[data-state="success"] { background: rgba(46, 107, 70, .08); color: var(--ok); }
.ac-magic-status[data-state="error"] { background: rgba(156, 59, 50, .07); color: var(--cinnabar-dark); }

/* inputs */
.ac-input {
  border: 1px solid var(--line-mid);
  border-radius: 10px;
  background: #fffdf8;
  padding: 13px 14px;
  font-size: 15px;
  font-family: var(--serif);
  color: #2b2b2b;
  outline: none;
  width: 100%;
}
.ac-input:focus { border-color: var(--cinnabar); }
.ac-input:read-only { background: rgba(247, 241, 226, .7); color: var(--dim-6); }
.ac-input-compact { padding: 10px 13px; font-size: 14.5px; border-radius: 9px; }
.ac-phone-group {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-mid);
  border-radius: 10px;
  background: #fffdf8;
  overflow: hidden;
}
.ac-phone-group:focus-within { border-color: var(--cinnabar); }
.ac-phone-group span { padding-left: 14px; font-size: 15px; color: rgba(60, 55, 48, .65); flex: none; }
.ac-phone-group input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 13px 14px;
  font-size: 15px;
  font-family: var(--serif);
  color: #2b2b2b;
}
.ac-code-row { display: flex; gap: 10px; }
.ac-code-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-mid);
  border-radius: 10px;
  background: #fffdf8;
  padding: 13px 14px;
  font-size: 15px;
  font-family: var(--serif);
  color: #2b2b2b;
  outline: none;
}
.ac-code-row input:focus { border-color: var(--cinnabar); }

/* buttons */
.ac-btn-primary {
  border: none;
  border-radius: 10px;
  background: var(--ink);
  color: #f6efe0;
  padding: 14px;
  font-size: 15px;
  letter-spacing: 1px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 10px 22px -10px rgba(43, 39, 35, .55);
}
.ac-btn-primary:hover { background: var(--ink-hover); }
.ac-btn-cn { margin-top: 6px; font-size: 15.5px; letter-spacing: 6px; }
.ac-btn-pill { padding: 12px 30px; font-size: 14px; letter-spacing: 3px; }
.ac-btn-dark {
  border: none;
  border-radius: 10px;
  background: var(--ink);
  color: #f6efe0;
  padding: 12px 26px;
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.ac-btn-dark:hover { background: var(--ink-hover); }
.ac-btn-accent {
  border: none;
  border-radius: 11px;
  background: var(--cinnabar);
  color: #fbf5e8;
  padding: 14px;
  font-size: 15px;
  letter-spacing: 2px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 12px 26px -12px rgba(156, 59, 50, .7);
  width: 100%;
}
.ac-btn-accent:hover { background: var(--cinnabar-dark); }
.ac-btn-outline {
  border: 1px solid rgba(60, 55, 48, .25);
  border-radius: 10px;
  background: transparent;
  color: #4a443b;
  padding: 12px 26px;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}
.ac-btn-outline:hover { background: rgba(60, 55, 48, .05); }
.ac-btn-outline-accent {
  border: 1px solid rgba(156, 59, 50, .5);
  border-radius: 10px;
  background: transparent;
  color: var(--cinnabar);
  padding: 0 18px;
  font-size: 13.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: all .2s;
}
.ac-btn-outline-accent:hover { background: rgba(156, 59, 50, .07); }
.ac-btn-compact { border-radius: 8px; padding: 6px 18px; font-size: 13px; }
.ac-btn-logout { padding: 10px 26px; letter-spacing: 2px; }
.ac-btn-wechat {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(7, 193, 96, .45);
  border-radius: 10px;
  background: rgba(7, 193, 96, .06);
  color: #0a9e52;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.ac-btn-wechat:hover { background: rgba(7, 193, 96, .13); }
.ac-alt-row .ac-btn-outline { flex: 1; padding: 12px; }
.ac-btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(60, 55, 48, .25);
  border-radius: 10px;
  background: #fffdf8;
  color: #2b2b2b;
  padding: 12px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.ac-btn-google:hover { background: #f3ede0; }
.ac-btn-apple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 10px;
  background: #1d1a16;
  color: #f6efe0;
  padding: 13px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.ac-btn-apple:hover { background: #38322a; }
.ac-link-accent {
  border: none;
  background: none;
  color: var(--cinnabar);
  font-size: 13.5px;
  cursor: pointer;
}
.ac-link-dim {
  border: none;
  background: none;
  color: var(--dim-55);
  font-size: 13.5px;
  cursor: pointer;
}
.ac-link-dim:hover { color: var(--cinnabar); }
.ac-link-danger-dim {
  border: none;
  background: none;
  color: var(--dim-45);
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ac-link-danger-dim:hover { color: var(--cinnabar); }
button:disabled { cursor: not-allowed; }

/* 发送成功卡片 */
.ac-sent-card {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(46, 107, 70, .07);
  border: 1px solid rgba(46, 107, 70, .3);
  border-radius: 12px;
  padding: 18px 20px;
}
.ac-sent-icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ok);
  color: #eef5ef;
  display: grid;
  place-items: center;
  font-size: 15px;
}
.ac-sent-title { font-size: 15px; font-weight: 700; color: var(--ok); }
.ac-sent-desc { margin-top: 5px; font-size: 13px; line-height: 1.8; color: rgba(60, 55, 48, .65); }

/* ===== 顶部导航 ===== */
.ac-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 36px;
  height: 62px;
  background: rgba(247, 241, 226, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(60, 55, 48, .12);
}
.ac-header-brand { display: flex; align-items: center; gap: 11px; }
.ac-header-brand span { font-family: var(--brush); font-size: 20px; letter-spacing: 2px; }
.ac-nav { display: flex; gap: 26px; flex: 1; }
.ac-nav button {
  border: none;
  background: none;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 2px;
  padding-bottom: 3px;
  color: var(--dim-55);
  border-bottom: 2px solid transparent;
}
.ac-nav button.active { color: var(--cinnabar); font-weight: 700; border-bottom-color: var(--cinnabar); }
.ac-header-right { display: flex; align-items: center; gap: 12px; }

/* ===== 页面骨架 ===== */
.ac-main { margin: 0 auto; padding: 44px 24px 80px; }
.ac-main-shelf { max-width: 860px; display: flex; flex-direction: column; gap: 18px; }
.ac-main-store { max-width: 980px; }
.ac-main-profile { max-width: 780px; display: flex; flex-direction: column; gap: 22px; }
.ac-page-head { display: flex; align-items: baseline; gap: 14px; animation: fadeUp .4s ease both; }
.ac-page-head h1 { font-size: 24px; font-weight: 700; letter-spacing: 2px; }
.ac-page-head-sub { font-size: 13px; color: var(--dim-55); }
.ac-spacer { flex: 1; }
.ac-footnote { margin-top: 12px; text-align: center; font-size: 12px; color: var(--dim-45); }

/* ===== 书架 ===== */
.ac-shelf-list { display: flex; flex-direction: column; gap: 18px; }
.ac-shelf-empty {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 72px 24px;
  border: 1.5px dashed var(--line-mid);
  border-radius: 16px;
  animation: fadeUp .4s ease both;
}
.ac-empty-seal {
  width: 72px;
  height: 72px;
  border: 2px solid rgba(156, 59, 50, .55);
  border-radius: 12px;
  transform: rotate(6deg);
  display: grid;
  place-items: center;
  font-family: var(--brush);
  font-size: 30px;
  color: rgba(156, 59, 50, .75);
}
.ac-empty-text { text-align: center; }
.ac-empty-title { font-size: 18px; font-weight: 700; letter-spacing: 2px; }
.ac-empty-sub { margin-top: 8px; font-size: 13px; color: var(--dim-55); }

.ac-shelf-card {
  display: flex;
  gap: 26px;
  align-items: center;
  background: var(--card);
  border: 1px solid rgba(60, 55, 48, .13);
  border-radius: 14px;
  padding: 22px 26px;
  animation: fadeUp .4s ease both;
}
.ac-shelf-cover {
  width: 96px;
  height: 132px;
  flex: none;
  position: relative;
  border-radius: 6px;
  box-shadow: 0 12px 24px -10px rgba(40, 25, 15, .5);
  display: flex;
  justify-content: center;
  padding-top: 14px;
  overflow: hidden;
}
.ac-cover-spine { position: absolute; left: 7px; top: 0; bottom: 0; width: 1px; background: rgba(248, 240, 222, .25); }
.ac-shelf-cover > b {
  writing-mode: vertical-rl;
  font-family: var(--brush);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: 6px;
  color: rgba(248, 240, 222, .95);
}
.ac-shelf-cover > i {
  position: absolute;
  bottom: 9px;
  right: 9px;
  writing-mode: vertical-rl;
  font-style: normal;
  font-size: 10px;
  color: rgba(248, 240, 222, .55);
}
.ac-shelf-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.ac-shelf-title-row { display: flex; align-items: baseline; gap: 10px; }
.ac-shelf-title-row b { font-size: 19px; font-weight: 700; letter-spacing: 1px; }
.ac-shelf-title-row span { font-size: 12.5px; color: rgba(60, 55, 48, .5); }
.ac-shelf-blurb { font-size: 13px; color: var(--dim-6); }
.ac-shelf-mark { display: flex; align-items: center; gap: 9px; margin-top: 3px; }
.ac-shelf-mark i {
  flex: none;
  width: 13px;
  height: 18px;
  background: var(--cinnabar);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
}
.ac-shelf-mark span { font-size: 12.5px; color: #8a4a38; }
.ac-shelf-progress { display: flex; align-items: center; gap: 12px; }
.ac-progress-track { flex: 1; height: 4px; border-radius: 99px; background: rgba(60, 55, 48, .12); overflow: hidden; }
.ac-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #b0483c, var(--cinnabar));
  transition: width .4s;
}
.ac-progress-label { flex: none; white-space: nowrap; font-size: 12px; color: rgba(60, 55, 48, .5); font-family: var(--mono); }
.ac-shelf-card .ac-btn-dark { flex: none; letter-spacing: 3px; }

/* ===== 商城 ===== */
.ac-store-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
}
.ac-store-grid-featured {
  display: block;
  max-width: 720px;
}
.ac-store-grid-featured .ac-store-card {
  min-height: 330px;
  padding: 22px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  column-gap: 30px;
  row-gap: 18px;
}
.ac-store-grid-featured .ac-store-cover {
  grid-row: 1 / 3;
  width: 210px;
  aspect-ratio: 3 / 4;
}
.ac-store-grid-featured .ac-store-text {
  align-self: center;
}
.ac-store-grid-featured .ac-store-title-row b { font-size: 23px; letter-spacing: 2px; }
.ac-store-grid-featured .ac-store-title-row span { font-size: 13px; }
.ac-store-grid-featured .ac-store-blurb { margin-top: 14px; font-size: 14px; line-height: 2; }
.ac-store-grid-featured .ac-store-foot {
  padding-top: 18px;
  border-top: 1px solid rgba(60, 55, 48, .12);
}
.ac-store-grid-featured .ac-btn-buy { padding: 11px 24px; }
.ac-store-card {
  background: var(--card);
  border: 1px solid rgba(60, 55, 48, .13);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeUp .4s ease both;
  transition: all .25s;
}
.ac-store-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -18px rgba(70, 55, 35, .4); }
.ac-store-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding-top: 22px;
}
.ac-store-cover .ac-cover-spine { left: 9px; }
.ac-store-cover > b {
  writing-mode: vertical-rl;
  font-family: var(--brush);
  font-weight: 400;
  font-size: 29px;
  letter-spacing: 10px;
  color: rgba(248, 240, 222, .95);
}
.ac-store-cover > i {
  position: absolute;
  bottom: 12px;
  right: 12px;
  writing-mode: vertical-rl;
  font-style: normal;
  font-size: 11px;
  color: rgba(248, 240, 222, .55);
}
.ac-owned-seal {
  border: 2px solid rgba(232, 122, 98, .9);
  border-radius: 7px;
  transform: rotate(9deg);
  display: grid;
  place-items: center;
  font-family: var(--brush);
  letter-spacing: 1px;
  color: #eda184;
}
.ac-store-cover .ac-owned-seal {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  font-size: 15px;
  background: rgba(25, 15, 10, .32);
}
.ac-owned-seal-lg {
  width: 66px;
  height: 66px;
  border-width: 2.5px;
  border-color: rgba(156, 59, 50, .8);
  border-radius: 11px;
  transform: rotate(8deg);
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--cinnabar);
  animation: fadeUp .4s ease both;
}
.ac-store-text .ac-store-title-row { display: flex; align-items: baseline; gap: 8px; }
.ac-store-title-row b { font-size: 16px; font-weight: 700; }
.ac-store-title-row span { font-size: 12px; color: rgba(60, 55, 48, .5); }
.ac-store-blurb { margin-top: 4px; font-size: 12.5px; line-height: 1.7; color: var(--dim-6); }
.ac-store-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.ac-store-price { font-size: 16px; font-weight: 700; color: var(--cinnabar); }
.ac-btn-buy {
  border: 1px solid rgba(156, 59, 50, .55);
  border-radius: 9px;
  background: rgba(156, 59, 50, .06);
  color: var(--cinnabar);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.ac-btn-buy:hover { background: var(--cinnabar); color: #f6efe0; }
.ac-owned-chip {
  font-size: 12.5px;
  color: rgba(60, 55, 48, .5);
  border: 1px solid rgba(60, 55, 48, .18);
  border-radius: 9px;
  padding: 8px 16px;
  white-space: nowrap;
}

/* ===== 个人中心 ===== */
.ac-profile-head { display: flex; align-items: center; gap: 22px; animation: fadeUp .4s ease both; }
.ac-profile-head-text { flex: 1; }
.ac-profile-name-row { display: flex; align-items: baseline; gap: 12px; }
.ac-profile-name-row h1 { font-size: 24px; font-weight: 700; letter-spacing: 1px; }
.ac-uid { font-family: var(--mono); font-size: 12px; color: var(--dim-45); }
.ac-profile-meta { margin-top: 6px; font-size: 13px; color: var(--dim-6); }

.ac-card {
  background: var(--card);
  border: 1px solid rgba(60, 55, 48, .13);
  border-radius: 14px;
  padding: 24px 26px;
  animation: fadeUp .4s ease both;
}
.ac-card-bindings { padding-bottom: 8px; animation-delay: .06s; }
.ac-card:not(.ac-card-bindings) { animation-delay: .12s; }
.ac-card-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(60, 55, 48, .85);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ac-card-title span { flex: 1; height: 1px; background: rgba(60, 55, 48, .1); }
.ac-card-title-row { display: flex; align-items: center; gap: 10px; }
.ac-card-title-plain { font-size: 15px; font-weight: 700; letter-spacing: 3px; color: rgba(60, 55, 48, .85); }
.ac-card-title-rule { flex: 1; height: 1px; background: rgba(60, 55, 48, .1); }
.ac-edit-actions { display: flex; gap: 8px; }

.ac-binding-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(60, 55, 48, .07);
}
.ac-binding-row:last-child { border-bottom: none; }
.ac-binding-glyph {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
}
.ac-binding-body { flex: 1; min-width: 0; }
.ac-binding-name { font-size: 14.5px; font-weight: 600; }
.ac-binding-detail { margin-top: 2px; font-size: 12.5px; color: var(--dim-55); font-family: var(--mono); }
.ac-binding-chip { flex: none; font-size: 12px; padding: 3px 11px; border-radius: 999px; }
.ac-binding-chip.ok { background: rgba(46, 107, 70, .1); color: var(--ok); }
.ac-binding-chip.no { background: rgba(60, 55, 48, .08); color: var(--dim-55); }
.ac-binding-action {
  flex: none;
  border: 1px solid var(--line-mid);
  border-radius: 8px;
  background: transparent;
  color: #4a443b;
  padding: 6px 15px;
  font-size: 12.5px;
  cursor: pointer;
  transition: all .2s;
}
.ac-binding-action:hover { background: rgba(60, 55, 48, .05); }

#pf-view { margin-top: 6px; }
.ac-field-row { display: flex; gap: 16px; padding: 15px 0; border-bottom: 1px solid rgba(60, 55, 48, .07); }
.ac-field-row-last { border-bottom: none; }
.ac-field-row span { width: 90px; flex: none; font-size: 13.5px; color: var(--dim-55); }
.ac-field-row b { font-size: 14.5px; font-weight: 400; }
.ac-field-row .ac-bio { color: rgba(43, 43, 43, .85); }
.ac-field-row .ac-mono { font-family: var(--mono); }
#pf-edit { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
#pf-edit[hidden] { display: none; }
.ac-edit-row { display: flex; align-items: center; gap: 16px; }
.ac-edit-row span { width: 90px; flex: none; font-size: 13.5px; color: var(--dim-55); }
.ac-edit-row input { flex: 1; width: auto; }
.ac-profile-foot { display: flex; justify-content: space-between; align-items: center; animation: fadeUp .4s .18s ease both; }

/* ===== 弹层 ===== */
.ac-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(30, 25, 18, .45);
  backdrop-filter: blur(3px);
  padding: 24px;
}
.ac-overlay[hidden] { display: none; }
.ac-dialog {
  background: var(--card);
  border: 1px solid rgba(60, 55, 48, .15);
  border-radius: 16px;
  box-shadow: 0 30px 70px -25px rgba(30, 20, 10, .55);
  animation: fadeUp .3s ease both;
}
.ac-dialog-pay { width: 450px; max-width: 94vw; overflow: hidden; }
.ac-dialog-del { width: 440px; max-width: 94vw; padding: 26px 28px; }
.ac-dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 0; }
.ac-dialog-head h3 { font-size: 17px; font-weight: 700; letter-spacing: 2px; }
.ac-dialog-x { border: none; background: none; font-size: 20px; color: var(--dim-45); cursor: pointer; line-height: 1; }
.ac-dialog-x:hover { color: #2b2b2b; }

.ac-pay-book {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 18px 24px 0;
  padding: 14px 16px;
  background: rgba(60, 55, 48, .045);
  border-radius: 12px;
}
.ac-pay-cover {
  width: 44px;
  height: 60px;
  flex: none;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
  box-shadow: 0 6px 14px -6px rgba(40, 25, 15, .5);
}
.ac-pay-cover span {
  writing-mode: vertical-rl;
  font-family: var(--brush);
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(248, 240, 222, .95);
}
.ac-pay-book-text { flex: 1; min-width: 0; }
.ac-pay-book-title { font-size: 15.5px; font-weight: 700; }
.ac-pay-book-author { margin-top: 3px; font-size: 12px; color: var(--dim-55); }
.ac-pay-price { flex: none; font-size: 19px; font-weight: 700; color: var(--cinnabar); }
.ac-pay-method-label { margin: 20px 24px 0; font-size: 12.5px; letter-spacing: 2px; color: var(--dim-55); }
.ac-pay-methods { margin: 10px 24px 0; display: flex; flex-direction: column; gap: 9px; }
.ac-pay-method {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 15px;
  border-radius: 11px;
  cursor: pointer;
  transition: all .15s;
  border: 1.5px solid rgba(60, 55, 48, .16);
  background: transparent;
}
.ac-pay-method.active { border-color: rgba(156, 59, 50, .6); background: rgba(156, 59, 50, .05); }
.ac-pay-method-glyph {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}
.ac-pay-method-body { flex: 1; min-width: 0; }
.ac-pay-method-name { font-size: 14px; font-weight: 600; }
.ac-pay-method-desc { font-size: 11.5px; color: rgba(60, 55, 48, .5); }
.ac-pay-method-dot {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid rgba(60, 55, 48, .3);
  display: grid;
  place-items: center;
}
.ac-pay-method.active .ac-pay-method-dot { border-color: var(--cinnabar); }
.ac-pay-method-dot i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cinnabar);
  opacity: 0;
  transition: opacity .15s;
}
.ac-pay-method.active .ac-pay-method-dot i { opacity: 1; }
.ac-pay-foot { padding: 20px 24px 22px; }
.ac-pay-demo-note { margin-top: 12px; text-align: center; font-size: 11px; color: rgba(60, 55, 48, .4); }
.ac-pay-done { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 44px 32px 32px; }
.ac-pay-done[hidden] { display: none; }
.ac-pay-done-text { text-align: center; }
.ac-pay-done-title { font-size: 19px; font-weight: 700; letter-spacing: 2px; }
.ac-pay-done-sub { margin-top: 7px; font-size: 13px; color: var(--dim-6); }
.ac-pay-done-actions { display: flex; gap: 12px; margin-top: 8px; }

.ac-del-title { font-size: 17px; font-weight: 700; letter-spacing: 2px; color: var(--cinnabar); }
.ac-del-lead { margin-top: 10px; font-size: 13.5px; line-height: 1.9; color: rgba(60, 55, 48, .7); }
.ac-del-lead strong { color: var(--cinnabar); }
.ac-del-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(156, 59, 50, .05);
  border: 1px solid rgba(156, 59, 50, .2);
  border-radius: 11px;
  padding: 14px 18px;
}
.ac-del-list div { display: flex; gap: 9px; font-size: 13px; color: rgba(60, 55, 48, .75); }
.ac-del-list i { font-style: normal; color: var(--cinnabar); }
.ac-del-ack { margin-top: 16px; display: flex; align-items: center; gap: 11px; cursor: pointer; user-select: none; }
.ac-del-ack-box {
  width: 19px;
  height: 19px;
  flex: none;
  border-radius: 5px;
  border: 1.5px solid rgba(60, 55, 48, .35);
  background: transparent;
  display: grid;
  place-items: center;
  color: #fbf5e8;
  font-size: 12px;
  transition: all .15s;
}
.ac-del-ack.acked .ac-del-ack-box { border-color: var(--cinnabar); background: var(--cinnabar); }
.ac-del-ack.acked .ac-del-ack-box::after { content: '✓'; }
.ac-del-ack span { font-size: 13px; color: rgba(60, 55, 48, .7); }
.ac-del-actions { margin-top: 20px; display: flex; gap: 12px; justify-content: flex-end; }
.ac-del-actions .ac-btn-outline { padding: 10px 22px; font-size: 13.5px; }
.ac-btn-del {
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 700;
  transition: all .2s;
  background: rgba(60, 55, 48, .12);
  color: rgba(60, 55, 48, .4);
  cursor: not-allowed;
}
.ac-btn-del.armed { background: var(--cinnabar); color: #fbf5e8; cursor: pointer; }

/* ===== Toast ===== */
.ac-toast {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  background: rgba(35, 31, 26, .94);
  color: #f4edda;
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 13.5px;
  letter-spacing: 1px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4);
  animation: fadeUp .25s ease both;
}

/* ===== 窄屏兜底（原型为 PC 端设计）===== */
@media (max-width: 760px) {
  .ac-brand { display: none; }
  .ac-form-col { padding: 40px 28px; }
  .ac-shelf-card { flex-direction: column; align-items: stretch; text-align: left; }
  .ac-header { height: 58px; padding: 0 12px; gap: 10px; }
  .ac-header-brand { gap: 0; }
  .ac-header-brand > span { display: none; }
  .ac-nav { justify-content: center; gap: 14px; }
  .ac-nav button { padding-bottom: 2px; font-size: 12.5px; letter-spacing: 1px; white-space: nowrap; }
  .ac-header-right { gap: 0; }
  .ac-store-grid-featured .ac-store-card { display: flex; min-height: 0; }
  .ac-store-grid-featured .ac-store-cover { width: 100%; }
}
