/* ==========================================================================
   天扬物流 · 新增内容模块样式
   --------------------------------------------------------------------------
   只服务于后台发布出来的三类内容：
     · 物流资讯（列表 news.html / 详情 news-detail.html）
     · 已发布线路详情（published-route.html）
     · 客户留言墙与留言表单（messages.html）
   以及首页的「最新动态」区块。

   前台既有页面使用的是 styles.css + pages.css，这里不改动它们，
   避免影响已经调好的版式；本文件通过 body[data-page] 精确作用到新页面。
   ========================================================================== */

:root {
  --m-ink: #123047;
  --m-teal: #18877d;
  --m-teal-dark: #10635c;
  --m-coral: #e2763b;
  --m-sand: #f6cf66;
  --m-paper: #f3f0e9;
  --m-card: #fbfaf6;
  --m-line: #d5cec1;
  --m-muted: #61727d;
}

/* ---------------------------------------------------------------- 页脚 */

/*
   页脚结构由 footer.js 渲染（19 个页面共用一个出处）。
   <footer> 标签本身保留，背景色由各页面原有 CSS 决定；这里只负责内部排版。
*/
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 40px;
  align-items: start;
  padding-bottom: 28px;
}

.footer-col h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .5px;
}

.footer-col h2::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  margin-top: 8px;
  background: var(--m-sand);
}

.footer-col ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col ul a {
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  transition: color .15s, padding-left .15s;
}

.footer-col ul a:hover {
  color: #fff;
  padding-left: 4px;
}

/* ---- 品牌栏 ---- */

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-brand-text b {
  display: block;
  color: #fff;
  font-size: 19px;
  line-height: 1.2;
}

.footer-brand-text small {
  color: rgba(255, 255, 255, .5);
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 1.6px;
}

.footer-lead {
  max-width: 330px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  line-height: 1.9;
}

.footer-meta {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .38);
  font-size: 11px;
  line-height: 1.8;
}

/* ---- 联系栏 ---- */

.footer-phone {
  display: block;
  margin-bottom: 16px;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .5px;
}

.footer-phone:hover {
  color: var(--m-sand);
}

.footer-facts {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
}

.footer-facts li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.footer-facts span {
  color: rgba(255, 255, 255, .38);
  font-size: 11px;
}

.footer-facts b {
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.footer-facts .mono {
  font-family: var(--mono);
  letter-spacing: .3px;
}

/* 页脚里的复制微信号按钮：和底部栏同款交互，样式更收敛 */
.footer-wechat {
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 20px;
  color: rgba(255, 255, 255, .8);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  transition: color .16s, border-color .16s, background .16s;
}

.footer-wechat:hover {
  color: #123047;
  border-color: var(--m-sand);
  background: var(--m-sand);
}

.footer-wechat.is-copied {
  color: #123047;
  border-color: var(--m-teal);
  background: var(--m-teal);
}

/* ---- 底部版权行 ---- */

/* 三块：版权 / ICP 备案号 / 管理入口。
   原来只有两块（版权 + 管理入口），space-between 正好一左一右；
   加了备案号之后，把管理入口显式推到最右，三块仍是左中右的秩序。 */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, .38);
  font-size: 11px;
}

/* ICP 备案号：必须可见、且能点开工信部核验页。
   颜色与其它说明文字同一档，不抢视觉但要清晰可读。 */
.footer-icp a {
  color: rgba(255, 255, 255, .48);
  text-decoration: none;
  transition: color .16s;
}

.footer-icp a:hover {
  color: var(--m-sand);
  text-decoration: underline;
}

.footer-admin {
  margin: 0;
  /* 三块布局下把管理入口推到最右 */
  margin-left: auto;
}

.footer-admin a {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 20px;
  color: rgba(255, 255, 255, .55);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  transition: color .16s, border-color .16s, background .16s;
}

.footer-admin a::before {
  content: "⚙";
  font-size: 12px;
  line-height: 1;
}

.footer-admin a:hover {
  color: #fff;
  border-color: var(--m-sand);
  background: rgba(246, 207, 102, .14);
}

/* 平板：品牌栏占满一行，其余三栏并排 */
@media (max-width: 1000px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .footer-col-brand {
    grid-column: 1 / -1;
  }

  .footer-lead {
    max-width: none;
  }
}

