/* ====================================================================
 * 谷物语 guwuyu.cn · 全站样式
   设计语言：麦田暖调 · 手作质感 · 留白呼吸感
   ===================================================== */

:root {
  --bg: #FBF6EA;
  --bg-alt: #F4ECDA;
  --card: #FFFDF6;
  --ink: #3B3226;
  --ink-soft: #82745E;
  --gold: #B5892E;
  --gold-deep: #97701F;
  --gold-pale: #F6EDD2;
  --terra: #B5542D;
  --line: #EBE0C6;
  --shadow: 0 6px 24px rgba(122, 95, 42, 0.09);
  --shadow-lift: 0 14px 34px rgba(122, 95, 42, 0.16);
  --radius: 14px;
  --radius-sm: 10px;
  --wheat-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cg fill='none' stroke='%23B5892E' stroke-width='1.5' stroke-linecap='round'%3E%3Cg opacity='0.10'%3E%3Cpath d='M34 136V70'/%3E%3Cpath d='M34 78c-1.5-7-7-11-14.5-12 2.5 8 8 11 14.5 12z'/%3E%3Cpath d='M34 78c1.5-7 7-11 14.5-12-2.5 8-8 11-14.5 12z'/%3E%3Cpath d='M34 98c-1.5-7-7-11-14.5-12 2.5 8 8 11 14.5 12z'/%3E%3Cpath d='M34 98c1.5-7 7-11 14.5-12-2.5 8-8 11-14.5 12z'/%3E%3Cellipse cx='34' cy='60' rx='4' ry='10'/%3E%3C/g%3E%3Cg opacity='0.06' transform='translate(88 -6) rotate(20 30 60)'%3E%3Cpath d='M34 136V70'/%3E%3Cpath d='M34 78c-1.5-7-7-11-14.5-12 2.5 8 8 11 14.5 12z'/%3E%3Cpath d='M34 78c1.5-7 7-11 14.5-12-2.5 8-8 11-14.5 12z'/%3E%3Cpath d='M34 98c-1.5-7-7-11-14.5-12 2.5 8 8 11 14.5 12z'/%3E%3Cpath d='M34 98c1.5-7 7-11 14.5-12-2.5 8-8 11-14.5 12z'/%3E%3Cellipse cx='34' cy='60' rx='4' ry='10'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --serif: "Noto Serif SC", "Source Han Serif SC", "STSong", Georgia, serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ============ 头部导航 ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 32px; height: 32px; }
.brand-text {
  font-family: var(--serif); font-size: 20px; font-weight: 700;
  color: var(--ink); letter-spacing: 1px; white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav > a {
  padding: 8px 9px; border-radius: 999px;
  color: var(--ink-soft); font-size: 14px; font-weight: 500;
  transition: color .2s, background .2s; white-space: nowrap;
}
.site-nav > a:hover { color: var(--gold-deep); background: var(--gold-pale); }
.site-nav > a.active { color: var(--gold-deep); font-weight: 600; }

.lang-switch {
  display: flex; align-items: center; margin-left: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px;
}
.lang-btn {
  padding: 4px 8px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--ink-soft); transition: all .2s;
}
.lang-btn:hover { color: var(--gold-deep); }
.lang-btn.current { background: var(--gold); color: #fff; }

.nav-toggle, .nav-burger { display: none; }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  background:
    var(--wheat-tex) repeat,
    linear-gradient(165deg, #F8F0DA 0%, #FAF3E0 48%, #F1E4C0 100%);
}
.hero-inner {
  display: flex; align-items: center; gap: 40px;
  padding-top: 76px; padding-bottom: 110px;
}
.hero-copy { flex: 1.15; min-width: 0; }
.hero-badge {
  display: inline-block; padding: 5px 14px; margin-bottom: 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  color: var(--gold-deep); font-size: 13px; letter-spacing: 1px;
}
.hero-title {
  font-family: var(--serif); font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 700; line-height: 1.3; letter-spacing: 1px;
  margin-bottom: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-sub { font-size: 17px; color: var(--ink-soft); margin-bottom: 34px; }

.hero-actions { display: flex; align-items: center; gap: 14px; margin-bottom: 44px; }

.hero-stats { display: flex; align-items: center; gap: 26px; }
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--serif); font-size: 26px; color: var(--gold-deep); }
.stat span { font-size: 13px; color: var(--ink-soft); }
.stat-divider { width: 1px; height: 34px; background: var(--line); }

.hero-art { flex: 0.85; display: flex; justify-content: center; }
.hero-art svg { width: min(300px, 100%); height: auto; }
.wheat { transform-origin: bottom center; animation: sway 5s ease-in-out infinite; }
.wheat-2 { animation-delay: -1.6s; }
.wheat-3 { animation-delay: -3.2s; }
@keyframes sway {
  0%, 100% { transform: rotate(-2.5deg); }
  50% { transform: rotate(2.5deg); }
}

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero-wave svg { width: 100%; height: 70px; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; letter-spacing: 1px; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-primary {
  background: linear-gradient(135deg, #C79A3B 0%, var(--gold) 55%, #A87C26 100%);
  color: #fff; box-shadow: 0 6px 16px rgba(181, 138, 46, 0.32);
}
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--gold-deep); border: 1.5px solid var(--gold); }
.btn-ghost:hover { background: var(--gold-pale); }
.btn-danger { background: var(--card); color: var(--terra); border: 1.5px solid #E0B9A6; }
.btn-danger:hover { background: var(--terra); color: #fff; border-color: var(--terra); }
.btn-small { height: 34px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ============ 区块 ============ */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 40px;
}
.section-title {
  font-family: var(--serif); font-size: 28px; font-weight: 700; letter-spacing: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.section-title::after {
  content: ""; display: block; width: 44px; height: 3px; margin-top: 10px;
  background: linear-gradient(90deg, var(--gold), transparent); border-radius: 2px;
}
.section-sub { color: var(--ink-soft); font-size: 15px; margin-top: 8px; }

/* ============ 作品卡片 ============ */
.works-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.featured-grid { grid-template-columns: repeat(3, 1fr); }

.work-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid rgba(234, 224, 204, 0.6);
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.work-cover { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--gold-pale); }
.work-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work-card:hover .work-cover img { transform: scale(1.05); }

.work-cat {
  position: absolute; left: 14px; top: 14px;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--gold-deep);
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  backdrop-filter: blur(4px);
}
.work-cat:empty { display: none; }

.work-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.work-title {
  font-family: var(--serif); font-size: 19px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.work-summary {
  color: var(--ink-soft); font-size: 14px; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 46px;
}
.work-meta { color: #91836A; font-size: 13px; margin-top: auto; }
.work-more { color: var(--gold-deep); font-size: 14px; font-weight: 600; align-self: flex-start; }
.work-more:hover { color: var(--terra); }

/* ============ 首页关于条 ============ */
.about-strip {
  display: flex; align-items: center; gap: 56px;
  background: var(--card); border-radius: var(--radius);
  padding: 48px; box-shadow: var(--shadow); border: 1px solid rgba(234, 224, 204, 0.6);
}
.about-copy { flex: 1.2; min-width: 0; }
.about-copy .section-title { margin-bottom: 14px; }
.about-text { color: var(--ink-soft); margin-bottom: 26px; }
.about-cats { flex: 0.8; display: grid; gap: 14px; }

.cat-chip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); transition: all .2s;
}
.cat-chip:hover { border-color: var(--gold); background: var(--gold-pale); transform: translateX(4px); }
.cat-name { font-weight: 600; font-size: 15px; white-space: nowrap; }
.cat-count {
  font-family: var(--serif); font-size: 18px; color: var(--gold-deep); font-weight: 700;
}

/* ============ 页面头 ============ */
.page-head {
  background:
    var(--wheat-tex) repeat,
    linear-gradient(168deg, #F8F0DA, #FBF6EA);
  padding: 58px 0 46px; border-bottom: 1px solid var(--line);
}
.page-head-tall { padding: 72px 0 56px; }
.page-title {
  font-family: var(--serif); font-size: 32px; letter-spacing: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.page-sub { color: var(--ink-soft); margin-top: 10px; font-size: 15px; }

/* ============ 分类筛选 ============ */
.cat-tabs {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px;
}
.cat-tab {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 20px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--ink-soft); font-size: 14px; font-weight: 500;
  transition: all .2s; white-space: nowrap;
}
.cat-tab:hover { border-color: var(--gold); color: var(--gold-deep); }
.cat-tab.current { background: var(--gold); border-color: var(--gold); color: #fff; }
.tab-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 7px;
  border-radius: 999px; background: var(--gold-pale);
  font-size: 12px; color: var(--gold-deep); font-weight: 700;
}
.cat-tab.current .tab-count { background: rgba(255,255,255,0.25); color: #fff; }

/* ============ 空状态 / 分页 ============ */
.empty-state {
  text-align: center; padding: 70px 20px; color: var(--ink-soft);
  background: var(--card); border-radius: var(--radius); border: 1px dashed var(--line);
}

.pagination { margin-top: 44px; display: flex; justify-content: center; }
.pagination ul { display: inline-flex; gap: 8px; list-style: none; }
.pagination li { display: inline-flex; }
.pagination li a, .pagination li span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 6px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--line); color: var(--ink-soft);
  font-size: 14px; transition: all .2s;
}
.pagination li a:hover { border-color: var(--gold); color: var(--gold-deep); }
.pagination li.active span { background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 600; }
.pagination li.disabled span { opacity: .4; }

/* ============ 404 页 ============ */
.not-found-box { padding: 90px 20px; }
.not-found-code {
  font-family: var(--serif); font-size: clamp(72px, 12vw, 128px); line-height: 1;
  color: var(--gold); letter-spacing: 4px; margin-bottom: 18px;
}
.not-found-actions { justify-content: center; flex-wrap: wrap; gap: 10px; }

/* ============ 作品详情 ============ */
.work-detail { padding: 40px 0 80px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; font-size: 14px; color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--gold-deep); }
.breadcrumb em { font-style: normal; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }

.detail-head { margin-bottom: 28px; }
.detail-title {
  font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); letter-spacing: 1px;
  margin-bottom: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.meta-chip {
  padding: 4px 14px; border-radius: 999px; background: var(--gold-pale);
  color: var(--gold-deep); font-size: 13px; font-weight: 600;
}
.meta-item { color: var(--ink-soft); font-size: 14px; }

.detail-cover {
  border-radius: var(--radius); overflow: hidden; margin-bottom: 36px;
  box-shadow: var(--shadow); background: var(--gold-pale);
}
.detail-cover img { width: 100%; max-height: 560px; object-fit: cover; }

.detail-body { max-width: 800px; font-size: 16.5px; }
.detail-body p { margin-bottom: 18px; }

.detail-notice {
  margin: 36px 0; padding: 18px 24px; max-width: 800px;
  background: #FDF6E7; border: 1px solid #EAD9AE; border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm); color: #7A651F; font-size: 14px;
}

.pager { display: flex; gap: 18px; margin: 40px 0; max-width: 800px; }
.pager-item {
  flex: 1; display: flex; flex-direction: column; gap: 4px;
  padding: 16px 20px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); transition: all .2s; min-width: 0;
}
.pager-item:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.pager-next { text-align: right; }
.pager-label { font-size: 13px; color: var(--ink-soft); }
.pager-title {
  font-weight: 600; font-size: 15px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pager-empty { visibility: hidden; }
.back-row { margin-top: 20px; }

.related { margin-top: 50px; }
.related .section-title { font-size: 22px; margin-bottom: 24px; }
.related .works-grid { grid-template-columns: repeat(3, 1fr); }

/* ============ 留言板 ============ */
.msg-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: start; }

