/* ==========================================================
   记录我的人生 —— 前台主样式
   风格：米白底色 + 玫瑰金点缀 + 中文衬线标题
   ========================================================== */

:root {
  --cream: #faf8f4;
  --card: #ffffff;
  --ink: #4a4340;
  --ink-soft: #8a827c;
  --rose: #c08a9a;
  --rose-deep: #a45f72;
  --rose-pale: #f4e8ec;
  --line: #eee7dd;
  --shadow: 0 2px 14px rgba(120, 90, 80, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Serif SC", serif;
  font-size: 15px;
  line-height: 1.7;
}

img { max-width: 100%; display: block; pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
a { color: var(--rose-deep); text-decoration: none; }
a:hover { color: var(--rose); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; height: 66px;
}
h1.logo { font-size: 22px; letter-spacing: 2px; font-weight: 600; white-space: nowrap; }
h1.logo a { color: var(--ink); }
h1.logo a:hover { color: var(--rose-deep); }
a.logo-img { display: block; line-height: 0; }
a.logo-img img { display: block; width: 248px; height: auto; max-height: 55px; }
/* logo 两侧向上飘的小爱心（肥皂泡感：升起+左右摇晃+放大渐隐） */
.logo-fx { position: relative; display: inline-block; line-height: 0; }
.fx-hearts { position: absolute; inset: 0; pointer-events: none; }
.fx-heart {
  position: absolute; bottom: 4px; z-index: 2;
  font-size: 26px; line-height: 1;
  color: #ff74b5;
  opacity: 0; pointer-events: none; user-select: none;
  text-shadow: 0 0 10px rgba(255, 125, 190, .75);
  animation: fx-bubble-a 5.2s ease-in-out infinite;
}
.fx-heart.fx-l1 { left: -18px; font-size: 26px; }
.fx-heart.fx-l2 { left: -30px; font-size: 20px; animation-name: fx-bubble-b; animation-duration: 6.6s; animation-delay: 2.1s; }
.fx-heart.fx-l3 { left: -8px; font-size: 32px; animation-name: fx-bubble-c; animation-duration: 7.4s; animation-delay: 3.6s; }
.fx-heart.fx-r1 { right: -18px; font-size: 23px; animation-name: fx-bubble-b; animation-duration: 5.6s; animation-delay: 1s; }
.fx-heart.fx-r2 { right: -30px; font-size: 28px; animation-name: fx-bubble-a; animation-duration: 6.9s; animation-delay: 2.8s; }
.fx-heart.fx-r3 { right: -8px; font-size: 20px; animation-name: fx-bubble-c; animation-duration: 4.8s; animation-delay: 4.3s; }
@keyframes fx-bubble-a {
  0%   { transform: translate(0, 0) scale(.5) rotate(-8deg); opacity: 0; }
  10%  { opacity: .9; }
  30%  { transform: translate(7px, -22px) scale(.72) rotate(6deg); }
  52%  { transform: translate(-6px, -44px) scale(.9) rotate(-6deg); opacity: .9; }
  75%  { transform: translate(5px, -60px) scale(1.02) rotate(4deg); opacity: .5; }
  100% { transform: translate(-3px, -72px) scale(1.3) rotate(-5deg); opacity: 0; }
}
@keyframes fx-bubble-b {
  0%   { transform: translate(0, 0) scale(.45) rotate(6deg); opacity: 0; }
  12%  { opacity: .8; }
  32%  { transform: translate(-8px, -24px) scale(.66) rotate(-8deg); }
  55%  { transform: translate(6px, -46px) scale(.85) rotate(7deg); opacity: .8; }
  78%  { transform: translate(-5px, -62px) scale(1) rotate(-4deg); opacity: .45; }
  100% { transform: translate(2px, -74px) scale(1.25) rotate(5deg); opacity: 0; }
}
@keyframes fx-bubble-c {
  0%   { transform: translate(0, 0) scale(.6) rotate(-4deg); opacity: 0; }
  9%   { opacity: .95; }
  27%  { transform: translate(5px, -20px) scale(.8) rotate(8deg); }
  48%  { transform: translate(-4px, -40px) scale(.95) rotate(-5deg); opacity: .9; }
  70%  { transform: translate(6px, -56px) scale(1.05) rotate(6deg); opacity: .45; }
  88%  { transform: translate(-2px, -66px) scale(1.18) rotate(-6deg); opacity: .2; }
  100% { transform: translate(1px, -72px) scale(1.35) rotate(3deg); opacity: 0; }
}
.brand { display: none; font-size: 12px; color: var(--ink-soft); line-height: 1.3; }
.nav-toggle { display: none; border: none; background: none; cursor: pointer; width: 30px; height: 34px; padding: 4px 0; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--rose-deep); margin: 5px auto; border-radius: 2px; }

.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a { color: var(--ink); font-size: 15px; white-space: nowrap; }
.site-nav a:hover { color: var(--rose-deep); }

/* 电脑版头部:通栏布局——「我爱你」logo 贴屏幕左缘(比原来更靠左),标语在 logo 右边,导航贴右缘(≤640px 手机端完全不受影响) */
@media (min-width: 641px) {
  .site-header .container {
    max-width: none; height: auto;
    padding: 0 12px; gap: 5px 18px;
    justify-content: flex-start; flex-wrap: wrap;
  }
  a.logo-img img { width: 280px; max-height: 63px; }
  /* 标语:logo 右边,主页文章分类同款书法体,字色用站点整体渐变(玫瑰金);窗口较窄放不下时自动换行 */
  .brand {
    display: block; white-space: nowrap;
    font-family: "Ma Shan Zheng", "Ma Shan Zheng B", "Source Han Serif SC", "STSong", serif;
    font-size: 20px; line-height: 1.4;
    background: linear-gradient(100deg, #f5c3ce 0%, var(--rose) 40%, var(--rose-deep) 95%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .site-nav { margin-left: auto; }
  /* logo 已贴左缘,左侧漂浮爱心收窄,避免被推出视口 */
  .fx-heart.fx-l1 { left: -8px; }
  .fx-heart.fx-l2 { left: -2px; }
}

.site-search { display: flex; align-items: center; }
.site-search input {
  border: 1px solid var(--line); border-right: none;
  background: #fff; border-radius: 14px 0 0 14px;
  padding: 6px 14px; font-size: 13px; width: 110px; outline: none;
}
.site-search button {
  border: 1px solid var(--line); background: var(--rose-pale);
  border-radius: 0 14px 14px 0; color: var(--rose-deep);
  padding: 6px 14px; cursor: pointer; font-size: 13px;
}
/* 导航内微信二维码 */
.wechat { position: relative; }
.wechat-btn {
  border: 1px solid var(--line); cursor: pointer;
  width: 36px; height: 36px; padding: 0;
  background: #fff; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.wechat-btn:hover { border-color: var(--rose); }
.wechat-ico { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; display: block; }
.wechat-pop {
  display: none; position: absolute; top: 130%; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px; box-shadow: var(--shadow); z-index: 60; width: 140px;
}
.wechat-pop img { width: 118px; height: 118px; display: block; }
.wechat:hover .wechat-pop, .wechat.open .wechat-pop { display: block; }

/* ---------- 书法字体（马善政，小字体子集 ~65KB，含站点全部楷体用字+标语用字；subset5 起补入「折腾志」等缺字；其余缺字由 JS 自动补全量字体） ---------- */
@font-face {
  font-family: "Ma Shan Zheng";
  src: url("../fonts/ma-shan-subset5.woff2") format("woff2");
  font-display: swap;
}

/* ---------- 首页大幻灯片 ---------- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 680px;
  overflow: hidden;
  background: var(--rose-pale);
}
.hero-slider .slider-track, .hero-slider .slide { position: absolute; inset: 0; }
.hero-slider .slide {
  opacity: 0; transition: opacity 1.2s ease;
  display: flex; align-items: center; justify-content: center;
}
.hero-slider .slide.is-on { opacity: 1; }
/* 未显示的图片不参与点击，避免点到底层图片跳到错误的链接 */
.hero-slider .slide:not(.is-on) { pointer-events: none; }
.hero-slider .slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-slider .slide-caption {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: 0 0 0 72px;
  max-width: 72vw;
  background: linear-gradient(90deg, rgba(40,20,25,0.55) 0%, rgba(40,20,25,0.28) 38%, rgba(40,20,25,0) 68%);
  color: #fff;
  font-family: "Ma Shan Zheng", "Ma Shan Zheng B", "Source Han Serif SC", "STSong", serif;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.35;
  letter-spacing: 3px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
/* 说明文字进场：先上移淡入，再由 JS 打字机逐字显示 */
.hero-slider .slide-caption:not(.hero-empty) {
  opacity: 0;
  transform: translateY(20px);
}
.hero-slider .slide.is-on .slide-caption:not(.hero-empty) {
  animation: hero-cap-in 0.9s ease-out 0.45s both;
}
@keyframes hero-cap-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* 打字机光标 */
.hero-slider .slide-caption.typing::after {
  content: "▌";
  margin-left: 4px;
  color: #ffe3c2;
  animation: hero-caret 0.7s step-end infinite;
}
@keyframes hero-caret { 50% { opacity: 0; } }
.hero-slider .slide-caption.hero-empty {
  position: absolute; inset: 0; padding: 0 24px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--rose-pale), var(--cream));
  color: var(--rose-deep); font-size: 18px; letter-spacing: 2px; text-align: center;
  text-shadow: none;
}
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: none; cursor: pointer; z-index: 1;
  background: rgba(255,255,255,0.35); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.slider-btn:hover { background: rgba(255,255,255,0.6); }
.slider-btn.slider-prev { left: 18px; }
.slider-btn.slider-next { right: 18px; }
.slider-dots {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 1;
}
.slider-dots .slider-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.45); cursor: pointer;
}
.slider-dots .slider-dot.is-on { background: #fff; }

/* ---------- 首页分类板块 ---------- */
.home-sec { margin-top: 56px; }
.sec-title {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px; margin-bottom: 22px;
}
.sec-title > a {
  font-family: "Ma Shan Zheng", "Ma Shan Zheng B", "Source Han Serif SC", "STSong", serif;
  font-size: 28px; letter-spacing: 4px; color: var(--ink);
  font-weight: 400;
}
.sec-title > a::before { content: "❁ "; color: var(--rose); font-size: 18px; }
.sec-title a:hover { color: var(--rose-deep); }
.sec-more { font-size: 13px; color: var(--ink-soft); }
.home-empty { margin-top: 80px; text-align: center; color: var(--ink-soft); }

/* ---------- 文章卡片 ---------- */
.post-grid, .card-grid {
  display: grid;
  gap: 20px;
}
.post-grid { grid-template-columns: repeat(4, 1fr); }
.card-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
.home-sec .container { max-width: 1280px; }
.home-sec .card-grid { gap: 10px; }
.post-card {
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: block;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(120, 90, 80, 0.14); }
.post-card .card-thumb { height: 180px; overflow: hidden; background: var(--rose-pale); }
.post-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; display: block; }
.post-card:hover .card-thumb img { transform: scale(1.05); }
.card-thumb-ph {
  height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 44px; color: var(--rose); font-family: serif;
  background: linear-gradient(145deg, #f7eef1, #efe3e6);
}
.post-card .card-body { padding: 14px 16px 16px; }
.post-card .card-title { font-size: 16px; line-height: 1.5; margin-bottom: 8px; color: var(--ink); }
.post-card:hover .card-title { color: var(--rose-deep); }
.post-card .card-meta { font-size: 12px; color: var(--ink-soft); display: flex; justify-content: space-between; }

/* ---------- 分类页 / 通用页标题 ---------- */
.cat-page { padding: 50px 20px 10px; }
.cat-title {
  font-family: "Ma Shan Zheng", "Ma Shan Zheng B", "Source Han Serif SC", "STSong", serif;
  font-size: 34px; letter-spacing: 4px; color: var(--ink);
  text-align: center; margin-bottom: 26px;
}
.cat-title small {
  display: block; font-size: 13px; letter-spacing: 1px; color: var(--ink-soft);
  margin-top: 6px; font-weight: 400;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Serif SC", serif;
}
.cat-title .q-word { color: var(--rose-deep); }

/* ---------- 首页父级板块（知识库） ---------- */
.home-parent { margin-top: 56px; }
.home-parent .sec-title.sec-parent { margin-bottom: 8px; }
.home-parent .sec-parent-name {
  font-family: "Ma Shan Zheng", "Ma Shan Zheng B", "Source Han Serif SC", "STSong", serif;
  font-size: 28px; letter-spacing: 5px; color: var(--ink);
}
.home-sub { margin-top: 28px; }
.home-sub .sub-title {
  font-family: "Ma Shan Zheng", "Source Han Serif SC", "STSong", serif;
  font-size: 20px; letter-spacing: 3px; color: var(--ink);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px; margin-bottom: 14px;
}
.home-sub .sub-title a { color: var(--ink); text-decoration: none; }
.home-sub .sub-title a:hover { color: var(--rose-deep); }

/* ---------- 分类页：子分类 chips / 面包屑 ---------- */
.cat-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin: 0 auto 28px; padding: 0 16px;
}
.cat-chips .chip {
  display: inline-block; padding: 6px 16px;
  border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink-soft); font-size: 14px; text-decoration: none;
  background: var(--card);
}
.cat-chips .chip:hover { color: var(--rose-deep); border-color: var(--rose); }
.cat-chips .chip.is-on {
  background: var(--rose-pale); color: var(--rose-deep);
  border-color: var(--rose);
}
.cat-back {
  display: table; margin: 0 auto 14px;
  padding: 7px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  color: var(--ink-soft); font-size: 14px; text-decoration: none;
}
.cat-back:hover { color: var(--rose-deep); border-color: var(--rose); background: var(--rose-pale); }