/* 手机：单列堆叠 */
@media (max-width: 620px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ---------------------------------------------------------------- 移动端底部栏 */

/*
   底部栏原本是「1fr 1fr」两列固定分配，加了「立即留言」后变成三个按钮。

   这里必须用 flex 而不是固定三列 grid：
   各页面底部栏原本有的是 2 格、有的是 3 格（about.html、index.html 原本只有
   「电话咨询 + 微信咨询」两个）。用 grid-template-columns 写死三列时，
   2 格页面的第 3 个按钮会被塞进隐式行，把「电话咨询」挤出可视区域 ——
   手机上就看不到电话了，这正是实测截图里的问题。
   flex + flex-grow 会按实际按钮个数自动等分，2 个、3 个都不会错位。
*/
@media (max-width: 800px) {
  .mobile-bar {
    display: flex;
    height: 60px;
    box-shadow: 0 -6px 18px rgba(8, 25, 36, .18);
  }

  .mobile-bar > * {
    flex: 1 1 0;
    min-width: 0;
    display: grid;
    place-items: center;
    padding: 0 6px;
    border: 0;
    color: #fff;
    background: var(--m-ink);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
  }

  /* 第一个格子（立即留言）略宽一点，主按钮更醒目 */
  .mobile-bar > :first-child {
    flex-grow: 1.15;
  }

  /* 「立即留言」用珊瑚色主按钮，和「电话咨询」拉开层级 */
  .mobile-bar [data-quick-message] {
    background: var(--m-coral);
  }

  .mobile-bar [data-quick-message]:active {
    background: #c85b2e;
  }

  /* 复制微信：海青色，和电话/留言区分开；复制成功后整格变亮一点作为反馈 */
  .mobile-bar [data-copy-wechat] {
    background: var(--m-teal);
  }

  .mobile-bar [data-copy-wechat]:active,
  .mobile-bar [data-copy-wechat].is-copied {
    background: #0f6b62;
  }

  /* 底部栏是 fixed 的，会和页面最后一段内容重叠；给 body 留出等高的空白 */
  body {
    padding-bottom: 60px;
  }
}

/* ---------------------------------------------------------------- 立即留言弹窗 */

.quick-message-modal {
  width: min(460px, calc(100% - 24px));
  max-height: 88vh;
  overflow-y: auto;
  padding: 30px 26px 26px;
}

.quick-message-modal h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.3;
}

.quick-message-lead {
  margin: 0 0 22px;
  color: var(--m-muted);
  font-size: 12px;
  line-height: 1.85;
}

.quick-message-modal form {
  display: grid;
  gap: 14px;
  margin: 0;
}

.quick-message-modal label {
  display: grid;
  gap: 7px;
  color: var(--m-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .4px;
}

.quick-message-modal label em {
  color: var(--m-coral);
  font-style: normal;
}

.quick-message-modal input,
.quick-message-modal textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--m-line);
  border-radius: 2px;
  background: #fff;
  color: var(--m-ink);
  font-size: 15px; /* ≥16px 可避免 iOS 聚焦时自动放大；这里 15px 配 viewport 已够用 */
  font-weight: 400;
  letter-spacing: 0;
  outline: none;
}

.quick-message-modal textarea {
  min-height: 84px;
  line-height: 1.8;
  resize: vertical;
}

.quick-message-modal input:focus,
.quick-message-modal textarea:focus {
  border-color: var(--m-coral);
  box-shadow: 0 0 0 3px rgba(226, 118, 59, .15);
}

.quick-message-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quick-message-honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.quick-message-note {
  min-height: 18px;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}