.msg-list { display: flex; flex-direction: column; gap: 18px; }
.msg-item {
  display: flex; gap: 16px; padding: 22px 24px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid rgba(234, 224, 204, 0.6);
}
.msg-avatar {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-pale), #F0DFB6);
  color: var(--gold-deep); font-family: var(--serif); font-weight: 700; font-size: 18px;
}
.msg-content { min-width: 0; flex: 1; }
.msg-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.msg-nick { font-size: 15px; }
.msg-lang {
  padding: 1px 8px; border-radius: 999px; background: var(--bg-alt);
  color: var(--ink-soft); font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
}
.msg-time { color: #BFB49C; font-size: 12.5px; margin-left: auto; }
.msg-text { color: var(--ink); font-size: 14.5px; word-break: break-word; }

.msg-form-card {
  background: var(--card); border-radius: var(--radius); padding: 32px 30px;
  box-shadow: var(--shadow); border: 1px solid rgba(234, 224, 204, 0.6);
  position: sticky; top: 92px;
}
.msg-form-title {
  font-family: var(--serif); font-size: 21px; margin-bottom: 22px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.form-field input, .form-field textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14.5px; background: var(--bg); color: var(--ink); transition: border .2s, background .2s;
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--gold); background: var(--card);
  box-shadow: 0 0 0 3px rgba(181, 138, 46, 0.12);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-note { margin-top: 14px; font-size: 12.5px; color: #91836A; text-align: center; }

.form-alert {
  margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 14px; text-align: center;
}
.alert-ok { background: #EAF5EA; color: #2E7D32; border: 1px solid #CDE8CD; }
.alert-err { background: #FBEDE6; color: #B5542D; border: 1px solid #F0D5C5; }

/* ============ 关于页 ============ */
.about-page { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.about-heading { font-family: var(--serif); font-size: 26px; margin-bottom: 18px; white-space: nowrap; }
.about-sub-heading {
  font-family: var(--serif); font-size: 19px; margin: 30px 0 12px;
  padding-left: 12px; border-left: 4px solid var(--gold);
}
.about-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.about-list a {
  padding: 8px 18px; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; font-size: 14px; font-weight: 500; transition: all .2s;
}
.about-list a:hover { border-color: var(--gold); background: var(--gold-pale); color: var(--gold-deep); }

.about-side { display: flex; flex-direction: column; gap: 20px; }
.side-card {
  background: var(--card); border-radius: var(--radius); padding: 26px 28px;
  box-shadow: var(--shadow); border: 1px solid rgba(234, 224, 204, 0.6);
}
.side-card h3 {
  font-family: var(--serif); font-size: 19px; margin-bottom: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side-meta dt { font-size: 12.5px; color: #91836A; margin-top: 12px; }
.side-meta dd { font-size: 14.5px; color: var(--ink); }
.side-note { font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; }

/* ============ 管理后台 ============ */
.admin-wrap { max-width: 860px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.admin-title { font-family: var(--serif); font-size: 26px; white-space: nowrap; }
.admin-sub {
  font-size: 17px; font-weight: 600; margin: 34px 0 16px;
  padding-left: 12px; border-left: 4px solid var(--gold);
}
.admin-card {
  max-width: 420px; margin: 60px auto; background: var(--card);
  border-radius: var(--radius); padding: 40px 36px; box-shadow: var(--shadow);
  border: 1px solid rgba(234, 224, 204, 0.6);
}
.admin-card .admin-title { font-size: 22px; margin-bottom: 24px; }

.admin-list { display: flex; flex-direction: column; gap: 16px; }
.admin-item {
  background: var(--card); border-radius: var(--radius); padding: 20px 24px;
  box-shadow: var(--shadow); border: 1px solid rgba(234, 224, 204, 0.6);
}
.admin-item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.admin-item-head time { color: #91836A; font-size: 12.5px; margin-left: auto; }
.admin-item-body { color: var(--ink); font-size: 14.5px; margin-bottom: 14px; word-break: break-word; }
.admin-actions { display: flex; gap: 10px; }

/* ============ 页脚 ============ */
.site-footer {
  background: #33291C; color: #CBBB9E; margin-top: 40px;
  border-top: 3px solid rgba(181, 137, 46, 0.32);
}
.footer-inner {
  display: grid; grid-template-columns: 1.1fr 1.5fr 0.9fr; gap: 44px;
  padding: 52px 24px 40px;
}
.footer-logo { font-family: var(--serif); font-size: 24px; color: #F0E4C8; letter-spacing: 3px; }
.footer-slogan { font-size: 13.5px; margin-top: 10px; color: #A6987D; }

.footer-col-title {
  font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
  color: #D8B87A; margin-bottom: 16px;
}
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 26px; }
.footer-links a { color: #CBBB9E; font-size: 13.5px; transition: color .2s; width: fit-content; }
.footer-links a:hover { color: #F0E4C8; }

.footer-friends { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.footer-friends a { color: #CBBB9E; transition: color .2s; width: fit-content; }
.footer-friends a:hover { color: #F0E4C8; }
.footer-friends-empty { font-size: 13px; color: #8A7D6B; }

.footer-meta {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px 18px; flex-wrap: wrap;
  padding-top: 22px; padding-bottom: 34px;
  border-top: 1px solid rgba(202, 187, 158, 0.14);
}
.footer-desc { font-size: 13px; line-height: 1.8; color: #A6987D; max-width: 560px; }
.footer-icp { font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; white-space: nowrap; }
.footer-icp a { color: #CBBB9E; border-bottom: 1px dotted #8A7D6B; transition: color .2s; }
.footer-icp a:hover { color: #F0E4C8; }
.footer-sep { color: #6B5F4A; }

.footer-bottom {
  border-top: 1px solid #4A3D2A; text-align: center;
  padding: 20px 24px; font-size: 12.5px; color: #8A7D6B; letter-spacing: 0.5px;
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .hero-inner { flex-direction: column-reverse; text-align: center; padding-bottom: 90px; gap: 24px; }
  .hero-copy { flex: none; }
  .hero-actions { justify-content: center; }
  .hero-art { flex: none; }
  .hero-art svg { width: 200px; }
  .works-grid, .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .about-strip { flex-direction: column; gap: 32px; }
  .about-page { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1.4fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 30px; padding-top: 44px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-meta { flex-direction: column; gap: 14px; }
  .nav-toggle, .nav-burger { display: block; }
  .nav-burger { width: 30px; cursor: pointer; z-index: 110; }
  .nav-burger span {
    display: block; height: 2.5px; margin: 5.5px 0; border-radius: 2px;
    background: var(--ink); transition: transform .3s, opacity .3s;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .site-nav {
    position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
    flex-direction: column; align-items: flex-start; gap: 8px;
    background: var(--card); padding: 90px 28px 28px;
    box-shadow: -10px 0 40px rgba(59, 50, 38, 0.12);
    transition: right .3s ease; z-index: 105;
  }
  .nav-toggle:checked ~ .site-nav { right: 0; }
  .site-nav > a { font-size: 16px; width: 100%; }
  .lang-switch { margin-left: 0; margin-top: 10px; }

  .works-grid, .featured-grid, .related .works-grid { grid-template-columns: 1fr 1fr; }
  .msg-layout { grid-template-columns: 1fr; }
  .msg-form-card { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .pager { flex-direction: column; }
  .hero-title { white-space: normal; }
}

@media (max-width: 520px) {
  .works-grid, .featured-grid, .related .works-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { gap: 16px; }
  .hero-actions { flex-wrap: wrap; }
  .detail-meta { gap: 8px 14px; }
}

/* =====================================================
   内容丰富版新增组件
   ===================================================== */

/* 导航搜索框 */
.nav-search {
  display: flex; align-items: center; gap: 0;
  margin-left: 8px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 999px;
  overflow: hidden; transition: border .2s;
}
.nav-search:focus-within { border-color: var(--gold); }
.nav-search input {
  width: 96px; height: 32px; padding: 0 6px 0 12px; border: none; outline: none;
  background: transparent; font-size: 13px; color: var(--ink);
}
.nav-search input::placeholder { color: #91836A; }
.nav-search button {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 32px; color: var(--gold-deep);
}
.nav-search button svg { width: 15px; height: 15px; }
.nav-search button:hover { color: var(--terra); }

/* 首页热门榜 */
.rank-list { display: grid; gap: 16px; }
.rank-item {
  display: flex; align-items: center; gap: 18px;
  background: var(--card); border-radius: var(--radius);
  border: 1px solid rgba(234, 224, 204, 0.6); box-shadow: var(--shadow);
  padding: 14px 22px 14px 16px; transition: transform .2s, box-shadow .2s;
}
.rank-item:hover { transform: translateX(6px); box-shadow: var(--shadow-lift); }
.rank-num {
  font-family: var(--serif); font-size: 30px; font-weight: 700;
  color: var(--gold); line-height: 1; width: 34px; text-align: center; flex-shrink: 0;
}
.rank-cover {
  width: 64px; height: 64px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  background: var(--gold-pale);
}
.rank-cover img { width: 100%; height: 100%; object-fit: cover; }
.rank-info { min-width: 0; }
.rank-title {
  display: block; font-size: 16px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rank-meta { display: block; font-size: 13px; color: #91836A; margin-top: 3px; }

/* 笔记卡片 */
.notes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.notes-grid-list { grid-template-columns: repeat(2, 1fr); }
.note-card {
  display: flex; gap: 0; background: var(--card); border-radius: var(--radius);
  overflow: hidden; border: 1px solid rgba(234, 224, 204, 0.6);
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.note-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.note-cover {
  flex: 0 0 40%; max-width: 40%; overflow: hidden; background: var(--gold-pale);
  min-height: 190px;
}
.note-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.note-card:hover .note-cover img { transform: scale(1.05); }
.note-body { flex: 1; padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.note-title {
  font-family: var(--serif); font-size: 19px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.note-summary {
  color: var(--ink-soft); font-size: 14px; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.note-meta { color: #91836A; font-size: 12.5px; margin-top: auto; }
.note-work-link { color: var(--gold-deep); }
.note-work-link:hover { color: var(--terra); }

/* 标签筛选条 + 详情标签 */
.tag-cloud {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 30px; padding: 16px 18px;
  background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius);
}
.tag-label { font-size: 13px; color: #91836A; margin-right: 4px; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line);
  color: var(--ink-soft); font-size: 13px; transition: all .2s;
}
.tag-chip em { font-style: normal; font-size: 11px; color: #91836A; }
.tag-chip:hover { border-color: var(--gold); color: var(--gold-deep); background: var(--gold-pale); }
.tag-chip.current { background: var(--terra); border-color: var(--terra); color: #fff; }
.tag-chip.current em { color: rgba(255,255,255,0.7); }

.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* 点赞按钮 */
.like-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 16px; border-radius: 999px;
  background: var(--card); border: 1.5px solid #E8C9C4; color: var(--terra);
  font-size: 13.5px; font-weight: 600; transition: all .2s;
}
.like-btn svg { width: 16px; height: 16px; }
.like-btn:hover { background: #FBEBE4; transform: translateY(-1px); }
.like-btn.liked { background: var(--terra); border-color: var(--terra); color: #fff; cursor: default; }
.like-btn.liked svg { animation: heart-pop .45s ease; }
@keyframes heart-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* 图集 */
.work-gallery { margin: 40px 0; max-width: 800px; }
.gallery-title {
  font-family: var(--serif); font-size: 20px; margin-bottom: 18px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-item {
  aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--gold-pale); cursor: zoom-in; margin: 0;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item { position: relative; }
.gallery-item::after {
  content: "⤢"; position: absolute; right: 10px; bottom: 8px;
  color: #fff; font-size: 15px; opacity: 0; transition: opacity .2s;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.gallery-item:hover::after { opacity: 1; }

/* 关联笔记（作品详情页）& 相关作品（笔记详情页） */
.work-notes { margin: 36px 0; max-width: 800px; }
.note-inline {
  display: flex; align-items: center; gap: 20px; padding: 16px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; transition: border .2s, box-shadow .2s;
}
.note-inline:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.note-inline img {
  width: 88px; height: 66px; object-fit: cover; border-radius: 8px; flex-shrink: 0;
}
.note-inline span { min-width: 0; }
.note-inline strong {
  display: block; font-size: 15.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.note-inline em {
  display: block; font-style: normal; color: var(--ink-soft); font-size: 13px; margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .2s;
}
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 24px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 15.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.faq-plus {
  position: relative; width: 18px; height: 18px; flex-shrink: 0;
  color: var(--gold-deep); font-weight: 700;
}
.faq-plus::before, .faq-plus::after {
  content: ""; position: absolute; left: 3px; right: 3px; top: 8px; height: 2px;
  background: currentColor; border-radius: 2px; transition: transform .25s;
}
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: rotate(0deg); }
.faq-a {
  padding: 0 24px 20px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.8;
  border-top: 1px dashed var(--line); padding-top: 16px; margin: 0 0 0 0;
}
.side-link-row { font-size: 14px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* 搜索页 */
.search-hero {
  display: flex; gap: 12px; margin-top: 24px; max-width: 560px;
}
.search-hero input {
  flex: 1; height: 48px; padding: 0 20px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); font-size: 15px; outline: none; transition: border .2s;
}
.search-hero input:focus { border-color: var(--gold); }
.search-summary { font-size: 15px; color: var(--ink-soft); margin-bottom: 30px; }
.search-summary strong { color: var(--terra); }
.search-sec { margin: 34px 0 20px; }
.search-sec em { font-style: normal; color: var(--gold-deep); font-size: 16px; }

/* 灯箱 */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(38, 30, 18, 0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.lightbox-overlay.open { opacity: 1; pointer-events: auto; }
.lightbox-overlay img {
  max-width: 88vw; max-height: 84vh; border-radius: 8px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: #F5E9CF;
  font-size: 30px; border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, 0.28); }
.lb-close { top: 28px; right: 32px; font-size: 26px; }
.lb-prev { left: 28px; }
.lb-next { right: 28px; }
.lb-counter {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: #D9CBA8; font-size: 14px; letter-spacing: 2px;
}

/* 滚动渐显（JS 可用时才隐藏初始态） */
.js .section .work-card,
.js .section .note-card,
.js .section .rank-item,
.js .about-strip,
.js .faq-item,
.js .detail-cover,
.js .detail-body,
.js .pager {
  opacity: 0; transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.js .visible,
.js .section .visible { opacity: 1; transform: none; }

/* 图片加载骨架（容器 shimmer，图片加载完成后遮盖） */
.work-cover img, .note-cover img, .detail-cover img,
.gallery-item img, .rank-cover img, .note-inline img, .rank-cover img {
  background: linear-gradient(110deg, #F0E7D4 8%, #F9F3E4 18%, #F0E7D4 33%);
  background-size: 200% 100%;
  animation: shimmer 1.8s linear infinite;
}
.img-loaded { animation: none; background: none; }
@keyframes shimmer {
  to { background-position: -200% 0; }
}

/* 笔记详情小屏适配 */
.note-detail { padding: 40px 0 80px; }

@media (max-width: 900px) {
  .notes-grid, .notes-grid-list { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-search { display: none; }
}
/* 桌面中窄屏：隐藏头部搜索，保证主题/语言按钮不溢出（搜索页 /search.html 仍可用） */
@media (max-width: 1240px) and (min-width: 769px) {
  .site-nav .nav-search { display: none; }
}
@media (max-width: 768px) {
  .site-nav .nav-search { display: flex; width: 100%; margin: 12px 0 0; }
  .site-nav .nav-search input { flex: 1; width: auto; }
  .rank-item { padding: 12px 16px; gap: 12px; }
  .rank-cover { width: 52px; height: 52px; }
  .rank-num { font-size: 22px; width: 26px; }
  .search-hero { flex-direction: column; }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .note-inline { flex-direction: column; align-items: flex-start; }
}

/* =====================================================
   体验升级：主题切换 / 浏览足迹 / 无限滚动
   ===================================================== */

/* 主题切换按钮 */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-left: 6px;
  border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--card); color: var(--gold-deep); transition: all .2s;
}
.theme-toggle:hover { border-color: var(--gold); background: var(--gold-pale); }
.theme-toggle svg { width: 17px; height: 17px; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* 浏览足迹 */
.seen-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.seen-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 14px 10px 10px;
  transition: border .2s, transform .2s; min-width: 0;
}
.seen-item:hover { border-color: var(--gold); transform: translateX(4px); }
.seen-item img {
  width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
  background: var(--gold-pale);
}
.seen-title {
  font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 无限滚动 */
.inf-sentinel { height: 1px; }
.inf-spinner {
  display: none; height: 44px; margin: 30px auto 0;
  width: 44px; border-radius: 50%;
  border: 3px solid var(--gold-pale); border-top-color: var(--gold);
  animation: infspin .8s linear infinite;
}
@keyframes infspin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
  .seen-list { grid-template-columns: repeat(2, 1fr); }
  .theme-toggle { margin-left: 0; margin-top: 10px; }
}
@media (max-width: 520px) {
  .seen-list { grid-template-columns: 1fr; }
}

/* =====================================================
   深色模式（data-theme=dark 全站变量覆盖）
   ===================================================== */
[data-theme="dark"] {
  --bg: #211B12;
  --bg-alt: #2A2317;
  --card: #2E2718;
  --bg-card: #2E2718;
  --ink: #F3EDDD;
  --ink-soft: #C9BEA6;
  --gold: #D2A84B;
  --gold-deep: #E0BC64;
  --gold-pale: #3D3319;
  --terra: #D0703F;
  --line: #564933;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 14px 34px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
[data-theme="dark"] .site-header { background: rgba(33, 27, 18, 0.92); }
[data-theme="dark"] .hero {
  background:
    var(--wheat-tex) repeat,
    linear-gradient(160deg, #332918 0%, #211B12 55%, #3A2E17 100%);
}
[data-theme="dark"] .page-head {
  background:
    var(--wheat-tex) repeat,
    linear-gradient(165deg, #332918, #211B12);
}
[data-theme="dark"] .hero-wave svg path { fill: var(--bg); }
[data-theme="dark"] .lang-switch,
[data-theme="dark"] .cat-tab,
[data-theme="dark"] .pagination li a, [data-theme="dark"] .pagination li span,
[data-theme="dark"] .msg-item,
[data-theme="dark"] .note-inline,
[data-theme="dark"] .admin-item,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .side-card,
[data-theme="dark"] .msg-form-card,
[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .tag-chip,
[data-theme="dark"] .like-btn,
[data-theme="dark"] .msg-avatar {
  background: var(--card);
}
[data-theme="dark"] .form-field input, [data-theme="dark"] .form-field textarea,
[data-theme="dark"] .search-hero input,
[data-theme="dark"] .nav-search, [data-theme="dark"] .nav-search input {
  background: var(--bg-alt); color: var(--ink); border-color: var(--line);
}
[data-theme="dark"] .detail-notice { background: #3A311A; border-color: #5A4A22; color: #D8C58A; }
[data-theme="dark"] .alert-ok { background: #243224; color: #9BD69C; border-color: #3E5C3F; }
[data-theme="dark"] .alert-err { background: #462218; color: #E5A184; border-color: #6E4A38; }
[data-theme="dark"] .work-cover img, [data-theme="dark"] .note-cover img, [data-theme="dark"] .detail-cover img,
[data-theme="dark"] .gallery-item img, [data-theme="dark"] .rank-cover img, [data-theme="dark"] .note-inline img {
  background: linear-gradient(110deg, #2E2718 8%, #3A3220 18%, #2E2718 33%);
  background-size: 200% 100%;
}
[data-theme="dark"] .site-footer { background: #17120A; }
[data-theme="dark"] .footer-bottom { border-top-color: #32291A; }
[data-theme="dark"] ::placeholder { color: #A2967D; }

/* =====================================================
   管理后台增强：tabs / 表单 / 统计看板 / SEO 自检
   ===================================================== */
/* 后台左右排版：左侧固定导航 + 右侧内容 */
.admin-layout { display: flex; align-items: flex-start; gap: 30px; }
.admin-main { flex: 1; min-width: 0; }
.admin-side {
  flex: 0 0 210px; width: 210px;
  position: sticky; top: 92px;
  background: var(--card); border: 1px solid rgba(234, 224, 204, 0.6);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 10px;
  max-height: calc(100vh - 118px); overflow-y: auto;
  scrollbar-width: thin;
}
.admin-side-title {
  font-family: var(--serif); font-size: 15.5px; font-weight: 700; letter-spacing: 2px;
  color: var(--ink); padding: 2px 12px 12px; margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.admin-side-group {
  margin: 14px 12px 4px; font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; color: #91836A;
}
.admin-side-nav .admin-side-group:first-child { margin-top: 0; }
.admin-side-link {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px; margin: 2px 0; border-radius: 9px;
  color: var(--ink-soft); font-size: 13.5px; font-weight: 500;
  transition: background .2s, color .2s;
}
.admin-side-link::before {
  content: ""; flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%;
  background: var(--line); transition: background .2s;
}
.admin-side-link:hover { color: var(--gold-deep); background: var(--gold-pale); }
.admin-side-link:hover::before { background: var(--gold); }
.admin-side-link.current { background: var(--gold); color: #fff; font-weight: 600; }
.admin-side-link.current::before { background: rgba(255, 255, 255, 0.85); }

@media (max-width: 1024px) {
  .admin-layout { flex-direction: column; gap: 20px; }
  .admin-side {
    position: static; width: 100%; flex: none; max-height: none;
    padding: 12px;
  }
  .admin-side-title { padding-bottom: 8px; margin-bottom: 8px; }
  .admin-side-nav { display: flex; flex-wrap: wrap; gap: 2px 4px; }
  .admin-side-group { width: 100%; margin: 8px 4px 2px; }
  .admin-side-nav .admin-side-group:first-child { margin-top: 0; }
  .admin-side-link { padding: 7px 12px; }
}

.admin-head-actions { display: flex; align-items: center; gap: 10px; }
.admin-row { display: flex; align-items: center; gap: 16px; }
.admin-thumb {
  width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
  background: var(--gold-pale);
}
.admin-row-info { flex: 1; min-width: 0; }
.admin-row-info strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-row-meta { display: block; font-size: 12.5px; color: #91836A; margin-top: 2px; }

.pill {
  display: inline-flex; align-items: center; height: 24px; padding: 0 12px;
  border-radius: 999px; background: var(--bg-alt); color: var(--ink-soft);
  font-size: 12px; font-weight: 700;
}
.pill-ok { background: #E5F2E5; color: #2E7D32; }
.pill-gold { background: var(--gold-pale); color: var(--gold-deep); }
.pill-err { background: #FBEDE6; color: #B5542D; }

.admin-form-wrap { max-width: 720px; }
.form-covers .upload-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }

.lang-tabs { display: flex; gap: 8px; margin: 6px 0 18px; }
.lang-tab {
  padding: 7px 22px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line);
  color: var(--ink-soft); font-size: 13.5px; font-weight: 600; transition: all .2s;
}
.lang-tab:hover { border-color: var(--gold); }
.lang-tab.current { background: var(--gold); border-color: var(--gold); color: #fff; }
.lang-pane { display: none; }
.lang-pane.current { display: block; }
.admin-form-wrap select {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink); font-size: 14.5px;
}
.form-checks { display: flex; gap: 26px; margin: 20px 0; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 14.5px; cursor: pointer; }
.form-check input { width: 17px; height: 17px; accent-color: var(--gold); }

/* 统计看板 */
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; }
.stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; text-align: center; box-shadow: var(--shadow);
}
.stat-card strong { display: block; font-family: var(--serif); font-size: 30px; color: var(--gold-deep); }
.stat-card span { font-size: 13px; color: var(--ink-soft); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 26px; }
.stat-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow); margin-bottom: 22px;
}
.stat-panel .admin-sub { margin-top: 0; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 44px; gap: 12px; align-items: center; margin: 12px 0; }
.bar-label {
  font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right;
}
.bar-track {
  height: 14px; border-radius: 999px; background: var(--bg-alt); overflow: hidden;
}
.bar-fill {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  transition: width .8s ease;
}
.bar-terra .bar-fill { background: linear-gradient(90deg, var(--terra), #D0703F); }
.bar-val { font-size: 13px; color: var(--ink-soft); text-align: right; }

/* SEO 自检 */
.seo-summary { margin: 4px 0 22px; font-size: 15px; }
.seo-issues { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.seo-issues code {
  padding: 2px 10px; border-radius: 6px;
  background: #FBEDE6; color: #B5542D; font-size: 12px;
}

/* 图集后台管理 */
.gallery-admin { display: flex; flex-direction: column; gap: 12px; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.gallery-thumb {
  position: relative; width: 88px; height: 66px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); background: var(--gold-pale);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-del {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff;
  font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.gallery-del:hover { background: var(--terra); }
.form-checks-tags { flex-wrap: wrap; row-gap: 10px; margin: 0 0 20px; }

/* 留言作者回复（后台表单 + 前台气泡） */
.reply-form { margin: 10px 0; }
.reply-form textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 13.5px; background: var(--bg); color: var(--ink); resize: vertical;
}
.reply-form textarea:focus { outline: none; border-color: var(--gold); background: var(--card); }
.reply-form-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }

.msg-reply {
  margin-top: 10px; padding: 10px 14px 10px 12px;
  background: var(--gold-pale); border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13.5px; color: var(--ink); line-height: 1.7;
}
.msg-reply-badge {
  display: inline-block; margin-bottom: 4px; padding: 1px 10px;
  border-radius: 999px; background: var(--gold); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
}

@media (max-width: 768px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: 1fr; }
  .admin-row { flex-wrap: wrap; }
  .bar-row { grid-template-columns: 90px 1fr 40px; }
  .seo-issues { margin-left: 0; }
  .admin-log-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ============ 访客收藏夹 ============ */
.fav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--gold-deep);
  font-size: 13px; font-weight: 600;
  transition: all .2s;
}
.fav-btn svg { width: 15px; height: 15px; }
.fav-btn:hover { border-color: var(--gold); background: var(--gold-pale); transform: translateY(-1px); }
.fav-btn.faved { background: var(--gold); border-color: var(--gold); color: #fff; }

.work-card .fav-toggle {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); color: var(--gold-deep);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s, background .2s, transform .2s;
  box-shadow: 0 3px 10px rgba(122, 95, 42, 0.22);
}
.fav-toggle svg { width: 15px; height: 15px; }
.work-card:hover .fav-toggle, .fav-toggle.faved { opacity: 1; }
.fav-toggle:hover { transform: scale(1.1); }
.fav-toggle.faved { background: var(--gold); color: #fff; }

.fav-card-body { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fav-card-body .work-title { flex: 1; }
.fav-remove { white-space: nowrap; }

/* ============ 留言表情回应 ============ */
.msg-reactions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.react-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--card); font-size: 14px; color: var(--ink-soft);
  transition: all .2s;
}
.react-btn .react-cnt { font-size: 12.5px; font-weight: 700; }
.react-btn:hover { border-color: var(--gold); background: var(--gold-pale); transform: translateY(-1px); }
.react-btn.active { background: var(--gold-pale); border-color: var(--gold); color: var(--gold-deep); cursor: default; }
.react-btn:disabled { opacity: .6; }

.react-summary { display: flex; gap: 10px; margin: 8px 0; font-size: 13px; color: var(--ink-soft); }
.react-summary span {
  background: var(--bg-alt); padding: 2px 10px; border-radius: 999px;
}

/* ============ 统计看板 · 访问趋势 ============ */
.stat-cards { grid-template-columns: repeat(4, 1fr); }
.visit-chart {
  display: flex; align-items: flex-end; gap: 4px;
  height: 140px; padding: 8px 0 0; margin-bottom: 8px;
}
.visit-col {
  flex: 1; min-height: 3px; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  opacity: .85; transition: opacity .2s;
}
.visit-col:hover { opacity: 1; }
.visit-scale {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--ink-soft);
}

/* ============ 操作日志 ============ */
.admin-head .backup-note { margin: 0; font-size: 13px; color: var(--ink-soft); }
.admin-log-row {
  display: grid; grid-template-columns: 140px 90px 130px 1fr;
  gap: 12px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 16px; margin-bottom: 10px; font-size: 13.5px;
}
.admin-log-row .log-time { color: var(--ink-soft); white-space: nowrap; }
.admin-log-row .log-pill { text-transform: uppercase; font-size: 11px; justify-self: start; }
.admin-log-row .log-entity { color: var(--gold-deep); font-weight: 600; white-space: nowrap; }
.admin-log-row .log-detail {
  color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ============ 第二批：视频懒加载 ============ */
.work-video-box { margin-top: 34px; }
.video-embed {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); background: #100D07;
  cursor: pointer; box-shadow: var(--shadow);
}
.video-embed img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .4s, opacity .3s; }
.video-embed:hover img, .video-embed:focus-visible img { transform: scale(1.03); opacity: .95; }
.video-embed.playing { cursor: default; }
.video-embed.playing img, .video-embed.playing .video-play-btn, .video-embed.playing .video-play-label { display: none; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; display: grid; place-items: center; transition: transform .25s;
}
.video-play-btn svg { width: 64px; height: 64px; filter: drop-shadow(0 4px 14px rgba(20,16,8,.45)); }
.video-embed:hover .video-play-btn { transform: translate(-50%, -50%) scale(1.08); }
.video-play-label {
  position: absolute; left: 50%; top: calc(50% + 44px); transform: translateX(-50%);
  color: #fff; font-size: 13px; letter-spacing: .12em; text-shadow: 0 2px 8px rgba(20,16,8,.6);
}

/* ============ 第二批：创作时间线 ============ */
.work-timeline { margin-top: 34px; }
.timeline-list { position: relative; padding-left: 30px; margin-top: 18px; }
.timeline-list::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--line)); border-radius: 2px;
}
.timeline-item { position: relative; padding: 0 0 22px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -27px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold-pale); border: 3px solid var(--gold); box-shadow: 0 0 0 4px var(--bg);
}
.timeline-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 16px; box-shadow: var(--shadow);
}
.timeline-stage { display: inline-block; font-size: 13px; font-weight: 700; color: var(--gold-deep); letter-spacing: .06em; }
.timeline-date { display: inline-block; margin-left: 10px; font-size: 12px; color: var(--ink-soft); }
.timeline-note { margin-top: 6px; font-size: 14.5px; color: var(--ink); line-height: 1.75; }

/* ============ 第二批：材料清单 ============ */
.work-materials { margin-top: 34px; }
.material-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.material-chip {
  display: inline-flex; flex-direction: column; gap: 2px; padding: 9px 16px;
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 999px; transition: transform .2s, box-shadow .2s;
}
.material-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.material-chip strong { font-size: 14px; color: var(--ink); }
.material-chip em { font-style: normal; font-size: 12px; color: var(--ink-soft); }
.material-cloud { margin-top: 10px; }

/* ============ 第二批：节气专题 ============ */
.topics-strip { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.topics-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px; margin-top: 22px;
}
.topics-grid-page { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.topic-card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.topic-cover { display: block; aspect-ratio: 16/9; overflow: hidden; }
.topic-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.topic-card:hover .topic-cover img { transform: scale(1.05); }
.topic-info { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.topic-name {
  font-family: var(--serif); font-size: 17px; color: var(--ink); line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topic-desc {
  font-style: normal; font-size: 13.5px; color: var(--ink-soft); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.topic-detail .back-row { margin-top: 30px; }
.topic-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: center; margin-top: 10px; }
.topic-hero-cover {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-lift); background: var(--card);
}
.topic-hero-cover img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; }
.topic-hero-desc { font-size: 15.5px; color: var(--ink-soft); line-height: 1.85; margin-top: 14px; }
@media (max-width: 860px) {
  .topic-hero { grid-template-columns: 1fr; gap: 18px; }
}

/* ============ 第二批：后台阶段行 ============ */
.stage-row { display: flex; gap: 10px; margin-bottom: 10px; }
.stage-row select { flex: 0 0 150px; max-width: 150px; }
.stage-row input { flex: 1; min-width: 0; }
.stage-row .stage-del { flex: 0 0 auto; min-width: 42px; }

/* =====================================================
   第三批：分享卡片 / 搜索高亮 / 定时标记
   ===================================================== */

/* 搜索关键词高亮 */
mark {
  background: #F3E2B8;
  color: inherit;
  padding: 0 3px;
  border-radius: 3px;
}
[data-theme="dark"] mark { background: #6B5A22; color: #F2E7C9; }

/* 分享按钮（在 fav-btn 圆角胶囊基础上金色调） */
.share-btn { border-color: var(--gold); color: var(--gold-deep); }
.share-btn:hover { background: var(--gold-pale); transform: translateY(-1px); }
.share-btn svg { width: 15px; height: 15px; }

/* 分享图预览弹窗 */
.share-modal {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(30, 24, 12, 0.55);
  padding: 20px;
}
.share-modal-box {
  background: var(--bg); border-radius: var(--radius); padding: 22px;
  max-width: 400px; width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
}
.share-modal-title {
  font-family: var(--serif); font-size: 18px; margin: 0 0 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.share-modal-box img { display: block; width: 100%; border-radius: 10px; margin: 12px 0; }
.share-modal-tip { font-size: 13px; color: var(--ink-soft); margin: 0 0 14px; }
.share-modal-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.share-modal-actions .btn { min-width: 104px; flex: 1 1 104px; }
.share-modal-actions .btn-primary { flex: 1 1 100%; min-width: 100%; }
.note-share-row { margin-top: 14px; }

/* 后台「定时中」标记 */
.pill-wait { background: #F3E8CF; color: #8A6D1A; }

/* =====================================================
   第五批：公告横幅 / IP 黑名单 / 批量操作
   ===================================================== */

/* 站点公告横幅 */
.notice-bar {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(90deg, #F3E8CF, #EAE0CC);
  border-bottom: 1px solid var(--gold);
  padding: 9px 18px;
  font-size: 14px; color: var(--ink);
}
.notice-bar[hidden] { display: none; }
.notice-tag {
  flex: none; font-size: 12px; font-weight: 700;
  color: #fff; background: var(--gold);
  border-radius: 4px; padding: 2px 8px; letter-spacing: 2px;
}
.notice-text {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notice-close {
  flex: none; border: none; background: transparent;
  font-size: 20px; line-height: 1; color: var(--ink-soft);
  cursor: pointer; padding: 0 4px;
}
.notice-close:hover { color: var(--gold-deep); }
/* 深色模式：公告横幅底色压暗，保证暖白文字可读 */
[data-theme="dark"] .notice-bar {
  background: linear-gradient(90deg, #3B3220, #332B1C);
}
[data-theme="dark"] .notice-tag { color: #2A2416; background: var(--gold); }
[data-theme="dark"] .notice-close { color: var(--ink-soft); }
[data-theme="dark"] .notice-close:hover { color: var(--gold); }

/* 后台 IP 黑名单 */
.ipban-add-box {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; margin: 18px 0;
}
.ipban-add-box .form-field-btn { align-self: flex-end; }
.mono-ip { font-family: Consolas, monospace; font-size: 15px; letter-spacing: 0.5px; }

/* 后台批量操作 */
.batch-check {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-soft); cursor: pointer; margin-right: 6px;
}
.batch-check input { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }
.batch-head { background: var(--bg-soft); }
.batch-bar {
  position: sticky; bottom: 14px; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff;
  border-radius: 999px; padding: 10px 22px;
  margin: 18px auto 26px; width: max-content;
  box-shadow: 0 12px 30px rgba(59, 50, 38, 0.35);
  font-size: 14px;
}
.batch-bar #batch-count { font-weight: 700; color: #E9C46A; }
.batch-bar .btn { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.batch-bar .btn:hover { background: rgba(255, 255, 255, 0.12); }
.batch-bar .btn-danger { border-color: #C0574F; color: #FFD9D6; }

/* 友链独立页 */
.links-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px; margin-top: 24px;
}
.link-card {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
  text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.link-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 10px 26px rgba(181, 138, 46, 0.14);
}
.link-name {
  font-family: var(--serif); font-size: 17px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.link-url {
  font-size: 12px; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.link-arrow {
  position: absolute; top: 14px; right: 16px;
  color: var(--gold); font-size: 15px; opacity: 0;
  transition: opacity .2s;
}
.link-card:hover .link-arrow { opacity: 1; }

/* 作品评论区 */
.work-comments { margin-top: 40px; }
.comment-list { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 14px; }
.comment-item {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 10px; padding: 14px 18px;
}
.comment-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.comment-nick { font-size: 14px; color: var(--gold-deep); }
.comment-time { font-size: 12px; color: var(--ink-soft); }
.comment-body { margin: 0; font-size: 14px; line-height: 1.8; color: var(--ink); }
.comment-empty { color: var(--ink-soft); font-size: 14px; }

/* 评论表单 */
.comment-form-box {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; margin-top: 8px;
}
.comment-form-title {
  font-family: var(--serif); font-size: 17px; color: var(--ink);
  margin: 0 0 14px;
}
.comment-form-box .form-note { font-size: 12px; color: var(--ink-soft); margin: 0 0 12px; }
.hp-field {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

/* 后台：统计卡片 12 枚自适应 */
.stat-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.stat-card span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 后台：导出 / 友链 / 评论按钮通用微调 */
.admin-head-actions .btn-small { min-width: 0; }

/* 定时发布输入跟随系统控件 */
.form-field input[type="datetime-local"] { color-scheme: light; }

/* ============================================================
   第六批：回收站 / 合集 / 站点地图页 / 日志筛选 / 定时任务
   ============================================================ */

/* 后台：回收站分组标题与提示 */
.recycle-group-title {
  font-family: var(--serif); font-size: 16px; color: var(--ink);
  margin: 26px 0 10px; padding-left: 10px;
  border-left: 3px solid var(--gold); line-height: 1.4;
}
.recycle-group-title:first-of-type { margin-top: 16px; }
.recycle-empty {
  color: var(--ink-soft); font-size: 13px;
  padding: 14px 16px; background: var(--bg-soft);
  border: 1px dashed var(--line); border-radius: var(--radius);
}

/* 后台：日志筛选表单 */
.log-filter {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 14px 0 18px;
}
.log-filter select, .log-filter input[type="text"] {
  height: 34px; padding: 0 10px; font-size: 13px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-card, #fff); color: var(--ink);
}
.log-filter input[type="text"] { width: 180px; }
.log-row .admin-row-info strong { font-size: 13px; }

/* 后台：合集作品管理 */
.series-manage { margin-top: 30px; }
.series-search-box { display: flex; gap: 8px; margin-bottom: 10px; }
.series-search-box input {
  flex: 1; max-width: 340px; height: 36px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-card, #fff); color: var(--ink); font-size: 13px;
}
.series-search-list {
  list-style: none; margin: 0 0 16px; padding: 6px;
  border: 1px solid var(--line); border-radius: var(--radius);
  max-height: 240px; overflow-y: auto;
}
.series-search-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 7px 10px; font-size: 13px; color: var(--ink);
}
.series-search-item + .series-search-item { border-top: 1px dashed var(--line); }
.ssi-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-tiny {
  min-width: 26px; height: 24px; padding: 0 8px; font-size: 12px;
  border-radius: 6px;
}
.series-work-table {
  width: 100%; border-collapse: collapse; margin-top: 6px;
  background: var(--bg-card, #fff); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.series-work-table td { padding: 8px 12px; font-size: 13px; color: var(--ink); }
.series-work-table tr + tr td { border-top: 1px dashed var(--line); }
.sw-order { width: 36px; color: var(--ink-soft); text-align: center; }
.sw-thumb { width: 52px; }
.sw-thumb img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; display: block; }
.sw-title { min-width: 160px; }
.sw-ops { text-align: right; white-space: nowrap; }
.sw-ops .btn-tiny { margin-left: 4px; }

/* 后台：定时任务 */
.cron-run-box { display: flex; align-items: center; gap: 14px; margin: 16px 0 8px; }
.cron-run-result { font-size: 13px; color: var(--gold-deep); }
.cron-note { font-size: 12px; color: var(--ink-soft); margin: 4px 0 18px; }
.cron-token-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 10px 14px; margin-bottom: 20px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.cron-token-label { font-size: 12px; color: var(--ink-soft); }
.cron-token-box code {
  font-size: 12px; color: var(--gold-deep);
  padding: 4px 8px; background: var(--bg-card, #fff);
  border: 1px dashed var(--gold); border-radius: 6px;
  word-break: break-all;
}
.cron-table {
  width: 100%; border-collapse: collapse; margin: 8px 0 20px;
  background: var(--bg-card, #fff); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; font-size: 13px;
}
.cron-table th, .cron-table td { padding: 8px 12px; text-align: left; color: var(--ink); }
.cron-table th { background: var(--bg-soft); font-weight: 600; }
.cron-table tr + tr td { border-top: 1px dashed var(--line); }

/* 前台：合集卡片 */
.series-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.series-card {
  display: block; text-decoration: none;
  background: var(--bg-card, #fff); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.series-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(59, 50, 38, .10); }
.series-cover { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.series-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.series-card:hover .series-cover img { transform: scale(1.04); }
.series-body { padding: 14px 16px 16px; }
.series-name {
  font-family: var(--serif); font-size: 16px; color: var(--ink);
  margin: 0 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.series-desc {
  font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 前台：HTML 站点地图页 */
.map-page { display: grid; gap: 26px; }
.map-block {
  background: var(--bg-card, #fff); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 24px;
}
.map-block-title {
  font-family: var(--serif); font-size: 17px; color: var(--gold-deep);
  margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line);
}
.map-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; }
.map-links li { width: 100%; }
@media (min-width: 640px) { .map-links li { width: 33.333%; } }
.map-links a {
  display: block; padding: 4px 10px; font-size: 13px; color: var(--ink);
  text-decoration: none; border-radius: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.map-links a:hover { color: var(--gold-deep); background: var(--bg-soft); }
.map-cat { margin-bottom: 14px; }
.map-cat:last-child { margin-bottom: 0; }
.map-cat-name { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.map-cat-name a { color: var(--ink); text-decoration: none; }
.map-cat-name small { color: var(--ink-soft); font-weight: 400; }
.map-empty { color: var(--ink-soft); font-size: 13px; margin: 0; }

/* 作品/笔记列表回收站数量 pill 提示（后台 head 区） */
.recycle-count-note { font-size: 12px; color: var(--ink-soft); margin: 0 0 10px; }
.recycle-count-note a { color: var(--gold-deep); }

/* ========== 第七批样式 ========== */

/* 前台：归档页 */
.archive-list { display: grid; gap: 30px; }
.archive-year-title {
  font-family: var(--serif); font-size: 22px; color: var(--gold-deep);
  margin: 0 0 4px; display: flex; align-items: baseline; gap: 10px;
}
.archive-year-title::after { content: ""; flex: 1; border-bottom: 1px dashed var(--line); }
.archive-year-count { font-size: 13px; color: var(--ink-soft); }
.archive-month { margin: 18px 0 0; }
.archive-month-title { font-size: 14px; color: var(--ink-soft); margin: 0 0 10px; letter-spacing: .08em; }
.archive-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.archive-link {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: var(--bg-card, #fff); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.archive-link:hover { transform: translateX(4px); box-shadow: 0 6px 16px rgba(59, 50, 38, .08); }
.archive-cover { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--bg-soft); }
.archive-cover img { width: 100%; height: 100%; object-fit: cover; }
.archive-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.archive-name {
  font-size: 14px; color: var(--ink); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.archive-date { font-size: 12px; color: var(--ink-soft); }

/* 前台：评论互动（作者徽章 / 点赞 / 作者回复） */
.comment-author-badge {
  display: inline-block; margin-left: 8px; padding: 1px 8px;
  font-size: 11px; line-height: 1.6; border-radius: 999px;
  background: var(--gold, #d9b45b); color: #fff;
}
.comment-foot { margin-top: 6px; }
.comment-like {
  border: none; background: none; cursor: pointer; padding: 2px 6px;
  font-size: 13px; color: var(--ink-soft); border-radius: 6px;
  transition: color .2s ease, background .2s ease;
}
.comment-like:hover { color: var(--gold-deep); background: var(--bg-soft); }
.comment-like.liked { color: #e05d5d; cursor: default; }
.comment-replies {
  list-style: none; margin: 10px 0 0; padding: 10px 12px;
  border-left: 3px solid var(--gold, #d9b45b);
  background: var(--bg-soft); border-radius: 0 8px 8px 0;
  display: grid; gap: 10px;
}
.comment-reply-item .comment-head { margin-bottom: 4px; }

/* 前台：投稿表单 */
.form-narrow { max-width: 720px; }
.hp-field {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}
.submit-note { font-size: 13px; color: var(--ink-soft); margin: 0 0 16px; line-height: 1.8; }

/* 前台：RSS 订阅浮层 */
.rss-sub-panel {
  position: absolute; z-index: 90; right: 0; left: 0; max-width: 420px; margin: 0 auto;
  background: var(--bg-card, #fff); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 12px 32px rgba(59, 50, 38, .16);
  padding: 16px 18px; display: none; gap: 10px; align-items: center; flex-wrap: wrap;
}
.rss-sub-panel.open { display: flex; }
.rss-sub-tip { width: 100%; margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.rss-sub-url {
  width: 100%; display: block; padding: 8px 10px; font-size: 12px;
  background: var(--bg-soft); border-radius: 6px; color: var(--gold-deep);
  word-break: break-all; user-select: all;
}

/* 后台：周报页 */
.report-actions { display: flex; align-items: center; gap: 12px; margin: 14px 0 26px; flex-wrap: wrap; }
.report-row .admin-row-meta { display: block; margin-top: 4px; }
.report-top { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-soft); }
.report-top a { color: var(--gold-deep); text-decoration: none; margin-right: 10px; }
.report-top a:hover { text-decoration: underline; }

/* 后台：作者回复评论输入框 */
.comment-reply-box { display: flex; gap: 10px; margin: 10px 0; }
.comment-reply-input {
  flex: 1; min-width: 0; padding: 8px 12px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-card, #fff); color: var(--ink);
}
.comment-reply-input:focus { outline: none; border-color: var(--gold, #d9b45b); }

/* 后台：投稿列表 */
.submission-row .admin-row-meta { display: block; margin-top: 4px; }
.submission-preview { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-soft); }
.submission-details { margin-top: 8px; }
.submission-details summary { cursor: pointer; font-size: 13px; color: var(--gold-deep); user-select: none; }
.submission-content {
  margin-top: 8px; padding: 12px 14px; font-size: 13px; line-height: 1.9;
  background: var(--bg-soft); border-radius: 8px; color: var(--ink);
  max-height: 320px; overflow-y: auto; white-space: pre-wrap; word-break: break-word;
}

/* ============ 第八批：灯箱缩略图 / 图集说明 ============ */
.lightbox-overlay img { max-height: 68vh; }
.lb-caption {
  position: absolute; bottom: 84px; left: 50%; transform: translateX(-50%);
  max-width: min(82vw, 760px); color: #EADFC6; font-size: 14px; line-height: 1.6;
  text-align: center; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.lb-thumbs {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; max-width: 90vw; overflow-x: auto; padding: 4px;
  scrollbar-width: thin;
}
.lb-thumb {
  flex: 0 0 auto; width: 54px; height: 54px; padding: 0;
  border: 2px solid transparent; border-radius: 6px; overflow: hidden;
  background: rgba(255, 255, 255, 0.1); opacity: 0.55; transition: opacity .2s, border-color .2s;
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumb:hover { opacity: 0.9; }
.lb-thumb.active { opacity: 1; border-color: var(--gold); }
.lb-counter { bottom: 108px; }

.work-gallery .gallery-item {
  aspect-ratio: auto; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
}
.work-gallery .gallery-item img { height: auto; aspect-ratio: 4 / 3; }
.gallery-caption {
  padding: 8px 10px 10px; font-size: 12.5px; line-height: 1.45;
  color: var(--ink-soft); text-align: center; background: var(--card);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gallery-thumb { width: 132px; height: auto; overflow: visible; border: 0; background: transparent; }
.gallery-thumb img { height: 90px; border: 1px solid var(--line); border-radius: 8px; }
.gallery-cap-input {
  width: 100%; margin-top: 4px; padding: 3px 6px; font-size: 11.5px;
  border: 1px solid var(--line); border-radius: 5px; background: var(--card); color: var(--ink);
}
.gallery-cap-input:focus { outline: none; border-color: var(--gold); }
.gallery-thumb .gallery-del { top: 4px; right: 4px; }

/* ============ 第八批：留言二级回复 / 置顶 ============ */
.msg-pin-badge {
  display: inline-block; padding: 1px 9px; border-radius: 999px;
  background: var(--terra); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px;
}
.msg-children {
  list-style: none; margin: 10px 0 0 14px; padding: 0 0 0 14px;
  border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 10px;
}
.msg-child .msg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.msg-child .msg-text { font-size: 13.5px; color: var(--ink); line-height: 1.7; margin: 0; }
.msg-reply-btn { font-size: 12.5px; }
.reply-indicator {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 12px; padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--gold-pale); border: 1px solid var(--line);
  font-size: 13px; color: var(--gold-deep);
}
.reply-indicator[hidden] { display: none; }
.reply-indicator button {
  border: 0; background: transparent; color: var(--ink-soft);
  font-size: 12.5px; cursor: pointer; white-space: nowrap;
}
.reply-indicator button:hover { color: var(--terra); }

/* ============ 第八批：访问趋势折线图 / 来源页 ============ */
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.chart-head .admin-sub { margin-bottom: 0; }
.chart-range { display: flex; gap: 8px; }
.chart-range .btn.active { background: var(--gold); border-color: var(--gold); color: #fff; }
.visit-line-chart { width: 100%; }
.visit-line-chart svg { display: block; width: 100%; height: auto; }
.chart-grid { stroke: rgba(120, 100, 70, 0.14); stroke-width: 1; }
.chart-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-pv { stroke: var(--gold-deep); }
.chart-uv { stroke: var(--terra); stroke-dasharray: 5 5; }
.chart-area { fill: var(--gold-pale); opacity: 0.65; }
.chart-dot { fill: var(--gold-deep); }
.chart-x { fill: var(--ink-soft); font-size: 11px; }
.chart-legend { display: flex; gap: 18px; margin-top: 8px; font-size: 12.5px; color: var(--ink-soft); }
.chart-legend i { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--gold-deep); margin-right: 6px; vertical-align: middle; }
.chart-legend .lg-uv i { border-top-style: dashed; border-top-color: var(--terra); }

/* ============ 第八批：内容防搬运（隐形水印层） ============ */
.detail-cover { position: relative; }
.detail-cover::before,
.work-gallery .gallery-item::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='170'%3E%3Cg fill='%23ffffff' font-family='sans-serif' font-size='14' transform='rotate(-24 140 85)'%3E%3Ctext x='8' y='45'%3E%E8%B0%B7%E7%89%A9%E8%AF%AD guwuyu.cn%3C/text%3E%3Ctext x='8' y='95'%3E%E8%B0%B7%E7%89%A9%E8%AF%AD guwuyu.cn%3C/text%3E%3Ctext x='8' y='145'%3E%E8%B0%B7%E7%89%A9%E8%AF%AD guwuyu.cn%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
}
.work-gallery .gallery-item::after { z-index: 3; }

/* ============ 第八批：投稿配图 / 查询码 ============ */
.submit-images { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.submit-image-list { display: flex; flex-wrap: wrap; gap: 10px; }
.submit-image-thumb {
  position: relative; width: 88px; height: 66px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); background: var(--gold-pale);
}
.submit-image-thumb img { width: 100%; height: 100%; object-fit: cover; }
.submit-image-del {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff;
  font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.submit-image-del:hover { background: var(--terra); }
.submit-code-panel {
  margin-top: 16px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--gold-pale); border: 1px dashed var(--gold);
}
.submit-code-panel[hidden] { display: none; }
.submit-code-panel p { margin: 0 0 6px; font-size: 13px; color: var(--gold-deep); }
.submit-code-panel strong { font-size: 22px; letter-spacing: 4px; color: var(--terra); }
.submit-query-card { margin-top: 24px; }
.submit-query-row { display: flex; gap: 10px; }
.submit-query-row input {
  flex: 1; height: 44px; padding: 0 16px; font-size: 15px; letter-spacing: 2px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink); text-transform: uppercase;
}
.submit-query-row input:focus { outline: none; border-color: var(--gold); }
.submission-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.submission-thumbs a { display: block; width: 72px; height: 54px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.submission-thumbs img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 768px) {
  .lightbox-overlay img { max-height: 58vh; }
  .lb-caption { bottom: 90px; font-size: 12.5px; }
  .lb-thumb { width: 44px; height: 44px; }
}

/* =====================================================
   全站样式精修
   ===================================================== */

/* 文本选中色 */
::selection { background: rgba(181, 138, 46, 0.28); }

/* 键盘焦点可达性 */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* 细滚动条 */
* { scrollbar-width: thin; scrollbar-color: #D8C9A6 transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #D8C9A6; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #C7B489; }
::-webkit-scrollbar-track { background: transparent; }
[data-theme="dark"] { scrollbar-color: #4A3D25 transparent; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #4A3D25; }

/* 统一占位符颜色 */
::placeholder { color: #91836A; opacity: 1; }

/* 按钮按压反馈 */
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary:active { box-shadow: 0 2px 8px rgba(181, 138, 46, 0.3); }

/* 顶栏激活项金色胶囊 + 轻投影层次 */
.site-nav > a.active { background: var(--gold-pale); }
.site-header { box-shadow: 0 2px 16px rgba(122, 95, 42, 0.06); }

/* 卡片悬停描边呼应 */
.work-card, .note-card { transition: transform .25s, box-shadow .25s, border-color .25s; }
.work-card:hover, .note-card:hover { border-color: rgba(181, 138, 46, 0.45); }
.topic-card:hover, .series-card:hover, .link-card:hover { border-color: rgba(181, 138, 46, 0.5); }

/* 表单下拉 focus 一致性 */
.form-field select:focus,
.admin-form-wrap select:focus,
.log-filter select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(181, 138, 46, 0.12);
}

/* 分页悬停微抬 */
.pagination li a:hover { transform: translateY(-1px); }

/* 后台列表项悬停 */
.admin-item { transition: border-color .2s, box-shadow .2s; }
.admin-item:hover { border-color: rgba(181, 138, 46, 0.5); }
/* ============================================================
 * 第十批：深色模式 / 移动底部导航 / 热词 / 体检 / 自动内链
 * ============================================================ */

/* ---- F1 深色模式变量覆盖 ---- */
html[data-theme="dark"] {
  --gold: #C9A24B;
  --gold-deep: #A98434;
  --gold-pale: #3A3220;
  --terra: #C07B5E;
  --ink: #F3EDDD;
  --ink-soft: #C9BEA6;
  --bg: #191713;
  color-scheme: dark;
}
html[data-theme="dark"] body {
  background:
    radial-gradient(1200px 500px at 85% -100px, rgba(201, 162, 75, 0.07), transparent 60%),
    var(--bg);
}
html[data-theme="dark"] img {
  filter: brightness(0.92);
}
html[data-theme="dark"] .card,
html[data-theme="dark"] .work-card,
html[data-theme="dark"] .note-card,
html[data-theme="dark"] .admin-side,
html[data-theme="dark"] .form-input,
html[data-theme="dark"] .form-textarea,
html[data-theme="dark"] .form-select {
  background-color: #211E18;
}
html[data-theme="dark"] .site-header {
  background: rgba(25, 23, 19, 0.9);
  border-bottom-color: #2E2A22;
}
html[data-theme="dark"] .form-input,
html[data-theme="dark"] .form-textarea,
html[data-theme="dark"] .form-select {
  border-color: #3A352B;
  color: var(--ink);
}
html[data-theme="dark"] .btn-ghost {
  border-color: #4A4436;
  color: var(--ink);
}
html[data-theme="dark"] .footer,
html[data-theme="dark"] .site-footer {
  border-top-color: #2E2A22;
}
html[data-theme="dark"] .pill-ok { background: #243324; color: #9CC79C; }
html[data-theme="dark"] .pill-warn { background: #3A3220; color: #D2B36A; }
html[data-theme="dark"] .pill-err { background: #3B2422; color: #D99286; }
#theme-toggle { cursor: pointer; }

/* ---- F2 移动端底部导航（仅小屏显示） ---- */
.mobile-nav { display: none; }
@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1200;
    background: rgba(255, 253, 247, 0.96);
    border-top: 1px solid rgba(181, 138, 46, 0.25);
    backdrop-filter: blur(8px);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--ink-soft, #8B7B5C);
    font-size: 11px;
    text-decoration: none;
    padding: 4px 0;
  }
  .mobile-nav a svg { width: 21px; height: 21px; }
  .mobile-nav a.active { color: var(--gold, #B58A2E); font-weight: 600; }
  body { padding-bottom: 62px; }
}
@media (min-width: 769px) { .mobile-nav { display: none !important; } }

/* ---- F3 搜索热词榜 ---- */
.hotwords-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
}
.hotwords-label { font-size: 13px; color: var(--ink-soft, #8B7B5C); }
.hotword-chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold-pale, #F5EBD3);
  color: var(--gold-deep, #8A6A1F);
  font-size: 13px;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.hotword-chip:hover { transform: translateY(-1px); text-decoration: none; }

/* ---- F4 自动内链 ---- */
.autolink {
  color: var(--gold-deep, #8A6A1F);
  text-decoration: underline;
  text-decoration-color: rgba(181, 138, 46, 0.4);
  text-underline-offset: 3px;
}
.autolink:hover { text-decoration-color: currentColor; }

/* ---- F5 内容体检页 ---- */
.health-item .health-detail {
  color: var(--ink-soft, #8B7B5C);
  font-size: 13px;
  margin-left: 8px;
}
.health-go { margin-left: auto; }
.admin-sub { color: var(--ink-soft, #8B7B5C); font-size: 13px; margin: 0 0 16px; }

/* ---- F5 热词/404 管理页 ---- */
.sl-row .sl-kw { font-weight: 600; color: var(--gold-deep, #8A6A1F); }
.sl-row .sl-url { word-break: break-all; font-size: 12px; }
.sl-row .admin-row-meta { margin-left: auto; color: var(--ink-soft, #8B7B5C); font-size: 12px; white-space: nowrap; }
.sl-purge-row { margin: 10px 0 26px; }
.cron-note { color: var(--ink-soft, #8B7B5C); font-size: 13px; margin: 0 0 12px; }

/* ---- F6 阅读进度条占位（JS 控制宽度） ---- */
#read-progress { transition: width 0.08s linear; }

/* ---- 收藏页移除按钮 ---- */
.fav-remove-btn { margin: 0 14px 14px; }

/* ---- 补充：pill-warn（搜索·404/运营页在用） ---- */
.pill-warn { background: #F3E8CF; color: #8A6D1A; }

/* ---- 第十一批：自动化运营后台 ---- */
.ops-topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.ops-topbar .btn { margin-left: auto; }
.ops-key-form { display: flex; gap: 8px; margin-bottom: 18px; }
.ops-key-form input[type="text"] {
  flex: 1; max-width: 320px; padding: 8px 12px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink);
}
.ops-key-actions { display: flex; gap: 8px; }
.ops-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ops-check input { width: auto; }
.ops-inline { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 13px; }
.ops-inline input { width: 72px; padding: 5px 8px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
.ops-job-row { flex-wrap: wrap; justify-content: space-between; }
.ops-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ops-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--ink-soft); }
.ops-grid input, .ops-wide input {
  padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--ink); font-size: 14px;
}
.ops-wide { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.ops-wide input { max-width: 640px; }
.ops-save-row { margin: 18px 0 26px; }
html[data-theme="dark"] .ops-key-form input[type="text"],
html[data-theme="dark"] .ops-inline input,
html[data-theme="dark"] .ops-grid input,
html[data-theme="dark"] .ops-wide input { background: var(--bg); border-color: var(--line); color: var(--ink); }

/* ====================================================================
 * 第十二批 · 盈利体系（预约 / 图纸商店 / 赞助 / 个人中心 / 后台看板）
   ==================================================================== */

/* ---------- 定制作坊 ---------- */
.booking-flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-bottom: 26px;
}
.booking-flow-step {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
  font-size: 13.5px; color: var(--ink-soft); line-height: 1.65;
}
.booking-benefits {
  background: var(--gold-pale); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 13px; color: var(--gold-deep);
  margin-bottom: 18px;
}
[data-theme="dark"] .booking-benefits { color: var(--gold); }

/* ---------- 预约页改版：两栏布局 + 档期/价格/承诺侧栏 + 案例 + FAQ ---------- */
.booking-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px; align-items: start;
}
.booking-ok-box { margin-bottom: 18px; }
.form-group-title {
  font-size: 13px; font-weight: 700; color: var(--gold-deep);
  letter-spacing: .08em; margin: 18px 0 10px; padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.comment-form-box .form-group-title:first-of-type { border-top: none; padding-top: 0; margin-top: 6px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .form-row-2 { grid-template-columns: 1fr; gap: 0; } }

.booking-side { display: grid; gap: 14px; }
.booking-side-card {
  background: var(--bg-card, #fff); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
}
.booking-side-label {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14.5px; color: var(--ink); margin: 0 0 6px;
}
.booking-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: #6FA35C; box-shadow: 0 0 0 0 rgba(111, 163, 92, .45);
  animation: booking-pulse 2.2s ease-out infinite;
}
@keyframes booking-pulse {
  0% { box-shadow: 0 0 0 0 rgba(111, 163, 92, .45); }
  70% { box-shadow: 0 0 0 9px rgba(111, 163, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(111, 163, 92, 0); }
}
.booking-side-open { border-color: var(--gold); background: linear-gradient(160deg, var(--gold-pale), var(--bg-card, #fff) 70%); }
.booking-side-txt { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.7; }
.booking-side-title {
  font-size: 13px; font-weight: 700; color: var(--gold-deep);
  letter-spacing: .08em; margin: 0 0 10px;
}
.booking-price { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.booking-price td { padding: 7px 0; border-bottom: 1px dashed var(--line); color: var(--ink); }
.booking-price tr:last-child td { border-bottom: none; }
.booking-price td:last-child { text-align: right; color: var(--gold-deep); font-weight: 600; }
.booking-price-note { margin: 10px 0 0; font-size: 12px; color: var(--ink-soft); line-height: 1.6; }
.booking-pledge { list-style: none; margin: 0; padding: 0; }
.booking-pledge li {
  position: relative; padding: 0 0 10px 22px;
  font-size: 13px; color: var(--ink-soft); line-height: 1.65;
}
.booking-pledge li:last-child { padding-bottom: 0; }
.booking-pledge li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--gold-deep); font-weight: 700;
}

.booking-cases { margin-top: 34px; }

/* 预约流程四步条带 */
.booking-flow-box {
  margin-top: 26px; background: var(--bg-card, #fff);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
}
.booking-flow-box > .comment-form-title { margin: 0 0 14px; }
.booking-flow {
  list-style: none; margin: 0; padding: 0; counter-reset: bkflow;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.booking-flow li {
  counter-increment: bkflow; position: relative;
  padding-left: 34px; font-size: 13px; color: var(--ink-soft); line-height: 1.7;
}
.booking-flow li::before {
  content: counter(bkflow); position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold-pale); color: var(--gold-deep);
  font-size: 12.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 860px) {
  .booking-flow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .booking-flow { grid-template-columns: 1fr; }
}

/* 用户中心 · 账号设置 */
.uc-profile-box { margin-top: 20px; }
.uc-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.uc-inline-row { display: flex; gap: 8px; margin-top: 8px; }
.uc-inline-row input { flex: 1; min-width: 0; }
@media (max-width: 640px) {
  .uc-profile-grid { grid-template-columns: 1fr; }
}

/* 用户中心 · 邀请好友 */
.uc-invite-box { margin-top: 20px; }
.uc-invite-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
.uc-invite-label { font-size: 13px; color: var(--ink-soft); min-width: 88px; }
.uc-invite-code {
  font-family: var(--mono, monospace); font-size: 15px; font-weight: 700;
  letter-spacing: 2px; color: var(--gold-deep);
  background: var(--bg-soft, rgba(0,0,0,.04));
  padding: 4px 12px; border-radius: 6px;
}
.uc-invite-row input { flex: 1; min-width: 200px; font-size: 12.5px; color: var(--ink-soft); }
.uc-invite-count { margin: 12px 0 0; font-size: 13px; color: var(--ink-soft); }
.uc-invite-count strong { color: var(--gold-deep); font-size: 15px; }

/* 预约 · 积分支付 */
.booking-pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.booking-pay-opt {
  display: flex; flex-direction: column; gap: 4px;
  border: 1.5px solid var(--line, rgba(0,0,0,.1)); border-radius: 8px;
  padding: 12px 14px; cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.booking-pay-opt:has(input:checked) {
  border-color: var(--gold-deep, #a2752c);
  box-shadow: 0 0 0 1px var(--gold-deep, #a2752c);
}
.booking-pay-opt:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.booking-pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.booking-pay-name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.booking-pay-desc { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.booking-pay-note { margin-top: 4px; }
@media (max-width: 640px) {
  .booking-pay-row { grid-template-columns: 1fr; }
}
.booking-cases-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.booking-cases-head .comment-form-title { margin: 0; }
.booking-cases-sub { margin: 0; font-size: 13px; color: var(--ink-soft); flex: 1; }
.booking-case-more { font-size: 13px; color: var(--gold-deep); text-decoration: none; white-space: nowrap; }
.booking-case-more:hover { text-decoration: underline; }
.booking-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.booking-case-sum {
  margin: 6px 0 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 900px) {
  .booking-grid { grid-template-columns: 1fr; }
  .booking-case-grid { grid-template-columns: 1fr; }
}

.booking-faq-box {
  margin-top: 34px; background: var(--bg-card, #fff);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
}
.booking-faq-box > .comment-form-title { margin: 0 0 6px; }
.booking-faq-box .faq-item { background: transparent; border: none; border-bottom: 1px dashed var(--line); border-radius: 0; padding: 12px 2px; }
.booking-faq-box .faq-item:last-child { border-bottom: none; }

/* 预约页侧栏卡入场级联（案例卡走 .visible 渐显体系，无需重复定义） */
.page-booking .booking-side-card { animation: fx-rise-soft 0.55s both; }
.page-booking .booking-side-card:nth-child(2) { animation-delay: 0.12s; }
.page-booking .booking-side-card:nth-child(3) { animation-delay: 0.24s; }
.booking-cta-row { margin-top: 14px; }
.booking-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #FFFDF6; font-size: 14px; font-weight: 600;
  padding: 9px 18px; border-radius: 999px;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.booking-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.booking-cta svg { width: 15px; height: 15px; }

/* ---------- 图纸商店 ---------- */
.goods-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.goods-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border .2s, transform .2s, box-shadow .2s;
}
.goods-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.goods-card-body { padding: 18px 20px 6px; flex: 1; }
.goods-card-title {
  font-family: var(--serif); font-size: 17px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.goods-card-summary {
  font-size: 13.5px; color: var(--ink-soft); margin-top: 7px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.goods-card-meta { margin-top: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.goods-card-foot {
  padding: 12px 20px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.goods-price { color: var(--terra); font-weight: 700; font-size: 14px; }

.goods-detail-box { max-width: 720px; margin: 0 auto; }
.goods-detail-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 4px; }
.goods-own-points { font-size: 13.5px; color: var(--ink-soft); }
.goods-redeem-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.goods-code-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--gold-pale); border: 1px dashed var(--gold);
  border-radius: var(--radius-sm); padding: 12px 16px; margin: 14px 0;
}
[data-theme="dark"] .goods-code-row { background: rgba(210, 168, 75, 0.12); }
.goods-code-input {
  font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: 2px;
  color: var(--gold-deep); user-select: all;
}
[data-theme="dark"] .goods-code-input { color: var(--gold); }
.goods-note-box { font-size: 13px; color: var(--ink-soft); margin: 10px 0; }
.goods-copyright {
  border-top: 1px solid var(--line); margin-top: 22px; padding-top: 16px;
  font-size: 12.5px; color: var(--ink-soft);
}
.goods-copyright-title { font-weight: 700; color: var(--ink); margin-bottom: 4px; font-size: 13px; }

/* ---------- 赞助人计划 ---------- */
.patron-tiers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin: 26px 0;
}
.patron-tier {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border .2s, transform .2s, box-shadow .2s;
  position: relative;
}
.patron-tier:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.patron-tier-hot {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.patron-tier-hot::after {
  content: "HOT";
  position: absolute; top: 14px; right: 16px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px;
  color: #FFFDF6; background: var(--terra);
  padding: 3px 9px; border-radius: 999px;
}
.patron-tier-name { font-family: var(--serif); font-size: 18px; font-weight: 700; }
.patron-tier-price { color: var(--terra); font-size: 15px; font-weight: 700; }
.patron-tier-perks { list-style: none; flex: 1; }
.patron-tier-perks li {
  font-size: 13.5px; color: var(--ink-soft); padding: 5px 0 5px 20px; position: relative;
}

/* ============================================================
 * 动态背景层：流动暖光 + 金色麦浪（贴合手作谷物主题）
 * 纯 CSS 实现，零图片请求；仅前台生效（admin-body 排除后台）
 * ============================================================ */
:root {
  --bg-glow-a: rgba(212, 168, 75, 0.10);
  --bg-glow-b: rgba(193, 108, 63, 0.08);
}
[data-theme="dark"],
html[data-theme="dark"] {
  --bg-glow-a: rgba(201, 162, 75, 0.07);
  --bg-glow-b: rgba(192, 123, 94, 0.055);
}

/* 层一：暖色光斑缓慢漂移呼吸 */
body::before {
  content: '';
  position: fixed; inset: -12%;
  z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 620px at 12% 8%,  var(--bg-glow-a), transparent 65%),
    radial-gradient(820px 700px at 88% 28%, var(--bg-glow-b), transparent 60%),
    radial-gradient(760px 640px at 42% 86%, var(--bg-glow-a), transparent 65%);
  animation: bg-glow 60s ease-in-out infinite;
  will-change: transform;
}

/* 层二：金色麦浪——两层波浪流动 + 近景七株/远景五株摇曳麦穗 */
:root {
  --wsea-wave-1: rgba(196, 150, 52, 0.16);
  --wsea-wave-2: rgba(181, 138, 46, 0.22);
  --wsea-stalk:  rgba(178, 134, 40, 0.32);
  --wsea-stalk-far: rgba(178, 134, 40, 0.17);
}
[data-theme="dark"],
html[data-theme="dark"] {
  --wsea-wave-1: rgba(201, 162, 75, 0.11);
  --wsea-wave-2: rgba(210, 168, 75, 0.15);
  --wsea-stalk:  rgba(210, 168, 75, 0.20);
  --wsea-stalk-far: rgba(210, 168, 75, 0.10);
}
.bg-wheat-sea {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: 230px; z-index: -1;
  pointer-events: none; overflow: hidden;
}
.ws-wave {
  position: absolute; left: 0; bottom: -6px;
  width: 2700px; height: 150px;
  background-color: var(--wsea-wave-1);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1350 150'%3E%3Cpath d='M0 75 C75 25 150 25 225 75 C300 125 375 125 450 75 C525 25 600 25 675 75 C750 125 825 125 900 75 C975 25 1050 25 1125 75 C1200 125 1275 125 1350 75 L1350 150 L0 150 Z' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1350 150'%3E%3Cpath d='M0 75 C75 25 150 25 225 75 C300 125 375 125 450 75 C525 25 600 25 675 75 C750 125 825 125 900 75 C975 25 1050 25 1125 75 C1200 125 1275 125 1350 75 L1350 150 L0 150 Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-size: 1350px 150px; mask-size: 1350px 150px;
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  animation: ws-flow 20s linear infinite;
  will-change: transform;
}
.ws-wave-2 {
  height: 104px; bottom: 0;
  background-color: var(--wsea-wave-2);
  animation-duration: 30s;
  animation-delay: -9s;
}
.ws-stalk {
  position: absolute; bottom: 56px;
  width: 96px; color: var(--wsea-stalk);
  transform-origin: 50% 100%;
  animation: ws-sway 6s ease-in-out infinite alternate;
  will-change: transform;
}
.ws-stalk svg { width: 100%; height: 100%; display: block; }
.ws-s1 { left: 4%;  height: 150px; animation-duration: 5.2s; }
.ws-s2 { left: 17%; height: 108px; animation-duration: 6.5s; animation-delay: -2.2s; }
.ws-s3 { left: 34%; height: 168px; animation-duration: 4.6s; animation-delay: -1s; }
.ws-s4 { left: 52%; height: 118px; animation-duration: 7s;   animation-delay: -3.4s; }
.ws-s5 { left: 68%; height: 142px; animation-duration: 5s;   animation-delay: -1.6s; }
.ws-s6 { left: 80%; height: 96px;  animation-duration: 6.8s; animation-delay: -4.1s; }
.ws-s7 { left: 91%; height: 158px; animation-duration: 4.9s; animation-delay: -2.7s; }
/* 远景层：更小更淡，插在近景株之间形成麦田纵深 */
.ws-far { color: var(--wsea-stalk-far); bottom: 50px; width: 64px; }
.ws-s8  { left: 10%; height: 86px;  animation-duration: 6.2s; animation-delay: -1.8s; }
.ws-s9  { left: 27%; height: 70px;  animation-duration: 7.4s; animation-delay: -3.6s; }
.ws-s10 { left: 41%; height: 92px;  animation-duration: 5.6s; animation-delay: -0.7s; }
.ws-s11 { left: 60%; height: 76px;  animation-duration: 6.9s; animation-delay: -2.5s; }
.ws-s12 { left: 76%; height: 88px;  animation-duration: 5.9s; animation-delay: -4.4s; }

@keyframes ws-flow {
  to { transform: translate3d(-1350px, 0, 0); }
}
@keyframes ws-sway {
  from { transform: rotate(-7deg); }
  to   { transform: rotate(7deg); }
}
@keyframes bg-glow {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-4%, 3%, 0) scale(1.15); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

/* 后台页面排除动态背景 */
body.admin-body::before, body.admin-body::after,
body.admin-body .bg-wheat-sea { content: none; display: none; }

/* 用户偏好减少动效时静止 */
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
  .ws-wave, .ws-stalk { animation: none; }
}

/* ============================================================
 * 页面差异化动效体系：每类页面独立的进场曲线与模块编排
 * 仅作用于非滚动渐显元素，与 .visible 体系互不干扰
 * ============================================================ */
@keyframes fx-rise        { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fx-rise-soft   { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fx-drop        { 0% { opacity: 0; transform: translateY(-20px); } 62% { opacity: 1; transform: translateY(5px); } 100% { opacity: 1; transform: none; } }
@keyframes fx-slide-left  { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes fx-slide-right { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes fx-pop         { 0% { opacity: 0; transform: scale(0.86); } 70% { opacity: 1; transform: scale(1.03); } 100% { opacity: 1; transform: scale(1); } }
@keyframes fx-zoom        { from { opacity: 0; transform: scale(1.07); } to { opacity: 1; transform: scale(1); } }
@keyframes fx-curtain     { from { opacity: 0; clip-path: inset(0 100% 0 0); } 55% { opacity: 1; } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes fx-rotate      { from { opacity: 0; transform: rotate(-2.5deg) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes fx-move-soft   { from { transform: translateY(14px); } to { transform: none; } }

/* 默认标题区：柔和上浮 */
.page-head { animation: fx-rise 0.6s cubic-bezier(0.22, 0.9, 0.35, 1) both; }

/* ---- 首页：hero 层次浮入 + 数据条级联 ---- */
.page-home .hero .hero-title { animation: fx-rise 0.7s cubic-bezier(0.22, 0.9, 0.35, 1) both; }
.page-home .hero .hero-sub   { animation: fx-rise 0.7s 0.14s cubic-bezier(0.22, 0.9, 0.35, 1) both; }
.page-home .stat { animation: fx-rise-soft 0.5s both; }
.page-home .stat:nth-of-type(2) { animation-delay: 0.1s; }
.page-home .stat:nth-of-type(3) { animation-delay: 0.2s; }
.page-home .stat:nth-of-type(4) { animation-delay: 0.3s; }

/* ---- 作品列表：标题弹跳落地 + 筛选条波浪 + 侧栏右滑 ---- */
.page-works .page-head { animation: fx-drop 0.65s cubic-bezier(0.22, 0.9, 0.35, 1) both; }
.page-works .cat-tab { animation: fx-rise-soft 0.45s both; }
.page-works .cat-tab:nth-child(2) { animation-delay: 0.05s; }
.page-works .cat-tab:nth-child(3) { animation-delay: 0.1s; }
.page-works .cat-tab:nth-child(4) { animation-delay: 0.15s; }
.page-works .cat-tab:nth-child(5) { animation-delay: 0.2s; }
.page-works .cat-tab:nth-child(6) { animation-delay: 0.25s; }
.page-works .side-card { animation: fx-slide-right 0.6s 0.25s cubic-bezier(0.22, 0.9, 0.35, 1) both; }

/* ---- 作品/商品详情：图集气泡弹入、兑换盒浮起 ---- */
.page-works .gallery-item { animation: fx-pop 0.5s both; }
.page-works .gallery-item:nth-of-type(2) { animation-delay: 0.08s; }
.page-works .gallery-item:nth-of-type(3) { animation-delay: 0.16s; }
.page-works .gallery-item:nth-of-type(4) { animation-delay: 0.24s; }
.page-goods .page-head { animation: fx-drop 0.65s cubic-bezier(0.22, 0.9, 0.35, 1) both; }
.page-goods .comment-form-box { animation: fx-rise-soft 0.55s 0.15s both; }

/* ---- 随笔：整体左滑入如翻纸 + 内嵌笔记卡浮起 ---- */
.page-notes .page-head { animation: fx-slide-left 0.6s cubic-bezier(0.22, 0.9, 0.35, 1) both; }
.page-notes .side-card { animation: fx-slide-left 0.6s 0.18s cubic-bezier(0.22, 0.9, 0.35, 1) both; }
.page-notes .side-card:nth-of-type(2) { animation-delay: 0.3s; }
.page-notes .note-inline { animation: fx-rise-soft 0.5s 0.1s both; }

/* ---- 归档：标题拉帘展开 ---- */
.page-archives .page-head { animation: fx-curtain 0.7s cubic-bezier(0.65, 0, 0.35, 1) both; }

/* ---- 留言板：标题与留言气泡逐条弹入 ---- */
.page-messages .page-head { animation: fx-pop 0.6s cubic-bezier(0.22, 0.9, 0.35, 1) both; }
.page-messages .msg-item { animation: fx-pop 0.5s both; }
.page-messages .msg-item:nth-of-type(2) { animation-delay: 0.07s; }
.page-messages .msg-item:nth-of-type(3) { animation-delay: 0.14s; }
.page-messages .msg-item:nth-of-type(4) { animation-delay: 0.21s; }
.page-messages .msg-item:nth-of-type(5) { animation-delay: 0.28s; }
.page-messages .msg-item:nth-of-type(6) { animation-delay: 0.35s; }

/* ---- 合集：右滑；专题/关于：缩放收拢 ---- */
.page-series .page-head { animation: fx-slide-right 0.6s cubic-bezier(0.22, 0.9, 0.35, 1) both; }
.page-topics .page-head { animation: fx-zoom 0.65s cubic-bezier(0.22, 0.9, 0.35, 1) both; }
.page-about  .page-head { animation: fx-zoom 0.65s 0.05s cubic-bezier(0.22, 0.9, 0.35, 1) both; }

/* ---- 赞助人：标题旋转入场，如奖牌悬挂 ---- */
.page-patron .page-head { animation: fx-rotate 0.65s cubic-bezier(0.22, 0.9, 0.35, 1) both; }

/* ---- 预约/投稿/订阅：表单自下浮起 ---- */
.page-booking   .page-head { animation: fx-rise 0.6s both; }
.page-booking   .comment-form-box { animation: fx-rise-soft 0.55s 0.15s both; }
.page-submit    .page-head { animation: fx-slide-left 0.6s cubic-bezier(0.22, 0.9, 0.35, 1) both; }
.page-submit    .comment-form-box { animation: fx-rise-soft 0.55s 0.15s both; }
.page-subscribe .page-head { animation: fx-rise 0.6s both; }

/* ---- FAQ / 站点地图：拉帘；用户中心：上浮；搜索：轻浮 ---- */
.page-faq       .page-head { animation: fx-curtain 0.7s cubic-bezier(0.65, 0, 0.35, 1) both; }
.page-map       .page-head { animation: fx-curtain 0.7s 0.05s cubic-bezier(0.65, 0, 0.35, 1) both; }
.page-user      .page-head { animation: fx-rise 0.6s both; }
.page-search    .page-head { animation: fx-rise-soft 0.5s both; }
.page-favorites .page-head { animation: fx-pop 0.55s both; }

/* ---- 列表卡片滚动渐显时按序错落（纯 transform 位移装饰，显隐仍由 .visible 负责，动画异常也不会隐形） ---- */
.js .section .work-card.visible,
.js .section .note-card.visible { animation: fx-move-soft 0.5s cubic-bezier(0.22, 0.9, 0.35, 1) both; }
.js .section .work-card.visible:nth-child(2), .js .section .note-card.visible:nth-child(2) { animation-delay: 0.06s; }
.js .section .work-card.visible:nth-child(3), .js .section .note-card.visible:nth-child(3) { animation-delay: 0.12s; }
.js .section .work-card.visible:nth-child(4), .js .section .note-card.visible:nth-child(4) { animation-delay: 0.18s; }
.js .section .work-card.visible:nth-child(5), .js .section .note-card.visible:nth-child(5) { animation-delay: 0.24s; }
.js .section .work-card.visible:nth-child(6), .js .section .note-card.visible:nth-child(6) { animation-delay: 0.3s; }
.js .section .work-card.visible:nth-child(7), .js .section .note-card.visible:nth-child(7) { animation-delay: 0.36s; }
.js .section .work-card.visible:nth-child(8), .js .section .note-card.visible:nth-child(8) { animation-delay: 0.42s; }
.js .section .work-card.visible:nth-child(9), .js .section .note-card.visible:nth-child(9) { animation-delay: 0.48s; }

/* 减少动效偏好：全部页面级动效静止 */
@media (prefers-reduced-motion: reduce) {
  .page-head, .cat-tab, .side-card, .msg-item, .stat, .comment-form-box,
  .gallery-item, .note-inline, .hero .hero-title, .hero .hero-sub,
  .js .section .work-card.visible, .js .section .note-card.visible,
  .page-booking .booking-side-card, .booking-dot { animation: none; }
}
.patron-tier-perks li::before {
  content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700;
}
.patron-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #FFFDF6; font-weight: 600; font-size: 14.5px;
  padding: 10px 22px; border-radius: 999px; margin-top: 6px;
  transition: transform .2s, box-shadow .2s; box-shadow: var(--shadow);
}
.patron-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.patron-disclaimer {
  font-size: 12px; color: var(--ink-soft);
  border-left: 3px solid var(--line); padding: 8px 14px; margin: 18px 0 26px;
  line-height: 1.7;
}
.patron-wall {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 24px 26px; margin-bottom: 10px;
}
.patron-wall-head {
  font-family: var(--serif); font-size: 17px; font-weight: 700; margin-bottom: 14px;
}
.patron-wall-item {
  display: flex; align-items: baseline; gap: 10px;
  padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px;
}
.patron-wall-item:last-child { border-bottom: none; }
.patron-wall-name { font-weight: 700; color: var(--gold-deep); }
[data-theme="dark"] .patron-wall-name { color: var(--gold); }
.patron-wall-msg { color: var(--ink-soft); font-size: 13px; flex: 1; min-width: 0; }
.patron-wall-since { color: var(--ink-soft); font-size: 12px; flex-shrink: 0; }

/* ---------- 个人中心（左右布局） ---------- */
.uc-layout {
  display: grid; grid-template-columns: 300px 1fr; gap: 22px;
  align-items: start;
}
.uc-side { position: sticky; top: 92px; padding: 24px 22px; }
.uc-side-head {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 18px; border-bottom: 1px dashed var(--line);
}
.uc-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #D9B45B, #A2752C);
  color: #fff; font-family: var(--serif); font-size: 24px; font-weight: 700;
}
.uc-side-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.uc-side-nick {
  font-size: 17px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.uc-side-mail {
  font-size: 12.5px; color: var(--ink-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.uc-side-points-wrap { text-align: left; padding: 14px 0 2px; }
.uc-side-points-label { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 4px; }
.user-points-num {
  font-family: var(--serif); font-size: 40px; font-weight: 700;
  color: var(--gold-deep); line-height: 1.2; margin: 0 0 6px;
}
[data-theme="dark"] .user-points-num { color: var(--gold); }
.user-grade { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.user-next-grade { font-size: 13px; color: var(--ink-soft); }
.user-sign-row { display: flex; align-items: center; gap: 12px; margin: 14px 0; flex-wrap: wrap; }
.user-logout { display: inline-block; width: 100%; text-align: center; }
.uc-farm-entry { display: inline-block; width: 100%; text-align: center; margin-top: 10px; }
.uc-main { min-width: 0; }
.uc-main-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  align-items: start;
}
.uc-main-grid .uc-profile-box { margin-top: 0; }

/* 数据概览统计卡 */
.uc-stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-bottom: 22px;
}
.uc-stat-card {
  background: var(--bg-card, #fff); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px 18px;
  text-align: left; transition: transform .2s, box-shadow .2s;
}
.uc-stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.uc-stat-card strong {
  display: block; font-family: var(--serif); font-size: 26px; font-weight: 700;
  color: var(--gold-deep); line-height: 1.2; margin-bottom: 4px;
}
[data-theme="dark"] .uc-stat-card strong { color: var(--gold); }
.uc-stat-card span { font-size: 12.5px; color: var(--ink-soft); }

/* 等级进度条 */
.uc-grade-bar {
  height: 8px; border-radius: 99px; overflow: hidden;
  background: var(--bg-soft, rgba(0,0,0,.06));
  margin: 12px 0 6px;
}
.uc-grade-bar span {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #D9B45B, #A2752C);
  transition: width .6s ease;
}
.uc-grade-left { font-size: 12px; color: var(--ink-soft); margin: 0; }

/* 签到成功局部刷新动效：积分飘字 + 数字跳动 */
.uc-side-points-wrap { position: relative; }
.uc-points-fly {
  position: absolute; right: 22px; top: 4px;
  font-family: var(--serif); font-size: 19px; font-weight: 700;
  color: var(--gold-deep);
  animation: uc-fly 1.4s ease-out forwards;
  pointer-events: none;
}
@keyframes uc-fly {
  0%   { opacity: 0; transform: translateY(10px) scale(.75); }
  22%  { opacity: 1; transform: translateY(0) scale(1.12); }
  100% { opacity: 0; transform: translateY(-36px) scale(1); }
}
.uc-bump { animation: uc-bump .55s ease; }
@keyframes uc-bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.22); }
  100% { transform: scale(1); }
}
.user-points-num { transform-origin: left center; }
/* 系统减少动态效果时关闭签到动效 */
@media (prefers-reduced-motion: reduce) {
  .uc-points-fly { display: none; }
  .uc-bump { animation: none; }
  .uc-grade-bar span { transition: none; }
}

/* 签到日历 */
.uc-cal-grid {
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px;
  margin-bottom: 10px;
}
.uc-cal-cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; color: var(--ink-soft);
  background: var(--bg-soft, rgba(0,0,0,.05));
  border-radius: 5px; position: relative;
}
.uc-cal-cell.on { background: #D9B45B; color: #fff; font-weight: 700; }
.uc-cal-cell.today { outline: 2px solid var(--gold-deep); outline-offset: 1px; }
[data-theme="dark"] .uc-cal-cell.on { background: var(--gold); color: #2E2718; }
[data-theme="dark"] .uc-cal-cell.today { outline-color: var(--gold); }

/* 积分任务中心 */
.uc-task-list { list-style: none; margin: 0; padding: 0; }
.uc-task-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.uc-task-item:last-child { border-bottom: 0; }
.uc-task-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: var(--line);
}
.uc-task-item.done .uc-task-dot { background: #7BA05B; }
.uc-task-name { font-size: 13.5px; color: var(--ink); flex: 1; min-width: 0; }
.uc-task-item.done .uc-task-name { color: var(--ink-soft); text-decoration: line-through; }
.uc-task-pts { font-size: 13px; font-weight: 700; color: var(--gold-deep); flex-shrink: 0; }
[data-theme="dark"] .uc-task-pts { color: var(--gold); }
.uc-task-ongoing { font-size: 12px; color: var(--ink-soft); flex-shrink: 0; }

/* 我的评论 */
.uc-comment-txt {
  margin: 6px 0 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

@media (max-width: 960px) {
  .uc-layout { grid-template-columns: 1fr; }
  .uc-side { position: static; }
}
@media (max-width: 720px) {
  .uc-main-grid { grid-template-columns: 1fr; }
  .uc-stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 后台 · 预约工单 ---------- */
.bk-filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.bk-item .bk-act-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line);
}
.bk-status { padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 13px; }
.bk-note { flex: 1; min-width: 180px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 13px; }
.bk-expect { font-size: 12.5px; color: var(--ink-soft); }
.bk-msg { margin-top: 8px; font-size: 13px; color: var(--gold-deep); }
[data-theme="dark"] .bk-msg { color: var(--gold); }

/* ---------- 后台 · 盈利看板 ---------- */
.mon-summary-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  margin-bottom: 20px;
}
.mon-summary-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.mon-summary-label { font-size: 12.5px; color: var(--ink-soft); }
.mon-summary-total { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--gold-deep); margin-top: 2px; }
[data-theme="dark"] .mon-summary-total { color: var(--gold); }
.mon-summary-month { font-size: 11.5px; color: var(--ink-soft); }
.mon-chart { margin: 10px 0 6px; }
.mon-chart-row {
  display: grid; grid-template-columns: 64px 1fr 74px;
  align-items: center; gap: 10px; padding: 5px 0; font-size: 13px;
}
.mon-chart-ym { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.mon-chart-bar-wrap { background: var(--bg-alt); border-radius: 6px; height: 16px; overflow: hidden; }
.mon-chart-bar {
  height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--gold), var(--terra));
  transition: width .5s ease;
}
.mon-chart-val { color: var(--ink-soft); text-align: right; font-variant-numeric: tabular-nums; }
.mon-rev-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mon-rev-form select,
.mon-rev-form input { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 13.5px; }
.mon-rev-grow { flex: 1; min-width: 200px; }
.mon-rev-del { color: var(--terra); background: none; font-size: 12.5px; padding: 2px 6px; }
.mon-rev-del:hover { text-decoration: underline; }

/* ---------- 后台 · 提取码 ---------- */
.code-code {
  font-family: var(--serif); font-weight: 700; letter-spacing: 1px;
  color: var(--gold-deep); user-select: all;
}
[data-theme="dark"] .code-code { color: var(--gold); }
.code-del, .gd-del, .af-del, .pt-del { color: var(--terra); background: none; font-size: 12.5px; padding: 2px 6px; }
.code-del:hover, .gd-del:hover, .af-del:hover, .pt-del:hover { text-decoration: underline; }
.pt-status { padding: 3px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 12.5px; }

/* ---------- 管理员独立登录页 ---------- */
.admin-login-section { display: flex; align-items: center; justify-content: center; min-height: 62vh; }
.admin-login-card {
  width: 100%; max-width: 400px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 34px 34px 26px;
}
.admin-login-head { text-align: center; margin-bottom: 20px; }
.admin-login-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold-pale); color: var(--gold-deep);
  margin-bottom: 10px;
}
[data-theme="dark"] .admin-login-badge { color: var(--gold); }
.admin-login-badge svg { width: 22px; height: 22px; }
.admin-login-title {
  font-family: var(--serif); font-size: 21px; font-weight: 700;
  margin: 0 0 4px;
}
.admin-login-sub { font-size: 12.5px; color: var(--ink-soft); margin: 0; }
.admin-login-alert {
  background: rgba(196, 90, 74, 0.1); color: var(--terra);
  border-radius: var(--radius-sm); padding: 9px 14px;
  font-size: 13px; margin-bottom: 14px;
}
.admin-login-alert-warn {
  background: var(--gold-pale); color: var(--gold-deep);
}
[data-theme="dark"] .admin-login-alert-warn { color: var(--gold); }
.admin-login-form .form-field { margin-bottom: 16px; }
.admin-login-form input[type="password"] {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--ink); font-size: 15px;
}
.admin-login-form input[type="password"]:focus {
  outline: none; border-color: var(--gold);
}
.admin-login-foot {
  text-align: center; font-size: 12px; color: var(--ink-soft);
  margin: 18px 0 0; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.admin-login-foot a { color: var(--ink-soft); }
.admin-login-foot a:hover { color: var(--gold-deep); }

/* ---------- 头部用户入口 ---------- */
.user-entry {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  color: var(--ink-soft); transition: color .2s, background .2s;
  margin-left: 6px;
}
.user-entry:hover { color: var(--gold-deep); background: var(--bg-alt); }
.user-entry svg { width: 19px; height: 19px; }
[data-theme="dark"] .user-entry:hover { color: var(--gold); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .booking-flow { grid-template-columns: repeat(2, 1fr); }
  .goods-grid { grid-template-columns: repeat(2, 1fr); }
  .patron-tiers { grid-template-columns: 1fr; }
  .mon-summary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .booking-flow { grid-template-columns: 1fr; }
  .goods-grid { grid-template-columns: 1fr; }
  .mon-chart-row { grid-template-columns: 52px 1fr 60px; }
}

/* ---------- 季节限定活动横幅 ---------- */
.event-banner {
  background: linear-gradient(90deg, rgba(217, 180, 91, 0.16), rgba(181, 85, 45, 0.10), rgba(217, 180, 91, 0.16));
  border-bottom: 1px solid var(--line);
  animation: fx-rise-soft 0.5s ease both;
}
.event-banner-inner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 9px 0; font-size: 13.5px;
}
.event-badge {
  flex-shrink: 0; padding: 2px 10px; border-radius: 99px;
  background: var(--gold-deep); color: #FFFDF6;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
}
[data-theme="dark"] .event-badge { background: var(--gold); color: #2E2718; }
.event-name { font-family: var(--serif); font-weight: 700; color: var(--ink); }
.event-mult {
  padding: 1px 9px; border-radius: 99px;
  border: 1px solid var(--gold-deep); color: var(--gold-deep);
  font-weight: 700; font-size: 12.5px; flex-shrink: 0;
}
[data-theme="dark"] .event-mult { border-color: var(--gold); color: var(--gold); }
.event-countdown-wrap { display: inline-flex; align-items: center; gap: 6px; }
.event-countdown-label { color: var(--ink-soft); font-size: 12.5px; }
.event-countdown {
  font-variant-numeric: tabular-nums; font-weight: 700;
  color: var(--terra); letter-spacing: 0.5px;
}
[data-theme="dark"] .event-countdown { color: #E8926B; }
.event-desc { color: var(--ink-soft); font-size: 12.5px; }

/* ---------- 个人麦田养成页 ---------- */
.farm-layout {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px;
  align-items: start; animation: fx-rise 0.55s cubic-bezier(0.22, 0.9, 0.35, 1) both;
}
.farm-side { display: grid; gap: 22px; }
.farm-side .share-btn { margin-top: 12px; }

/* 麦田画布：天空渐变 + 麦田 + 土垄 + 太阳 */
.farm-field-box { padding: 0; overflow: hidden; }
.farm-field {
  position: relative; height: 360px;
  background: linear-gradient(180deg, #FDF3DC 0%, #F7E8C4 52%, #EFDCA9 78%, #E4CE93 100%);
}
[data-theme="dark"] .farm-field {
  background: linear-gradient(180deg, #2E2A1D 0%, #35301F 52%, #3D3620 78%, #463D22 100%);
}
.farm-sun {
  position: absolute; top: 26px; right: 34px;
  width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 178, 84, 0.95) 0%, rgba(228, 178, 84, 0.35) 62%, transparent 72%);
  animation: farm-sun-breathe 7s ease-in-out infinite;
}
@keyframes farm-sun-breathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%      { transform: scale(1.12); opacity: 1; }
}
.farm-soil {
  position: absolute; left: 0; right: 0; bottom: 0; height: 54px;
  background:
    radial-gradient(120% 90% at 50% 115%, rgba(122, 88, 40, 0.5) 0%, transparent 62%),
    linear-gradient(180deg, transparent 0%, rgba(139, 102, 48, 0.34) 34%, rgba(139, 102, 48, 0.5) 100%);
}
[data-theme="dark"] .farm-soil {
  background:
    radial-gradient(120% 90% at 50% 115%, rgba(88, 66, 32, 0.65) 0%, transparent 62%),
    linear-gradient(180deg, transparent 0%, rgba(99, 76, 40, 0.4) 34%, rgba(99, 76, 40, 0.6) 100%);
}

/* 麦穗：按阶段显示株数 / 统一高度系数 / 阶段专属配色 */
.farm-stalk {
  position: absolute; bottom: 40px; width: 88px;
  display: none; color: var(--fcolor, #A8AC4C);
  height: calc(var(--fh, 90px) * var(--r, 1));
  transform-origin: 50% 100%;
  animation: farm-sway 5.6s ease-in-out infinite alternate;
  will-change: transform;
}
.farm-stalk svg { width: 100%; height: 100%; display: block; }
.farm-fs1  { left: 6%;  --r: 1.08; animation-duration: 5.1s; }
.farm-fs2  { left: 15%; --r: 0.82; animation-duration: 6.3s; animation-delay: -2.1s; }
.farm-fs3  { left: 25%; --r: 1.16; animation-duration: 4.7s; animation-delay: -1.2s; }
.farm-fs4  { left: 35%; --r: 0.9;  animation-duration: 6.9s; animation-delay: -3.3s; }
.farm-fs5  { left: 44%; --r: 1.12; animation-duration: 5.4s; animation-delay: -0.8s; }
.farm-fs6  { left: 54%; --r: 0.84; animation-duration: 6.1s; animation-delay: -2.6s; }
.farm-fs7  { left: 63%; --r: 1.18; animation-duration: 4.9s; animation-delay: -1.9s; }
.farm-fs8  { left: 72%; --r: 0.88; animation-duration: 7.1s; animation-delay: -3.9s; }
.farm-fs9  { left: 81%; --r: 1.1;  animation-duration: 5.3s; animation-delay: -1.4s; }
.farm-fs10 { left: 90%; --r: 0.86; animation-duration: 6.6s; animation-delay: -2.9s; }
.farm-fs11 { left: 10%; --r: 0.7;  animation-duration: 7.3s; animation-delay: -4.2s; }
.farm-fs12 { left: 78%; --r: 0.66; animation-duration: 5.8s; animation-delay: -3.5s; }

/* 阶段 → 株数（3/5/8/10/12） */
.farm-stage-s1 .farm-fs1, .farm-stage-s1 .farm-fs2, .farm-stage-s1 .farm-fs3,
.farm-stage-s2 .farm-fs1, .farm-stage-s2 .farm-fs2, .farm-stage-s2 .farm-fs3,
.farm-stage-s2 .farm-fs4, .farm-stage-s2 .farm-fs5,
.farm-stage-s3 .farm-fs1, .farm-stage-s3 .farm-fs2, .farm-stage-s3 .farm-fs3,
.farm-stage-s3 .farm-fs4, .farm-stage-s3 .farm-fs5, .farm-stage-s3 .farm-fs6,
.farm-stage-s3 .farm-fs7, .farm-stage-s3 .farm-fs8,
.farm-stage-s4 .farm-fs1, .farm-stage-s4 .farm-fs2, .farm-stage-s4 .farm-fs3,
.farm-stage-s4 .farm-fs4, .farm-stage-s4 .farm-fs5, .farm-stage-s4 .farm-fs6,
.farm-stage-s4 .farm-fs7, .farm-stage-s4 .farm-fs8, .farm-stage-s4 .farm-fs9,
.farm-stage-s4 .farm-fs10,
.farm-stage-s5 .farm-fs1, .farm-stage-s5 .farm-fs2, .farm-stage-s5 .farm-fs3,
.farm-stage-s5 .farm-fs4, .farm-stage-s5 .farm-fs5, .farm-stage-s5 .farm-fs6,
.farm-stage-s5 .farm-fs7, .farm-stage-s5 .farm-fs8, .farm-stage-s5 .farm-fs9,
.farm-stage-s5 .farm-fs10, .farm-stage-s5 .farm-fs11, .farm-stage-s5 .farm-fs12 {
  display: block;
}
/* 阶段 → 高度系数 + 配色（浅色模式） */
.farm-stage-s1 { --fh: 52px;  --fcolor: #86B25B; }
.farm-stage-s2 { --fh: 82px;  --fcolor: #6FA34B; }
.farm-stage-s3 { --fh: 108px; --fcolor: #A8AC4C; }
.farm-stage-s4 { --fh: 128px; --fcolor: #D2A23B; }
.farm-stage-s5 { --fh: 142px; --fcolor: #E5B54A; }
/* 深色模式提亮配色 */
[data-theme="dark"] .farm-stage-s1 { --fcolor: #A8CC7E; }
[data-theme="dark"] .farm-stage-s2 { --fcolor: #93BD6C; }
[data-theme="dark"] .farm-stage-s3 { --fcolor: #C2C368; }
[data-theme="dark"] .farm-stage-s4 { --fcolor: #E8BC5C; }
[data-theme="dark"] .farm-stage-s5 { --fcolor: #F2C866; }

@keyframes farm-sway {
  from { transform: rotate(-5.5deg); }
  to   { transform: rotate(5.5deg); }
}

/* 麦田画布下方：阶段徽标 + 成长值 */
.farm-field-caption {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 16px 22px 18px;
  border-top: 1px solid var(--line);
  background: var(--card);
}
.farm-growth-num {
  font-family: var(--serif); font-size: 34px; font-weight: 700;
  color: var(--gold-deep); line-height: 1;
}
[data-theme="dark"] .farm-growth-num { color: var(--gold); }
.farm-growth-label { font-size: 12.5px; color: var(--ink-soft); }

/* 阶段进度条 + 阶梯 */
.farm-stage-bar {
  height: 8px; border-radius: 99px; overflow: hidden;
  background: var(--bg-alt); margin: 10px 0 6px;
}
.farm-stage-bar span {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #8FBF6A, #E5B54A);
  transition: width .6s ease;
}
.farm-stage-list { list-style: none; margin: 12px 0 0; padding: 0; }
.farm-stage-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; font-size: 13.5px; color: var(--ink-soft);
}
.farm-stage-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--line); background: transparent;
}
.farm-stage-item.passed .farm-stage-dot { border-color: #8FBF6A; background: #8FBF6A; }
.farm-stage-item.cur { color: var(--ink); font-weight: 700; }
.farm-stage-item.cur .farm-stage-dot {
  border-color: var(--gold-deep); background: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(181, 137, 46, 0.18);
}
[data-theme="dark"] .farm-stage-item.cur .farm-stage-dot {
  border-color: var(--gold); background: var(--gold);
}
.farm-stage-min { margin-left: auto; font-size: 12px; font-variant-numeric: tabular-nums; }

/* 成长行为清单 */
.farm-act-list { list-style: none; margin: 0; padding: 0; }
.farm-act-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.farm-act-item:last-child { border-bottom: 0; }
.farm-act-emoji { font-size: 20px; flex-shrink: 0; }
.farm-act-info { flex: 1; min-width: 0; }
.farm-act-info strong { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.farm-act-info .form-note { margin: 0; font-size: 12px; }
.farm-act-count {
  flex-shrink: 0; min-width: 34px; text-align: center;
  font-family: var(--serif); font-size: 19px; font-weight: 700;
  color: var(--gold-deep);
}
[data-theme="dark"] .farm-act-count { color: var(--gold); }

/* 行动引导卡 */
.farm-cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

@media (max-width: 960px) {
  .farm-layout { grid-template-columns: 1fr; }
  .farm-field { height: 280px; }
}
@media (max-width: 560px) {
  .farm-field { height: 220px; }
  .farm-stalk { width: 64px; }
  .farm-growth-num { font-size: 27px; }
}

/* 系统减少动态效果：麦田静止 */
@media (prefers-reduced-motion: reduce) {
  .farm-stalk, .farm-sun { animation: none; }
  .event-banner { animation: none; }
  .farm-stage-bar span { transition: none; }
}

/* ---------- 3D 麦田展览馆 ---------- */
.gallery-section { animation: fx-rise 0.55s cubic-bezier(0.22, 0.9, 0.35, 1) both; }

.g3d-box { padding: 0; overflow: hidden; }

/* 3D 舞台：Canvas 挂载区（天空渐变在 loading 阶段可见） */
.g3d-stage {
  position: relative; height: min(62vh, 560px); min-height: 380px;
  background: linear-gradient(180deg, #FDF3DC 0%, #F7E8C4 60%, #EFDCA9 100%);
  cursor: grab;
}
[data-theme="dark"] .g3d-stage {
  background: linear-gradient(180deg, #2E2A1D 0%, #35301F 60%, #3D3620 100%);
}
.g3d-stage:active { cursor: grabbing; }
.g3d-canvas { display: block; width: 100% !important; height: 100% !important; }

/* 加载三点 */
.g3d-loading {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; gap: 8px; pointer-events: none;
}
.g3d-loading i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold-deep); opacity: 0.55;
  animation: g3d-bounce 1.1s ease-in-out infinite;
}
.g3d-loading i:nth-child(2) { animation-delay: 0.16s; }
.g3d-loading i:nth-child(3) { animation-delay: 0.32s; }
[data-theme="dark"] .g3d-loading i { background: var(--gold); }
@keyframes g3d-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50%      { transform: translateY(-9px); opacity: 1; }
}

/* 操作提示条 */
.g3d-tip {
  margin: 0; padding: 10px 18px; text-align: center;
  font-size: 12.5px; color: var(--ink-soft);
  border-top: 1px solid var(--line);
  background: var(--card);
}

/* 降级状态：隐藏舞台区（普通画廊保留） */
.g3d-box.g3d-off .g3d-stage { display: none; }
.g3d-box.g3d-off .g3d-tip { display: none; }

/* 兜底画廊（SEO + no-JS + 降级共用；3D 就绪后隐藏） */
.g3d-fallback {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.g3d-on ~ .g3d-fallback, .g3d-on ~ * .g3d-fallback { display: none; }
.gallery-section:has(.g3d-on) .g3d-fallback { display: none; }

.g3d-item { animation: fx-rise 0.5s ease both; }
.g3d-item:nth-child(1) { animation-delay: 0.05s; }
.g3d-item:nth-child(2) { animation-delay: 0.1s; }
.g3d-item:nth-child(3) { animation-delay: 0.15s; }
.g3d-item:nth-child(4) { animation-delay: 0.2s; }
.g3d-item:nth-child(5) { animation-delay: 0.25s; }
.g3d-item:nth-child(6) { animation-delay: 0.3s; }
.g3d-item:nth-child(7) { animation-delay: 0.35s; }
.g3d-item:nth-child(8) { animation-delay: 0.4s; }

.g3d-card {
  display: block; text-decoration: none;
  border-radius: 12px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.g3d-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(90, 62, 20, 0.16);
}
.g3d-cover { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.g3d-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.45s ease;
}
.g3d-card:hover .g3d-cover img { transform: scale(1.06); }
.g3d-name {
  display: block; padding: 10px 12px;
  font-size: 13px; font-weight: 700; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.gallery-share-row { text-align: center; margin-top: 20px; }

@media (max-width: 960px) {
  .g3d-fallback { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .g3d-stage { height: 62vw; min-height: 240px; }
  .g3d-fallback { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* 系统减少动态效果：展览馆静止（3D 不启动，仅停 CSS 动效） */
@media (prefers-reduced-motion: reduce) {
  .gallery-section, .g3d-item { animation: none; }
  .g3d-card, .g3d-card .g3d-cover img { transition: none; }
  .g3d-loading i { animation: none; }
}

/* ==================== 数字证书入口（作品详情 meta 区） ==================== */
.cert-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 16px; border-radius: 999px;
  background: var(--gold-pale); border: 1.5px solid var(--gold); color: var(--gold-deep);
  font-size: 13.5px; font-weight: 600; transition: all .2s;
}
.cert-btn svg { width: 16px; height: 16px; }
.cert-btn:hover { background: var(--gold); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(181, 137, 46, .28); }

/* ==================== 用户中心：定制工坊进度时间轴 ==================== */
.uc-bp-cnt-pill { font-weight: 700; }
.uc-bp-timeline {
  list-style: none; margin: 12px 0 4px; padding: 0 0 0 18px;
  border-left: 2px solid var(--line); display: grid; gap: 14px;
}
.uc-bp-node { position: relative; }
.uc-bp-dot {
  position: absolute; left: -24px; top: 5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 3px var(--gold-pale);
}
.uc-bp-body { display: grid; gap: 3px; }
.uc-bp-title { font-size: 14px; color: var(--ink); }
.uc-bp-date { font-size: 12px; color: var(--ink-soft); }
.uc-bp-note { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.uc-bp-photo {
  margin-top: 4px; max-width: 240px; width: 100%;
  border-radius: 10px; border: 1px solid var(--line); display: block;
}
/* ==================== 作品数字证书页 ==================== */
.cert-page { padding: 30px 0 50px; }
.cert-card {
  max-width: 760px; margin: 0 auto;
  background: var(--card, #FFFDF6);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 18px 44px rgba(59, 50, 38, .10);
  overflow: hidden;
}
.cert-frame {
  margin: 12px; padding: 34px 30px 26px;
  border: 2px solid var(--gold); border-radius: 10px; position: relative;
}
.cert-frame::before {
  content: ''; position: absolute; inset: 6px;
  border: 1px dashed var(--gold); border-radius: 6px; pointer-events: none; opacity: .55;
}
.cert-head { text-align: center; position: relative; z-index: 1; }
.cert-seal { display: inline-block; width: 58px; height: 58px; color: var(--gold); }
.cert-seal svg { width: 100%; height: 100%; }
.cert-site { font-size: 15px; letter-spacing: .18em; color: var(--ink-soft); margin-top: 6px; }
.cert-sub {
  font-size: 26px; font-weight: 800; color: var(--ink); margin-top: 4px;
  letter-spacing: .08em;
}
.cert-body { text-align: center; margin-top: 18px; position: relative; z-index: 1; }
.cert-cover {
  width: 280px; max-width: 70%; margin: 0 auto 16px;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(59, 50, 38, .12);
}
.cert-cover img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cert-work-title { font-size: 21px; color: var(--ink); margin-bottom: 14px; }
.cert-meta { display: inline-grid; gap: 8px; text-align: left; margin: 0 auto; }
.cert-meta-row { display: flex; gap: 14px; align-items: baseline; }
.cert-meta-row dt { font-size: 13px; color: var(--ink-soft); min-width: 84px; text-align: right; }
.cert-meta-row dd { font-size: 15px; color: var(--ink); font-weight: 600; }
.cert-no { font-family: Consolas, 'Courier New', monospace; letter-spacing: .12em; color: var(--gold-deep) !important; }
.cert-story {
  max-width: 560px; margin: 18px auto 0; padding-top: 14px;
  border-top: 1px solid var(--line); text-align: left;
  font-size: 14px; line-height: 1.9; color: var(--ink-soft);
}
.cert-story-label {
  display: block; font-weight: 700; color: var(--ink); margin-bottom: 4px;
}
.cert-genuine {
  margin-top: 16px; font-size: 13px; color: var(--gold-deep);
  background: var(--gold-pale); border: 1px solid var(--gold);
  border-radius: 999px; padding: 7px 16px; display: inline-block;
}
.cert-foot {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.cert-qr-box { display: flex; align-items: center; gap: 10px; }
.cert-qr { width: 84px; height: 84px; flex: 0 0 84px; }
.cert-qr svg { width: 100%; height: 100%; display: block; }
.cert-scan { font-size: 12px; color: var(--ink-soft); max-width: 110px; line-height: 1.6; }
.cert-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cert-verify-note {
  max-width: 760px; margin: 14px auto 0; text-align: center;
  font-size: 12.5px; color: var(--ink-soft);
}
@media (max-width: 640px) {
  .cert-frame { padding: 26px 16px 20px; }
  .cert-sub { font-size: 22px; }
  .cert-foot { justify-content: center; }
}
/* 证书打印：仅保留证书卡 */
@media print {
  .site-header, .site-footer, .mobile-nav, .event-banner, .breadcrumb,
  .cert-actions, .cert-verify-note, #toTop { display: none !important; }
  .cert-page { padding: 0; }
  .cert-card { box-shadow: none; border: none; max-width: 100%; }
  body { background: #fff; }
}

/* 深色模式：证书与时间轴 */
[data-theme="dark"] .uc-bp-timeline { border-left-color: #4A4028; }
[data-theme="dark"] .uc-bp-dot { background: var(--gold); box-shadow: 0 0 0 3px rgba(210, 168, 75, .18); }
[data-theme="dark"] .cert-card { background: var(--card); box-shadow: 0 18px 44px rgba(0, 0, 0, .3); }
[data-theme="dark"] .cert-no { color: var(--gold) !important; }
[data-theme="dark"] .cert-genuine { color: var(--gold); }
@media (prefers-reduced-motion: reduce) {
  .cert-btn, .uc-bp-photo { transition: none; }
}

/* ============ 第十三批 4：买家秀光影墙 + WebAR 轻试戴 ============ */

/* ---- 买家秀光影墙：CSS columns 瀑布流 ---- */
.bs-section { padding-top: 6px; }
.bs-wall { columns: 3; column-gap: 18px; margin-top: 26px; }
.bs-item {
  break-inside: avoid; margin: 0 0 18px; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: zoom-in;
  transition: transform .3s, box-shadow .3s;
  animation: fx-glow .65s both;
}
.bs-item:nth-child(2) { animation-delay: .07s; }
.bs-item:nth-child(3) { animation-delay: .14s; }
.bs-item:nth-child(4) { animation-delay: .21s; }
.bs-item:nth-child(5) { animation-delay: .28s; }
.bs-item:nth-child(6) { animation-delay: .35s; }
.bs-item:nth-child(7) { animation-delay: .42s; }
.bs-item:nth-child(8) { animation-delay: .49s; }
.bs-item:nth-child(9) { animation-delay: .56s; }
.bs-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
/* hover 金色光泽扫过 */
.bs-item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(217, 180, 91, .22) 50%, transparent 58%);
  transform: translateX(-130%);
}
.bs-item:hover::after { transform: translateX(130%); transition: transform .85s ease; }
.bs-item-photo img { width: 100%; display: block; }
.bs-item-cap { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.bs-item-nick { font-size: 13px; font-weight: 700; color: var(--gold-deep); }
[data-theme="dark"] .bs-item-nick { color: var(--gold); }
.bs-item-work { font-size: 12.5px; color: var(--ink-soft); text-decoration: none; align-self: flex-start; }
.bs-item-work:hover { color: var(--gold); }
.bs-item-note { font-size: 13px; color: var(--ink); line-height: 1.6; }

/* 晒单表单卡 / 游客引导卡 */
.bs-form-box, .bs-guest-box {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; max-width: 720px;
}
.bs-form-title { font-family: var(--serif); font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.bs-reward-tip { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 18px; }
.bs-reward-pts { color: var(--gold-deep); margin-left: 6px; }
[data-theme="dark"] .bs-reward-pts { color: var(--gold); }
.bs-field { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 14px; }
.bs-field select, .bs-field textarea {
  width: 100%; margin-top: 6px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--ink); font-size: 14px; font-family: inherit;
}
.bs-file-wrap { display: flex; gap: 10px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.bs-file-wrap input[type="file"] { font-size: 12.5px; max-width: 100%; color: var(--ink-soft); }
.bs-file-name { font-size: 12px; color: var(--ink-soft); word-break: break-all; }
.bs-preview { margin: -2px 0 14px; }
.bs-preview img {
  max-width: 220px; max-height: 220px; display: block;
  border-radius: 10px; border: 1px solid var(--line);
}
.bs-form-tip { font-size: 12px; color: var(--ink-soft); margin: 0 0 12px; }
.bs-form-msg { padding: 9px 14px; border-radius: 8px; font-size: 13.5px; margin: 0 0 12px; }
.bs-msg-ok { background: rgba(76, 140, 74, .12); color: #3E7A3C; border: 1px solid rgba(76, 140, 74, .3); }
.bs-msg-err { background: rgba(196, 86, 66, .1); color: #B4502F; border: 1px solid rgba(196, 86, 66, .3); }
[data-theme="dark"] .bs-msg-ok { color: #9CC79A; }
[data-theme="dark"] .bs-msg-err { color: #E09A82; }
[data-theme="dark"] .bs-form-box, [data-theme="dark"] .bs-guest-box { background: var(--bg-card); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bs-guest-box { text-align: center; }
.bs-guest-text { font-size: 15px; color: var(--ink); margin: 0 0 16px; }
.bs-guest-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- WebAR 轻试戴 ---- */
.tryon-wrap { max-width: 860px; }
.tryon-stage {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, #2E2517, #1D160C);
  box-shadow: var(--shadow);
  animation: fx-focus .7s both;
}
.tryon-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scaleX(-1);
}
.tryon-idle {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(160deg, rgba(46, 37, 23, .96), rgba(29, 22, 12, .96));
  color: #D9B45B;
}
.tryon-idle[hidden] { display: none; }
.tryon-idle-mark svg { width: 44px; height: 44px; opacity: .8; }
.tryon-idle-text { font-size: 14px; color: #E8D9AE; margin: 0; text-align: center; padding: 0 20px; }
.tryon-idle-off { background: linear-gradient(160deg, rgba(46, 37, 23, .99), rgba(29, 22, 12, .99)); }
.tryon-stage-idle .tryon-sticker { cursor: grab; }
.tryon-sticker {
  position: absolute; left: 35%; top: 32%; width: 30%; z-index: 3;
  cursor: grab; user-select: none; -webkit-user-drag: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .45));
}
.tryon-sticker.grabbing { cursor: grabbing; }
.tryon-tip { text-align: center; font-size: 13px; color: var(--ink-soft); margin: 14px 0 0; }
.tryon-msg {
  max-width: 460px; margin: 10px auto 0; text-align: center;
  font-size: 13.5px; padding: 8px 14px; border-radius: 8px;
}
.tryon-msg-ok { background: rgba(76, 140, 74, .12); color: #3E7A3C; border: 1px solid rgba(76, 140, 74, .3); }
.tryon-msg-err { background: rgba(196, 86, 66, .1); color: #B4502F; border: 1px solid rgba(196, 86, 66, .3); }
[data-theme="dark"] .tryon-msg-ok { color: #9CC79A; }
[data-theme="dark"] .tryon-msg-err { color: #E09A82; }
.tryon-actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px;
}
.tryon-actions [hidden] { display: none !important; }
.tryon-strip {
  display: flex; gap: 12px; overflow-x: auto;
  padding: 20px 2px 8px; scroll-snap-type: x proximity;
}
.tryon-strip-item {
  flex: 0 0 108px; scroll-snap-align: start; text-decoration: none;
  border: 2px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--card); transition: border-color .2s, transform .2s;
}
.tryon-strip-item:hover { transform: translateY(-2px); }
.tryon-strip-item.current { border-color: var(--gold); }
.tryon-strip-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.tryon-strip-name {
  display: block; padding: 6px 8px; font-size: 11.5px; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tryon-buy-row { text-align: center; margin-top: 8px; }
.tryon-privacy {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 12.5px; color: var(--ink-soft); margin-top: 20px; text-align: center;
}
.tryon-privacy svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--gold); }

/* ---- 批次4 专属动效：光影浮现（买家秀）/ 镜头对焦（试戴） ---- */
@keyframes fx-glow {
  from { opacity: 0; filter: blur(6px) brightness(1.15); transform: translateY(14px) scale(.97); }
  60%  { opacity: 1; }
  to   { opacity: 1; filter: blur(0) brightness(1); transform: none; }
}
@keyframes fx-focus {
  from { opacity: 0; transform: scale(1.05); filter: blur(10px); }
  60%  { opacity: 1; filter: blur(2px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
.page-buyershow .page-head { animation: fx-glow .6s both; }
.page-buyershow .bs-form-box, .page-buyershow .bs-guest-box { animation: fx-rise-soft .55s .12s both; }
.page-buyershow .bs-wall .recycle-empty { animation: fx-rise-soft .5s .1s both; }
.page-tryon .page-head { animation: fx-focus .65s both; }
.page-tryon .tryon-strip { animation: fx-rise-soft .5s .2s both; }
.page-tryon .tryon-privacy { animation: fx-rise-soft .5s .3s both; }

@media (prefers-reduced-motion: reduce) {
  .bs-item, .tryon-stage,
  .page-buyershow .page-head, .page-buyershow .bs-form-box, .page-buyershow .bs-guest-box,
  .page-buyershow .bs-wall .recycle-empty, .page-tryon .page-head,
  .page-tryon .tryon-strip, .page-tryon .tryon-privacy { animation: none; }
  .bs-item::after { display: none; }
}

/* ---- 批次4 响应式 ---- */
@media (max-width: 960px) {
  .bs-wall { columns: 2; }
}
@media (max-width: 600px) {
  .bs-wall { columns: 1; }
  .bs-form-box, .bs-guest-box { padding: 18px 16px; }
  .tryon-actions { gap: 8px; }
}

/* ============ 第十三批 5：3D 麦田展览馆升级（详情卡/昼夜/足迹） ============ */

/* ---- 昼夜三档切换（舞台右上角） ---- */
.g3d-dayparts {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  display: inline-flex; gap: 6px; padding: 4px;
  background: rgba(30, 24, 14, .55); backdrop-filter: blur(6px);
  border-radius: 999px; border: 1px solid rgba(217, 180, 91, .35);
  animation: fx-rise-soft .5s .3s both;
}
.g3d-dayparts[hidden] { display: none; }
.g3d-dp {
  border: 0; cursor: pointer; font-size: 12px; line-height: 1;
  padding: 6px 12px; border-radius: 999px;
  background: transparent; color: #E8D9AE; font-family: inherit;
  transition: background .2s, color .2s;
}
.g3d-dp:hover { color: #FFF3D6; }
.g3d-dp.current { background: var(--gold); color: #2E2517; font-weight: 700; }

/* ---- 观展足迹（舞台下方进度条） ---- */
.g3d-foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding: 10px 14px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px;
  animation: fx-rise-soft .5s .25s both;
}
.g3d-foot[hidden] { display: none; }
.g3d-foot-label { font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; }
.g3d-foot-bar {
  flex: 1; height: 8px; border-radius: 999px; overflow: hidden;
  background: var(--line); min-width: 60px;
}
.g3d-foot-fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  border-radius: 999px;
  transition: width .5s ease;
}
.g3d-foot-badge {
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
  color: var(--gold-deep); border: 1px solid var(--gold);
  padding: 3px 10px; border-radius: 999px;
}
[data-theme="dark"] .g3d-foot { background: var(--bg-card); }
[data-theme="dark"] .g3d-foot-badge { color: var(--gold); }

/* ---- 作品详情卡（点击作品弹出） ---- */
.g3d-modal {
  position: fixed; inset: 0; z-index: 260;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.g3d-modal[hidden] { display: none; }
.g3d-modal-mask {
  position: absolute; inset: 0;
  background: rgba(24, 18, 8, .62); backdrop-filter: blur(3px);
}
.g3d-modal-card {
  position: relative; margin: 0; max-width: 380px; width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); overflow: hidden;
  animation: fx-glow .45s both;
}
.g3d-modal-cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.g3d-modal-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.g3d-modal-title { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--ink); margin: 0; }
.g3d-modal-summary { font-size: 13px; color: var(--ink-soft); line-height: 1.7; margin: 0; }
.g3d-modal-close {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  border: 0; cursor: pointer; font-size: 17px; line-height: 1;
  background: rgba(30, 24, 14, .55); color: #F5E9C8;
  transition: background .2s;
}
.g3d-modal-close:hover { background: rgba(30, 24, 14, .8); }

@media (prefers-reduced-motion: reduce) {
  .g3d-modal-card, .g3d-dayparts, .g3d-foot { animation: none; }
  .g3d-foot-fill { transition: none; }
}
@media (max-width: 480px) {
  .g3d-modal { padding: 14px; }
  .g3d-foot { flex-wrap: wrap; }
}
