/* ============================================================
   校园书流转 · 视觉系统 v2
   配色：翡翠绿 + 墨黑 + 暖橙点缀；风格：干净、通透、微立体
   ============================================================ */

:root {
  --primary: #0f9d63;
  --primary-600: #0b7f4f;
  --primary-700: #08653f;
  --primary-050: #e9f8f1;
  --primary-100: #d3f0e2;

  --accent: #ff7a45;
  --amber: #f5a524;
  --coral: #f4614e;

  --ink: #0f1a16;
  --text: #1c2a24;
  --text-2: #5c6b64;
  --text-3: #93a29b;

  --line: #e6ece9;
  --line-2: #d8e3dd;
  --bg: #f6f9f7;
  --white: #fff;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sh-1: 0 1px 2px rgba(14, 40, 28, .04), 0 4px 14px rgba(14, 40, 28, .05);
  --sh-2: 0 10px 30px -10px rgba(14, 40, 28, .18), 0 2px 6px rgba(14, 40, 28, .04);
  --sh-3: 0 30px 60px -24px rgba(9, 60, 38, .32);
  --sh-green: 0 12px 28px -10px rgba(15, 157, 99, .55);

  --nav-h: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.62;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 88% -8%, #e8f8f0 0, transparent 60%),
    radial-gradient(700px 420px at -6% 12%, #eef6ff 0, transparent 55%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--primary-100); color: var(--primary-700); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cfdcd6; border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #b6c8c0; background-clip: content-box; }

:focus-visible { outline: 3px solid rgba(15, 157, 99, .3); outline-offset: 2px; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.center { text-align: center; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); flex: none; display: inline-block; }

/* 发布页：表单 + 预览 两栏 */
.publish-grid { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; margin: 0 0 26px; }

/* ---------------- 顶部导航（玻璃质感） ---------------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(230, 236, 233, .9);
}
.nav-inner { display: flex; align-items: center; gap: 16px; height: 100%; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.2px; white-space: nowrap; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, #17b673, var(--primary-600));
  color: #fff; font-size: 19px;
  box-shadow: var(--sh-green), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.brand .logo::after { content: ""; }
.brand:hover .logo { transform: rotate(-6deg) scale(1.05); }
.brand .logo { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }

.nav-links { display: flex; gap: 2px; margin-left: 4px; }
.nav-links a {
  position: relative; padding: 9px 15px; border-radius: 11px; color: var(--text-2);
  font-weight: 650; transition: .2s;
}
.nav-links a:hover { color: var(--primary-700); background: var(--primary-050); }
.nav-links a.active { color: var(--primary-700); background: var(--primary-050); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%);
  width: 18px; height: 3px; border-radius: 3px; background: var(--primary);
}

.nav-search { position: relative; flex: 1; max-width: 330px; margin-left: auto; }
.nav-search .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 14px; }
.nav-search input { padding-left: 38px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .9); }

.nav-user { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(145deg, #17b673, var(--primary-600)); color: #fff; font-weight: 700;
  box-shadow: var(--sh-green); transition: transform .25s;
}
.avatar:hover { transform: translateY(-2px) scale(1.04); }
.nav-toggle { display: none; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line-2);
  background: #fff; cursor: pointer; font-weight: 650; transition: .2s cubic-bezier(.2, .7, .3, 1);
  white-space: nowrap;
}
.btn:hover { border-color: var(--primary); color: var(--primary-700); transform: translateY(-1px); box-shadow: var(--sh-1); }
.btn:active { transform: translateY(0) scale(.99); }
.btn-primary {
  background: linear-gradient(145deg, #16b372, var(--primary-600));
  border-color: transparent; color: #fff;
  box-shadow: var(--sh-green), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { color: #fff; box-shadow: 0 16px 34px -12px rgba(15, 157, 99, .7); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--primary-050); color: var(--primary-700); box-shadow: none; }
.btn-danger { color: #d64545; border-color: #f6dcdc; background: #fff7f7; }
.btn-lg { padding: 13px 26px; border-radius: 14px; font-size: 16px; }
.btn-sm { padding: 7px 13px; border-radius: 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 16px; }
.field > label { display: block; font-weight: 650; margin-bottom: 7px; font-size: 14px; }
.field .hint { color: var(--text-3); font-weight: 400; font-size: 12px; margin-left: 6px; }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: #fff; outline: none; transition: .18s;
}
.input::placeholder { color: #a9b6b0; }
.input:hover { border-color: #c6d6ce; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15, 157, 99, .12); }
textarea.input { resize: vertical; min-height: 100px; }
select.input, .select-sm {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4.5L6 8.5L10 4.5' stroke='%235c6b64' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }

/* ---------------- 面板 ---------------- */
.panel {
  background: rgba(255, 255, 255, .92); border-radius: var(--r-lg);
  box-shadow: var(--sh-2); border: 1px solid rgba(255, 255, 255, .8); padding: 24px;
}
.panel-title { font-size: 17px; font-weight: 750; margin: 0 0 18px; display: flex; align-items: center; gap: 9px; }
.panel-title::before { content: ""; width: 4px; height: 17px; border-radius: 4px; background: linear-gradient(var(--primary), #4bd396); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden; margin: 26px 0 30px; padding: 52px 46px;
  border-radius: var(--r-xl); color: #fff; isolation: isolate;
  background: linear-gradient(125deg, #075e3b 0%, #0b7f4f 38%, #14a86a 72%, #37c98a 100%);
  box-shadow: var(--sh-3);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    radial-gradient(420px 260px at 82% 10%, rgba(255, 255, 255, .34), transparent 70%),
    radial-gradient(360px 300px at 8% 92%, rgba(0, 240, 170, .35), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; left: -60px; bottom: -120px; z-index: -1;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 65%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
  font-size: 13px; font-weight: 600; margin-bottom: 18px; backdrop-filter: blur(6px);
}
.hero h1 {
  margin: 0 0 12px; font-size: 40px; line-height: 1.2; font-weight: 850; letter-spacing: -.5px;
  text-shadow: 0 2px 20px rgba(0, 60, 35, .25);
}
.hero p { margin: 0 0 26px; font-size: 16.5px; opacity: .93; max-width: 30em; }
.hero .btn-white { background: #fff; color: var(--primary-700); border-color: transparent; font-weight: 750; }
.hero .btn-white:hover { color: var(--primary-700); box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .45); }
.hero .btn-glass {
  background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); color: #fff;
  backdrop-filter: blur(6px);
}
.hero .btn-glass:hover { background: rgba(255, 255, 255, .24); color: #fff; border-color: #fff; }
.hero-stats { display: flex; gap: 34px; margin-top: 30px; position: relative; z-index: 1; }
.hero-stats b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.hero-stats span { font-size: 12.5px; opacity: .82; }

/* Hero 右侧漂浮书堆 */
.hero-deco { position: absolute; right: 44px; top: 50%; transform: translateY(-50%); width: 240px; height: 220px; }
.hero-deco i {
  position: absolute; display: block; border-radius: 5px 10px 10px 5px;
  box-shadow: 0 22px 40px -16px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .4);
  animation: floaty 6s ease-in-out infinite;
}
.hero-deco i::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 9px; border-radius: 5px 0 0 5px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .32), rgba(255, 255, 255, .08));
}
.hero-deco i:nth-child(1) { width: 108px; height: 150px; right: 96px; top: 18px; background: linear-gradient(150deg, #ffd166, #f5a524); transform: rotate(-9deg); }
.hero-deco i:nth-child(2) { width: 112px; height: 158px; right: 34px; top: 42px; background: linear-gradient(150deg, #7ad7ff, #2f80ed); transform: rotate(6deg); animation-delay: .6s; }
.hero-deco i:nth-child(3) { width: 96px; height: 132px; right: 66px; top: 96px; background: linear-gradient(150deg, #ffa08a, #f4614e); transform: rotate(-2deg); animation-delay: 1.2s; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ---------------- 首页快捷入口（发布 / 我的 / 登录注册） ---------------- */
.quick-entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: -6px 0 26px; }
.entry {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  background: rgba(255, 255, 255, .94); border: 1px solid rgba(230, 236, 233, .95);
  border-radius: var(--r-lg); box-shadow: var(--sh-1); transition: .25s cubic-bezier(.2, .8, .3, 1);
  position: relative; overflow: hidden;
}
.entry:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--primary-100); }
.entry-ico {
  width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center; font-size: 22px;
  background: var(--primary-050); color: var(--primary-700);
}
.entry:nth-child(1) .entry-ico { background: #eaf7f0; }
.entry:nth-child(2) .entry-ico { background: #eaf1ff; }
.entry:nth-child(3) .entry-ico { background: #fff3e8; }
.entry b { display: block; font-size: 15.5px; font-weight: 780; letter-spacing: -.2px; }
.entry small { color: var(--text-3); font-size: 12.5px; }
.entry .arrow { margin-left: auto; color: var(--text-3); font-weight: 800; transition: .25s; }
.entry:hover .arrow { color: var(--primary); transform: translateX(4px); }

/* 子页面顶部「返回首页」 */
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 4px; }
.back-home {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line-2); font-weight: 650; font-size: 13.5px; color: var(--text-2); transition: .2s;
}
.back-home:hover { color: var(--primary-700); border-color: var(--primary); transform: translateX(-2px); box-shadow: var(--sh-1); }

@media (max-width: 760px) {
  .quick-entries { grid-template-columns: 1fr; gap: 11px; }
  .entry { padding: 14px 16px; }
  .entry-ico { width: 40px; height: 40px; font-size: 19px; border-radius: 12px; }
}

/* 未登录提示条 */
.tip-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 13px 18px; border-radius: 16px; margin-bottom: 16px;
  background: #fff8ec; border: 1px solid #ffe3ba; color: #8a5a12; font-size: 14px;
}
.tip-bar .btn { background: #fff; border-color: #ffd9a3; color: #8a5a12; }
.tip-bar .btn:hover { background: #fff3e1; color: #7a4c06; border-color: var(--amber); }

/* ---------------- 筛选工具条 ---------------- */
.toolbar {
  position: sticky; top: calc(var(--nav-h) + 10px); z-index: 40;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 20px; border-radius: 18px;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(230, 236, 233, .9); box-shadow: var(--sh-1);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff;
  cursor: pointer; color: var(--text-2); font-weight: 650; font-size: 13.5px; transition: .2s;
}
.chip:hover { border-color: var(--primary); color: var(--primary-700); transform: translateY(-1px); }
.chip.active {
  background: linear-gradient(145deg, #16b372, var(--primary-600)); border-color: transparent; color: #fff;
  box-shadow: 0 8px 18px -8px rgba(15, 157, 99, .8);
}
.select-sm { padding: 9px 30px 9px 12px; border-radius: 11px; border: 1px solid var(--line-2); background-color: #fff; font-size: 13.5px; font-weight: 600; }

/* ---------------- 区块标题 ---------------- */
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 28px 2px 16px; }
.section-title h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.3px; }
.section-title h2::after { content: ""; display: block; width: 26px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--primary), #6ddcac); margin-top: 6px; }

/* ---------------- 书籍卡片（3D 书封） ---------------- */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }

.book-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: var(--r-lg); border: 1px solid rgba(230, 236, 233, .9);
  box-shadow: var(--sh-1); cursor: pointer;
  transition: transform .35s cubic-bezier(.2, .8, .3, 1), box-shadow .35s;
  animation: floatUp .55s cubic-bezier(.2, .8, .3, 1) both;
}
.book-card:hover { transform: translateY(-7px); box-shadow: var(--sh-2); border-color: var(--primary-100); }
@keyframes floatUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.cover {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: linear-gradient(180deg, #f7faf8, #eef4f1); overflow: hidden;
}
.cover::after {
  content: ""; position: absolute; inset: 14% 16% 16%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0));
}
.book3d {
  position: relative; z-index: 1; width: 98px; height: 132px; border-radius: 4px 9px 9px 4px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 13px 12px 14px; color: #fff; text-align: center;
  box-shadow: 0 20px 26px -16px rgba(10, 40, 26, .7), 0 2px 0 rgba(255, 255, 255, .3) inset;
  transform: rotate(-4deg) translateY(0); transition: transform .4s cubic-bezier(.2, .8, .3, 1);
}
.cover:hover .book3d { transform: rotate(0deg) translateY(-6px) scale(1.04); }
.book3d::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 9px; border-radius: 4px 0 0 4px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .34), rgba(255, 255, 255, .1));
}
.book3d::after {
  content: ""; position: absolute; right: -5px; top: 4px; bottom: 4px; width: 6px; border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(180deg, #fff 0 2px, #e3e8e5 2px 3.5px);
}
.book3d .b-emoji { font-size: 30px; line-height: 1; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .3)); }
.book3d .b-title {
  font-size: 11px; font-weight: 700; line-height: 1.35; opacity: .96;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.badge-cond {
  position: absolute; top: 11px; left: 11px; z-index: 2;
  background: rgba(255, 255, 255, .95); color: var(--primary-700);
  font-size: 11.5px; font-weight: 750; padding: 3px 9px; border-radius: 999px;
  box-shadow: 0 4px 10px rgba(14, 40, 28, .12);
}
.ribbon {
  position: absolute; top: 0; right: 0; z-index: 2; padding: 4px 10px 4px 12px; font-size: 11.5px; font-weight: 800;
  color: #fff; background: linear-gradient(135deg, #ff9451, var(--accent));
  border-radius: 0 var(--r-lg) 0 12px; box-shadow: -3px 3px 10px rgba(244, 97, 78, .35);
}
.fav-btn {
  position: absolute; top: 9px; right: 9px; z-index: 3; width: 32px; height: 32px; border-radius: 50%;
  border: none; background: rgba(255, 255, 255, .92); cursor: pointer; font-size: 15px; line-height: 1;
  display: grid; place-items: center; transition: .22s; box-shadow: 0 4px 12px rgba(14, 40, 28, .14);
}
.ribbon ~ .fav-btn { top: 34px; }
.fav-btn:hover { transform: scale(1.14); }

.book-body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.book-title {
  margin: 0; font-size: 15px; font-weight: 720; line-height: 1.42; letter-spacing: -.1px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px;
}
.price { color: #e8501f; font-weight: 850; font-size: 21px; letter-spacing: -.6px; }
.price small { font-size: 13px; font-weight: 700; margin-right: 1px; }
.origin { color: var(--text-3); text-decoration: line-through; font-size: 12.5px; }
.tag {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  background: var(--primary-050); color: var(--primary-700); font-size: 11.5px; font-weight: 700;
}
.tag.warm { background: #fff2e8; color: #c2551b; }
.meta { display: flex; align-items: center; gap: 7px; color: var(--text-3); font-size: 12.5px; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }

/* ---------------- 空状态 ---------------- */
.empty {
  padding: 64px 20px; text-align: center; color: var(--text-2);
  background: rgba(255, 255, 255, .9); border-radius: var(--r-lg);
  border: 1px dashed var(--line-2); box-shadow: var(--sh-1);
}
.empty .big { font-size: 48px; display: block; margin-bottom: 12px; }

/* ---------------- 登录 / 注册 ---------------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 46px 22px; position: relative; overflow: hidden; }
.auth-wrap::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(760px 520px at 8% 6%, #d9f5e8 0, transparent 58%),
    radial-gradient(680px 480px at 98% 92%, #e2f0ff 0, transparent 55%),
    radial-gradient(520px 420px at 62% 0%, #fff2e2 0, transparent 60%);
}
.auth-shell {
  position: relative; width: 100%; max-width: 960px; display: grid; grid-template-columns: 1.05fr 1fr;
  background: #fff; border-radius: 26px; overflow: hidden; box-shadow: var(--sh-3);
  border: 1px solid rgba(255, 255, 255, .8);
}
.auth-side {
  position: relative; overflow: hidden; padding: 46px 40px; color: #fff;
  background: linear-gradient(150deg, #075e3b 0%, #0b7f4f 45%, #16b372 100%);
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-side::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(340px 260px at 88% 8%, rgba(255, 255, 255, .3), transparent 70%),
              radial-gradient(300px 260px at 0% 100%, rgba(0, 240, 170, .32), transparent 70%);
}
.auth-side > * { position: relative; z-index: 1; }
.auth-side h2 { margin: 22px 0 10px; font-size: 27px; font-weight: 850; letter-spacing: -.4px; }
.auth-side p { margin: 0; opacity: .9; font-size: 14.5px; }
.auth-side .logo-xl {
  width: 60px; height: 60px; border-radius: 19px; display: grid; place-items: center; font-size: 29px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px);
}
.auth-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.auth-points li { display: flex; align-items: center; gap: 10px; font-size: 14px; opacity: .95; }
.auth-points span { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); font-size: 13px; flex: none; }
.auth-side .side-foot { font-size: 12.5px; opacity: .7; }

.auth-main { padding: 44px 42px 34px; background: #fff; }
.auth-brand { margin-bottom: 22px; }
.auth-brand h1 { margin: 0 0 6px; font-size: 25px; font-weight: 850; letter-spacing: -.4px; }
.auth-brand p { margin: 0; color: var(--text-3); font-size: 14px; }

.tabs { display: flex; background: var(--bg); border-radius: 13px; padding: 4px; margin-bottom: 24px; }
.tabs button {
  flex: 1; padding: 9px 0; border: none; background: transparent; border-radius: 10px;
  cursor: pointer; font-weight: 680; color: var(--text-2); transition: .22s;
}
.tabs button.active { background: #fff; color: var(--primary-700); box-shadow: var(--sh-1); }

.code-row { display: flex; gap: 10px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 13px; margin: 22px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.qr-box {
  display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 16px;
  border: 1px solid var(--line-2); background: linear-gradient(120deg, #f8fdfa, #fff); cursor: pointer; transition: .22s;
}
.qr-box:hover { border-color: var(--primary); box-shadow: 0 10px 24px -14px rgba(15, 157, 99, .8); transform: translateY(-2px); }
.qr {
  width: 74px; height: 74px; border-radius: 12px; flex: none; background-color: #fff; border: 1px solid var(--line);
  background-image:
    linear-gradient(#123 0 0), linear-gradient(#123 0 0), linear-gradient(#123 0 0),
    repeating-conic-gradient(#123 0 25%, #fff 0 50%);
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-size: 16px 16px, 16px 16px, 16px 16px, 9px 9px;
  background-position: 5px 5px, 53px 5px, 5px 53px, 25px 25px;
}
.agree { color: var(--text-3); font-size: 12.5px; text-align: center; margin: 20px 0 0; }
.agree a { color: var(--primary-700); font-weight: 600; }
.auth-back { position: fixed; top: 22px; left: 22px; z-index: 5; background: rgba(255, 255, 255, .8); backdrop-filter: blur(8px); }

/* ---------------- 详情页 ---------------- */
.detail { display: grid; grid-template-columns: 400px 1fr; gap: 26px; margin: 26px 0; align-items: start; }
.detail-cover { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-2); border: 1px solid rgba(230, 236, 233, .9); overflow: hidden; }
.detail-cover .cover { aspect-ratio: 1 / 1; }
.detail-cover .book3d { width: 168px; height: 226px; padding: 20px 18px 22px; }
.detail-cover .book3d .b-emoji { font-size: 52px; }
.detail-cover .book3d .b-title { font-size: 14px; -webkit-line-clamp: 4; }
.detail-thumbs { display: flex; gap: 8px; padding: 12px; }
.detail-thumbs span { flex: 1; height: 8px; border-radius: 99px; background: var(--line); }
.detail-thumbs span:first-child { background: var(--primary); }

.price-box {
  background: linear-gradient(120deg, #fff7f1, #fff); border: 1px solid #ffe3d3;
  border-radius: 16px; padding: 18px 20px; margin-bottom: 18px;
}
.price-box .big-price { font-size: 34px; font-weight: 850; color: #e8501f; letter-spacing: -1px; }
.info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 0 0 18px; }
.info-list div { display: flex; gap: 8px; font-size: 14px; }
.info-list dt { color: var(--text-3); flex: none; }
.info-list dd { margin: 0; font-weight: 600; }
.seller { display: flex; align-items: center; gap: 12px; padding: 15px; border-radius: 16px; background: var(--bg); margin-bottom: 18px; border: 1px solid var(--line); }

/* ---------------- 我的 ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat {
  position: relative; overflow: hidden; background: #fff; border-radius: var(--r-lg); padding: 20px 22px;
  box-shadow: var(--sh-1); border: 1px solid rgba(230, 236, 233, .9); transition: .25s;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.stat b { display: block; font-size: 27px; font-weight: 850; color: var(--primary-700); letter-spacing: -.5px; }
.stat span { color: var(--text-2); font-size: 13px; }
.stat::after { content: ""; position: absolute; z-index: 0; right: -18px; top: -18px; width: 62px; height: 62px; border-radius: 50%; background: var(--primary-050); }
.stat b, .stat span { position: relative; z-index: 1; }

.list-row {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px;
  border: 1px solid var(--line); background: #fff; margin-bottom: 12px; transition: .22s;
}
.list-row:hover { border-color: var(--primary-100); box-shadow: var(--sh-1); transform: translateX(2px); }
.thumb { width: 60px; height: 60px; border-radius: 13px; flex: none; display: grid; place-items: center; font-size: 25px; color: #fff; box-shadow: var(--sh-1); }
.status { font-size: 12px; font-weight: 750; padding: 3px 10px; border-radius: 999px; }
.status.wait { background: #fff4e5; color: #b76f0c; }
.status.done { background: var(--primary-050); color: var(--primary-700); }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 42px; transform: translate(-50%, 20px) scale(.96);
  background: rgba(15, 26, 22, .94); color: #fff; padding: 12px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .28s cubic-bezier(.2, .8, .3, 1);
  z-index: 300; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .6); backdrop-filter: blur(8px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---------------- 页脚 ---------------- */
.footer { margin-top: 70px; padding: 34px 0 40px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; background: rgba(255, 255, 255, .5); }
.footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer .links a:hover { color: var(--primary-700); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; max-width: 460px; }
  .auth-side { display: none; }
  .detail, .publish-grid { grid-template-columns: 1fr; }
  .detail-cover { max-width: 420px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-search { display: none; }
  .hero-deco { display: none; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero { padding: 32px 24px; border-radius: 22px; }
  .hero h1 { font-size: 27px; }
  .hero p { font-size: 15px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 13px; }
  .book3d { width: 84px; height: 114px; padding: 11px 10px 12px; }
  .book3d .b-emoji { font-size: 24px; }
  .container { padding: 0 15px; }
  .panel { padding: 17px; }
  .auth-main { padding: 32px 24px 26px; }
  .info-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