.quick-message-note.ok { color: var(--m-teal-dark); }
.quick-message-note.error { color: #c0392b; }

.quick-message-submit {
  min-height: 50px;
  border: 0;
  border-radius: 2px;
  color: #fff;
  background: var(--m-coral);
  font-size: 15px;
  font-weight: 800;
}

.quick-message-submit:hover { background: #c85b2e; }
.quick-message-submit:disabled { opacity: .6; cursor: not-allowed; }

.quick-message-alt {
  margin: 0;
  color: var(--m-muted);
  font-size: 11px;
  line-height: 1.9;
  text-align: center;
}

.quick-message-alt a {
  color: var(--m-teal);
  font-weight: 800;
}

@media (max-width: 400px) {
  .quick-message-modal { padding: 26px 18px 22px; }
  .quick-message-row { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- 通用小件 */

.m-eyebrow {
  margin: 0 0 10px;
  color: var(--m-teal);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.8px;
}

.m-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 11px;
  color: var(--m-teal-dark);
  background: #e4efee;
  font-size: 11px;
  font-weight: 800;
}

.m-tag.coral {
  color: #a8461c;
  background: #fbe6d8;
}

.m-tag.gray {
  color: var(--m-muted);
  background: #ece9e1;
}

.m-state {
  padding: 46px 20px;
  border: 1px dashed var(--m-line);
  background: var(--m-card);
  color: var(--m-muted);
  font-size: 13px;
  line-height: 1.9;
  text-align: center;
}

.m-state b {
  display: block;
  margin-bottom: 6px;
  color: var(--m-ink);
  font-size: 15px;
}

.m-skeleton {
  height: 100%;
  min-height: 96px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ece9e1 25%, #e0dcd1 37%, #ece9e1 63%);
  background-size: 400% 100%;
  animation: m-skeleton 1.3s ease-in-out infinite;
}

@keyframes m-skeleton {
  from { background-position: 100% 50%; }
  to { background-position: 0 50%; }
}

/* ---------------------------------------------------------------- 资讯列表 */

.m-news-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--m-line);
}

.m-chip {
  min-height: 34px;
  padding: 0 15px;
  border: 1px solid var(--m-line);
  border-radius: 17px;
  color: var(--m-muted);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  transition: color .16s, background .16s, border-color .16s;
}

.m-chip:hover {
  color: var(--m-ink);
  border-color: var(--m-ink);
}

.m-chip.is-active {
  color: #fff;
  border-color: var(--m-teal);
  background: var(--m-teal);
}

.m-search {
  position: relative;
  margin-left: auto;
  width: min(260px, 100%);
}

.m-search input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 34px;
  border: 1px solid var(--m-line);
  border-radius: 2px;
  background: var(--m-card);
  font-size: 12px;
  outline: none;
}

.m-search input:focus {
  border-color: var(--m-teal);
  box-shadow: 0 0 0 3px rgba(24, 135, 125, .13);
}

.m-search::before {
  content: "⌕";
  position: absolute;
  top: 50%;
  left: 12px;
  color: var(--m-muted);
  font-size: 15px;
  transform: translateY(-50%);
}

.m-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.m-news-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--m-line);
  background: var(--m-card);
  box-shadow: 0 8px 0 #ded9ce;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}

.m-news-card:hover {
  border-color: var(--m-teal);
  box-shadow: 0 10px 0 #d3cdc0;
  transform: translateY(-3px);
}

.m-news-card .cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #1d5260, #123047);
}

.m-news-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.m-news-card .cover i {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: rgba(255, 255, 255, .55);
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 1.4px;
}

.m-news-card .body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 20px 20px 22px;
}

.m-news-card header {
  display: flex;
  gap: 8px;
  align-items: center;
}

.m-news-card time {
  margin-left: auto;
  color: var(--m-muted);
  font-family: Arial, sans-serif;
  font-size: 11px;
}

.m-news-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
}

.m-news-card h3 a:hover {
  color: var(--m-teal);
}

.m-news-card p {
  flex: 1;
  margin: 0;
  color: var(--m-muted);
  font-size: 12px;
  line-height: 1.8;
}

/* 注意：页面级的 footer 元素有全局样式（styles.css 里的 `footer{...}`），
   所以卡片内部底部栏一律用 div.foot，不要用 footer 标签。 */
.m-news-card .foot {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #e6e1d6;
  color: var(--m-muted);
  font-size: 11px;
}

.m-news-card .foot a {
  margin-left: auto;
  color: var(--m-teal);
  font-weight: 800;
}

.m-news-card.is-featured {
  grid-column: span 2;
  flex-direction: row;
}

.m-news-card.is-featured .cover {
  width: 42%;
  aspect-ratio: auto;
}

.m-news-card.is-featured .body {
  padding: 26px 28px;
}

.m-news-card.is-featured h3 {
  font-size: 23px;
}

.m-pager {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 42px;
}

.m-pager button {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--m-line);
  background: var(--m-card);
  color: var(--m-muted);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.m-pager button:hover:not(:disabled) {
  color: var(--m-ink);
  border-color: var(--m-ink);
}

.m-pager button[aria-current="true"] {
  color: #fff;
  border-color: var(--m-teal);
  background: var(--m-teal);
}

.m-pager button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.latest-routes { padding-top:40px; padding-bottom:60px; }