.card-grid .post-card .card-thumb { height: 176px; }

/* ---------- 分页 ---------- */
.pager {
  display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 30px 0 10px;
}
.pager-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 14px; font-size: 13px; color: var(--ink-soft);
  background: var(--card);
}
a.pager-btn:hover { color: var(--rose-deep); border-color: var(--rose); }
.pager-btn.is-on { color: var(--rose-deep); border-color: var(--rose); background: var(--rose-pale); }

/* ---------- 文章页 ---------- */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 50px 20px 60px; }
.article { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 44px 48px; }
.article-head { text-align: center; margin-bottom: 30px; }
.article-cat { display: block; margin-bottom: 10px; font-size: 13px; }
.article-cat a { color: var(--rose-deep); letter-spacing: 2px; }
.article-title {
  font-family: "Source Han Serif SC", "STSong", serif;
  font-size: 30px; letter-spacing: 3px; line-height: 1.5; margin-bottom: 12px;
}
/* 单页顶部标题（如“关于我”）统一楷体；以后新增单页用 .page-title 类即自动楷体 */
.page-title {
  font-family: "Ma Shan Zheng", "Ma Shan Zheng B", "Source Han Serif SC", "STSong", serif;
  font-size: 30px; letter-spacing: 3px; line-height: 1.5; margin-bottom: 12px;
}
.article-meta { color: var(--ink-soft); font-size: 13px; }
.article-meta span + span { margin-left: 16px; }
.article-thumb { margin-bottom: 26px; border-radius: 10px; overflow: hidden; }
.article-thumb img { width: 100%; display: block; }
.article-body { font-size: 16px; line-height: 2; }
.article-body p { margin-bottom: 1.2em; }
.article-body img { margin: 1.2em auto; border-radius: 8px; max-width: 100%; height: auto !important; display: block; }
.article-body h2 { font-size: 24px; margin: 1.4em 0 0.6em; color: var(--rose-deep); line-height: 1.4; }
.article-body h3 { font-size: 20px; margin: 1.4em 0 0.6em; color: var(--rose-deep); }
.article-body video { max-width: 100%; display: block; margin: 1.2em auto; border-radius: 8px; }
.article-body audio { width: 100%; display: block; margin: 1.2em auto; }
.article-body iframe { display: block; max-width: 100%; margin: 1.2em auto; border-radius: 8px; }
.article-body a { color: var(--rose-deep); text-decoration: underline; }
/* 长文本换行保护 (2026-10-01): 长 URL / 长提示词代码块允许断行，防止横向撑破页面 */
.article-body p, .article-body li, .article-body td, .article-body th,
.article-body blockquote, .article-body a { overflow-wrap: break-word; }
.article-body code, .article-body pre { white-space: pre-wrap; word-break: break-all; overflow-wrap: anywhere; }
.article-nav {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 14px;
}
.article-nav .nav-spacer { flex: 1; }
.article-nav .nav-btn {
  background: var(--rose-pale); border-radius: 8px; padding: 9px 16px;
  max-width: 44%;
}
.article-nav .nav-btn:hover { background: var(--rose); color: #fff; }

.related { margin-top: 50px; }
.related-title {
  font-family: "Source Han Serif SC", "STSong", serif;
  font-size: 20px; letter-spacing: 2px; margin-bottom: 16px; color: var(--ink);
}
.related-title::before { content: "❁ "; color: var(--rose); }
.related ul { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.related li { border-bottom: 1px solid var(--line); padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; }
.related li:last-child { border-bottom: none; }
.related li a { flex: 1; min-width: 0; }
.related .r-date { font-size: 12px; color: var(--ink-soft); flex-shrink: 0; }

/* ---------- 搜索页 ---------- */
.search-page { max-width: 760px; margin: 0 auto; padding: 46px 20px 60px; }
.search-page .cat-title { margin-bottom: 28px; }
.search-box { display: flex; gap: 10px; margin-bottom: 28px; }
.search-box input {
  flex: 1; padding: 12px 18px; font-size: 16px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); outline: none;
}
.search-box input:focus { border-color: var(--rose); }
.search-box button {
  padding: 12px 26px; font-size: 15px; cursor: pointer;
  border: 1px solid var(--rose); border-radius: 10px;
  background: var(--rose); color: #fff; letter-spacing: 2px;
}
.search-box button:hover { background: var(--rose-deep); }
.search-list { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.search-list li { border-bottom: 1px solid var(--line); padding: 18px 22px; }
.search-list li:last-child { border-bottom: none; }
.search-list a h3 { font-size: 17px; margin-bottom: 8px; }
.search-list .card-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ink-soft); flex-wrap: wrap; }
.search-list .card-meta .tag {
  background: var(--rose-pale); color: var(--rose-deep);
  border-radius: 4px; padding: 2px 8px; font-size: 12px;
}

