/* 配色与质感取自站标插画（data/brand/logo-original.png）：
   深海军蓝底 + 天蓝三角 + 奶油白毛衣 + 浅金头发 + 橙色鸟喙，蜡笔颗粒感 */
:root {
  --navy: #14396a;         /* 插画底色（横幅与原图同色） */
  --navy-2: #1c4479;       /* 二级导航条 */
  --navy-3: #2a5590;
  --sky: #75b7e7;          /* 三角形的天蓝 */
  --sky-2: #5f91bd;        /* 围巾蓝 */
  --sky-soft: #e3effa;
  --cream: #fcf0c8;        /* 头发的浅金 */
  --cream-2: #fbe7a6;
  --beak: #f2a65a;         /* 鸟喙橙：只用于横幅里的大数字 */
  --nav-ink: #fdf8ec;
  --bg: #f7f1e3;           /* 毛衣的奶油白 */
  --bg-2: #efe6d0;
  --card: #fffdf7;
  --ink: #1b2a45;
  --ink-2: #4f5b73;
  --ink-3: #7b8498;
  --line: #e6dcc4;
  --line-2: #eee6d3;
  --link: #2d67a6;
  --link-hover: #1d4f8c;
  --accent: var(--sky);
  --accent-soft: var(--sky-soft);
  --gold-soft: #fdf4dc;
  --danger: #c0442c;
  --focus: 0 0 0 3px rgba(117, 183, 231, .45);
  --shadow: 0 1px 2px rgba(19, 54, 103, .06), 0 4px 14px rgba(19, 54, 103, .06);
  --shadow-hover: 0 2px 6px rgba(19, 54, 103, .12), 0 14px 30px rgba(19, 54, 103, .14);
  --radius: 14px;
  /* 全站统一微软雅黑；其他系统没有雅黑时退回各自的黑体 */
  --yahei: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
  --sans: var(--yahei);
  --display: var(--yahei);
  --serif: var(--yahei);
  /* 蜡笔颗粒：白色细点 */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 3.2 0 0 0 -2.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* 散落的天蓝三角 */
  --triangles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' fill='%2375b7e7'%3E%3Cpath d='M30 18l15 27H15z'/%3E%3Cpath d='M150 8l11 20h-22z'/%3E%3Cpath d='M222 58l17 31h-34z'/%3E%3Cpath d='M92 92l10 18H82z'/%3E%3Cpath d='M190 150l13 24h-26z'/%3E%3Cpath d='M42 168l17 32H25z'/%3E%3Cpath d='M122 200l9 17h-18z'/%3E%3Cpath d='M242 218l10 18h-20z'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --navy: #0f2a52; --navy-2: #163a6b; --navy-3: #234e86;
    --bg: #0d1f3b; --bg-2: #152a4b; --card: #172d50; --ink: #f3ecd9; --ink-2: #c4cad8; --ink-3: #8f9ab1;
    --line: #2a4268; --line-2: #233a5e; --link: #8cc4ef; --link-hover: #b9dcf6; --sky-soft: #1d3e66;
    --gold-soft: #2a2c3a; --danger: #ff8a6b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
    --shadow-hover: 0 2px 6px rgba(0, 0, 0, .4), 0 14px 30px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14.5px/1.6 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--sky-2); outline-offset: 2px; }