/* 首页「最新动态」：左边线路 + 资讯混合流，右边客户留言墙 */
.home-dynamic-layout {
  display: grid;
  /* 右栏从 1fr 放宽到 1.3fr。
     原来 2fr:1fr 时右栏只有 385px，一条带回复的留言就撑到 350px 高，
     整个右栏被拉成 1:3 的细长条，左侧混合流早早就结束，留出 300px 以上空白。 */
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr);
  gap: 26px;
  align-items: start;
}

.home-dynamic-layout #dynamicGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* 一组卡片撑不满整行时（例如 5 条），按 1fr 均分会留一个空格子。
   用 auto-fit + minmax 让最后一行的卡片自动铺满，不留空洞。 */
.home-dynamic-layout #dynamicGrid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.home-message-wall {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.home-message-wall > h3 { margin: 0; color: #fff; font-size: 16px; }

/* 留言卡片默认带 6px 浅灰投影（为浅色页面设计），在深色区块里会变成一道突兀的浅色横带 */
.home-message-wall .m-wall-item { margin: 0; box-shadow: none; }

/* 首页右栏的紧凑版留言：字号收一点、行距紧一点，避免把右栏拉长 */
.home-message-wall .m-wall-item.is-compact { padding: 18px 18px 16px; }
.home-message-wall .m-wall-item.is-compact .ask { font-size: 12px; line-height: 1.85; }
.home-message-wall .m-wall-item.is-compact .answer { margin-top: 12px; padding: 12px 13px; font-size: 12px; line-height: 1.85; }

/* 「等待回复」用沙金底，和「已回复」的海青底区分开。
   原来是内联样式，挪到 CSS 里便于统一维护。 */
.home-message-wall .m-wall-item .answer.is-pending,
.m-wall-item .answer.is-pending {
  border-left-color: var(--m-sand);
  background: #fdf7e6;
  color: #6b5a24;
}

.home-message-wall .m-wall-item .answer.is-pending strong,
.m-wall-item .answer.is-pending strong { color: #8a6a12; }

.wall-more {
  display: inline-block;
  margin-top: 10px;
  color: var(--m-teal);
  font-size: 11px;
  font-weight: 800;
}

.wall-more:hover { text-decoration: underline; }

/* 留言墙底部的「立即留言」入口。
   现在是一个按钮（点了就地弹出留言表单，不跳转页面）。
   沙金实心 + 深色字，压在深蓝背景上足够醒目；显式留出间距和层级，不会被卡片边缘压住。 */
.home-message-wall > .home-wall-cta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  padding: 13px 18px;
  border: 0;
  border-radius: 2px;
  color: #123047;
  background: var(--m-sand);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: background .16s, transform .1s;
}

.home-message-wall > .home-wall-cta:hover { background: #f0c14a; }
.home-message-wall > .home-wall-cta:active { transform: translateY(1px); }

.home-message-wall > .home-wall-cta:hover { background: #f0c14a; }

@media(max-width:1000px) { .home-dynamic-layout { grid-template-columns:1fr; } }
@media(max-width:500px) { .home-dynamic-layout #dynamicGrid { grid-template-columns:1fr; } }

/* ---------------------------------------------------------------- 文章详情 */

.m-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}

.m-article {
  padding: 40px 44px;
  border: 1px solid var(--m-line);
  background: var(--m-card);
  box-shadow: 0 8px 0 #ded9ce;
  font-size: 15px;
  line-height: 2;
}

/* 正文内部的排版（标题、列表、表格、引用、问答卡片、代码块）
   统一由 markdown.css 的 .md-content 负责 —— 前台文章页和后台编辑器预览加载的是同一个文件。
   这里只保留文章外框，不要再写 .m-article h2/p/table 之类的规则，
   否则就会出现「预览和前台不一致」以及「改了一处不生效」的问题。 */
.m-article-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--m-line);
  color: var(--m-muted);
  font-size: 12px;
}

.m-article-foot .m-tag {
  margin-right: 4px;
}

.m-side {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 24px;
}

.m-side-card {
  padding: 24px;
  border: 1px solid var(--m-line);
  background: var(--m-card);
  box-shadow: 0 8px 0 #ded9ce;
}

.m-side-card.dark {
  color: #fff;
  border-color: #1d5260;
  background: #1d5260;
  box-shadow: 0 8px 0 #16323c;
}

.m-side-card h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.m-side-card.dark p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  line-height: 1.85;
}

.m-side-card .m-side-phone {
  display: block;
  margin-bottom: 14px;
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .5px;
}