/* ---------- 相册 ---------- */
.album-hero {
  text-align: center;
  background: linear-gradient(160deg, var(--rose-pale), var(--cream));
  padding: 70px 20px 50px;
}
.album-hero .album-hero-title {
  font-family: "Ma Shan Zheng", "Ma Shan Zheng B", "Source Han Serif SC", "STSong", serif;
  font-size: 38px; letter-spacing: 8px; margin-bottom: 12px; color: var(--ink);
}
.album-hero .album-hero-intro { color: var(--ink-soft); max-width: 620px; margin: 0 auto; }

.album-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; padding: 40px 20px 60px;
}
.album-card {
  background: var(--card); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s;
  display: block;
}
.album-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(120,90,80,0.16); }
.album-card-img { height: 240px; overflow: hidden; background: var(--rose-pale); }
.album-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; display: block; }
.album-card:hover .album-card-img img { transform: scale(1.04); }
.album-card-ph {
  height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 54px; color: var(--rose); font-family: serif;
  background: linear-gradient(145deg, #f7eef1, #efe3e6);
}
.album-card-body { padding: 16px 18px 18px; }
.album-card-body h3 { font-size: 18px; letter-spacing: 1px; margin-bottom: 4px; }
.album-card-body p { font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.album-card-body .album-count { font-size: 12px; color: var(--ink-soft); }

/* 相册分类网格页 */
.album-grid-page, .album-photo-page { padding: 36px 20px 60px; }
.album-cat-head { display: flex; align-items: baseline; gap: 24px; margin-bottom: 24px; }
.album-back {
  flex-shrink: 0; font-size: 14px; color: var(--ink-soft);
  background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 16px;
}
.album-back:hover { color: var(--rose-deep); border-color: var(--rose); }
.album-cat-head .cat-title { margin: 0; }

.photo-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.photo-cell {
  position: relative; border-radius: 10px; overflow: hidden;
  background: var(--rose-pale); box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; display: block;
}
.photo-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; display: block; }
.photo-cell:hover img { transform: scale(1.05); }
.photo-cell .photo-cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 8px 12px; font-size: 12px; color: #fff;
  background: linear-gradient(transparent, rgba(40,20,25,0.6));
  opacity: 0; transition: opacity 0.3s;
}
.photo-cell:hover .photo-cap { opacity: 1; }

