/* 爱花人 PC 站 · Greeny 骨架的现代化实现（明亮、留白、以白为主） */

:root {
  --paper: #fbfcf9;
  --tint: #f3f7ec;
  --tint-2: #eef5e2;
  --white: #fff;
  --ink: #22302a;
  --muted: #5d6d62;
  --green: #3f7d4f;
  --green-deep: #2c5c39;
  --lime: #9dc353;
  --line: #e4ebdd;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(44, 92, 57, .04), 0 10px 30px rgba(44, 92, 57, .05);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.75 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .22em; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -.01em; font-weight: 700; }
p { margin: 0 0 14px; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 56px, 1120px); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 站标手写体：Ma Shan Zheng（SIL OFL 1.1），仅保留「爱花人」三字，1.9 KB */
@font-face {
  font-family: "LogoScript";
  src: url("./fonts/logo.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.todo { background: #fff5d6; border-radius: 3px; padding: 0 5px; color: #7a5c12; }

/* ---------- 头部 ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; padding-block: 10px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); flex: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-family: "LogoScript", "STXingkai", "华文行楷", "KaiTi", "Kaiti SC", "Songti SC", serif; font-weight: 400; font-size: 29px; line-height: 1; letter-spacing: .03em; }
.brand-text em { font-style: normal; font-size: 12.5px; color: var(--muted); letter-spacing: .18em; }

.header-tools { display: flex; align-items: center; gap: 22px; margin-left: auto; }

.search { display: flex; align-items: center; width: 320px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); overflow: hidden; transition: border-color .15s ease, background .15s ease; }
.search:focus-within { border-color: var(--lime); background: var(--white); }
.search input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 16px;
  font: inherit; font-size: 14px; color: var(--ink);
}
.search input::placeholder { color: #93a297; }
.search input:focus { outline: none; }
.search button {
  border: 0; background: transparent; color: var(--green); font: inherit; font-size: 14px; font-weight: 600;
  padding: 0 18px; align-self: stretch; cursor: pointer;
}
.search button:hover { color: var(--green-deep); }

.header-links { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 13.5px; white-space: nowrap; }
.header-links a { color: var(--green); }
.header-links .sep { color: var(--line); }

/* ---------- 主导航：白底 + 细线 + 当前项亮绿下划线 ---------- */
.mainnav { background: var(--white); border-bottom: 1px solid var(--line); }
.mainnav ul { display: flex; flex-wrap: wrap; }
.mainnav a {
  display: block; position: relative; padding: 12px 22px; color: var(--muted); line-height: 1.3;
  font-size: 15px; font-weight: 600; border-bottom: 2px solid transparent;
}
.mainnav a:hover { color: var(--green-deep); background: var(--tint); text-decoration: none; }
.mainnav .is-current { color: var(--green-deep); border-bottom-color: var(--lime); }
.mainnav .is-current:hover { background: transparent; }

/* ---------- 首屏 ---------- */
.hero { background: transparent; border-bottom: 0; padding-block: 26px 0; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: 72px; }

.eyebrow { margin: 0 0 14px; color: var(--green); font-weight: 700; letter-spacing: .2em; font-size: 13px; }
.hero h1 { font-size: clamp(34px, 4.2vw, 54px); font-family: Georgia, "Songti SC", serif; letter-spacing: -.02em; line-height: 1.32; max-width: 13em; }
.lede { margin: 20px 0 30px; max-width: 30em; color: var(--muted); font-size: 17px; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 28px; border-radius: 999px;
  font: inherit; font-weight: 600; border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--lime); background: var(--tint); }
.btn-outline { background: var(--white); color: var(--green); border-color: var(--line); }
.btn-outline:hover { border-color: var(--green); color: var(--green-deep); }
.btn-block { display: flex; width: 100%; }

.hero-figure { margin: 0; }
.hero-figure img { width: 100%; border-radius: 18px; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-figure figcaption { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- 布局 ---------- */
.layout { padding-block: 56px 72px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: 25px; font-family: Georgia, "Songti SC", serif; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- 三张卡片（模板 product_box 的明亮版） ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: #d5e3c9; box-shadow: var(--shadow); }

.card h3 {
  background: var(--tint-2); color: var(--green-deep); font-size: 16px;
  padding: 12px 20px; border-bottom: 1px solid var(--line);
}
.card-icon { color: var(--green); padding: 22px 20px 6px; }
.card p { padding: 8px 20px 0; color: var(--muted); font-size: 14.5px; }
.card-link { margin-top: auto; padding: 18px 20px 20px; font-weight: 600; font-size: 14.5px; }

/* ---------- 两栏 ---------- */
.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; align-items: start; }
.columns > .content { grid-column: span 2; min-width: 0; }
.columns > .sidebar { grid-column: span 1; min-width: 0; }

.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; margin-bottom: 24px;
}
.panel > .section-head { margin-bottom: 16px; }

/* 三步 */
.steps { display: grid; gap: 20px; }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.step-no { font-family: Georgia, serif; font-size: 22px; color: var(--lime); font-weight: 700; line-height: 1.2; }
.steps h3 { grid-column: 2; font-size: 16px; margin-bottom: 5px; }
.steps p { grid-column: 2; margin: 0; color: var(--muted); font-size: 14.5px; }

.inline-figure { margin: 0 0 20px; }
.inline-figure img { border-radius: 12px; aspect-ratio: 16 / 7; object-fit: cover; }

.note { background: var(--tint); border-left: 3px solid var(--lime); padding: 14px 18px; font-size: 14px; color: var(--muted); border-radius: 0 10px 10px 0; }

details { border-top: 1px solid var(--line); padding: 14px 0; }
details:first-of-type { border-top: 0; padding-top: 4px; }
summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
summary::marker { color: var(--lime); }
details p { margin: 8px 0 2px; color: var(--muted); font-size: 14.5px; }

/* ---------- 侧栏 ---------- */
.side-panel h2 { font-size: 17px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

.link-list li { padding: 11px 0 11px 18px; border-bottom: 1px solid var(--tint); position: relative; }
.link-list li:last-child { border-bottom: 0; }
.link-list li::before {
  content: ""; position: absolute; left: 0; top: 20px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--lime);
}
.link-list a { font-weight: 600; font-size: 15px; }
.link-list span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

.tips li { position: relative; padding: 7px 0 7px 18px; color: var(--muted); font-size: 14px; }
.tips li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.tips { margin-bottom: 20px; }

.side-panel--quiet { background: var(--tint); border-color: #e2ecd8; }
.side-panel--quiet p { color: var(--muted); font-size: 14px; }
.link-plain li { padding: 8px 0; border-top: 1px solid #e2ecd8; }
.link-plain li:first-child { border-top: 0; }
.link-plain a { font-size: 14px; }

/* ---------- 页脚：浅底，不用深色 ---------- */
.site-footer { background: var(--tint); border-top: 1px solid var(--line); color: var(--muted); padding-block: 36px 44px; margin-top: 8px; }
.footer-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; margin-bottom: 20px; }
.footer-menu li { padding: 4px 0; }
.footer-menu a { color: var(--green-deep); font-size: 14px; }
.footer-legal { text-align: center; font-size: 13px; color: var(--muted); margin: 0; }
.footer-legal .todo { color: #5c4711; }

/* ---------- 子页通用 ---------- */
.page-hero { background: linear-gradient(180deg, var(--tint) 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-block: 52px 48px; }
.page-hero h1 { font-size: clamp(30px, 3.6vw, 44px); font-family: Georgia, "Songti SC", serif; }
.page-hero .lede { margin: 14px 0 0; }

.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }

.prose h2 { font-size: 22px; margin: 30px 0 12px; font-family: Georgia, "Songti SC", serif; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 16px; margin: 20px 0 6px; }
.prose p, .prose li { color: var(--muted); }
.prose ul, .prose ol { margin: 10px 0 16px; padding-left: 1.3em; list-style: revert; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); }

.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.info-card { background: var(--tint); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.info-card h3 { font-size: 15px; margin-bottom: 6px; color: var(--green-deep); }
.info-card p { margin: 0; font-size: 14px; color: var(--muted); }

.checklist { display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--muted); font-size: 14.5px; }
.checklist li::before {
  content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%;
  background: rgba(157, 195, 83, .22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c5c39' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- 价格 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; position: relative; }
.price-card.is-featured { border-color: #cfe3bb; box-shadow: 0 0 0 3px rgba(157, 195, 83, .12); }
.price-badge { position: absolute; top: -12px; left: 26px; background: var(--lime); color: #29401a; font-size: 12px; font-weight: 700; padding: 2px 12px; border-radius: 999px; }
.price-card h3 { font-size: 17px; }
.price-amount { display: flex; align-items: baseline; gap: 5px; margin: 12px 0 4px; color: var(--green-deep); }
.price-amount b { font-size: 36px; font-family: Georgia, serif; line-height: 1; }
.price-amount span { font-size: 14px; color: var(--muted); }
.price-desc { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.price-list { border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 20px; }
.price-list li { font-size: 14px; color: var(--muted); padding: 6px 0 6px 16px; position: relative; }
.price-list li::before { content: ""; position: absolute; left: 0; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.price-card .btn { margin-top: auto; }

/* ---------- CTA 条 ---------- */
.cta-band { background: var(--tint-2); border: 1px solid #dbe8cc; border-radius: var(--radius); padding: 28px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.cta-band h2 { color: var(--green-deep); font-size: 20px; }
.cta-band p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- 政策文档 ---------- */
.policy-document { max-width: 820px; padding-block: 44px 64px; }
.policy-document h1 { font-size: clamp(28px, 4vw, 40px); font-family: Georgia, "Songti SC", serif; margin-bottom: 20px; }
.policy-document section { border: 1px solid var(--line); background: var(--white); border-radius: 12px; padding: 22px 24px; margin-bottom: 12px; }
.policy-document h2 { font-size: 20px; margin-bottom: 8px; font-family: Georgia, "Songti SC", serif; }
.policy-document p { color: var(--muted); line-height: 1.8; }
.policy-document p:last-child { margin-bottom: 0; }
.policy-document .meta { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.policy-document ul { margin: 4px 0 0; padding-left: 1.25em; color: var(--muted); list-style: revert; }
.policy-document li { margin: 6px 0; }
.policy-document table { width: 100%; border-collapse: collapse; margin: 8px 0 2px; font-size: 15px; color: var(--muted); }
.policy-document th, .policy-document td { padding: 9px 10px 9px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--tint); }
.policy-document th { color: var(--ink); font-weight: 600; white-space: nowrap; }
.policy-document .todo { background: #fff5d6; border-radius: 3px; padding: 1px 5px; color: #7a5c12; }
.policy-list { padding: 0; list-style: none; margin-bottom: 22px; }
.policy-list li { border: 1px solid var(--line); background: var(--white); border-radius: 12px; padding: 18px 20px; margin-bottom: 12px; }
.policy-list a { font-size: 17px; font-weight: 700; }
.policy-list p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .columns { grid-template-columns: 1fr; }
  .columns > .content { grid-column: auto; }
  .columns > .sidebar { grid-column: auto; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: 1fr; padding-block: 44px 52px; }
  .hero-figure { order: -1; }
  .price-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { flex-wrap: wrap; gap: 14px; padding-block: 16px; }
  .header-tools { width: 100%; flex-wrap: wrap; gap: 10px; }
  .search { width: 100%; }
  .header-links { font-size: 13px; margin-left: auto; }
  .mainnav ul { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mainnav a { padding: 12px 16px; white-space: nowrap; }
  .cards { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero h1 br { display: none; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .policy-document section { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .btn, .search { transition: none; }
  .card:hover { transform: none; }
}

/* ---------- 首页社区模块 ---------- */
.post-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.post-col__title { font-size: 15px; color: var(--green-deep); margin: 0 0 6px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.post-list li { padding: 11px 0; border-bottom: 1px solid var(--tint); }
.post-list li:last-child { border-bottom: 0; }
.post-list a { font-weight: 600; font-size: 14.5px; line-height: 1.5; display: block; }
.post-meta { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.post-skeleton { color: var(--muted); font-size: 14px; padding: 12px 0; }
.community-more { margin: 20px 0 0; }

@media (max-width: 720px) {
  .post-columns { grid-template-columns: 1fr; gap: 22px; }
}
/* ---------- 视频课堂 ---------- */
.lesson-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lesson-grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lesson-card { display: flex; flex-direction: column; gap: 9px; color: var(--ink); }
.lesson-card:hover { text-decoration: none; }
.lesson-card:hover .lesson-title { color: var(--green); }
.lesson-cover { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--tint-2); border-radius: 10px; overflow: hidden; }
.lesson-cover img { width: 100%; height: 100%; object-fit: cover; }
.lesson-play { position: absolute; left: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.lesson-title { font-size: 13.5px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s ease; }
.lesson-meta { font-size: 12px; color: var(--muted); }

@media (max-width: 980px) {
  .lesson-grid, .lesson-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .lesson-grid, .lesson-grid--wide { grid-template-columns: 1fr; }
}
/* ---------- 社区帖子卡片 ---------- */
.post-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.post-card { display: flex; flex-direction: column; gap: 9px; color: var(--ink); }
.post-card:hover { text-decoration: none; }
.post-card:hover .post-title { color: var(--green); }
.post-cover { display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--tint-2); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover__empty {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; font-size: 13px; color: var(--green-deep);
  background: linear-gradient(135deg, #eef5e2, #dcebc6);
}
.post-title {
  font-size: 13.5px; font-weight: 600; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .15s ease;
}
.post-group + .post-group { margin-top: 22px; }
.post-group[hidden] { display: none; }
.post-group__title { font-size: 15px; color: var(--green-deep); margin: 0 0 12px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }

@media (max-width: 980px) {
  .post-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .post-cards { grid-template-columns: 1fr; }
}
/* ---------- 侧栏：诊断报告目录 ---------- */
.toc-intro { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.report-toc li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--tint); font-size: 14px; color: var(--muted); line-height: 1.55; }
.report-toc li:last-child { border-bottom: 0; }
.toc-no { color: var(--lime); font-family: Georgia, serif; font-weight: 700; font-size: 13px; }
.toc-note { color: var(--muted); font-size: 12.5px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--tint); }
/* 侧栏内非通栏按钮居中 */
.side-panel .btn:not(.btn-block) { display: flex; width: fit-content; min-width: 62%; margin: 4px auto 0; }
/* ---------- 两栏底部对齐 ---------- */
.columns { align-items: stretch; }
.columns > .content,
.columns > .sidebar { display: flex; flex-direction: column; }
.columns > .content > .panel:last-of-type,
.columns > .sidebar > .panel:last-of-type { flex: 1 1 auto; margin-bottom: 0; }

/* 课堂面板：内容自适应，按钮吸底 */
#lessons { display: flex; flex-direction: column; }
#lessons .lesson-grid { flex: 0 0 auto; }
#lessons .community-more { margin-top: auto; }
/* ---------- 首屏轮播 ---------- */
.carousel { position: relative; height: 380px; border-radius: 18px; overflow: hidden; background: #dfe7d8; }
.carousel-slide {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%; opacity: 0;
  transition: opacity .9s ease;
}
.carousel-slide.is-active { opacity: 1; }
/* 遮罩已按需求移除 */
.carousel-copy { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; padding: 0 clamp(22px, 4vw, 56px); }
.carousel-copy h1 {
  margin: 0; color: #fff; max-width: 11em;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(24px, 3vw, 40px); line-height: 1.28; letter-spacing: -.01em;
  text-shadow: 0 1px 3px rgba(6,20,12,.55), 0 6px 30px rgba(6,20,12,.45);
}
.carousel-dots { position: absolute; right: clamp(20px, 3vw, 40px); bottom: 22px; display: flex; gap: 8px; }
.carousel-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.45); cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.carousel-dot.is-active { width: 22px; background: #fff; }
.carousel-dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 980px) {
  .carousel { height: 320px; }
}
@media (max-width: 720px) {
  .carousel { height: 240px; }
  .carousel-copy h1 { font-size: 23px; }
  .carousel-dots { left: 50%; right: auto; transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-slide { transition: none; }
}
/* ---------- 二三层页面横幅（与首页轮播同一视觉语言） ---------- */
.page-banner { padding-block: 26px 0; }
.banner { position: relative; height: 240px; border-radius: 18px; overflow: hidden; background: #dfe7d8; }
.banner-img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.banner-copy {
  position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center;
  gap: 10px; padding: 0 clamp(22px, 4vw, 56px);
}
.banner-copy .breadcrumb {
  margin: 0; font-size: 13px; color: rgba(255,255,255,.85);
  text-shadow: 0 1px 6px rgba(6,20,12,.5);
}
.banner-copy .breadcrumb a { color: inherit; }
.banner-copy h1 {
  margin: 0; color: #fff; font-size: clamp(26px, 3vw, 38px);
  font-family: Georgia, "Songti SC", serif; letter-spacing: -.01em;
  text-shadow: 0 1px 3px rgba(6,20,12,.55), 0 6px 28px rgba(6,20,12,.45);
}
.banner-copy .lede {
  margin: 0; max-width: 30em; font-size: 15px; color: rgba(255,255,255,.94);
  text-shadow: 0 1px 8px rgba(6,20,12,.5);
}

@media (max-width: 980px) {
  .banner { height: 210px; }
}
@media (max-width: 720px) {
  .banner { height: 180px; }
  .banner-copy { gap: 7px; }
  .banner-copy .lede {
    font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
  }
}
/* ---------- 政策文档窄版标题条 ---------- */
.doc-banner { background: var(--tint); border-bottom: 1px solid var(--line); padding-block: 30px 26px; }
.doc-banner .breadcrumb { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.doc-banner .breadcrumb a { color: var(--muted); }
.doc-banner h1 {
  margin: 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25;
  font-family: Georgia, "Songti SC", serif; color: var(--ink);
}
/* ---------- PC 诊断表单 ---------- */
.diag-field { margin-bottom: 22px; }
.diag-label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.diag-hint { font-weight: 400; font-size: 13px; color: var(--muted); margin-left: 6px; }
.diag-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.diag-choice { position: relative; display: block; cursor: pointer; }
.diag-choice input { position: absolute; opacity: 0; top: 0; right: 0; bottom: 0; left: 0; }
.diag-choice span {
  display: block; padding: 11px 10px; text-align: center; font-size: 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--muted);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.diag-choice input:checked + span { border-color: var(--green); background: var(--tint-2); color: var(--green-deep); font-weight: 600; }
.diag-choice input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }

.diag-drop {
  border: 1px dashed #c9d8c1; border-radius: 12px; background: var(--tint);
  padding: 22px; text-align: center; transition: border-color .15s ease, background .15s ease;
}
.diag-drop.is-over { border-color: var(--green); background: var(--tint-2); }
.diag-drop .diag-hint { display: block; margin: 10px 0 0; }
.diag-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.diag-thumbs li { position: relative; width: 92px; height: 92px; border-radius: 10px; overflow: hidden; background: var(--tint-2); }
.diag-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumb-x {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%;
  background: rgba(12, 30, 20, .62); color: #fff; font-size: 14px; line-height: 1; cursor: pointer;
}
.thumb-x:hover { background: rgba(12, 30, 20, .85); }

#symptoms {
  width: 100%; box-sizing: border-box; padding: 12px 14px; font: inherit; font-size: 14.5px;
  color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  resize: vertical; line-height: 1.7;
}
#symptoms:focus { outline: none; border-color: var(--lime); }
.diag-count { text-align: right; font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.diag-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 10px; }
.diag-actions .btn { min-width: 210px; }
.diag-status { margin: 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.diag-status:not(:empty) { color: var(--green-deep); }

/* ---------- 本页诊断报告 ---------- */
.diag-report { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.report-loading { color: var(--muted); font-size: 14.5px; margin: 0; }
.report-head { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 16px; }
.report-tag { display: inline-block; margin: 0 0 8px; font-size: 12px; letter-spacing: .16em; color: var(--green); font-weight: 700; }
.report-head h2 { font-size: 24px; font-family: Georgia, "Songti SC", serif; }
.report-score { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.report-score b { font-size: 26px; color: var(--green-deep); font-family: Georgia, serif; }
.report-summary { color: var(--muted); line-height: 1.8; }
.report-h3 { font-size: 17px; margin: 26px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.report-issues li { padding: 12px 0; border-bottom: 1px dashed var(--tint); }
.report-issues li:last-child { border-bottom: 0; }
.issue-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.issue-head b { font-size: 15px; }
.sev { font-size: 12px; padding: 1px 8px; border-radius: 999px; }
.sev--low { background: #eef5e2; color: #4c6b2e; }
.sev--medium { background: #fff2dc; color: #8a5a12; }
.sev--high { background: #ffe6e3; color: #9c2f22; }
.report-issues .muted, .report-actions .muted { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
.evidence { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }
.report-actions li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--tint); }
.report-actions li:last-child { border-bottom: 0; }
.report-actions .step-no { font-family: Georgia, serif; font-weight: 700; color: var(--lime); font-size: 17px; }
.report-actions b { font-size: 15px; }
.report-actions p { margin: 4px 0 0; font-size: 14px; color: var(--muted); line-height: 1.7; }
.report-prevention { margin: 0; padding-left: 1.1em; list-style: revert; }
.report-prevention li { color: var(--muted); font-size: 14px; margin: 6px 0; }
.report-follow { color: var(--muted); font-size: 14px; }
.report-disclaimer { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: #7d8b81; }
.report-actions-row { margin: 22px 0 0; }

@media (max-width: 720px) {
  .diag-choices { grid-template-columns: 1fr; }
  .diag-thumbs li { width: 74px; height: 74px; }
}
/* ---------- 诊断弹窗与缩略图角标 ---------- */
.diag-modal {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(18, 34, 24, .45);
}
.diag-modal[hidden] { display: none; }
.diag-modal__box { width: min(430px, 100%); background: #fff; border-radius: 16px; padding: 26px; box-shadow: 0 20px 60px rgba(10, 30, 18, .28); }
.diag-modal__box h2 { font-size: 19px; margin: 0 0 10px; font-family: Georgia, "Songti SC", serif; }
.diag-modal__box p { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin: 0 0 20px; }
.diag-modal__actions { display: flex; gap: 12px; }
.diag-modal__actions .btn { flex: 1; padding-inline: 12px; }
.thumb-tag {
  position: absolute; left: 4px; bottom: 4px;
  background: rgba(12, 30, 20, .62); color: #fff; font-size: 11px; padding: 1px 5px; border-radius: 4px;
}
.diag-exif { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); min-height: 1em; }
.side-note { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--tint); font-size: 12.5px; color: var(--muted); }
.side-sub { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.link-plain li b { font-size: 14px; }
/* 上传中禁用的按钮也要维持实心，只降低一档明度 */
.diag-actions .btn:disabled { background: #7fa28a; color: #fff; cursor: progress; }
/* ---------- 社区：分区标签、信息流、站内详情 ---------- */
.topic-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  border: 1px solid var(--line); background: var(--white); color: var(--muted);
  border-radius: 999px; padding: 7px 16px; font: inherit; font-size: 13.5px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.chip:hover { border-color: #cfe0c4; color: var(--green-deep); }
.chip.is-active { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.post-cards--feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feed-more { margin: 22px 0 0; text-align: center; }
.feed-more .btn { min-width: 190px; }

.post-detail .pd-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.pd-topic { margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; color: var(--green); font-weight: 700; }
.pd-head h2 { font-size: 22px; font-family: Georgia, "Songti SC", serif; }
.pd-meta { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.pd-content { margin: 16px 0 0; color: var(--muted); line-height: 1.85; white-space: pre-wrap; }
.pd-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.pd-images img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; }
.pd-h3 { font-size: 16px; margin: 26px 0 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.pd-comments li { padding: 12px 0; border-bottom: 1px dashed var(--tint); }
.pd-comments li:last-child { border-bottom: 0; }
.pd-c-name { margin: 0; font-size: 13.5px; font-weight: 600; }
.pd-c-text { margin: 4px 0 0; font-size: 14.5px; color: var(--muted); }
.pd-c-time { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }

@media (max-width: 980px) {
  .post-cards--feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .post-cards--feed { grid-template-columns: 1fr; }
  .pd-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ---------- 社区：图文帖 / 文字帖 分组 ---------- */
.feed-group + .feed-group { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.feed-group__title { font-size: 15px; color: var(--green-deep); margin: 0 0 14px; }
.post-rows li { padding: 12px 0; border-bottom: 1px dashed var(--tint); }
.post-rows li:last-child { border-bottom: 0; }
.post-row__title { display: block; font-weight: 600; font-size: 15px; color: var(--ink); }
.post-row__title:hover { color: var(--green); text-decoration: none; }
.feed-more__btn { display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--green); }
.feed-more__btn:hover { text-decoration: underline; text-underline-offset: .2em; }
/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.pager__btn {
  border: 1px solid var(--line); background: var(--white); color: var(--green);
  border-radius: 999px; padding: 8px 18px; font: inherit; font-size: 14px; cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.pager__btn:hover:not(:disabled) { border-color: var(--green); color: var(--green-deep); }
.pager__btn:disabled { color: #b9c6bb; cursor: default; border-color: #e8eee4; }
.pager__info { font-size: 13.5px; color: var(--muted); }
/* ---------- 会员中心：账户概览与权益 ---------- */
.acct-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.acct-cell { background: var(--tint); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.acct-label { margin: 0; font-size: 12.5px; color: var(--muted); }
.acct-value { margin: 6px 0 0; font-size: 20px; font-weight: 700; color: var(--green-deep); font-family: Georgia, "Songti SC", serif; }
.acct-note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.acct-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 0; }
.benefit-list { margin: 0; padding: 0; list-style: none; }
.benefit-list li { position: relative; padding: 10px 0 10px 20px; color: var(--muted); font-size: 14.5px; border-bottom: 1px dashed var(--tint); }
.benefit-list li:last-child { border-bottom: 0; }
.benefit-list li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 7px; height: 7px; border-radius: 2px; background: var(--lime); }
.benefit-list b { color: var(--ink); }

@media (max-width: 980px) {
  .acct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .acct-grid { grid-template-columns: 1fr; }
}
/* 诊断方向（单行） */
.diag-dirs { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.diag-field--tight { margin-bottom:18px; }
.diag-dir { display:flex; align-items:center; justify-content:center; gap:7px; padding:10px 8px; border:1px solid var(--line); border-radius:10px; background:#fff; cursor:pointer; }
.diag-dir input { appearance:none; -webkit-appearance:none; flex:0 0 15px; width:15px; height:15px; margin:0; border:1.5px solid #c9d6c9; border-radius:50%; background:#fff; position:relative; }
.diag-dir input:checked { border-color:var(--green); }
.diag-dir input:checked::after { content:""; position:absolute; top: 3px; right: 3px; bottom: 3px; left: 3px; border-radius:50%; background:var(--green); }
.diag-dir span { font-size:14px; color:var(--ink); white-space:nowrap; }
.diag-dir:has(input:checked) { border-color:var(--green); background:var(--tint); }
.diag-dir:has(input:checked) span { color:var(--green-deep); font-weight:600; }
/* 诊断条件 */
.report-cond { margin: 8px 0 4px; display: grid; gap: 8px; }
.report-cond-row { display: grid; grid-template-columns: 86px 1fr; gap: 12px; font-size: 14px; line-height: 1.65; }
.report-cond-row dt { color: var(--muted); }
.report-cond-row dd { margin: 0; color: var(--ink); }
.report-cond-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
/* 上传/提交状态 */
.diag-status.status--error, .status--error { color: #b3261e; font-weight: 600; }
/* 情况描述占位文字：与上方提示文字同号 */
#symptoms::placeholder { font-size: 13px; color: var(--muted); line-height: 1.75; }
#symptoms::-webkit-input-placeholder { font-size: 13px; color: var(--muted); line-height: 1.75; }
/* 卡片标题单行 */
.lesson-card, .post-card, .feed-item { min-width: 0; }
.lesson-title, .post-title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-list a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-list li { min-width: 0; }
/* 站内视频播放 */
.video-modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(18, 34, 24, .62); backdrop-filter: blur(2px); }
.video-modal[hidden] { display: none; }
.video-box { position: relative; width: min(980px, 100%); background: #10160f; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; background: #f7faf3; color: var(--ink); font-size: 14px; }
.video-foot strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-foot a { color: var(--green); font-size: 13px; flex: 0 0 auto; }
.video-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.video-close:hover { background: rgba(0, 0, 0, .75); }
@media (max-width: 640px) {
  .video-modal { padding: 0; align-items: center; }
  .video-box { border-radius: 0; }
}
.video-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.video-fs { border: 1px solid var(--line); background: #fff; color: var(--green-deep); font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 8px; cursor: pointer; }
.video-fs:hover { border-color: var(--green); color: var(--green); }
.video-box.is-expanded { position: fixed; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; border-radius: 0; z-index: 90; display: flex; flex-direction: column; background: #000; }
.video-box.is-expanded .video-frame { flex: 1 1 auto; aspect-ratio: auto; }
.video-box.is-expanded .video-foot { flex: 0 0 auto; }
.video-box:fullscreen { border-radius: 0; display: flex; flex-direction: column; background: #000; }
.video-box:fullscreen .video-frame { flex: 1 1 auto; aspect-ratio: auto; }
/* 课堂筛选行：分区 + 数量 */
.topic-row { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; margin-bottom: 18px; }
.topic-row .topic-tabs { flex: 1 1 auto; min-width: 0; margin-bottom: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.topic-row .topic-tabs::-webkit-scrollbar { display: none; }
.topic-count { margin: 0 0 0 auto; font-size: 13.5px; color: var(--muted); flex: 0 0 auto; white-space: nowrap; }
/* 播放层底部信息条改为透明浮层 */
.video-box { background: transparent; overflow: visible; }
.video-foot { background: transparent; display: flex; justify-content: flex-end; padding: 8px 2px 0; }

.video-fs { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); color: #f2f7ee; }
.video-fs:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.6); color: #fff; }
.video-box.is-expanded .video-foot, .video-box:fullscreen .video-foot { padding: 10px 18px 14px; }
/* 需要登录提示 */
.login-modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(18, 34, 24, .62); backdrop-filter: blur(2px); }
.login-modal[hidden] { display: none; }
.login-box { width: min(440px, 100%); background: var(--white); border-radius: 16px; padding: 26px 26px 22px; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.login-box h2 { margin: 0 0 12px; font-size: 20px; font-family: Georgia, "Songti SC", serif; }
.login-box p { margin: 0 0 10px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.login-box .btn { margin-top: 8px; width: 100%; }
/* 站长发帖表单 */
.lm-field { display: block; margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.lm-field input, .lm-field textarea, .lm-field select { width: 100%; margin-top: 5px; padding: 10px 12px; font: inherit; font-size: 14.5px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.lm-field textarea { resize: vertical; line-height: 1.7; }
.lm-field input:focus, .lm-field textarea:focus, .lm-field select:focus { outline: none; border-color: var(--lime); }
.lm-status { min-height: 1.2em; margin: 0 0 10px; font-size: 13px; color: var(--green-deep); }
.lm-status.is-error { color: #b3261e; }

/* 图片全屏查看 */
.lightbox { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 120; background: #000; display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lb-track { flex: 1 1 auto; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; scroll-snap-stop: always; }
.lb-bar { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px)); color: #fff; }
.lb-count { font-size: 14px; color: rgba(255,255,255,.9); font-variant-numeric: tabular-nums; min-width: 48px; text-align: center; }
.lb-nav { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 22px; line-height: 1; }
.lb-nav[disabled] { opacity: .3; }
.lb-close { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 14px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 20px; line-height: 1; }
.pd-images img { cursor: zoom-in; }
@media (hover: none) { .lb-nav { display: flex; align-items: center; justify-content: center; } }

/* 页内播放器 */
.video-inline { margin: 0 0 18px; background: #10160f; border-radius: 14px; overflow: hidden; }
.video-inline[hidden] { display: none; }
.vi-frame { position: relative; width: 100%; height: 0; padding-top: 56.25%; background: #000; }
.vi-frame iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.vi-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; }
.vi-tip { font-size: 12.5px; color: rgba(238,245,234,.6); }
.vi-actions { display: flex; gap: 10px; }
.vi-bar button { border: 1px solid rgba(255,255,255,.32); background: rgba(255,255,255,.12); color: #eef5ea; font: inherit; font-size: 13px; padding: 6px 16px; border-radius: 8px; cursor: pointer; }
.vi-bar button:hover { background: rgba(255,255,255,.22); }
@media (min-width: 761px) {
  .video-inline { max-width: 820px; margin-left: auto; margin-right: auto; }
  .vi-bar { padding: 10px 18px; }
}


/* 视频播放页：整屏播放器 */
.vp-page { position: relative; width: 100%; background: #000; overflow: hidden; display: flex; flex-direction: column; }
.vp-tools { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 7px 14px; background: #10160f; }
.vp-back { font-size: 13px; color: #dfe8dc; }
.vp-back:hover { color: #fff; text-decoration: none; }
.vp-fs { border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #eef5ea; font: inherit; font-size: 13px; padding: 5px 14px; border-radius: 8px; cursor: pointer; }
.vp-fs:hover { background: rgba(255,255,255,.2); }
.vp-stage { position: relative; flex: 1 1 auto; min-height: 0; }
.vp-stage iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; background: #000; }
.vp-hint { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); margin: 0; text-align: center; color: #cfd8cc; font-size: 14px; }
.vp-hint a { color: var(--lime); text-decoration: underline; }
.vp-page:fullscreen, .vp-page.is-expanded { width: 100vw; height: 100vh !important; }
.post-crumb { padding: 18px 0 0; font-size: 13.5px; }
.post-crumb a { color: var(--green); }
.post-crumb + .layout { padding-top: 8px; }
.post-main { padding-top: 22px; padding-bottom: 60px; }
/* 帖子详情页 */
.post-main { padding-top: 22px; padding-bottom: 60px; }
.post-crumb { padding: 18px 0 0; font-size: 13.5px; }
.post-crumb a { color: var(--green); }
.post-title-lg { font-size: 26px; font-family: Georgia, "Songti SC", serif; margin: 8px 0 0; line-height: 1.35; }
.post-meta-lg { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.post-body { margin: 18px 0 0; font-size: 15px; line-height: 1.85; color: var(--ink); white-space: pre-wrap; }
.post-h2 { margin: 34px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 17px; font-family: Georgia, "Songti SC", serif; }
.post-back { margin: 24px 0 0; text-align: right; }
.post-article .pd-images { margin-top: 18px; margin-bottom: 6px; }
.pd-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pd-images img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; cursor: zoom-in; }
.pd-comments { margin: 0; padding: 0; list-style: none; }
.pd-comments li { padding: 14px 0; border-bottom: 1px dashed var(--tint); }
.pd-c-name { margin: 0; font-size: 13.5px; font-weight: 600; }
.pd-c-text { margin: 4px 0 0; font-size: 14px; color: var(--muted); line-height: 1.7; }
.rp-tag { display: inline-block; margin: 0; font-size: 12.5px; color: var(--green-deep); background: var(--tint-2); border-radius: 999px; padding: 3px 10px; }
.vp-page:fullscreen .vp-tools, .vp-page.is-expanded .vp-tools { opacity: 1 !important; }
/* 发帖页表单 */
.publish-form { margin-top: 18px; }
.pf-field { margin: 0 0 16px; }
.pf-label { display: block; font-size: 13.5px; font-weight: 600; margin: 0 0 8px; }
.pf-hint { font-weight: 400; font-size: 12.5px; color: var(--muted); margin-left: 4px; }
.pf-field input[type="text"], .pf-field input:not([type]), .pf-field textarea, .pf-field select { width: 100%; box-sizing: border-box; padding: 11px 13px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.pf-field textarea { resize: vertical; line-height: 1.7; }
.pf-field input:focus, .pf-field textarea:focus, .pf-field select:focus { outline: none; border-color: var(--lime); }
.pf-count { margin: 6px 0 0; text-align: right; font-size: 12px; color: var(--muted); }
.pf-drop { border: 1px dashed #c9d8c1; border-radius: 12px; background: var(--tint); padding: 16px; text-align: center; }
.pf-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.pf-thumbs li { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--tint-2); }
.pf-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pf-x { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 14px; line-height: 1; }
.status { margin: 10px 0 0; font-size: 13px; color: var(--green-deep); min-height: 1em; }
.status--error { color: #b3261e; font-weight: 600; }

/* 发帖弹窗关闭按钮 */
.login-close { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer; }
.login-close:hover { border-color: var(--green); color: var(--green); }
.login-box { position: relative; }
.pf-fail { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; font-size: 11.5px; color: var(--muted); background: var(--tint-2); }
.pf-thumbs li { position: relative; }
/* 登录页 */
.login-panel { margin-top: 14px; }
.login-btn { margin-top: 6px; }
.login-hint { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.login-hint a { color: var(--green-deep); }
.login-nick { margin: 0; font-size: 17px; font-weight: 600; }
#login-sub { margin: 4px 0 14px; font-size: 13px; }