.m-side-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.m-side-list a {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--m-line);
}

.m-side-list li:last-child a {
  padding-bottom: 0;
  border-bottom: 0;
}

.m-side-list b {
  font-size: 13px;
  line-height: 1.6;
}

.m-side-list a:hover b {
  color: var(--m-teal);
}

.m-side-list small {
  color: var(--m-muted);
  font-size: 11px;
}

/* ---------------------------------------------------------------- 线路详情 */

.m-route-hero-line {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  font-size: clamp(24px, 3.4vw, 44px);
  font-weight: 900;
  letter-spacing: -1px;
}

.m-route-hero-line i {
  color: var(--m-sand);
  font-family: Arial, sans-serif;
  font-size: .7em;
  font-style: normal;
}

.m-route-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  margin-top: 30px;
  background: rgba(255, 255, 255, .18);
}

.m-route-metrics div {
  padding: 18px 20px;
  background: #173f4a;
}

.m-route-metrics small {
  display: block;
  color: rgba(255, 255, 255, .55);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.m-route-metrics b {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
}

.m-route-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}

.m-block {
  margin-bottom: 22px;
  padding: 30px 34px;
  border: 1px solid var(--m-line);
  background: var(--m-card);
  box-shadow: 0 8px 0 #ded9ce;
}

.m-block h2 {
  margin: 0 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--m-teal);
  font-size: 21px;
}

.m-block p {
  margin: 0;
  color: #22384a;
  font-size: 14px;
  line-height: 2;
}

.m-block .m-placeholder {
  color: var(--m-muted);
  font-size: 13px;
}

.m-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.m-highlights li {
  padding: 9px 14px;
  border-left: 3px solid var(--m-coral);
  background: #fbe6d8;
  color: #8f3c16;
  font-size: 12px;
  font-weight: 700;
}

.m-faq details {
  border: 1px solid var(--m-line);
  border-bottom: 0;
  background: var(--m-card);
}

.m-faq details:last-child {
  border-bottom: 1px solid var(--m-line);
}

.m-faq summary {
  padding: 15px 20px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.m-faq summary::marker {
  color: var(--m-teal);
}

.m-faq details[open] summary {
  color: var(--m-teal);
}

.m-faq .answer {
  padding: 0 20px 18px;
  color: var(--m-muted);
  font-size: 13px;
  line-height: 1.95;
  white-space: pre-wrap;
}

.m-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, .6);
  font-size: 12px;
}

.m-breadcrumb a:hover {
  color: #fff;
}

/* ---------------------------------------------------------------- 留言模块 */

.m-message-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px;
  align-items: start;
}

.m-form {
  padding: 34px 36px;
  border: 1px solid var(--m-line);
  border-top: 4px solid var(--m-teal);
  background: var(--m-card);
  box-shadow: 0 8px 0 #ded9ce;
}

.m-form h2 {
  margin: 0 0 6px;
  font-size: 23px;
}

.m-form > p {
  margin: 0 0 22px;
  color: var(--m-muted);
  font-size: 12px;
  line-height: 1.8;
}

.m-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.m-form-grid .wide {
  grid-column: span 2;
}

/* 标签用 block 而不是 grid：这样「字段名 *」能在一行内显示，
   输入框靠 margin-top 与标签拉开距离（grid 会把 <em>*</em> 挤成单独一行）。 */
.m-form-grid label {
  display: block;
  color: var(--m-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .4px;
}

.m-form-grid label em {
  color: var(--m-coral);
  font-style: normal;
}

.m-form-grid input,
.m-form-grid select,
.m-form-grid textarea {
  width: 100%;
  min-height: 42px;
  margin-top: 7px;
  padding: 9px 12px;
  border: 1px solid var(--m-line);
  border-radius: 2px;
  background: #fff;
  color: var(--m-ink);
  font-size: 13px;
  outline: none;
}

.m-form-grid textarea {
  min-height: 112px;
  line-height: 1.8;
  resize: vertical;
}

.m-form-grid input:focus,
.m-form-grid select:focus,
.m-form-grid textarea:focus {
  border-color: var(--m-teal);
  box-shadow: 0 0 0 3px rgba(24, 135, 125, .13);
}

/* 前台留言表单不含图形验证码（限流 + 蜜罐字段已足够防刷），
   所以这里不再保留 .m-captcha 相关样式；验证码只用于后台登录页，
   样式在 admin/css/console.css 的 .captcha-img 里。 */

.m-honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.m-form-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 20px;
}