/* 单张大图页 */
.photo-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.photo-back {
  font-size: 14px; color: var(--ink-soft);
  background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 16px;
}
.photo-back:hover { color: var(--rose-deep); border-color: var(--rose); }
.photo-cat { font-size: 14px; color: var(--ink-soft); letter-spacing: 2px; }
.photo-main {
  margin: 0; border-radius: 12px; overflow: hidden;
  background: var(--rose-pale); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
}
.photo-main img { max-height: 72vh; width: auto; max-width: 100%; display: block; margin: 0 auto; }
.photo-main figcaption {
  padding: 14px 18px; text-align: center;
  color: var(--ink-soft); font-size: 14px; letter-spacing: 1px;
  background: var(--card);
}
.photo-nav { display: flex; justify-content: space-between; margin-top: 18px; }
.photo-nav a {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 18px; font-size: 14px;
}
.photo-nav a:hover { color: var(--rose-deep); border-color: var(--rose); }
.photo-end { font-size: 13px; color: var(--ink-soft); align-self: center; }
.photo-strip {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 6px; margin-top: 24px;
}
.photo-strip-item img {
  aspect-ratio: 1; object-fit: cover; border-radius: 6px;
  cursor: pointer; opacity: 0.75; transition: opacity 0.25s; display: block;
}
.photo-strip-item:hover img { opacity: 1; }
.photo-strip-item.is-on img { outline: 2px solid var(--rose-deep); opacity: 1; }

