/* ==========================================================================
   万信物流 —— 后台发布的动态内容在【前台】的样式
   适用页面：news.html / news-detail.html / messages.html / published-route.html
            以及首页与线路页里的动态区块
   说明：复用 styles.css 里的 :root 变量（墨绿 / 米白 / 橙色 / 薄荷绿），
         只补充这些新组件自己的排版，不改动原有页面样式。
   ========================================================================== */

/* --------------------------------------------------------------------------
   01 通用：空状态、加载中、工具类
   -------------------------------------------------------------------------- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 54px 24px;
  border: 1px dashed var(--line);
  background: var(--white);
  color: #7c8a8c;
  font-size: 13px;
  text-align: center;
}
.empty-state p { margin: 0; font-family: var(--display); font-size: 18px; color: var(--ink-soft); }
.empty-state small { color: #8b9799; font-size: 12px; }

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(19, 37, 43, .15);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: wx-spin .8s linear infinite;
}
@keyframes wx-spin { to { transform: rotate(360deg); } }

.dynamic-muted { color: #8b9799; }

/* 后台点「预览前台效果」时会打开真实前台页面，用这个角标提醒这不是正式内容 */
.preview-badge {
  position: fixed;
  z-index: 80;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  padding: 9px 18px;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(19, 37, 43, .26);
  pointer-events: none;
}
@media (max-width: 720px) {
  .preview-badge { top: 74px; padding: 7px 13px; font-size: 11px; }
}
.dynamic-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.dynamic-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 46px; align-items: start; }
.dynamic-aside { position: sticky; top: 104px; }

/* 深色描边按钮：后台动态页在浅色区块里需要这个变体 */
.button-ghost-dark { color: var(--ink); border-color: rgba(19, 37, 43, .28); background: transparent; }
.button-ghost-dark:hover { border-color: var(--ink); background: rgba(19, 37, 43, .06); }
.button.is-block { width: 100%; }

/* --------------------------------------------------------------------------
   02 表单控件（前台留言表单）
   -------------------------------------------------------------------------- */

.form-field { display: grid; gap: 6px; margin-bottom: 16px; }
.form-label { display: flex; align-items: center; gap: 5px; color: var(--ink-soft); font-size: 11px; font-weight: 700; letter-spacing: .2px; }
.form-label .req { color: var(--orange); font-style: normal; }
.form-hint { color: #8b9799; font-size: 11px; line-height: 1.7; }

.input,
select.input,
textarea.input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d9ded9;
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: #f8f8f4;
  font-family: var(--body);
  font-size: 13px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea.input { min-height: auto; line-height: 1.75; resize: vertical; }
.input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(237, 107, 61, .16); }
.input::placeholder { color: #9ba5a4; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-grid.is-single { grid-template-columns: minmax(0, 1fr); }

.form-status { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--mint-deep); background: rgba(166, 215, 200, .22); font-size: 12px; font-weight: 600; }
.form-status[data-status="pending"] { border-left-color: var(--blue); background: rgba(132, 169, 184, .18); }
.form-status[data-status="success"] { border-left-color: var(--mint-deep); background: rgba(166, 215, 200, .28); color: var(--mint-deep); }
.form-status[data-status="error"] { border-left-color: var(--orange-deep); background: rgba(237, 107, 61, .14); color: var(--orange-deep); }
.form-note { margin: 10px 0 0; color: #8b9799; font-size: 11px; }
.form-note a { color: var(--orange-deep); font-weight: 700; }

/* 蜜罐字段：正常用户永远看不到 */
.honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* --------------------------------------------------------------------------
   02b 「立即留言」弹窗（移动端底部条 / 首页底部入口共用）
   -------------------------------------------------------------------------- */

body.quick-modal-open { overflow: hidden; }

.quick-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.quick-modal[hidden] { display: none; }

.quick-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(11, 30, 35, .58);
  opacity: 0;
  transition: opacity .22s ease;
}
.quick-modal.is-open .quick-modal-mask { opacity: 1; }

