/* ============================================================
   名达名片 · 新闻资讯页原型样式（news-list.html / news-detail.html 共用）
   视觉基准：06_新闻原型风格基准.md（品牌色/按钮/容器/断点）
   不引外部字体、不引外部图片，封面与配图全部 CSS 渐变占位
   ============================================================ */

/* ---------- 基础与变量 ---------- */
:root {
  --blue: #3762ec;          /* 主品牌蓝 */
  --blue-bright: #045afe;   /* 亮品牌蓝 */
  --blue-deep: #0056ff;
  --blue-deep2: #0052d9;
  --navy: #031537;          /* 页脚深蓝 */
  --orange: #ff7f08;
  --orange-deep: #de6c00;
  --text-main: #111111;
  --text-body: #333333;
  --text-sub: #666666;
  --text-mute: #7b818f;
  --line: #ededed;
  --line-blue: rgba(226, 235, 240, .5);
  --bg-soft: #f7f9ff;
  --bg-tag: #edf4ff;
  --radius: 20px;
}

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

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
  background: #fff;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }


/* 通用引导遮罩 */
.wechat-share-mask{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.75);z-index:9999;display:flex;align-items:flex-start;justify-content:flex-end;padding:16px;cursor:pointer}
.wechat-share-tip{max-width:280px;background:#fff;border-radius:12px;padding:16px 18px;text-align:center;box-shadow:0 8px 24px rgba(0,0,0,.2)}
.wechat-share-arrow{display:block;font-size:26px;color:#07c160;line-height:1;margin-bottom:6px}
.wechat-share-tip p{margin:0 0 10px;font-size:14px;color:#333;line-height:1.6}
.wechat-share-close{display:inline-block;font-size:13px;color:#07c160;border:1px solid #07c160;border-radius:16px;padding:3px 14px}
.share-manual-input{display:block;width:100%;box-sizing:border-box;margin:0 0 10px;padding:8px 10px;font-size:13px;color:#333;border:1px solid #dcdfe6;border-radius:6px;background:#f7f8fa}
/* 微信二维码分享弹窗 */
.wechat-qr-modal{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.6);z-index:9999;align-items:center;justify-content:center;padding:20px}
.wechat-qr-modal.show{display:flex}
.wechat-qr-card{width:280px;max-width:100%;background:#fff;border-radius:12px;padding:22px 20px 16px;text-align:center;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.wechat-qr-card h4{margin:0 0 12px;font-size:16px;color:#1b2a41}
.wechat-qr-box{width:200px;height:200px;margin:0 auto 10px;display:flex;align-items:center;justify-content:center}
.wechat-qr-box img,.wechat-qr-box canvas{display:block;width:200px;height:200px}
.wechat-qr-card p{margin:0 0 12px;font-size:13px;color:#888;line-height:1.6}
.wechat-qr-close{font-size:14px;color:#07c160;background:#fff;border:1px solid #07c160;border-radius:18px;padding:5px 22px;cursor:pointer}
.qr-fail{font-size:13px;color:#e54d42;line-height:1.6}


/* ---------- 顶部固定导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  height: 80px;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 80px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 36px; width: auto; }
.brand .brand-fallback {
  display: none;
  font-size: 20px; font-weight: 700; color: var(--blue);
}
.brand img { /* 图片加载失败时由 onerror 隐藏，退化文字 */ }

.main-nav { display: flex; align-items: center; gap: 28px; flex: 1; }
.main-nav > .nav-item { position: relative; }
.nav-link {
  font-size: 14px; color: var(--text-main);
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 0; cursor: pointer;
}
.nav-link:hover { color: var(--blue-bright); }
.nav-link .caret { font-size: 12px; color: var(--text-mute); }
.nav-item.active > .nav-link { color: var(--blue-bright); font-weight: 600; }

/* 下拉面板 */
.nav-dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 220px; background: #fff;
  border: 1px solid var(--line-blue); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(3, 21, 55, .12);
  padding: 10px;
  opacity: 0; visibility: hidden; transition: all .2s ease;
}
.nav-item:hover .nav-dropdown,
.nav-item.open .nav-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown a {
  display: block; font-size: 14px; color: var(--text-body);
  padding: 9px 14px; border-radius: 8px; white-space: nowrap;
}
.nav-dropdown a:hover { background: var(--bg-tag); color: var(--blue-bright); }
.nav-dropdown.wide { min-width: 560px; }
.nav-dropdown .dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }

/* 右侧操作区 */
.header-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-phone { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-main); font-weight: 600; }
.phone-dot {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  flex-shrink: 0;
}
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 21px;
  border: 1px solid var(--blue-bright); border-radius: 100px;
  color: var(--blue-bright); font-size: 14px; background: #fff;
  transition: all .2s ease;
}
.btn-outline:hover { background: var(--bg-tag); }
.btn-solid {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 26px;
  border: none; border-radius: 100px;
  background: var(--blue); color: #fff; font-size: 14px;
  box-shadow: 0 10px 20px rgba(0, 102, 255, .12);
  transition: all .2s ease; cursor: pointer;
}
.btn-solid:hover { background: var(--blue-bright); transform: translateY(-2px); }

/* 汉堡按钮（移动端） */
.nav-toggle {
  display: none;
  width: 40px; height: 40px; border: none; background: none; cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 9px; width: 22px; height: 2px;
  background: var(--text-main); border-radius: 2px; transition: all .25s;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
body.nav-open .nav-toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ---------- 列表页 Banner ---------- */
.news-banner {
  background: linear-gradient(135deg, #edf4ff 0%, #f7f9ff 55%, #ffffff 100%);
  padding: 100px 0 56px;
}
.breadcrumb { font-size: 13px; color: var(--text-sub); margin-bottom: 18px; line-height: 2;}
.breadcrumb a:hover { color: var(--blue-bright); }
.breadcrumb .sep { margin: 0 8px; color: #c3ccd9; }
.breadcrumb .current { color: var(--text-mute); }
.news-banner h1 {
  font-size: 32px; font-weight: 700; color: var(--text-main);
  letter-spacing: 1px; margin-bottom: 14px;
}
.news-banner .subtitle { font-size: 15px; color: var(--text-sub); }

/* ---------- 分类筛选条 ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 26px 0 25px;
}
.filter-tab {
  height: 36px; padding: 0 20px; border-radius: 100px;
  border: 1px solid var(--line); background: #fff;
  font-size: 14px; color: var(--text-body); cursor: pointer;
  transition: all .2s ease;
  display: flex; justify-content: center; align-items: center;
}
.filter-tab:hover { border-color: var(--blue-bright); color: var(--blue-bright); }
.filter-tab.active {
  background: var(--blue); border-color: var(--blue); color: #fff;
}

/* ---------- 主体布局 ---------- */
.layout {
  display: flex; gap: 32px;
  padding: 28px 0 72px;
  align-items: flex-start;
}
.feed { flex: 1; min-width: 0; }

/* 卡片网格 */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.news-card {
  background: linear-gradient(0deg, rgba(186,216,243,.04), rgba(186,216,243,.2)), #fff;
  border: 1px solid rgba(226,235,240,.5);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 12px 30px rgba(55,98,236,.10);
}
.card-cover {
  position: relative; aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.card-cover .cover-watermark {
  font-size: 44px; font-weight: 700; color: rgba(255,255,255,.22);
  letter-spacing: 6px; user-select: none;
}
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-tag {
  align-self: flex-start;
  font-size: 12px; color: var(--blue-bright); background: var(--bg-tag);
  border-radius: 100px; padding: 3px 12px; margin-bottom: 12px;
}
.card-tag.orange { color: var(--orange-deep); background: #fff3e8; }
.card-title {
  font-size: 17px; font-weight: 600; color: var(--text-main);
  line-height: 1.45; margin-bottom: 10px;
}
.news-card:hover .card-title { color: var(--blue-bright); }
.card-meta { font-size: 13px; color: var(--text-mute); margin-bottom: 10px; }
.card-excerpt {
  font-size: 14px; color: var(--text-sub); line-height: 1.7;
  margin-bottom: 16px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-more {
  align-self: flex-start;
  display: inline-flex; align-items: center;
  height: 34px; padding: 0 18px;
  border: 1px solid var(--blue-bright); border-radius: 100px;
  color: var(--blue-bright); font-size: 14px;
}
.news-card.hidden { display: none; }

/* ---------- 侧栏 ---------- */
.sidebar { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; }
.side-box {
  background: #fff;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.side-title {
  font-size: 16px; font-weight: 700; color: var(--text-main);
  padding-left: 10px; border-left: 3px solid var(--blue);
  margin-bottom: 16px; line-height: 1.2;
}
.hot-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.hot-list li:last-child { border-bottom: none; }
.hot-num {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px;
  border-radius: 6px; background: var(--bg-tag); color: var(--blue-bright);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.hot-list a { font-size: 14px; color: var(--text-body); line-height: 1.55; }
.hot-list a:hover { color: var(--blue-bright); }

.cat-list li a {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--text-body);
  padding: 9px 4px; border-bottom: 1px dashed var(--line);
}
.cat-list li:last-child a { border-bottom: none; }
.cat-list li a:hover { color: var(--blue-bright); }
.cat-list .count { color: var(--text-mute); font-size: 13px; }

.consult-card {
  background: linear-gradient(135deg, #031537 0%, #045afe 110%);
  border-radius: var(--radius);
  padding: 26px 22px; color: #fff;
}
.consult-card h3 { font-size: 18px; margin-bottom: 8px; }
.consult-card p { font-size: 13px; color: rgba(255,255,255,.8); margin-bottom: 16px; }
.consult-card .btn-solid { width: 100%; margin-bottom: 12px; }
.consult-card .consult-phone {
  text-align: center; font-size: 15px; font-weight: 600; color: #fff;
}

/* ---------- 分页器 ---------- */
.pagination {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 48px;
}
.pagination a, .pagination span {
  min-width: 38px; height: 38px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; color: var(--text-body); background: #fff;
}
.pagination a:hover { border-color: var(--blue-bright); color: var(--blue-bright); }
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination .ellipsis { border: none; }

/* ---------- 详情页 ---------- */
.article-layout {
  display: flex; gap: 32px;
  padding: 106px 0 72px;
  align-items: flex-start;
}
.article-main { width: 760px; max-width: 100%; flex-shrink: 0; min-width: 0; }
.article-side { width: 320px; flex-shrink: 0; position: sticky; top: 104px; display: flex; flex-direction: column; gap: 24px; }

.article-head { margin-bottom: 26px; }
.article-head h1 {
  font-size: 30px; font-weight: 700; color: var(--text-main);
  line-height: 1.4; margin-bottom: 16px;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 13px; color: var(--text-mute);
}
.article-meta .meta-cat { color: var(--blue-bright); }

.figure-block {
  border-radius: 16px; overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  margin: 26px 0;
}
.figure-block .fig-alt {
  color: rgba(255,255,255,.85); font-size: 14px; letter-spacing: 1px;
  padding: 0 20px; text-align: center;
}

.article-body { font-size: 15px; color: var(--text-body); line-height: 1.9; }
.article-body h2 {
  font-size: 20px; font-weight: 700; color: var(--text-main);
  margin: 34px 0 14px; padding-left: 12px;
  border-left: 4px solid var(--blue); line-height: 1.4;
}
.article-body p { margin-bottom: 18px; }
.article-body a { color: var(--blue-bright); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--blue); }

/* 上一篇/下一篇 */
.pager-article {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 40px; padding: 20px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.pager-article a {
  flex: 1; font-size: 14px; color: var(--text-sub); line-height: 1.6;
}
.pager-article a:hover { color: var(--blue-bright); }
.pager-article .next { text-align: right; }
.pager-article .dir { display: block; font-size: 12px; color: var(--text-mute); margin-bottom: 4px; }

/* 相关阅读 */
.related-box { margin-top: 36px; }
.related-box h3 { font-size: 18px; font-weight: 700; color: var(--text-main); margin-bottom: 16px; }
.related-list a {
  display: block; font-size: 14px; color: var(--text-body);
  padding: 10px 14px; margin-bottom: 8px;
  background: var(--bg-soft); border-radius: 10px;
}
.related-list a:hover { color: var(--blue-bright); background: var(--bg-tag); }

/* 分享按钮 */
.share-row { display: flex; gap: 12px; margin-top: 28px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 100px;
  font-size: 14px; color: var(--text-body); background: #fff; cursor: pointer;
}
.share-btn:hover { border-color: var(--blue-bright); color: var(--blue-bright); }
.share-btn .icon-block {
  width: 16px; height: 16px; border-radius: 4px;
  background: var(--blue); display: inline-block;
}
.share-btn.wechat .icon-block { /* background: #22c35e; */ background: url('../images/wechat.svg') no-repeat; background-size: cover;}
.share-btn.wechat:hover{border-color: #07c160;color: #07c160;}

/* FAQ 手风琴 */
.faq-box { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 30px; }
.faq-box h3 { font-size: 20px; font-weight: 700; color: var(--text-main); margin-bottom: 18px; }
.faq-item {
  border: 1px solid var(--line-blue); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden; background: #fff;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 18px; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--text-main);
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q .faq-arrow {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg-tag); color: var(--blue-bright);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; transition: transform .2s ease;
}
.faq-item[open] .faq-arrow { transform: rotate(45deg); }
.faq-a { padding: 0 18px 16px; font-size: 14px; color: var(--text-sub); line-height: 1.8; }

/* 底部 CTA */
.bottom-cta {
  margin: 56px 0 0;
  background: linear-gradient(135deg, #3762ec 0%, #045afe 100%);
  border-radius: 24px;
  padding: 48px 32px; text-align: center; color: #fff;
}
.bottom-cta h2 { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.bottom-cta p { font-size: 15px; color: rgba(255,255,255,.85); margin-bottom: 26px; }
.cta-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-btns .btn-solid { height: 54px; padding: 0 36px; font-size: 16px; background: #fff; color: var(--blue); }
.cta-btns .btn-ghost {
  height: 54px; padding: 0 36px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.7); color: #fff; font-size: 16px;
  display: inline-flex; align-items: center;
}

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy); margin-top: 0; }
.footer-top {
  display: flex; gap: 40px; justify-content: space-between;
  padding: 56px 0 40px;
}
.footer-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; flex: 1; }
.footer-col h4 { font-size: 15px; color: #fff; margin-bottom: 14px; font-weight: 600; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,.62); padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-qr { display: flex; gap: 16px; flex-shrink: 0; }
.qr-item { text-align: center; }
.qr-box {
  width: 74px; height: 74px; border-radius: 8px; background: #f0f0f0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #999; margin-bottom: 6px;
}
.qr-item p { font-size: 12px; color: rgba(255,255,255,.6); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 1023px) {
  .main-nav, .header-right { display: none; }
  .nav-toggle { display: block; }
  .header-right {
    position: absolute; top: 80px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 5%;
  }
  .site-header.nav-open .header-right,
  .site-header.nav-open .main-nav { display: flex; }
  .main-nav {
    position: absolute; top: 80px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 5% 16px; max-height: calc(100vh - 80px); overflow-y: auto;
  }
  .main-nav > .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { padding: 14px 0; font-size: 15px; }
  .nav-dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; padding: 0 0 8px 16px; display: none;
  }
  .nav-item.open .nav-dropdown { display: block; }
  .nav-dropdown.wide .dd-grid { grid-template-columns: 1fr; }

  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .layout { flex-direction: column; }
  .sidebar { width: 100%; }
  .article-layout { flex-direction: column; }
  .article-main { width: 100%; }
  .article-side { width: 100%; position: static; }
  .footer-top { flex-direction: column; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .news-banner h1 { font-size: 24px; }
  .news-banner { padding: 40px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .article-head h1 { font-size: 22px; }
  .article-body h2 { font-size: 18px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-qr { flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; }
  .bottom-cta { padding: 36px 20px; }
  .bottom-cta h2 { font-size: 21px; }
  .pager-article { flex-direction: column; }
  .pager-article .next { text-align: left; }
  .article-layout{padding: 90px 0 72px;}
  
}