/* ---------- 音乐厅 ---------- */
.music-page { max-width: 860px; margin: 0 auto; padding: 50px 20px 130px; }
.music-title {
  font-family: "Ma Shan Zheng", "Ma Shan Zheng B", "Source Han Serif SC", "STSong", serif;
  font-size: 30px; color: var(--rose-deep); letter-spacing: 3px; text-align: center;
}
.music-sub { text-align: center; color: var(--ink-soft); font-size: 14px; margin: 8px 0 28px; }
.empty-note { color: var(--ink-soft); text-align: center; padding: 40px 0; }
.song-list { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.song-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: background 0.2s;
}
.song-row:last-child { border-bottom: none; }
.song-row:hover, .song-row.playing { background: var(--rose-pale); }
.song-cover {
  width: 56px; height: 56px; border-radius: 8px; object-fit: cover;
  background: linear-gradient(145deg, #f7eef1, #efe3e6);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--rose); flex-shrink: 0;
}
.song-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.song-info { flex: 1; min-width: 0; }
.song-title { font-size: 16px; font-weight: 600; }
.song-artist { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.song-desc { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.song-duration { font-size: 12px; color: var(--ink-soft); flex-shrink: 0; }
.song-play {
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--rose-pale); color: var(--rose-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.song-play:hover { background: var(--rose); color: #fff; }

/* 底部播放条 */
.music-player {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: rgba(255,255,255,0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(120,90,80,0.1);
}
.player-inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 18px;
}
.player-cover {
  width: 52px; height: 52px; border-radius: 8px; object-fit: cover;
  background: linear-gradient(145deg, #f7eef1, #efe3e6);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--rose); flex-shrink: 0;
}
.player-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.player-info { width: 180px; flex-shrink: 0; min-width: 0; }
#playerTitle { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#playerSub { font-size: 12px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-ctrls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.player-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: none; color: var(--rose-deep); font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.player-btn:hover { color: var(--rose); }
.player-play { background: var(--rose-pale); font-size: 17px; }
.player-play:hover { background: var(--rose); color: #fff; }
.player-progress { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 120px; }
.player-progress input[type=range] { flex: 1; accent-color: var(--rose-deep); }
.player-time { font-size: 12px; color: var(--ink-soft); width: 74px; text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.player-vol { display: flex; align-items: center; gap: 8px; width: 130px; flex-shrink: 0; }
.player-vol input[type=range] { width: 90px; accent-color: var(--rose-deep); }
.player-vol .vol-ico { font-size: 14px; color: var(--rose-deep); }

/* ---------- 视频厅 ---------- */
.videos-page { max-width: 960px; margin: 0 auto; padding: 50px 20px 90px; }
.videos-title {
  font-family: "Ma Shan Zheng", "Ma Shan Zheng B", "Source Han Serif SC", "STSong", serif;
  font-size: 30px; color: var(--rose-deep); letter-spacing: 3px; text-align: center;
}
.videos-sub { text-align: center; color: var(--ink-soft); font-size: 14px; margin: 8px 0 32px; }
.video-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.video-card {
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow);
  overflow: hidden; transition: transform 0.2s, box-shadow 0.2s;
}
.video-card:hover { transform: translateY(-3px); box-shadow: 0 6px 22px rgba(120,90,80,0.14); }
.video-player { width: 100%; aspect-ratio: 16/9; display: block; background: #221d1f; }
/* 手机版视频厅：视频窗口右侧的小播放按钮（≤480px 才显示，电脑版保持原生控件不变） */
.video-stage { position: relative; }
.video-playbtn {
  display: none;
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  z-index: 4; width: 40px; height: 40px; border: none; border-radius: 50%;
  /* 站点标语同款玫瑰金渐变，在深色播放器底色上更醒目 */
  background: linear-gradient(100deg, #f5c3ce 0%, var(--rose) 40%, var(--rose-deep) 95%);
  color: #fff; cursor: pointer;
  align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  -webkit-tap-highlight-color: transparent;
}
.video-playbtn:active { transform: translateY(-50%) scale(0.92); }
.video-meta { padding: 16px 18px 18px; }
.video-title { font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.video-title a { color: var(--ink); font-weight: 600; }
.video-title a:hover { color: var(--rose-deep); }
.video-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.videos-empty {
  text-align: center; color: var(--ink-soft); padding: 50px 20px;
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow);
}
.videos-empty .big { font-size: 42px; color: var(--rose); margin-bottom: 12px; }
.videos-empty a { display: inline-block; margin-top: 14px; }

/* ---------- 微信浮动 ---------- */
.wechat-float {
  position: fixed; left: 22px; bottom: 40px; z-index: 55;
  cursor: pointer; text-align: center;
}
.wechat-float img {
  width: 52px; height: 52px; object-fit: cover;
  border-radius: 14px; box-shadow: var(--shadow);
  background: var(--rose-pale);
  transition: width 0.25s ease, height 0.25s ease;
}
.wechat-float.open img { width: 150px; height: 150px; }
.wechat-float .wf-tip {
  display: none; position: absolute; left: 72px; bottom: 12px;
  background: rgba(40,20,25,0.85); color: #fff;
  font-size: 12px; padding: 4px 12px; border-radius: 8px;
  white-space: nowrap;
}
.wechat-float.open .wf-tip { display: block; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 70px; padding: 40px 20px 50px;
  border-top: 1px solid var(--line);
  text-align: center; color: var(--ink-soft); font-size: 13px;
  background: #f4f0e9;
}
.site-footer .footer-icp { margin-top: 8px; font-size: 12px; line-height: 1.8; }
.site-footer .footer-icp a { display: inline-block; white-space: nowrap; word-break: keep-all; }
.site-footer .footer-icp img { display: inline-block; vertical-align: middle; margin: 0 10px; }
@media (max-width: 480px) {
  .site-footer .footer-icp { font-size: 11px; }
  .site-footer .footer-icp img { margin: 0 6px; }
}
/* 页脚独立 IP 计数（玫瑰金渐变大数字，等宽数字更整齐） */
.site-footer .footer-ipcount { margin-top: 16px; }
.site-footer .fic-num {
  display: inline-block;
  font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  color: var(--rose-deep);
  background: linear-gradient(100deg, #f5c3ce 0%, var(--rose) 40%, var(--rose-deep) 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- 404 / 空状态 ---------- */
.empty-page { text-align: center; padding: 100px 20px; color: var(--ink-soft); }
.empty-page .big { font-size: 60px; color: var(--rose); margin-bottom: 16px; }
.empty-page h2 { font-size: 22px; margin-bottom: 10px; }
.empty-page a { display: inline-block; margin-top: 18px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .album-cards { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-strip { grid-template-columns: repeat(8, 1fr); }
  .video-list { grid-template-columns: 1fr; }
  .player-info { width: 130px; }
  .player-vol { display: none; }
  .hero-slider { height: 520px; }
}
/* ---------- 知识库 ---------- */
.kb-hero {
  background: var(--rose-pale);
  border-bottom: 1px solid var(--line);
  padding: 52px 0 38px;
  text-align: center;
}
.kb-hero-title {
  font-family: "Ma Shan Zheng", "Ma Shan Zheng B", "Source Han Serif SC", "STSong", serif;
  font-size: 42px; letter-spacing: 10px; color: var(--ink);
}
.kb-hero-intro { margin-top: 12px; color: var(--ink-soft); letter-spacing: 1px; font-size: 14px; }
.kb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 30px 0 6px; }
.kb-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px; display: block;
  transition: transform 0.25s, box-shadow 0.25s;
}
.kb-card:hover { transform: translateY(-3px); border-color: var(--rose); box-shadow: 0 8px 22px rgba(120, 90, 80, 0.14); }
.kb-card-name { font-size: 22px; color: var(--ink); font-weight: 600; letter-spacing: 1px; }
.kb-card-count { margin-top: 8px; font-size: 13px; color: var(--ink-soft); }
.kb-card-count:hover { color: var(--rose-deep); }
.kb-sec {
  font-family: "Ma Shan Zheng", "Ma Shan Zheng B", "Source Han Serif SC", "STSong", serif;
  font-size: 28px; letter-spacing: 3px; color: var(--ink);
  margin: 34px 0 16px;
}
@media (max-width: 640px) {
  /* 头部单行:放大的"我爱你"logo+汉堡;标语长字手机端隐藏 */
  .site-header .container {
    position: relative; flex-wrap: wrap; height: auto;
    gap: 8px 16px; padding-top: 10px; padding-bottom: 8px;
  }
  a.logo-img img { width: 224px; height: auto; }
  .brand { display: none; }
  .nav-toggle { display: block; margin-left: auto; width: 40px; height: 40px; }
  .nav-toggle span { width: 24px; }
  /* 头部"我爱你"漂浮爱心:手机端收窄两侧偏移,避免顶出屏幕被裁掉(动画与电脑版一致) */
  .fx-heart.fx-l1 { left: -2px; }
  .fx-heart.fx-l2 { left: 8px; }
  .fx-heart.fx-r1 { right: -12px; }
  .fx-heart.fx-r2 { right: -6px; }
  .fx-heart.fx-r3 { right: -4px; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: rgba(250,248,244,0.98);
    border-bottom: 1px solid var(--line);
    padding: 14px 20px 18px; gap: 12px;
  }
  .site-nav.open { display: flex; }
  .hero-slider { height: 400px; }
  /* 主页/分类页:双列卡片,封面+标题紧凑;标题用站点默认字体(书法体在小屏会缺字) */
  .home-sec { margin-top: 40px; }
  .sec-title > a { font-size: 24px; }
  .post-grid, .card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .post-card .card-thumb { height: 132px; }
  .post-card .card-body { padding: 10px 10px 12px; }
  .post-card .card-title {
    font-size: 17px; line-height: 1.42; letter-spacing: .5px;
    min-height: 2.84em;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  }
  .post-card .card-meta { font-size: 10.5px; }
  .album-cards { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  /* 幻灯片配文:手机端移到图片下部(电脑版仍为左侧中部,不受影响) */
  .hero-slider .slide-caption {
    inset: auto 0 0 0;
    align-items: flex-end; justify-content: center;
    max-width: none;
    padding: 56px 18px 30px;
    background: linear-gradient(180deg, rgba(15,8,12,0) 0%, rgba(15,8,12,.45) 55%, rgba(15,8,12,.6) 100%);
    font-size: 20px; letter-spacing: 2px; text-align: center;
  }
  /* 首页文章卡片:手机端每板块只显示前 4 篇(2列×2行整齐),电脑版保持 5 篇 */
  .home-sec .card-grid .post-card:nth-child(n + 5) { display: none; }
  .player-time { width: 60px; }
  .player-btn { width: 44px; height: 44px; }
  /* 文章页:标题更舒展,正文行距收紧一点更耐读 */
  .article-wrap { padding: 34px 16px 46px; }
  .article { padding: 30px 22px; }
  .article-head { margin-bottom: 24px; }
  .article-title, .page-title { font-size: 26px; letter-spacing: 1.5px; line-height: 1.6; }
  .article-body { line-height: 1.9; }
  .article-nav { margin-top: 34px; font-size: 13px; }
  .article-nav .nav-btn { max-width: 48%; padding: 9px 10px; }
  /* 微信浮钮手机端:显示缩小的二维码(44px),点击扩大(沿用 .open 150px);
     bottom 抬高避开手机底部浏览器工具栏 */
  .wechat-float { bottom: 90px; }
  .wechat-float img { width: 44px; height: 44px; border-radius: 12px; }
  /* 页脚备案:第一行ICP,第二行=公安图标+公网安备(图标挪到第二行前面) */
  .site-footer .footer-icp {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    column-gap: 6px; row-gap: 4px; font-size: 11px; line-height: 1.7;
  }
  .site-footer .footer-icp > a:first-child { flex-basis: 100%; }
  .site-footer .footer-icp img { margin: 0; }
  /* 页脚版权行:手机端缩小并强制一行显示 */
  .site-footer .footer-copy { font-size: 11px; white-space: nowrap; }
  .site-footer .fic-num { font-size: 22px; }
}
@media (max-width: 480px) {
  .hero-slider { height: 300px; }
  a.logo-img img { width: 190px; height: auto; }
  .post-card .card-thumb { height: 112px; }
  .post-card .card-title { font-size: 16px; }
  .hero-slider .slide-caption { padding: 44px 14px 26px; font-size: 18px; }
}

/* ---------- 底部按钮（正文末尾、页脚上方：回到顶部 / 返回子标签） ---------- */
.back-row {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin: 36px 0 4px;
}
.back-btn, .top-btn {
  display: inline-block; background: var(--rose); color: #fff;
  border-radius: 999px; padding: 9px 20px; font-size: 14px; letter-spacing: 1px;
  box-shadow: var(--shadow); white-space: nowrap;
}
.back-btn:hover, .top-btn:hover { background: var(--rose-deep); color: #fff; }

/* ---------- 主页「回到顶部」：163 同款 60×60 灰方按钮 + 官方箭头图；平时隐藏，滚动到底部慢慢显现（半透明） ---------- */
.home-top-fab {
  position: fixed; right: 22px; bottom: 40px; z-index: 40;
  width: 60px; height: 60px;
  background-color: #ddd;
  background-image: url('../img/totop.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 46px 25px;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity .5s ease, visibility .5s ease, background-color .3s ease;
  pointer-events: none;
}
.home-top-fab.is-show {
  opacity: .5; visibility: visible;
  pointer-events: auto;
}
.home-top-fab:hover { opacity: 1; background-color: #e9e9e9; }

/* ---------- 评论区（文章正文下方） ---------- */
.comments-wrap { margin-top: 40px; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 28px 30px; }
.comments-title { font-size: 17px; font-weight: 600; color: var(--rose-deep); margin-bottom: 20px; letter-spacing: 1px; }
.comments-title::before { content: "❁ "; color: var(--rose); }
.comment-msg { border-radius: 8px; padding: 11px 15px; font-size: 14px; margin-bottom: 18px; line-height: 1.6; }
.comment-msg-err { background: #f6e8e8; color: #9c3a42; }
.comment-msg-ok { background: #eef4ee; color: #4a7a4a; }
.comments-list { list-style: none; margin: 0; padding: 0; }
.comment-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-item:first-child { padding-top: 0; }
.comment-item:last-child { border-bottom: none; padding-bottom: 0; }
.comment-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 7px; }
.comment-name { font-weight: 600; color: var(--rose-deep); font-size: 15px; }
.comment-date { font-size: 12px; color: var(--ink-soft); }
.comment-body { font-size: 15px; line-height: 1.8; color: var(--ink); word-break: break-word; }
.comments-empty { color: var(--ink-soft); font-size: 14px; padding: 6px 0 4px; }
.comment-field { display: block; }
.comment-label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.comment-field input, .comment-field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 13px; font-size: 15px; font-family: inherit;
  background: #fff; outline: none; color: var(--ink); margin-bottom: 14px;
}
.comment-field input:focus, .comment-field textarea:focus { border-color: var(--rose); }
.comment-field textarea { resize: vertical; min-height: 96px; line-height: 1.7; }
.comment-form-actions { display: flex; justify-content: flex-end; margin-top: 4px; }
.btn-submit {
  background: var(--rose); color: #fff; border: none; border-radius: 999px;
  padding: 10px 28px; font-size: 15px; letter-spacing: 1px; cursor: pointer;
  box-shadow: var(--shadow); transition: background .2s;
}
.btn-submit:hover { background: var(--rose-deep); }
.comments-closed { color: var(--ink-soft); font-size: 14px; background: var(--rose-pale); border-radius: 8px; padding: 14px 18px; margin-top: 4px; line-height: 1.6; }

/* ---------- 留言板（独立页面） ---------- */
.guestbook-wrap { max-width: 760px; padding: 46px 20px 60px; }
.gb-hero { text-align: center; margin-bottom: 30px; }
.gb-hero-deco { font-size: 44px; color: var(--rose); line-height: 1; display: block; opacity: 0.65; font-family: serif; }
.gb-title { font-size: 30px; color: var(--rose-deep); letter-spacing: 4px; margin: 10px 0 10px; font-weight: 600; }
.gb-subtitle { color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.gb-closed { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 44px; text-align: center; color: var(--ink-soft); font-size: 15px; }
.gb-items { list-style: none; margin: 0; padding: 0; }
.gb-item { margin-bottom: 16px; }
.gb-bubble { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 18px 22px; border-left: 4px solid var(--rose-pale); }
.gb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.gb-name { font-weight: 600; color: var(--rose-deep); font-size: 15px; }
.gb-date { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.gb-text { font-size: 15px; line-height: 1.8; color: var(--ink); word-break: break-word; }
.gb-empty { text-align: center; color: var(--ink-soft); font-size: 14px; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 40px; }
.gb-form { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 24px 26px; margin-top: 22px; }
.gb-pages { display: flex; gap: 8px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.gb-page, .gb-page-active { display: inline-block; min-width: 36px; text-align: center; border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: 7px 11px; font-size: 13px; color: var(--ink); }
.gb-page:hover { color: var(--rose-deep); border-color: var(--rose); }
.gb-page-active { color: var(--rose-deep); border-color: var(--rose); background: var(--rose-pale); }

@media (max-width: 640px) {
  .comments-wrap { padding: 22px 18px; }
  .gb-wrap-pad, .gb-form { padding: 20px 18px; }
  .gb-title { letter-spacing: 2px; }
}

/* ============ 视频厅 / 音乐厅：播放次数、点赞（st-*） ============ */
.st-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 0;
  margin-top: 10px;
}
.st-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1;
  margin-right: 10px;
  padding: 10px 14px;
  border-radius: 999px;
}
.st-item svg { flex-shrink: 0; display: block; width: 22px; height: 22px; }
.st-item b { font-weight: 600; font-variant-numeric: tabular-nums; }
button.st-item {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}
button.st-item:hover { background: var(--rose-pale); color: var(--rose-deep); }
button.st-item:active { transform: scale(0.94); }
.st-like.on { color: #e0567a; }
.st-like.on:hover { background: #fdeef2; }
.st-plays { pointer-events: none; }

/* 音乐厅行内：更紧凑 */
.song-info .st-bar { margin-top: 8px; }
.song-info .st-item { font-size: 16px; padding: 9px 12px; margin-right: 8px; }

.btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  background: var(--rose-deep);
  color: #fff;
  border-radius: 10px;
  padding: 9px 16px;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn:hover { background: var(--rose); }

/* 移动端：播放次数、点赞图标排成一行（电脑版不受影响） */
@media (max-width: 480px) {
  /* 视频厅：右侧小播放按钮（替代浏览器原生居中大按钮） */
  .video-playbtn { display: flex; }
  /* 视频厅图标行：一行排开 */
  .st-bar { flex-wrap: nowrap; gap: 0; }
  .st-item { padding: 7px 9px; font-size: 13px; margin-right: 0; gap: 4px; }
  .st-item svg { width: 16px; height: 16px; }
  /* 音乐厅：行内收紧（缩封面、隐时长），给一行图标让位 */
  .song-row { gap: 12px; padding: 14px 16px; }
  .song-cover { width: 48px; height: 48px; font-size: 20px; }
  .song-duration { display: none; }
  .song-info .st-bar { margin-top: 6px; }
  .song-info .st-item { font-size: 12px; padding: 6px 6px; margin-right: 0; gap: 3px; }
  .song-info .st-item svg { width: 14px; height: 14px; }
}

/* ============================================================
   日历页
============================================================ */
.cal-page { max-width: 860px; margin: 0 auto; padding: 50px 20px 10px; }
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.cal-title { font-size: 22px; font-weight: 700; color: var(--ink); }
.cal-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--card);
  font-size: 14px;
  transition: color 0.15s, border-color 0.15s;
}
.cal-nav:hover { color: var(--rose-deep); border-color: var(--rose); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-weekday {
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  padding: 4px 0;
}
.cal-cell {
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  padding: 6px;
  position: relative;
}
.cal-empty { border: none; background: transparent; }
.cal-daynum { display: block; font-size: 12px; color: var(--ink-soft); }
.cal-has {
  border-color: var(--rose);
  background: var(--rose-pale);
  cursor: pointer;
}
.cal-has:hover { border-color: var(--rose-deep); }
.cal-has .cal-daynum { color: var(--rose-deep); font-weight: 700; }
.cal-dots {
  position: absolute;
  right: 6px;
  bottom: 6px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--rose-deep);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  padding: 0 4px;
  box-sizing: border-box;
}
.cal-today { outline: 2px solid var(--rose-deep); outline-offset: -2px; }

/* 日历页下方：本月文章 */
.cal-list { max-width: 860px; margin: 30px auto 70px; padding: 0 20px; }
.cal-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cal-list-title { font-size: 18px; font-weight: 700; color: var(--ink); }
.cal-arch-link { font-size: 13px; color: var(--rose-deep); }
.cal-day {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 14px;
  scroll-margin-top: 90px;
}
.cal-day-label {
  flex: none;
  font-size: 13px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.cal-day-list { margin: 0; padding: 0; list-style: none; }
.cal-day-list li { margin-bottom: 6px; }
.cal-day-list a { color: var(--ink); }
.cal-day-list a:hover { color: var(--rose-deep); }

/* ============================================================
   归档页
============================================================ */
.arch-page { max-width: 860px; margin: 0 auto; padding: 50px 20px 90px; }
.arch-title { font-size: 22px; font-weight: 700; color: var(--ink); }
.arch-sub { color: var(--ink-soft); font-size: 13px; margin: 8px 0 26px; }
.arch-year { margin-bottom: 26px; }
.arch-year-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--rose-deep);
  margin-bottom: 10px;
}
.arch-months { display: flex; flex-wrap: wrap; gap: 8px; }
.arch-chip {
  display: inline-block;
  font-size: 13px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.arch-chip:hover { color: var(--rose-deep); border-color: var(--rose); background: var(--rose-pale); }

/* ============================================================
   年度回顾页
============================================================ */
.annual-page { max-width: 860px; margin: 0 auto; padding: 50px 20px 90px; }
.annual-head { margin-bottom: 24px; }
.annual-title { font-size: 24px; font-weight: 700; color: var(--ink); }
.annual-years { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.annual-year {
  display: inline-block;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  transition: color 0.15s, border-color 0.15s;
}
.annual-year:hover { color: var(--rose-deep); border-color: var(--rose); }
.annual-year.on {
  color: #fff;
  background: var(--rose-deep);
  border-color: var(--rose-deep);
}
.annual-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 30px;
}
.acard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.acard-num { font-size: 20px; font-weight: 700; color: var(--rose-deep); font-variant-numeric: tabular-nums; }
.acard-label { font-size: 12px; color: var(--ink-soft); }
.annual-h { font-size: 16px; font-weight: 700; color: var(--ink); margin: 26px 0 14px; }
.annual-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 130px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 12px 10px;
}
.abars-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.abars-track {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.abars-bar {
  width: 70%;
  max-width: 26px;
  min-height: 4px;
  background: var(--rose);
  border-radius: 5px 5px 2px 2px;
  position: relative;
  transition: background 0.15s;
}
.abars-bar:hover { background: var(--rose-deep); }
.abars-n {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--ink-soft);
}
.abars-m { font-size: 10px; color: var(--ink-soft); }
.annual-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.toplist { margin: 0; padding: 0; list-style: none; counter-reset: tp; }
.toplist li {
  counter-increment: tp;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.toplist li::before {
  content: counter(tp);
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--rose-deep);
}
.toplist a { flex: 1; min-width: 0; color: var(--ink); }
.toplist a:hover { color: var(--rose-deep); }
.top-views { flex: none; font-size: 11px; color: var(--ink-soft); }
.mile-list { margin: 0; padding: 0; list-style: none; }
.mile-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}
.mile-list b { color: var(--rose-deep); font-variant-numeric: tabular-nums; }
.annual-timeline { margin-top: 6px; }
.tl-month { display: flex; gap: 14px; align-items: baseline; margin-bottom: 14px; }
.tl-month-label {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--rose-deep);
}
.tl-month ul { margin: 0; padding: 0; list-style: none; }
.tl-month li { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; font-size: 13px; }
.tl-date { flex: none; font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tl-month a { color: var(--ink); }
.tl-month a:hover { color: var(--rose-deep); }
.empty-note { color: var(--ink-soft); font-size: 13px; }

/* ============================================================
   页脚链接行（日历 / 归档 / 年度回顾）
============================================================ */
.footer-links { text-align: center; font-size: 13px; margin: 8px 0; }
.footer-links a { color: var(--ink-soft); transition: color 0.15s; }
.footer-links a:hover { color: var(--rose-deep); }
.footer-links .fl-sep { color: var(--ink-soft); margin: 0 8px; }

/* ============================================================
   移动端
============================================================ */
@media (max-width: 640px) {
  .annual-cards { grid-template-columns: repeat(2, 1fr); }
  .annual-cols { grid-template-columns: 1fr; }
  .cal-cell { min-height: 52px; }
}