/* 手机上从底部升起来，桌面上居中显示 */
.quick-modal-panel {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 24px 26px 26px;
  background: var(--paper);
  border-top: 4px solid var(--orange);
  box-shadow: 0 -18px 44px rgba(11, 30, 35, .3);
  transform: translateY(24px);
  opacity: 0;
  transition: transform .24s ease, opacity .24s ease;
}
.quick-modal.is-open .quick-modal-panel { transform: none; opacity: 1; }

.quick-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.quick-modal-head h2 { margin: 0 0 6px; font-family: var(--display); font-size: 25px; font-weight: 600; }
.quick-modal-head p { margin: 0; color: #6b7b7d; font-size: 12.5px; }
.quick-modal-x {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.quick-modal-x:hover { border-color: var(--ink); }

/* 「补充信息」折叠按钮 */
.quick-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 4px 0 14px;
  padding: 10px 13px;
  border: 1px dashed var(--line);
  background: transparent;
  color: var(--mint-deep);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.quick-more:hover { border-color: var(--mint-deep); background: rgba(166, 215, 200, .14); }
.quick-more i { font-style: normal; font-size: 15px; }
.quick-extra { margin-bottom: 4px; }
.quick-extra[hidden] { display: none; }

/* 移动端底部条的「立即留言」按钮。
   布局（分栏、分隔线、内边距）统一由 styles.css 里的 .mobile-contact-bar 管，
   这里只调图标颜色和字号，避免两处样式打架。
   三栏比两栏窄，所以左右文字略收一点，保证「立即留言 / 顾问回电」不折行。 */
.quick-message-btn svg { width: 19px; height: 19px; color: var(--mint); }
.quick-message-btn span { font-size: 10px; }
.quick-message-btn b { font-size: 11px; font-weight: 800; white-space: nowrap; }

/* 首页底部的留言入口 */
.home-leave {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  background: var(--cream);
}
.home-leave h3 { margin: 0 0 7px; font-family: var(--display); font-size: 22px; font-weight: 600; }
.home-leave p { max-width: 620px; margin: 0; color: #6b7b7d; font-size: 12.5px; line-height: 1.85; }
.home-leave-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.home-leave-actions svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   03 资讯列表页
   -------------------------------------------------------------------------- */

.dynamic-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.dynamic-tab {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.dynamic-tab span { margin-left: 6px; color: #9aa5a5; font-weight: 600; }
.dynamic-tab:hover { border-color: var(--ink-soft); }
.dynamic-tab.is-active { border-color: var(--ink); background: var(--ink); color: var(--white); }
.dynamic-tab.is-active span { color: var(--mint); }

/* 用「每个卡片自己带边框」代替「网格背景当分隔线」的写法。
   文章数量不一定凑满整行，最后一行留空的格子会把网格背景色（--line 灰）
   露出一大块，看起来像渲染错误。改成卡片自带边框后，空格子就是纸色，干净。 */
.article-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
}
.article-list-item {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 26px 26px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background .2s ease, transform .2s ease;
}
.article-list-item:nth-child(3n) { border-right: 0; }
.article-list-item:hover { position: relative; z-index: 1; transform: translateY(-3px); background: var(--white); box-shadow: 0 12px 22px rgba(19, 37, 43, .08); }
.article-list-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: #8b9799; font-size: 11px; }
.article-list-cat { padding: 3px 8px; background: rgba(166, 215, 200, .35); color: var(--mint-deep); font-weight: 800; }
.article-list-featured { padding: 3px 8px; background: rgba(237, 107, 61, .14); color: var(--orange-deep); font-weight: 800; }
.article-list-item h3 { margin: 20px 0 10px; font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.5; }
.article-list-item h3 a { transition: color .2s ease; }
.article-list-item h3 a:hover { color: var(--orange-deep); }
.article-list-item > p { margin: 0; color: #6b7b7d; font-size: 12px; line-height: 1.9; }
.article-list-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px; color: var(--orange-deep); font-size: 11px; font-weight: 800; }
.article-list-more svg { width: 14px; height: 14px; }

.dynamic-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 30px; }
.dynamic-page { padding: 9px 16px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 12px; font-weight: 700; cursor: pointer; }
.dynamic-page:hover:not(:disabled) { border-color: var(--ink); background: var(--ink); color: var(--white); }
.dynamic-page:disabled { color: #b6bebd; cursor: not-allowed; }
.dynamic-page-info { color: #8b9799; font-size: 12px; }

/* --------------------------------------------------------------------------
   04 资讯正文页
   -------------------------------------------------------------------------- */

.article-byline { margin-top: 14px; color: rgba(255, 254, 250, .72); font-size: 12px; }
.article-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; align-items: start; }
.article-detail-body { min-height: 320px; }
.article-side { position: sticky; top: 104px; display: grid; gap: 18px; }
.article-side-card { padding: 24px; border: 1px solid var(--line); border-top: 3px solid var(--orange); background: var(--white); }
.article-side-card h3 { margin: 0 0 10px; font-family: var(--display); font-size: 19px; font-weight: 600; }
.article-side-card p { margin: 0 0 16px; color: #6b7b7d; font-size: 12px; line-height: 1.85; }
.article-side-card .button + .button { margin-top: 10px; }
.article-side-list { display: grid; gap: 12px; }
.article-side-link { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.article-side-link:last-child { border-bottom: 0; padding-bottom: 0; }
.article-side-link span { color: var(--orange-deep); font-size: 10px; font-weight: 800; letter-spacing: .4px; }
.article-side-link b { font-family: var(--display); font-size: 15px; font-weight: 600; line-height: 1.6; }
.article-side-link:hover b { color: var(--orange-deep); }
.article-back { margin-top: 40px; }
.article-back svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   05 Markdown 排版（正文 / 后台预览共用选择器 .md-preview）
   -------------------------------------------------------------------------- */

.md-preview { color: var(--ink-soft); font-size: 15px; line-height: 1.95; }
.md-preview > *:first-child { margin-top: 0; }
/* 小标题做成「带编号徽标的分节头」。
   原来只是一个带左侧橙边的标题，和下面的正文糊在一起、整页像一大段文字；
   现在每节有独立序号徽标 + 底部贯穿细线，段落之间一眼能分开。

   注意层级：markdown.js 把 # 映射成 h2、## 映射成 h3（文章标题占用 h1），
   而后台提示词与 AI 生成内容用的都是 ## —— 所以正文小节实际是 <h3>。
   这里必须写 h3；写成 h2 会完全匹配不到，表现为「小标题没有任何样式」。 */
.md-preview { counter-reset: md-section; }
.md-preview h3 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 46px 0 20px;
  padding: 0 0 13px;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  counter-increment: md-section;
}
/* 标题左侧的橙色序号块，内容取自增计数器（一、二、三…） */
.md-preview h3::before {
  content: counter(md-section, cjk-ideographic);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}
/* h2（正文里的 #）：不编号，做成更重的分节标题 */
.md-preview h2 {
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--display);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
/* h4（正文里的 ###）：小节内部的次级标题，用左侧细线区分 */
.md-preview h4 {
  position: relative;
  margin: 26px 0 10px;
  padding-left: 12px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.md-preview h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: .38em;
  width: 3px;
  height: 15px;
  background: var(--mint-deep);
}
.md-preview p { margin: 0 0 16px; }
.md-preview ul, .md-preview ol { margin: 0 0 18px; padding-left: 22px; }
.md-preview li { margin-bottom: 8px; }
.md-preview li::marker { color: var(--orange); }
.md-preview a { color: var(--orange-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.md-preview strong { color: var(--ink); font-weight: 800; }
.md-preview blockquote { margin: 0 0 18px; padding: 14px 18px; border-left: 3px solid var(--mint-deep); background: rgba(166, 215, 200, .18); color: var(--ink-soft); }
.md-preview code { padding: 2px 6px; background: rgba(19, 37, 43, .07); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 13px; }
.md-preview .md-pre { margin: 0 0 18px; padding: 16px 18px; background: #13252b; color: #e8efe9; overflow-x: auto; }
.md-preview .md-pre code { padding: 0; background: transparent; color: inherit; font-size: 13px; line-height: 1.7; }
.md-preview hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }
.md-preview img { display: block; max-width: 100%; height: auto; margin: 0 0 18px; border: 1px solid var(--line); }
.md-preview .md-table-scroll { margin: 0 0 20px; overflow-x: auto; border: 1px solid var(--line); }
.md-preview table { width: 100%; border-collapse: collapse; font-size: 13px; }
.md-preview th, .md-preview td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.md-preview th { background: var(--cream); font-weight: 800; color: var(--ink); }
.md-preview tbody tr:nth-child(even) { background: rgba(19, 37, 43, .02); }

/* 「五、常见问题」这一节：markdown.js 会把连续的 Q/A 段落转成
   <dl class="article-faq-list">，这里把它渲染成一组问答卡片，
   和正文段落明显区分开，读者扫一眼就知道这里是问答。 */
.md-preview .article-faq-list {
  display: grid;
  gap: 2px;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  background: var(--line);
}
.md-preview .article-faq-item {
  padding: 18px 20px;
  border-left: 3px solid var(--mint);
  background: var(--paper);
}
.md-preview .article-faq-item dt {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
}
.md-preview .article-faq-item dd { margin: 0; color: #6b7b7d; font-size: 13.5px; line-height: 1.9; }

/* --------------------------------------------------------------------------
   06 线路详情页
   -------------------------------------------------------------------------- */

/* 收紧区块间距。
   这一页有 6 个区块，通用样式每个区块上下各 78px，加起来近 940px 全是空白，
   滚动起来会觉得"内容之间隔得太远"。这里压到 44px，标题也更贴近正文。 */
#routeMain .inner-section { padding: 44px 0; }
#routeMain .inner-heading { margin-bottom: 22px; }
#routeMain .inner-heading h2 { font-size: 30px; }
#routeMain .inner-heading p { font-size: 12.5px; }
/* 「取送范围」整块是浅色的，上下留白再收一点，避免看起来是断开的两个页面 */
#routeMain .inner-section.alt { padding: 38px 0; }

/* 线路介绍与取送范围做成两栏：正文在左、要点卡片在右。
   原来正文限宽 860px，右边一大片全空着，页面显得很单薄。 */
.route-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  align-items: start;
}

/* 右侧要点卡片 */
.route-aside { display: grid; gap: 14px; position: sticky; top: 104px; }
.route-aside-card { padding: 22px 22px 20px; border: 1px solid var(--line); border-top: 3px solid var(--orange); background: var(--white); }
.route-aside-card h3 { margin: 0 0 14px; font-family: var(--display); font-size: 18px; font-weight: 600; }
.route-aside-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.route-aside-card li { position: relative; padding-left: 20px; color: #5f7072; font-size: 12.5px; line-height: 1.8; }
.route-aside-card li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 2px; background: var(--mint-deep); }
.route-aside-card li b { color: var(--ink); font-weight: 700; }
.route-aside-cta {
  display: block;
  margin-top: 16px;
  padding: 11px 14px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.route-aside-cta:hover { background: var(--orange-deep); }

/* 线路介绍的分段：每段独立成块，段间有细线，读起来有节奏 */
.route-prose p { margin: 0 0 18px; padding-left: 16px; border-left: 2px solid var(--line); }
.route-prose p:last-child { margin-bottom: 0; }
.route-prose p strong { color: var(--ink); }

/* 参考价格里的每一行做成条目，不再是一坨文字 */
.route-price-box p { margin: 0 0 2px; padding: 12px 16px; background: var(--paper); border-left: 3px solid var(--orange); font-family: var(--display); font-size: 17px; }
.route-price-box p:last-child { margin-bottom: 0; }
.route-price-box { padding: 0; border: 1px solid var(--line); border-top: 3px solid var(--orange); background: var(--line); display: grid; gap: 2px; }

.route-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.route-fact { padding: 18px 20px; background: var(--paper); }
.route-fact span { display: block; margin-bottom: 10px; color: #8b9799; font-size: 11px; font-weight: 700; letter-spacing: .4px; }
.route-fact strong { display: block; font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.5; }

.route-price-box { padding: 22px 24px; border: 1px solid var(--line); border-top: 3px solid var(--orange); background: var(--white); }
.route-price-box p { margin: 0 0 10px; font-family: var(--display); font-size: 18px; }
.route-price-box p:last-child { margin-bottom: 0; }
.route-note { margin: 16px 0 0; color: #7c8a8c; font-size: 12px; line-height: 1.85; }

.route-prose { max-width: 860px; }
.route-prose p { margin: 0 0 16px; color: var(--ink-soft); font-size: 15px; line-height: 1.95; }

.route-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); }
.route-list li { position: relative; padding: 17px 22px 17px 46px; background: var(--paper); color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.route-list li::before { content: ""; position: absolute; left: 22px; top: 23px; width: 8px; height: 8px; background: var(--orange); }

.route-faq { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.route-faq-item { padding: 20px 24px; background: var(--paper); }
.route-faq-item h3 { margin: 0 0 10px; font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.55; }
.route-faq-item p { margin: 0; color: #6b7b7d; font-size: 13px; line-height: 1.9; }

.route-cta { padding: 30px 30px; border: 1px solid var(--line); border-top: 4px solid var(--orange); background: var(--cream); }
.route-cta h2 { margin: 0 0 12px; font-family: var(--display); font-size: 28px; font-weight: 600; }
.route-cta p { max-width: 640px; margin: 0 0 22px; color: #6b7b7d; font-size: 13px; line-height: 1.9; }
.route-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------------------
   07 留言墙（公开展示的留言与回复）
   -------------------------------------------------------------------------- */

.message-wall { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.message-wall-item { padding: 24px 26px; background: var(--paper); }
.message-wall-item:hover { background: var(--white); }
.message-wall-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.message-wall-head b { font-family: var(--display); font-size: 17px; font-weight: 600; }
.message-wall-head time { color: #9aa5a5; font-size: 11px; }
.message-wall-route { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 12px; padding: 5px 10px; background: rgba(166, 215, 200, .3); color: var(--mint-deep); font-size: 11px; font-weight: 800; }
.message-wall-route svg { width: 13px; height: 13px; }
.message-wall-body { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.9; white-space: pre-line; }
.message-wall-reply { margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--mint-deep); background: rgba(166, 215, 200, .16); }
.message-wall-reply span { display: block; margin-bottom: 6px; color: var(--mint-deep); font-size: 10px; font-weight: 800; letter-spacing: .6px; }
.message-wall-reply p { margin: 0; color: var(--ink-soft); font-size: 12.5px; line-height: 1.85; }

.message-form-card { padding: 26px 24px; border: 1px solid var(--line); border-top: 3px solid var(--orange); background: var(--white); }
.message-form-card h3 { margin: 0 0 8px; font-family: var(--display); font-size: 22px; font-weight: 600; }
.message-form-card > p { margin: 0 0 20px; font-size: 12px; line-height: 1.8; }

/* --------------------------------------------------------------------------
   08 首页与线路页的动态区块
   -------------------------------------------------------------------------- */

.activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
.activity-col { min-width: 0; }
.activity-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.activity-head h3 { margin: 0; font-family: var(--display); font-size: 21px; font-weight: 600; }
.activity-head-side { display: inline-flex; align-items: center; gap: 12px; color: #8b9799; font-size: 11px; }
.activity-more { color: var(--orange-deep); font-size: 11px; font-weight: 800; }
.activity-feed, .activity-messages { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.activity-feed:empty, .activity-messages:empty { display: none; }

/* 这几块由脚本按数据有无来切换 hidden。
   注意：元素上写了 display:grid / flex 时，浏览器默认的 [hidden]{display:none} 会被覆盖，
   必须显式声明，否则「隐藏」根本不生效。 */
.activity-section[hidden],
.activity-col[hidden],
.activity-head[hidden],
.activity-feed[hidden],
.activity-messages[hidden] { display: none !important; }
.activity-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 18px; background: var(--paper); }
.activity-item:hover { background: var(--white); }
.activity-kind { padding: 3px 8px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.activity-kind-route { background: rgba(166, 215, 200, .38); color: var(--mint-deep); }
.activity-kind-article { background: rgba(237, 107, 61, .14); color: var(--orange-deep); }
.activity-item h4 { margin: 0 0 5px; font-family: var(--display); font-size: 16px; font-weight: 600; line-height: 1.5; }
.activity-item p { margin: 0; color: #7c8a8c; font-size: 11.5px; line-height: 1.75; }
.activity-item time { color: #9aa5a5; font-size: 11px; white-space: nowrap; }
.activity-empty { margin: 0; padding: 26px 18px; background: var(--paper); color: #8b9799; font-size: 12px; text-align: center; }

.activity-message { padding: 16px 18px; background: var(--paper); }
.activity-message:hover { background: var(--white); }
.activity-message-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.activity-message-head b { font-family: var(--display); font-size: 15px; font-weight: 600; }
.activity-message-head time { color: #9aa5a5; font-size: 11px; }
.activity-message-route { margin: 0 0 8px; color: var(--mint-deep); font-size: 11px; font-weight: 800; }
.activity-message-body { margin: 0; color: var(--ink-soft); font-size: 12.5px; line-height: 1.8; }
.activity-message-reply { margin: 10px 0 0; padding-left: 12px; border-left: 3px solid var(--mint); color: #6b7b7d; font-size: 12px; line-height: 1.8; }
.activity-message-reply span { display: block; margin-bottom: 3px; color: var(--mint-deep); font-size: 10px; font-weight: 800; }

/* 「最新动态」归档页（updates.html）：复用首页条目的样式，但整体放大一档，
   毕竟是独立页面，信息可以舒展一些。 */
.updates-feed .activity-item { padding: 20px 22px; }
.updates-feed .activity-item h4 { font-size: 17px; }
.updates-feed .activity-item p { font-size: 12.5px; }
.updates-feed .activity-kind { padding: 4px 10px; }

/* 线路页的动态线路目录行 */
.directory-row.is-dynamic .directory-type { background: rgba(166, 215, 200, .35); }
.directory-row.is-dynamic b.directory-type { color: var(--mint-deep); }

/* --------------------------------------------------------------------------
   09 响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .article-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dynamic-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 30px; }
  .article-detail-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; }
  .route-split { grid-template-columns: minmax(0, 1fr) 280px; gap: 30px; }
}

@media (max-width: 900px) {
  .dynamic-layout,
  .article-detail-layout,
  .route-split { grid-template-columns: minmax(0, 1fr); }
  .dynamic-aside, .article-side, .route-aside { position: static; }
  .route-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-list { grid-template-columns: minmax(0, 1fr); }
  .activity-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
}

@media (max-width: 720px) {
  .article-list { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .route-facts { grid-template-columns: minmax(0, 1fr); }
  .md-preview { font-size: 14.5px; }
  /* 小节标题是 h3（## 映射而来），窄屏上缩小一档 */
  .md-preview h3 { font-size: 21px; margin: 34px 0 16px; gap: 10px; }
  .md-preview h3::before { width: 26px; height: 26px; font-size: 13px; }
  .md-preview h2 { font-size: 22px; margin: 30px 0 14px; }
  .md-preview h4 { font-size: 16.5px; }
  .md-preview .article-faq-item { padding: 15px 16px; }
  .route-prose p { padding-left: 13px; font-size: 14.5px; }
  .route-price-box p { font-size: 16px; padding: 11px 14px; }
  .route-cta { padding: 26px 22px; }
  .route-cta h2 { font-size: 23px; }
}