/* ───── 顶部导航（全站共用，吸顶）：文字站名 + 分类 + 搜索（首页时搜索在横幅里）+ 账号 ───── */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--grain) 0 0 / 180px, var(--navy-2); color: var(--nav-ink); box-shadow: 0 2px 10px rgba(19, 54, 103, .18); }
.topbar-inner { max-width: 1500px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 16px; }
.brand { flex: none; font: 700 19px/1 var(--yahei); white-space: nowrap; letter-spacing: .05em; color: var(--cream); }
.brand:hover { color: #fff; }
.chips { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; mask-image: linear-gradient(90deg, #000 94%, transparent); padding-right: 20px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; border: 0; background: transparent; color: var(--nav-ink); cursor: pointer; font-size: 15px; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.chip:hover { background: rgba(255, 255, 255, .22); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(253, 240, 200, .7); }
.chip[aria-pressed="true"] { background: var(--cream); color: var(--navy); font-weight: 700; }
.search-slot { flex: none; width: 320px; }
/* 搜索框右边：跳到喜马拉雅主播页 */
.my-xmly { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; margin-left: -6px; border-radius: 19px; border: 1.5px solid var(--cream); background: var(--cream); color: var(--navy); font-size: 14.5px; font-weight: 700; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.my-xmly svg { flex: none; width: 18px; height: 18px; }
/* 平时浅黄实心，悬停变透明描边 */
.my-xmly:hover, .my-xmly:focus-visible { background: transparent; border-color: rgba(253, 240, 200, .7); color: var(--cream); }

.search { position: relative; display: flex; height: 38px; border-radius: 19px; background: var(--card); }
.search:focus-within { box-shadow: 0 0 0 3px rgba(117, 183, 231, .55); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; border-radius: 19px 0 0 19px; background: transparent; color: var(--ink); padding: 0 34px 0 16px; outline: none; font-size: 14.5px; }
.search input::placeholder { color: var(--ink-3); }
.search input::-webkit-search-cancel-button { display: none; }
.search-go { flex: none; width: 48px; border: 0; border-radius: 0 19px 19px 0; background: var(--cream-2); color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.search-go:hover { background: #f8dc85; }
.search-go svg { width: 20px; height: 20px; }
.search-clear { position: absolute; right: 52px; top: 50%; translate: 0 -50%; z-index: 1; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 20px; line-height: 1; }
.search-clear:hover { background: var(--bg-2); }
.suggest { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; min-width: 280px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-hover); overflow: hidden; }
.suggest a { display: flex; gap: 10px; align-items: center; padding: 7px 14px; }
.suggest a[aria-selected="true"], .suggest a:hover { background: var(--sky-soft); }
.suggest img, .suggest .ph { width: 32px; height: 44px; object-fit: cover; border-radius: 4px; flex: none; background: var(--bg-2); }
.suggest .t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .s { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .all { justify-content: center; color: var(--link); font-size: 14px; border-top: 1px solid var(--line-2); }
.suggest .tx { min-width: 0; }


.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 18px; border-radius: 100px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; font-size: 14px; transition: background .15s, border-color .15s, color .15s, transform .1s; }
.btn:hover { border-color: var(--sky-2); background: var(--sky-soft); }
.btn:active { transform: scale(.98); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn[disabled] { opacity: .55; cursor: default; }

/* ───── 首页横幅：站名、总数 + 搜索、全部关键词；右侧是原图（底色与横幅相同，四周渐隐） ───── */
.wrap { max-width: 1500px; margin: 0 auto; padding: 0 16px; }
.hero { --art-right: 150px; --art-w: 330px; position: relative; margin: 16px 0 6px; min-height: 360px; border-radius: 20px; background: url(/img/crayon-bg.webp) 0 0 / 640px, #24508a; color: var(--nav-ink); display: flex; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: url(/img/crayon-tri.webp) 0 0 / 640px;
  mask-image: radial-gradient(ellipse 48% 120% at calc(100% - var(--art-right) - var(--art-w) / 2) 50%, #000 0, rgba(0, 0, 0, .5) 45%, rgba(0, 0, 0, .12) 75%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 48% 120% at calc(100% - var(--art-right) - var(--art-w) / 2) 50%, #000 0, rgba(0, 0, 0, .5) 45%, rgba(0, 0, 0, .12) 75%, transparent 100%); }
.hero-art { position: absolute; right: var(--art-right); bottom: 0; height: 360px; width: auto; max-width: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 20%, #000 80%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20%, #000 80%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%);
  mask-composite: intersect; -webkit-mask-composite: source-in; }
.hero-text { position: relative; z-index: 1; padding: 30px 36px; width: 100%; max-width: calc(100% - var(--art-right) - var(--art-w) + 40px); }
.hero .stats { display: flex; align-items: baseline; gap: 10px; color: var(--cream); white-space: nowrap; }
.hero .stats b { color: var(--beak); font: 800 clamp(52px, 6vw, 80px)/1 var(--yahei); letter-spacing: .02em; }
.hero .stats span { font: 700 clamp(20px, 2.2vw, 28px)/1.2 var(--yahei); }
.kw { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.kw-tag { display: inline-flex; gap: 5px; height: 32px; align-items: center; padding: 0 13px; border-radius: 16px; border: 1px solid rgba(253, 248, 236, .22); background: rgba(255, 255, 255, .07); color: var(--nav-ink); cursor: pointer; font-size: 14px; transition: background .15s, border-color .15s, box-shadow .15s, color .15s; }
.kw-tag small { font-size: 11.5px; opacity: .55; }
.kw-tag.all { font-weight: 700; border-color: rgba(253, 248, 236, .4); }
.kw-tag:hover { background: rgba(117, 183, 231, .2); border-color: var(--sky); color: #fff; box-shadow: 0 0 0 3px rgba(117, 183, 231, .3), 0 0 14px rgba(117, 183, 231, .35); }
.kw-tag:hover small { opacity: .9; }
.kw-tag[aria-pressed="true"]:hover { background: var(--cream); color: var(--navy); }
.kw-tag[aria-pressed="true"] { background: var(--cream); border-color: var(--cream); color: var(--navy); font-weight: 700; }
.kw-tag[aria-pressed="true"] small { opacity: .7; }
/* 以下只在手机版出现：横幅里的账号名、“我的喜马拉雅”，标签折叠三角，导航短名 */
.hero-name, .kw-toggle, .chip .l-short { display: none; }
/* 数字上方的粗体副标题（电脑和手机都显示） */
.hero-sub { margin-bottom: 10px; font: 700 clamp(18px, 1.8vw, 24px)/1.3 var(--yahei); color: var(--cream); letter-spacing: -.02em; }  /* 字距 -20 */
/* 横幅左侧、数字下方的“我的喜马拉雅”（电脑和手机都显示，手机版尺寸见下方媒体查询） */
.hero-xmly { display: inline-flex; align-items: center; gap: 8px; height: 42px; margin-top: 16px; padding: 0 20px; border-radius: 21px; border: 1.5px solid var(--cream); background: var(--cream); color: var(--navy); font-size: 16px; font-weight: 700; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.hero-xmly svg { flex: none; width: 20px; height: 20px; }
.hero-xmly:hover, .hero-xmly:focus-visible { background: transparent; border-color: rgba(253, 240, 200, .7); color: var(--cream); }
/* 电脑版：“我的喜马拉雅”和“有声图书月度优质主播”同一行（按钮在左），数字在下一行。
   只调视觉顺序（order），HTML 顺序不变，手机版仍是竖排 */
@media (min-width: 641px) {
  .hero-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; }
  .hero-xmly { order: 1; margin-top: 0; }
  .hero-sub { order: 2; margin-bottom: 0; }
  .hero-head .stats { order: 3; flex-basis: 100%; margin-top: 14px; }
}

/* 推荐专辑和顶部微信圆形按钮只在手机版出现（样式见手机断点） */
.picks, .wx-top { display: none; }
/* “联系我”弹窗：微信号 + 名片二维码 */
.wx-dialog { width: min(320px, calc(100vw - 48px)); padding: 26px 20px 20px; border: 0; border-radius: 20px; background: var(--card); color: var(--ink); text-align: center; box-shadow: var(--shadow-hover); }
.wx-dialog::backdrop { background: rgba(10, 30, 66, .45); }
.wx-close { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border: 0; background: none; color: var(--ink-3); font-size: 26px; line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.wx-dialog:focus, .wx-close:focus:not(:focus-visible) { outline: none; }
.wx-qr img { display: block; width: 220px; height: auto; margin: -6px auto 6px; border-radius: 10px; background: #fff; }
.wx-qr p { margin: 0 0 14px; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.wx-id { font-size: 14px; color: var(--ink-2); }
.wx-id b { display: block; margin-top: 2px; font-size: 24px; letter-spacing: .02em; color: var(--ink); -webkit-user-select: all; user-select: all; }
.wx-copy, .wx-copy:hover { width: 100%; height: 46px; margin-top: 14px; border-color: #07c160; background: #07c160; color: #fff; font-size: 15px; font-weight: 700; }
.wx-copy svg { width: 20px; height: 20px; }
.wx-tip { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-3); }
.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 0; }
.feed-title { font: 700 20px/1.3 var(--yahei); display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.feed-title a { color: var(--ink-3); font-weight: 400; }
.feed-title a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.feed-title .sep { color: var(--ink-3); font-weight: 400; }
.feed-title .n { color: var(--ink-3); font-size: 14px; font-weight: 400; }
.sort-label { flex: none; white-space: nowrap; display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13.5px; }
.sort { height: 32px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); padding: 0 10px; font-size: 13.5px; cursor: pointer; }

.result-head { padding: 18px 0 6px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.result-head h1 { font: 700 24px var(--display); margin: 0; }
.result-head .meta { color: var(--ink-3); font-size: 13.5px; }

/* ───── 瀑布流卡片 ───── */
.masonry { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0 24px; }
.masonry .col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; animation: rise .35s ease both; }
.card:hover { transform: translateY(-6px); box-shadow: 0 0 0 2px var(--sky), 0 18px 36px rgba(19, 54, 103, .22); }
.card a { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.cover { position: relative; background: var(--bg-2); overflow: hidden; }
/* 图片必须叠在文字占位（.ph，绝对定位）之上，否则加载完也会被盖住 */
.cover img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.cover img.loaded { opacity: 1; }
.cover .ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; text-align: center; font: 700 19px/1.35 var(--display); color: var(--cream); background: var(--triangles) 0 0 / 200px, var(--navy); }
.ribbon { position: absolute; z-index: 2; left: 10px; top: 10px; background: var(--cream-2); color: var(--navy); font-size: 12px; font-weight: 700; padding: 3px 10px 3px 8px; border-radius: 12px; display: flex; gap: 4px; align-items: center; max-width: calc(100% - 20px); box-shadow: 0 2px 6px rgba(19, 54, 103, .25); }
.ribbon span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vol { position: absolute; z-index: 2; right: 10px; bottom: 10px; background: rgba(19, 54, 103, .82); color: var(--cream); font-size: 12px; padding: 1px 9px; border-radius: 10px; }
.card .body { padding: 12px 14px 14px; }
.card h3 { margin: 0; font: 700 16px/1.4 var(--sans); color: var(--ink); }
.card a:hover h3 { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.card .en { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .by { font-size: 13px; color: var(--sky-2); margin-top: 3px; }
.card .line { margin: 7px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.card .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.tag { font-size: 12px; padding: 0 9px; border-radius: 10px; background: var(--bg-2); color: var(--ink-2); line-height: 21px; }

.sentinel { height: 1px; }
.loading { text-align: center; color: var(--ink-3); padding: 24px 0 40px; font-size: 14px; }
.empty { text-align: center; padding: 70px 20px; color: var(--ink-2); }
.empty h2 { font: 700 24px var(--display); margin: 0 0 8px; color: var(--ink); }
.skeleton { background: linear-gradient(90deg, var(--bg-2) 25%, var(--card) 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ───── 会员档位与价格页 ───── */
.member { max-width: 760px; padding-top: 28px; padding-bottom: 10px; }
.member h1 { font: 700 clamp(24px, 3vw, 32px)/1.3 var(--display); margin: 0 0 18px; }
.member-table { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.member-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.member-table th, .member-table td { padding: 12px 14px; text-align: left; vertical-align: middle; border-top: 1px solid var(--line-2); }
.member-table thead th { border-top: 0; background: var(--navy); color: var(--cream); font-size: 13px; font-weight: 700; }
.member-table tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.member-table td { color: var(--ink-2); }
.member-table .price { font-weight: 700; color: var(--ink); white-space: nowrap; }
.member-notes { margin: 18px 0 0; padding: 14px 16px; background: var(--gold-soft); border: 1px solid var(--line-2); border-radius: var(--radius); }
.member-notes p { margin: 0 0 10px; color: var(--ink-2); line-height: 1.75; }
.member-notes p:last-child { margin-bottom: 0; }
.member-notes b { color: var(--ink); }
.member h2 { font: 700 clamp(20px, 2.4vw, 24px)/1.3 var(--display); margin: 34px 0 14px; }
/* 权益对比：三档会员列居中对齐，便于横向比较 */
.member-table.compare thead th:not(:first-child), .member-table.compare td { text-align: center; }
.member-table.compare td { width: 24%; }

/* ───── 详情页 ───── */
.detail { display: grid; grid-template-columns: 300px 1fr; gap: 44px; padding: 28px 0 10px; }
.detail .left { position: sticky; top: 72px; align-self: start; }
.detail .bigcover { border-radius: 10px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow-hover); }
.detail .bigcover img { width: 100%; }
.detail .actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.detail .actions .btn { flex: 1; }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.crumbs a:hover { color: var(--link); }
.detail h1 { font: 700 clamp(26px, 3.2vw, 36px)/1.3 var(--display); margin: 0; letter-spacing: .02em; }
.detail .en { color: var(--ink-3); font-size: 16px; margin-top: 4px; }
.detail .sub { color: var(--ink-2); margin-top: 6px; }
.facts-row { display: flex; gap: 12px; align-items: stretch; margin: 20px 0; }
.facts { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 0; }
/* 信息栏右侧固定 300px 的收听入口 */
.listen-col { flex: 0 0 300px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px; border-radius: 14px; background: var(--cream-2); color: var(--navy); font-weight: 700; font-size: 15px; border: 1px solid var(--cream-2); transition: background .15s, border-color .15s, box-shadow .15s; }
.listen-col svg { flex: none; width: 22px; height: 22px; }
.listen-col:hover, .listen-col:focus-visible { background: #fff; color: var(--navy); border-color: var(--sky-2); box-shadow: 0 0 0 3px rgba(117, 183, 231, .25); }
/* 会员独享书的微信按钮只在手机版出现，电脑版照常显示喜马拉雅收听按钮 */
.listen-col.wx-col { display: none; }
.wx-col, .wx-col:hover, .wx-col:focus-visible { font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; background: #07c160; border-color: #07c160; color: #fff; box-shadow: none; }
.wx-col:active { background: #06a853; }
.facts div { flex: 1 1 auto; min-width: 72px; background: var(--card); padding: 10px 14px; }  /* 按内容宽度并排一行，放不下才换行 */
.facts dt { font-size: 12px; color: var(--ink-3); }
.facts dd { margin: 2px 0 0; font-weight: 700; font-size: 14.5px; overflow-wrap: break-word; }
.quote { position: relative; background: var(--navy); color: var(--cream); padding: 14px 18px 14px 20px; margin: 0 0 22px; font: 17px/1.7 var(--display); border-radius: 14px; overflow: hidden; }
.quote::before { content: ""; position: absolute; inset: 0; background: var(--triangles) 0 0 / 220px; opacity: .25; }
.section { margin: 28px 0; }
.section h2 { font: 700 22px var(--display); margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.section h2::before { content: ""; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid var(--sky); }
.prose p { margin: 0 0 12px; color: var(--ink-2); line-height: 1.85; }
.prose h3 { font: 700 16px var(--sans); margin: 18px 0 8px; color: var(--ink); }
.awards { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.awards li { display: flex; gap: 12px; align-items: center; background: var(--gold-soft); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; }
.medal { width: 34px; height: 34px; flex: none; }
.awards b { display: block; font-size: 14.5px; }
.awards small { color: var(--ink-2); font-size: 12.5px; }
.taglist { display: flex; flex-wrap: wrap; gap: 8px; }
.taglist a { font-size: 13px; padding: 4px 13px; border-radius: 14px; background: var(--sky-soft); color: var(--link); }
.taglist a:hover { background: var(--sky); color: var(--navy); }


/* ───── 提示 ───── */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--navy); color: var(--cream); padding: 10px 18px; border-radius: 22px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ───── 页脚 ───── */
.footer { position: relative; margin-top: 30px; background: var(--navy); color: #c9d6ea; font-size: 12.5px; text-align: center; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0; background: var(--grain) 0 0 / 180px, var(--triangles) 0 0 / 260px; opacity: .35; pointer-events: none; }
.footer .totop { position: relative; display: block; width: 100%; padding: 13px 0; border: 0; background: var(--navy-2); color: var(--cream); font-size: 13px; cursor: pointer; }
.footer .totop:hover { background: var(--navy-3); }
.footer .tohome { display: none; }  /* 只在手机版详情页和分类页出现，见手机断点 */
.footer .dock { position: relative; }
.footer p { position: relative; margin: 0; padding: 26px 20px 34px; }

@media (max-width: 860px) {
  .detail { grid-template-columns: 1fr; gap: 22px; padding-top: 20px; }
  .detail .left { position: static; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; align-items: end; }
  .detail .actions { margin-top: 0; flex-direction: column; flex-wrap: nowrap; }
  .facts-row { flex-direction: column; }
  .listen-col { flex-basis: auto; height: 48px; }
}
@media (max-width: 640px) {
  /* 详情页（手机）：封面放大 30%（130 → 169px），书库 / 书名 / 英文名 / 短句放到封面右侧、分享按钮上方。
     左栏和正文都用 display: contents 拆开，让封面、标题块、按钮和下面各段直接排进同一个网格 */
  .detail { grid-template-columns: 169px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0 14px; }
  .detail .left, .detail > article { display: contents; }
  .detail .bigcover { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  /* 封面统一成正方形（169 × 169，对应 640 × 640 的方图）：竖版封面完整缩放居中、不裁切，两侧用同一张图的模糊放大版填满 */
  .detail .bigcover .cover { aspect-ratio: 1 / 1 !important; }
  .detail .bigcover .cover::before { content: ""; position: absolute; inset: -16px; z-index: 1; background: var(--img, none) center / cover; filter: blur(14px) brightness(.85); }
  .detail .bigcover .cover img { object-fit: contain; }
  .detail-head { grid-column: 2; grid-row: 1; min-width: 0; }
  /* 只剩“分享”一个按钮：占满封面右侧一栏，高 56；书名短时按钮底边对齐封面底边 */
  .detail .actions { grid-column: 2; grid-row: 2; align-self: end; margin-top: 12px; flex-direction: row; }
  .detail .actions .btn { flex: 1; min-width: 0; height: 56px; padding: 0 8px; font-size: 15px; border-radius: 14px; }
  .detail > article > :not(.detail-head) { grid-column: 1 / -1; }
  /* “在喜马拉雅收听专辑”放到作者那组信息表格的上面，固定 60px 高 */
  .facts-row { flex-direction: column; }
  .listen-col { order: -1; height: 60px; }
  /* 会员独享的书：手机版用微信按钮替换喜马拉雅收听按钮 */
  .listen-col.wx-col { display: flex; }
  .wx-col ~ a.listen-col { display: none; }
  .detail-head .crumbs { margin-bottom: 4px; }
  .detail-head h1 { font-size: 22px; line-height: 1.3; overflow-wrap: anywhere; }
  .detail-head .en { font-size: 13.5px; margin-top: 2px; }
  .detail-head .sub { font-size: 13.5px; margin-top: 4px; line-height: 1.5; }
  /* 分享后的提示（手机）：屏幕正中、大字、半透明浅蓝底 */
  .toast.center { top: 50%; bottom: auto; transform: translate(-50%, -50%) scale(.94); width: max-content; max-width: calc(100vw - 48px); padding: 16px 28px; border-radius: 18px;
    background: rgba(117, 183, 231, .7); color: var(--navy); font-size: 18px; font-weight: 700; text-align: center;
    box-shadow: none; }  /* 单一浅蓝、70% 不透明，不加背景模糊和阴影，避免看起来有渐变 */
  .toast.center.show { transform: translate(-50%, -50%); }
}
@media (max-width: 1180px) {
  .search-slot { width: 240px; }
  .chip { padding: 0 11px; }
}
@media (max-width: 1000px) {
  .hero { --art-right: 16px; --art-w: 280px; }
}
@media (max-width: 640px) {
  /* 顶部导航两行：站名（其他页面换成搜索框）+ 账号；下面一行是分类，可横向滑动 */
  /* 比原来高 8px：分类行上下各多 4px，夹在搜索框和底边正中 */
  .topbar-inner { padding: 8px 12px 10px; gap: 10px 8px; flex-wrap: wrap; }
  .brand { display: none; }
  .search-slot { flex: 1; width: auto; min-width: 0; }
  /* 右边多了微信按钮，搜索框变窄：没输入时不给清空按钮留位置，提示词用 14px（输入的字仍是 16px，iOS 不会放大） */
  .search input { padding-left: 12px; }
  .search input:placeholder-shown { padding-right: 6px; }
  .search input::placeholder { font-size: 14px; }
  /* 第一行右侧（原登录 / 注册的位置）放“我的喜马拉雅”，和电脑版同一样式，尺寸缩小 */
  /* 高度、圆角和左边的搜索框一致（38px），底色浅黄（同搜索按钮） */
  .my-xmly { height: 38px; padding: 0 12px; margin-left: 0; gap: 5px; border-radius: 19px; border: 0; background: var(--cream-2); color: var(--navy); font-size: 13.5px; }
  .my-xmly svg { width: 16px; height: 16px; }
  /* 微信圆形按钮：顶部最右边，直径和左边“我的喜马拉雅”按钮一样高（38px） */
  .wx-top { flex: none; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #07c160; color: #fff; cursor: pointer; }
  .wx-top svg { width: 22px; height: 22px; }
  .wx-top:active { background: #06a853; }
  .my-xmly:hover, .my-xmly:focus-visible, .my-xmly:active { background: #f8dc85; color: var(--navy); }
  /* 分类收紧间距，360px 宽以上的手机一行放得下；放得下时均匀铺开，放不下仍可横向滑动 */
  .chips { order: 3; flex-basis: 100%; margin: 0 -12px; padding: 0 12px; gap: 0; justify-content: space-between;
    mask-image: linear-gradient(90deg, #000 calc(100% - 12px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 12px), transparent); }
  .chip { padding: 0 7px; font-size: 14px; height: 32px; }
  .chip .l-full { display: none; }
  .chip .l-short { display: inline; }
  .facts div { padding: 8px 10px; }
  .facts dd { font-size: 13.5px; }
  .wrap { padding: 0 12px; }
  .masonry, .masonry .col { gap: 12px; }
  .card .body { padding: 10px 11px 12px; }
  .card h3 { font-size: 15px; }
  .card .line { font-size: 13px; }
  .card .tag { line-height: 19px; border: 1px solid rgba(117, 183, 231, .65); }  /* 浅蓝描边，高度不变 */
  /* 横幅：人物缩小放右上角，站名和数字在它左边，搜索框和关键词在下面铺满 */
  .hero { --art-right: 0px; --art-w: 150px; min-height: 0; margin-top: 12px; border-radius: 16px; display: block; }
  /* 人物身后的蜡笔三角向四周延伸，越往外越淡，但不完全消失：整块横幅都铺着一层淡淡的三角；贴图缩小，三角大小接近插画里的 */
  .hero::before { background-size: 380px;
    mask-image: radial-gradient(ellipse 115% 75% at calc(100% - 95px) 18%, #000 0, rgba(0, 0, 0, .7) 18%, rgba(0, 0, 0, .42) 40%, rgba(0, 0, 0, .26) 65%, rgba(0, 0, 0, .18) 85%, rgba(0, 0, 0, .16) 100%);
    -webkit-mask-image: radial-gradient(ellipse 115% 75% at calc(100% - 95px) 18%, #000 0, rgba(0, 0, 0, .7) 18%, rgba(0, 0, 0, .42) 40%, rgba(0, 0, 0, .26) 65%, rgba(0, 0, 0, .18) 85%, rgba(0, 0, 0, .16) 100%); }
  .hero-art { top: 0; bottom: auto; right: 20px; height: 172px;
    mask-image: linear-gradient(90deg, transparent 0, #000 20%, #000 80%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 91%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20%, #000 80%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 91%, transparent 100%); }
  .hero-text { max-width: none; padding: 14px 14px 16px; }
  /* 人物左边竖排：账号名、副标题、数字 + “本好书”、“我的喜马拉雅”；
     这一栏高度 = 人物高度 - 上内边距，按钮贴底，所以按钮下沿正好和人物下沿对齐 */
  .hero-head { padding-right: 140px; min-height: calc(172px - 14px); display: flex; flex-direction: column; align-items: flex-start; }
  .hero-name { display: block; font: 700 min(25px, 6.6vw)/1.25 var(--yahei); color: var(--cream); letter-spacing: .01em; white-space: nowrap; }  /* 窄屏跟着缩，不压到人物 */
  .hero-sub { display: block; margin: 2px 0 0; font-size: 16px; font-weight: 700; line-height: 1.3; color: rgba(253, 248, 236, .72); letter-spacing: -.02em; white-space: nowrap; }
  /* 数字在副标题和按钮之间的空白里上下居中，再整体下移 2px（用 translate，不占高度，不影响按钮对齐） */
  .hero .stats { margin: auto 0; padding: 6px 0; flex-wrap: nowrap; gap: 6px; max-width: 100%; translate: 0 2px; }
  /* 数字用偏瘦的窄体粗字：iOS 的 DIN Condensed、Windows 的 Bahnschrift、安卓的 Roboto Condensed */
  .hero .stats b { font-family: "DIN Condensed", "Bahnschrift", "Roboto Condensed", sans-serif-condensed, "Arial Narrow", var(--yahei); font-stretch: condensed; font-weight: 600; font-size: 50px; letter-spacing: .01em; }
  .hero .stats span { font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .hero-xmly { display: inline-flex; align-items: center; gap: 6px; height: 40px; margin-top: 0; padding: 0 18px; border-radius: 20px; border: 1.5px solid var(--cream); background: var(--cream); color: var(--navy); font-size: 15.5px; font-weight: 700; white-space: nowrap; }
  .hero-xmly svg { flex: none; width: 19px; height: 19px; }
  .hero-xmly:active, .hero-xmly:hover { background: transparent; border-color: rgba(253, 240, 200, .7); color: var(--cream); }
  .kw { gap: 6px; margin-top: 14px; }
  .kw-tag { height: 30px; padding: 0 10px; font-size: 13px; }
  /* “全部标签”：不用奶油色实底，和其他标签同一种半透明描边样式，只是底色略深一点、字加粗 */
  .kw-tag.all, .kw-tag.all[aria-pressed="true"], .kw-tag.all[aria-pressed="true"]:hover { background: rgba(10, 30, 66, .22); border-color: rgba(253, 248, 236, .4); color: var(--nav-ink); }
  /* 标签默认只露一行，右下角三角形展开/收起；这一行排在“全部标签”后面的固定是 中章书、冒险、奇幻 */
  .kw:not(.open) { max-height: 30px; overflow: hidden; }
  .kw-tag.all { order: -4; }
  .kw-tag[data-tag="中章书"] { order: -3; }
  .kw-tag[data-tag="冒险"] { order: -2; }
  .kw-tag[data-tag="奇幻"] { order: -1; }
  .kw-toggle:not([hidden]) { display: grid; place-items: center; width: 40px; height: 26px; margin: 4px -8px -10px auto; padding: 0; border: 0; background: none; cursor: pointer; }
  .kw-toggle::before { content: ""; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 11px solid var(--cream); transition: transform .2s; }
  .kw-toggle[aria-expanded="true"]::before { transform: rotate(180deg); }
  /* 推荐专辑：横幅和瀑布流之间，一页 4 个正方形封面，左右滑动翻页；封面下方居中提示“试试左右滑动” */
  .picks:not([hidden]) { display: block; margin: 14px 0 0; }
  .picks-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
  .picks-title { margin: 0; font: 700 18px/1.3 var(--yahei); color: var(--ink); }
  .picks-more { flex: none; display: inline-flex; align-items: baseline; gap: 2px; font-size: 15px; color: var(--link); }
  .picks-more span { font-size: 18px; line-height: 1; }
  .picks-more:active { color: var(--link-hover); }
  /* 会员档位页：表格四列在窄屏上压紧一些 */
  .member { padding-top: 18px; }
  .member h1 { font-size: 24px; margin-bottom: 14px; }
  .member-table table { font-size: 14px; }
  .member-table th, .member-table td { padding: 11px 8px; }
  .member-table th:first-child, .member-table td:first-child { padding-left: 12px; }
  .member-table th:last-child, .member-table td:last-child { padding-right: 12px; }
  .member-table thead th, .member-table td:nth-child(2) { white-space: nowrap; }
  .member-table tbody th { white-space: normal; }  /* “ximi团 / 月卡”折成两行，把宽度留给收听方式 */
  .member-notes { padding: 12px 14px; }
  .member-notes p { font-size: 14px; }
  .member h2 { margin-top: 26px; }
  .member-table.compare td { white-space: normal; }  /* 额度说明较长，手机上允许折行 */
  .picks-hint { margin: 8px 0 0; text-align: center; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
  .picks-track { position: relative; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .picks-track::-webkit-scrollbar { display: none; }
  .picks-page { flex: 0 0 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; scroll-snap-align: start; scroll-snap-stop: always; }
  .pick { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--triangles) 0 0 / 120px, var(--navy); }
  .pick img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .pick span { position: absolute; inset: 0; display: grid; place-items: center; padding: 6px; text-align: center; font: 700 12px/1.3 var(--yahei); color: var(--cream); }
  .feed-title { font-size: 18px; }
  /* 底部悬停条（.dock）：和顶部导航同一风格（深蓝 + 蜡笔颗粒 + 奶油色字）；
     底部留出 iPhone 横条的安全区，页面底部垫出同样高度，页脚文字不被挡住 */
  body { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
  .footer .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center;
    padding: 0 0 env(safe-area-inset-bottom); background: var(--grain) 0 0 / 180px, var(--navy-2); box-shadow: 0 -2px 10px rgba(19, 54, 103, .18); }
  /* 平时藏在屏幕下沿外，往下滚过大半屏（JS 加 .show）才滑上来 */
  .footer .dock { transform: translateY(100%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
  .footer .dock.show { transform: none; visibility: visible; transition: transform .25s ease; }
  .footer .totop { flex: 1; width: auto; padding: 0; line-height: 48px; background: none; color: var(--cream); font-size: 15px; font-weight: 700; letter-spacing: .05em; }
  .footer .totop::before { content: ""; display: inline-block; vertical-align: 1px; margin-right: 8px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 9px solid var(--cream); }
  .footer .totop:hover, .footer .totop:active { background: rgba(255, 255, 255, .06); }
  /* 专辑详情页、分类页和标签页：两段文字“首页”“顶部”并排居中；不做成按钮样式，只配小图标 */
  .sub-page .footer .dock { justify-content: center; gap: 24px; }
  .sub-page .footer .totop, .sub-page .footer .tohome { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 14px; line-height: 1;
    background: none; color: var(--cream); font-size: 15px; font-weight: 700; letter-spacing: .05em; text-decoration: none; }
  .sub-page .footer .totop::before { margin-right: 0; }
  .sub-page .footer .totop .lead { display: none; }  /* 这些页面“回到顶部”简写成“顶部” */
  .sub-page .footer .totop:active, .sub-page .footer .tohome:active { background: none; opacity: .7; }
  .footer .tohome svg { width: 16px; height: 16px; }
  .footer p { padding: 21px 20px 29px; }  /* 底部那行说明比电脑版矮 10px（上下各少 5px） */
  .toast { bottom: calc(64px + env(safe-area-inset-bottom)); }  /* 底部提示让到悬停条上方 */
}
/* iOS Safari 聚焦字号小于 16px 的输入框/下拉框时会自动放大页面，失焦后不会缩回；
   手机、平板等触屏设备上所有输入控件统一用 16px，避免放大（不用 maximum-scale，保留双指缩放）。
   以后新增的输入框只要不单独写更小的字号，也自动被这里覆盖 */
@media (max-width: 400px) {
  /* 顶部一行：搜索框 + 我的喜马拉雅 + 微信，窄屏收紧间距，让“你想看什么书？”放得下 */
  .topbar-inner { column-gap: 6px; }
  .my-xmly { padding: 0 10px; }
  .search-go { width: 40px; }
  /* 窄屏手机标签收紧一点，保证第一行放得下 全部标签 + 中章书 + 冒险 + 奇幻（要放在上面 640px 那段之后才能覆盖它） */
  .kw { gap: 4px; }
  .kw-tag { padding: 0 7px; gap: 3px; font-size: 12.5px; }
}
@media (max-width: 640px), (hover: none) and (pointer: coarse) {
  input, select, textarea, .search input, .sort { font-size: 16px; }
}
/* 只有 iOS / iPadOS 的 WebKit 支持 -webkit-touch-callout：接了键盘触控板的 iPad 也算进来 */
@supports (-webkit-touch-callout: none) {
  input, select, textarea, .search input, .sort { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