.m-form-note {
  min-height: 20px;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
}

.m-form-note.ok { color: var(--m-teal-dark); }
.m-form-note.error { color: #c0392b; }

.m-wall {
  display: grid;
  gap: 16px;
}

.m-wall-item {
  padding: 22px 24px;
  border: 1px solid var(--m-line);
  border-left: 4px solid var(--m-teal);
  background: var(--m-card);
  box-shadow: 0 6px 0 #ded9ce;
}

.m-wall-item.pending {
  border-left-color: var(--m-coral);
}

.m-wall-item header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.m-wall-item header b {
  font-size: 14px;
}

.m-wall-item header time {
  margin-left: auto;
  color: var(--m-muted);
  font-family: Arial, sans-serif;
  font-size: 11px;
}

.m-wall-item .ask {
  margin: 0;
  color: #22384a;
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.m-wall-item .answer {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--m-teal);
  background: #eaf4f2;
  color: #1c4a47;
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.m-wall-item .answer strong {
  display: block;
  margin-bottom: 5px;
  color: var(--m-teal-dark);
  font-size: 11px;
  letter-spacing: .6px;
}

/* ---------------------------------------------------------------- 首页动态 */

.dynamic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* 整张卡片就是链接：点哪里都能进详情，鼠标移上去有明确反馈。
   之前只有底部「查看详情」那四个字可点，其余区域点不动，容易被当成坏了。 */
a.dynamic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 26px 24px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
  text-decoration: none;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .18s, box-shadow .18s;
}

a.dynamic-card:hover,
a.dynamic-card:focus-visible {
  border-color: var(--m-teal);
  background: rgba(24, 135, 125, .16);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -20px rgba(0, 0, 0, .8);
}

/* 悬停时标题变沙金色 + 详情胶囊变亮，进一步说明「这里可以点」 */
a.dynamic-card:hover h3,
a.dynamic-card:focus-visible h3 { color: var(--m-sand); }

a.dynamic-card:hover .more { background: var(--m-sand); color: #123047; }

.dynamic-card .kind {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--m-sand);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.4px;
}

.dynamic-card .kind i {
  padding: 2px 7px;
  border-radius: 9px;
  color: #123047;
  background: var(--m-sand);
  font-style: normal;
}

.dynamic-card h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.5;
  transition: color .18s;
}

.dynamic-card p {
  flex: 1;
  margin: 0;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  line-height: 1.85;
}

.dynamic-card .more-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
  color: rgba(255, 255, 255, .5);
  font-size: 11px;
}

/* 「查看详情」做成胶囊，作为卡片整体可点击的显式提示 */
.dynamic-card .more {
  margin-left: auto;
  padding: 5px 12px;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  transition: background .18s, color .18s;
}

.dynamic-section {
  padding: 78px 0;
  background: #123047;
  color: #fff;
}

.dynamic-head {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}

.dynamic-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.25;
}

.dynamic-head p {
  max-width: 520px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .6);
  font-size: 13px;
  line-height: 1.86;
}

.dynamic-head .links {
  display: flex;
  gap: 10px;
}

.dynamic-head .links a {
  padding: 11px 20px;
  border: 1px solid rgba(255, 255, 255, .3);
  font-size: 12px;
  font-weight: 800;
}

.dynamic-head .links a:hover {
  color: #123047;
  border-color: var(--m-sand);
  background: var(--m-sand);
}

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

@media (max-width: 1080px) {
  .m-article-layout,
  .m-route-body,
  .m-message-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .m-side {
    position: static;
  }
  .m-news-grid,
  .dynamic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .m-news-card.is-featured {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .m-news-grid,
  .dynamic-grid {
    grid-template-columns: 1fr;
  }
  .m-news-card.is-featured {
    grid-column: auto;
    flex-direction: column;
  }
  .m-news-card.is-featured .cover {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .m-news-card.is-featured h3 {
    font-size: 19px;
  }
  .m-article {
    padding: 26px 20px;
  }
  .m-block {
    padding: 24px 20px;
  }
  .m-form {
    padding: 26px 20px;
  }
  .m-form-grid {
    grid-template-columns: 1fr;
  }
  .m-form-grid .wide {
    grid-column: auto;
  }
  .m-route-metrics {
    grid-template-columns: 1fr;
  }
  .m-search {
    margin-left: 0;
    width: 100%;
  }
  .dynamic-section {
    padding: 56px 0;
  }
}
