/* ===========================================
   毅祥科技 智慧农业官网 - 主样式
   主题色: 科技农业蓝绿（简道云绿+深蓝）
   =========================================== */
:root {
  --primary: #1CB799;
  --primary-dark: #14867A;
  --primary-light: #2DD4BF;
  --secondary: #0F4C81;
  --secondary-dark: #0A3A60;
  --accent: #FFB627;
  --bg: #F7FAFC;
  --bg-soft: #EDF2F7;
  --surface: #ffffff;
  --border: #E2E8F0;
  --text: #1A202C;
  --text-muted: #4A5568;
  --text-light: #718096;
  --gradient-1: linear-gradient(135deg, #1CB799 0%, #0F4C81 100%);
  --gradient-2: linear-gradient(135deg, #2DD4BF 0%, #1CB799 100%);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.05);
  --shadow: 0 6px 24px rgba(15,76,129,0.08);
  --shadow-lg: 0 12px 48px rgba(15,76,129,0.16);
  --radius: 12px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

/* === 顶部导航 === */
.topbar {
  background: var(--secondary);
  color: #cbd5e0;
  font-size: 13px;
  padding: 6px 0;
}
.topbar .inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #cbd5e0; margin-right: 18px; }
.topbar a:hover { color: #fff; }
.topbar .contact { display: flex; gap: 18px; }

.header {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 100;
}
.header .inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 32px; height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 12px; font-weight: 700;
}
.logo img { height: 44px; width: auto; }
.logo .name { font-size: 18px; color: var(--secondary); }
.logo .name b { color: var(--primary); }
.logo .tag { font-size: 11px; color: var(--text-muted); font-weight: 400; margin-top: 2px; }
.nav { display: flex; gap: 24px; flex: 1; justify-content: center; }
.nav a {
  padding: 8px 4px; font-size: 15px; color: var(--text);
  position: relative; font-weight: 500;
}
.nav a.active, .nav a:hover { color: var(--primary); }
.nav a.active::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 24px; height: 3px; background: var(--primary); border-radius: 2px;
}
.nav-cta {
  background: var(--primary); color: #fff !important;
  padding: 10px 22px; border-radius: 999px; font-weight: 500;
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: #fff; }

/* === 主体容器 === */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--alt { background: var(--bg-soft); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .eyebrow {
  display: inline-block; background: rgba(28,183,153,0.12);
  color: var(--primary); padding: 4px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 1px; margin-bottom: 12px;
}
.section-header h2 {
  font-size: 36px; font-weight: 700; color: var(--secondary);
  margin-bottom: 12px; letter-spacing: 1px;
}
.section-header p { color: var(--text-muted); max-width: 720px; margin: 0 auto; font-size: 16px; }

/* === 按钮 === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 999px; font-weight: 500;
  transition: all .25s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* === 卡片 === */
.card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px;
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card h3 { color: var(--secondary); margin-bottom: 12px; font-size: 18px; }
.card p { color: var(--text-muted); font-size: 14px; }

/* === 网格 === */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* === 英雄区/轮播 === */
.hero {
  position: relative; height: 440px; overflow: hidden;
  background: var(--gradient-1); color: #fff;
}
.hero.collapsed { height: 56px; }
.hero.collapsed .hero-content, .hero.collapsed .hero-dots { display: none; }
.hero-close {
  position: absolute; top: 14px; right: 16px; z-index: 5;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.45); color: #fff; font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
}
.hero-close:hover { background: rgba(0,0,0,0.7); }
.hero-reopen {
  display: none; position: sticky; top: 72px; z-index: 80;
  background: var(--gradient-1); color: #fff;
  padding: 8px 24px; font-size: 13px; cursor: pointer; text-align: center;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-reopen:hover { opacity: 0.92; }
body.hero-hidden .hero-reopen { display: block; }
body.hero-hidden .hero { display: none; }
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; transition: opacity 1s;
}
.hero-slide.active { opacity: 1; }
.hero-slide::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.35);
}
.hero-content {
  position: relative; max-width: 1200px; margin: 0 auto; padding: 0 24px;
  width: 100%;
}
.hero h1 { font-size: 40px; font-weight: 800; letter-spacing: 2px; margin-bottom: 14px; }
.hero p { font-size: 16px; max-width: 600px; opacity: 0.92; margin-bottom: 24px; }
.hero .btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-dots {
  position: absolute; bottom: 18px; left: 0; right: 0; text-align: center;
}
.hero-dots .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.4); display: inline-block;
  margin: 0 4px; cursor: pointer; transition: all .3s;
}
.hero-dots .dot.active { background: #fff; width: 28px; border-radius: 5px; }
@media (max-width: 768px) {
  .hero { height: 360px; }
  .hero.collapsed { height: 48px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 14px; }
}

/* === 信任徽章 === */
.trust {
  background: var(--surface); padding: 36px 0; box-shadow: var(--shadow-sm);
}
.trust .inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center;
  gap: 36px; text-align: center;
}
.trust-item .num { font-size: 36px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.trust-item .num small { font-size: 16px; font-weight: 500; color: var(--secondary); }
.trust-item .label { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* === 资质证书 === */
.credentials {
  background: var(--surface); padding: 36px 0;
}
.credentials .inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 36px; align-items: center;
}
.credentials .box {
  background: var(--bg-soft); border-radius: var(--radius); padding: 24px; text-align: center;
  border: 2px dashed var(--primary-light);
}
.credentials .box h4 { color: var(--secondary); margin-bottom: 6px; font-size: 16px; }
.credentials .box p { color: var(--text-muted); font-size: 13px; }

/* === 案例/客户 logo === */
.partners {
  background: var(--bg-soft); padding: 48px 0;
}
.partners h4 { text-align: center; margin-bottom: 24px; color: var(--secondary); }
.partners-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; max-width: 1100px; margin: 0 auto; padding: 0 24px;
}
@media (max-width: 900px) { .partners-grid { grid-template-columns: repeat(3, 1fr); } }
.partner {
  background: var(--surface); padding: 16px 8px; border-radius: 8px;
  text-align: center; font-size: 13px; color: var(--text-muted);
  border: 1px solid var(--border); transition: all .2s;
}
.partner:hover { border-color: var(--primary); color: var(--secondary); }

/* === 优势对比表 === */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface); border-radius: var(--radius-lg); padding: 32px;
  border-top: 4px solid var(--primary);
}
.feature .icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.feature h3 { color: var(--secondary); margin-bottom: 12px; font-size: 18px; }
.feature p { color: var(--text-muted); font-size: 14px; }

/* === 报价表 === */
.price-table {
  background: var(--surface); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
}
.price-table table { width: 100%; border-collapse: collapse; }
.price-table th {
  background: var(--secondary); color: #fff; padding: 14px 18px;
  text-align: left; font-weight: 500;
}
.price-table td {
  padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--text-muted);
  font-size: 14px;
}
.price-table tr:hover { background: var(--bg-soft); }
.price-table .price { color: var(--accent); font-weight: 700; font-size: 16px; }
.price-table .tag-new {
  display: inline-block; background: var(--primary); color: #fff;
  font-size: 11px; padding: 2px 8px; border-radius: 4px; margin-right: 6px;
}

/* === 硬件/产品卡片 === */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
.product-card {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: all .3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card .img {
  height: 180px; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-card .img img { height: 100%; width: 100%; object-fit: contain; padding: 8px; }
.product-card .info { padding: 16px; }
.product-card .name { font-weight: 600; color: var(--secondary); margin-bottom: 4px; }
.product-card .spec { color: var(--text-light); font-size: 12px; margin-bottom: 6px; }
.product-card .price-tag { color: var(--accent); font-weight: 700; font-size: 16px; }

/* === 看板/截图 === */
.dashboard-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 900px) { .dashboard-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .dashboard-grid { grid-template-columns: 1fr; } }
.dash-card {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: all .3s;
}
.dash-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dash-card .img { height: 200px; overflow: hidden; background: var(--bg-soft); }
.dash-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.dash-card:hover .img img { transform: scale(1.05); }
.dash-card .info { padding: 16px; }
.dash-card h4 { color: var(--secondary); margin-bottom: 6px; font-size: 15px; }
.dash-card p { color: var(--text-muted); font-size: 13px; }

/* === 案例卡片 === */
.case-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.case-card .ct { color: var(--secondary); font-weight: 700; margin-bottom: 12px; font-size: 18px; }
.case-card .ct em { color: var(--primary); font-style: normal; }
.case-card .metric { display: inline-block; background: var(--bg-soft);
  color: var(--primary-dark); padding: 6px 14px; border-radius: 20px;
  margin: 4px 4px 0 0; font-size: 13px; font-weight: 600; }

/* === 表单 === */
.form { display: grid; gap: 14px; max-width: 560px; margin: 0 auto; }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 8px; transition: border-color .2s;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--primary);
}

/* === 新闻 === */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.news-card .cover { height: 160px; background: var(--gradient-2); }
.news-card .body { padding: 16px; }
.news-card h4 { color: var(--secondary); margin-bottom: 8px; }
.news-card .meta { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.news-card p { color: var(--text-muted); font-size: 14px; }

/* === 套餐卡 === */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; } }

/* === 首页视频区 === */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .video-grid { grid-template-columns: 1fr; } }
.video-card { background:#fff; border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow); border:1px solid var(--border); display:flex; flex-direction:column; }
.video-card .video-wrap { position:relative; aspect-ratio:16/9; background:#000; }
.video-card .video-wrap iframe,
.video-card .video-wrap video { position:absolute; inset:0; width:100%; height:100%; border:0; }
.video-card .info { padding:16px; }
.video-card .name { font-weight:600; color:var(--secondary); font-size:16px; }
.video-card .desc { color:var(--text-light); font-size:13px; margin-top:6px; line-height:1.6; }
.plan {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow);
  position: relative;
}
.plan.featured {
  background: var(--gradient-1); color: #fff; transform: scale(1.04);
}
.plan h3 { font-size: 22px; margin-bottom: 8px; }
.plan .sub { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.plan.featured .sub { color: rgba(255,255,255,0.85); }
.plan .price { font-size: 36px; font-weight: 800; margin: 12px 0; }
.plan .price small { font-size: 14px; font-weight: 400; }
.plan ul { margin: 20px 0; list-style: none; }
.plan li { padding: 6px 0; padding-left: 22px; position: relative; font-size: 14px; color: var(--text-muted); }
.plan li::before {
  content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 800;
}
.plan.featured li { color: rgba(255,255,255,0.92); }
.plan.featured li::before { color: var(--accent); }

/* === 页脚 === */
.footer {
  background: #0a1e3a; color: #cbd5e0; padding: 56px 0 24px;
}
.footer .inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 900px) { .footer .inner { grid-template-columns: 1fr 1fr; } }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 16px; }
.footer ul { list-style: none; }
.footer li { padding: 4px 0; font-size: 14px; }
.footer a:hover { color: var(--primary-light); }
.footer .bot {
  max-width: 1200px; margin: 32px auto 0; padding: 24px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: #718096;
}
.footer .partner-links { display: flex; gap: 12px; flex-wrap: wrap; }
.footer .partner-links a {
  border: 1px solid rgba(255,255,255,0.2); padding: 4px 10px; border-radius: 4px;
  font-size: 12px;
}

/* === 浮动反馈 === */
.float-actions {
  position: fixed; right: 18px; bottom: 80px; z-index: 90;
  display: flex; flex-direction: column; gap: 12px;
}
.float-actions button {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 18px;
  box-shadow: var(--shadow-lg); transition: transform .2s;
}
.float-actions button:hover { transform: scale(1.08); }
.float-actions button.alt { background: var(--secondary); }

/* === 路由动画 === */
.fade-in { animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* === 移动端汉堡菜单 === */
.menu-btn { display: none; font-size: 24px; padding: 8px; }
@media (max-width: 900px) {
  .nav, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .nav.open { display: flex; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 16px 24px;
    box-shadow: var(--shadow-lg); gap: 12px; }
  .nav-cta.open { display: inline-flex; position: absolute; top: 240px; left: 24px; }
}

/* === 模态框 === */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; z-index: 200;
  padding: 24px;
}
.modal {
  background: #fff; border-radius: var(--radius-lg);
  width: 100%; max-width: 560px; padding: 32px; max-height: 80vh;
  overflow: auto;
}
.modal h3 { color: var(--secondary); margin-bottom: 16px; }
.modal .close { float: right; font-size: 22px; cursor: pointer; color: var(--text-muted); }

/* === 标签徽章 === */
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
}
.badge-hot { background: #FED7D7; color: #C53030; }
.badge-new { background: #C6F6D5; color: #22543D; }
.badge-info { background: #BEE3F8; color: #2A4365; }

/* === 案例 LOGO 头 === */
.case-card { padding: 20px; }
.case-card .ct-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.case-card .case-logo { flex-shrink:0; width: 44px; height: 44px; border-radius: 50%; background: var(--gradient-1); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; overflow: hidden; box-shadow: 0 2px 6px rgba(28,183,153,.25); }
.case-card .case-logo img { width:100%; height:100%; object-fit: cover; }
.case-card .ct { font-size: 17px; font-weight: 700; color: var(--secondary); }

/* === LOGO 墙（前台首页） === */
.logo-wall-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 12px; }
.logo-wall-item {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  height: 76px; display: flex; align-items: center; justify-content: center;
  padding: 12px; transition: all .25s;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.logo-wall-item:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(28,183,153,.15); border-color: var(--primary); }
.logo-wall-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-wall-item .pl { color: var(--text-muted); font-weight: 700; font-size: 15px; letter-spacing: 1px; }
@media (max-width: 1100px) { .logo-wall-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px)  { .logo-wall-grid { grid-template-columns: repeat(3, 1fr); } }
.logo-wall-empty { grid-column: 1/-1; padding: 32px; text-align: center; color: var(--text-muted); background: var(--bg-soft); border-radius: var(--radius); font-size: 14px; }

/* === LOGO 墙底部元数据：数据来源 + 导入导出 === */
.logo-wall-meta {
  margin-top: 18px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(28,183,153,.06), rgba(28,183,153,.02));
  border-radius: 10px;
  border-left: 3px solid var(--primary);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.logo-wall-meta .lwm-source { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.logo-wall-meta .lwm-tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  background: rgba(28,183,153,.12); color: var(--primary);
}
.logo-wall-meta .lwm-tag.lwm-tag-idb { background: rgba(28,183,153,.12); color: #137963; }
.logo-wall-meta .lwm-tag.lwm-tag-static { background: rgba(19,112,200,.12); color: #1370c8; }
.logo-wall-meta .lwm-tag.lwm-tag-fallback { background: rgba(232,84,61,.12); color: #c0392b; }
.logo-wall-meta .lwm-tag.lwm-tag-empty { background: rgba(120,120,120,.12); color: #555; }
.logo-wall-meta .lwm-detail { font-size: 13px; color: var(--text-muted); }
.logo-wall-meta .lwm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.logo-wall-meta .lwm-btn {
  cursor: pointer; padding: 6px 14px; border-radius: 8px;
  background: var(--primary); color: #fff; border: none; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
  transition: all .15s;
}
.logo-wall-meta .lwm-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.logo-wall-meta .lwm-btn.lwm-btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.logo-wall-meta .lwm-btn.lwm-btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.logo-wall-hint {
  margin-top: 10px; font-size: 12px; color: var(--text-muted); text-align: center; line-height: 1.7;
}
.logo-wall-hint b { color: var(--text); }

/* IDB 调试浮窗样式已从公开 css 移除 —— 调试能力集中在 admin/admin.css（mountAdminIDBDebug） */
/* 兜底防御层：公开前台禁止出现 .idb-debug 元素（旧 JS 即使想挂也会被强制隐藏） */
.idb-debug { display: none !important; }
/* 上传字段提示 */
.upload-hint { margin-top: 6px; font-size: 12px; color: var(--text-muted); line-height: 1.6; }
.image-preview { margin-top: 8px; min-height: 50px; display: flex; align-items: center; justify-content: center; background: var(--bg-soft); border-radius: 8px; padding: 8px; }
.image-preview img { max-width: 100%; max-height: 200px; object-fit: contain; border-radius: 4px; }

/* === 首页：方案概述 / 痛点 / 核心应用 / 应用场景 === */
.overview-box {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 36px 40px; box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--primary);
}
.overview-box p { color: var(--text-muted); font-size: 17px; line-height: 2; margin: 0; }
.overview-cta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }

.pain-card {
  background: var(--surface); border-radius: var(--radius); padding: 26px 22px;
  border-top: 4px solid #FFB627; box-shadow: var(--shadow-sm); height: 100%;
}
.pain-icon { font-size: 30px; margin-bottom: 10px; }
.pain-card h4 { color: var(--secondary); margin-bottom: 10px; font-size: 17px; }
.pain-card p { color: var(--text-muted); font-size: 14px; line-height: 1.8; }

.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .scene-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .scene-grid { grid-template-columns: 1fr; } }
.scene-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all .3s; display: flex; flex-direction: column;
}
.scene-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.scene-img { height: 200px; background: var(--bg-soft); overflow: hidden; }
.scene-img img { width: 100%; height: 100%; object-fit: cover; }
.scene-body { padding: 20px; flex: 1; }
.scene-body h4 { color: var(--secondary); margin-bottom: 8px; font-size: 17px; }
.scene-body p { color: var(--text-muted); font-size: 14px; line-height: 1.75; }
.scene-link { display: inline-block; margin-top: 12px; color: var(--primary); font-weight: 700; font-size: 14px; text-decoration: none; }
.scene-link:hover { text-decoration: underline; }

/* === 案例卡片可点击 === */
.case-card.clickable { cursor: pointer; transition: all .25s; }
.case-card.clickable:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.case-more { margin-top: 14px; color: var(--primary); font-size: 13px; font-weight: 700; opacity: .75; }
.case-card.clickable:hover .case-more { opacity: 1; }

/* === 首页模块卡片可点击（核心应用 / 场景 / 硬件 / 驾驶舱） === */
.feature.clickable, .scene-card.clickable, .product-card.clickable, .dash-card.clickable {
  cursor: pointer; transition: all .25s;
}
.feature.clickable:hover, .scene-card.clickable:hover, .product-card.clickable:hover, .dash-card.clickable:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary);
}

/* === 客户案例详情弹窗 === */
.case-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(15,76,129,.55);
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.case-modal[hidden] { display: none !important; }
.cm-card { background: #fff; border-radius: 16px; width: 100%; max-width: 880px; margin: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.3); overflow: hidden; }
.cm-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 28px 32px 20px; background: linear-gradient(135deg, rgba(28,183,153,.08), rgba(15,76,129,.08));
  border-bottom: 1px solid var(--border); }
.cm-hero-txt { flex: 1; }
.cm-tag { color: var(--primary); font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.cm-hero h2 { color: var(--secondary); font-size: 23px; margin: 0 0 8px; }
.cm-hero p { color: var(--text-muted); line-height: 1.85; margin: 0; font-size: 15px; }
.cm-close { background: transparent; border: none; font-size: 22px; line-height: 1; cursor: pointer;
  color: var(--text-muted); padding: 4px 8px; border-radius: 8px; }
.cm-close:hover { background: var(--bg-soft); color: var(--secondary); }
.cm-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 20px 32px; }
@media (max-width: 700px) { .cm-metrics { grid-template-columns: repeat(2, 1fr); } }
.cm-metric { text-align: center; background: var(--bg-soft); border-radius: 10px; padding: 16px 8px; }
.cm-metric .num { color: var(--primary); font-size: 22px; font-weight: 800; }
.cm-metric .lbl { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.cm-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 4px 32px; }
@media (max-width: 700px) { .cm-gallery { grid-template-columns: 1fr; } }
.cm-img { border-radius: 10px; overflow: hidden; background: var(--bg-soft); aspect-ratio: 16/9; }
.cm-img img { width: 100%; height: 100%; object-fit: cover; }
.cm-sec { padding: 14px 32px; }
.cm-sec h4 { color: var(--secondary); font-size: 17px; margin: 0 0 8px; border-left: 3px solid var(--primary); padding-left: 10px; }
.cm-sec p { color: var(--text); line-height: 1.9; font-size: 14.5px; margin: 0; }
.cm-video { padding: 8px 32px; }
.cm-video video { width: 100%; border-radius: 10px; background: #000; }
.cm-video-note { margin: 8px 32px 16px; padding: 14px 16px; background: var(--bg-soft);
  border-radius: 10px; color: var(--text-muted); font-size: 13px; }
.cm-cta { display: flex; flex-wrap: wrap; gap: 12px; padding: 20px 32px 32px; }

/* ============== 关于我们·授权区轮播 ============== */
.auth-carousel {
  position: relative;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--gradient-1);
  box-shadow: 0 8px 32px rgba(15,76,129,0.18);
}
.auth-slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--gradient-1);
}
.auth-slide.active { display: flex; }
.auth-slide--default { display: flex; }
.auth-dots {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.auth-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.25s;
}
.auth-dot.active { background: #fff; width: 24px; border-radius: 4px; }
.auth-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.22);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-nav:hover { background: rgba(255,255,255,0.4); }
.auth-nav.prev { left: 14px; }
.auth-nav.next { right: 14px; }
.auth-caption {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 13px;
  padding: 0 16px;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
/* 关于我们·授权轮播图片点击放大 */
.auth-slide img.auth-zoom { cursor: zoom-in; }
.auth-slide .zoom-badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(15,76,129,.78); color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; opacity: 0; transform: translateY(-6px);
  transition: all .25s; pointer-events: none; z-index: 4;
}
.auth-slide.active:hover .zoom-badge { opacity: 1; transform: translateY(0); }

/* ============== 数据驾驶舱·点击放大角标 ============== */
.dash-card .zoom-badge {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(15,76,129,.78); color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; opacity: 0; transform: translateY(6px);
  transition: all .25s; pointer-events: none;
}
.dash-card.clickable:hover .zoom-badge { opacity: 1; transform: translateY(0); }

/* ============== 硬件中心·图片点击放大角标 ============== */
.product-card .hw-img { position: relative; }
.product-card .zoom-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(15,76,129,.78); color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; opacity: 0; transform: translateY(-6px);
  transition: all .25s; pointer-events: none; z-index: 4;
}
.product-card .hw-img:hover .zoom-badge { opacity: 1; transform: translateY(0); }
.product-card .hw-img img { width: 100%; height: 100%; object-fit: contain; }

/* ============== 图片放大灯箱 ============== */
.lightbox {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lightbox[hidden] { display: none !important; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(8,22,38,.85); backdrop-filter: blur(3px); }
.lb-panel {
  position: relative; z-index: 1; max-width: 94vw; max-height: 94vh;
  display: flex; flex-direction: column; align-items: center;
}
.lb-panel img {
  max-width: 94vw; max-height: 84vh; object-fit: contain; border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0,0,0,.55); background: #fff;
}
.lb-close {
  position: absolute; top: -16px; right: -16px; width: 40px; height: 40px;
  border-radius: 50%; border: none; background: #fff; color: #0f4c81;
  font-size: 18px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
}
.lb-close:hover { background: #0f4c81; color: #fff; }
.lb-cap { color: #fff; margin-top: 14px; font-size: 14px; text-align: center; }

/* ============== 素材库选择器 ============== */
.lib-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.lib-tab {
  flex: 1; padding: 10px; border: 1px solid var(--border); background: var(--bg-soft);
  border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-muted);
}
.lib-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.lib-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  max-height: 58vh; overflow-y: auto; padding: 4px;
}
@media (max-width: 700px) { .lib-grid { grid-template-columns: repeat(3, 1fr); } }
.lib-item {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff;
  cursor: pointer; transition: all .2s; text-align: center;
}
.lib-item:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(28,183,153,.2); border-color: var(--primary); }
.lib-item img { width: 100%; height: 110px; object-fit: cover; display: block; }
.lib-video {
  height: 110px; display: flex; align-items: center; justify-content: center;
  background: #0f4c81; color: #fff; font-size: 13px; text-align: center; line-height: 1.5;
}
.lib-video img { height: 110px; }
.lib-name { padding: 8px 6px; font-size: 12px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-empty { grid-column: 1/-1; padding: 40px; text-align: center; color: var(--text-muted); font-size: 14px; }

/* ============================================================
   案例 / 新闻 的大图卡片（简道云 customer_case 列表风格）
   ============================================================ */
.case-grid-lg {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media (max-width: 1100px) { .case-grid-lg { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 880px)  { .case-grid-lg { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .case-grid-lg { grid-template-columns: 1fr; } }

.case-card-lg {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15,76,129,.08);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: all .25s;
}
.case-card-lg:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(15,76,129,.18);
  border-color: var(--primary);
}
.case-card-lg .cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft);
}
.case-card-lg .case-cover-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,76,129,0) 30%, rgba(15,76,129,.55) 100%);
}
.case-card-lg .case-cover-logo {
  position: absolute; left: 14px; top: 14px;
  width: 56px; height: 56px; border-radius: 12px;
  background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: var(--primary-dark);
  overflow: hidden;
}
.case-card-lg .case-cover-logo img { width:100%; height:100%; object-fit: contain; padding: 6px; }

/* === 案例卡 LOGO 独立头标（方案 D：LOGO 移出封面，在 info 顶部完整展示） === */
.case-card-lg .case-logo-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px; padding: 10px 12px;
  background: var(--bg-soft);
  border-radius: 10px; border-left: 3px solid var(--primary);
}
.case-card-lg .case-logo-head .logo-img {
  flex-shrink: 0;
  width: 76px; height: 44px;
  background: #fff;
  border: 1px solid rgba(28,123,185,.18);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: var(--primary);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(15,76,129,.08);
}
.case-card-lg .case-logo-head .logo-img img { width:100%; height:100%; object-fit: contain; padding: 4px; }
.case-card-lg .case-logo-head .logo-meta { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.case-card-lg .case-logo-head .logo-meta .name { font-size: 17px; font-weight: 700; color: var(--secondary); line-height: 1.3; }
.case-card-lg .case-logo-head .logo-meta .sub { font-size: 11.5px; color: var(--text-muted); }
.case-card-lg .case-cover-logo.news-cover-icon { font-size: 26px; }
.case-card-lg .news-cover { background: linear-gradient(135deg, #1a73e8 0%, #0f4c81 100%); }
/* ERP 功能模块卡片：无封面图时以图标 + 渐变占位 */
.case-card-lg .module-cover { background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%); }
.case-card-lg .module-cover-icon { font-size: 32px; }
/* 解决方案卡片：无封面图时以图标 + 渐变占位，保证图文质感 */
.case-card-lg .sol-cover { background: linear-gradient(135deg, var(--gradient-1) 0%, #0f4c81 100%); }
.case-card-lg .sol-cover-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 64px; line-height: 1; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25));
}
.case-card-lg .info { padding: 18px 18px 22px; flex: 1; display: flex; flex-direction: column; }
.case-card-lg .info .ct {
  font-size: 18px; font-weight: 700; color: var(--secondary);
  line-height: 1.4; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-card-lg .info .region {
  font-size: 12px; color: var(--text-light); margin-bottom: 10px;
}
.case-card-lg .info .effect {
  font-size: 13.5px; color: var(--text-muted); line-height: 1.7;
  flex: 1; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-card-lg .info .tags { margin-bottom: 12px; }
.case-card-lg .info .case-more {
  font-size: 13px; font-weight: 600; color: var(--primary);
  opacity: .7; transition: opacity .2s, transform .2s;
}
.case-card-lg.clickable { cursor: pointer; }
.case-card-lg.clickable:hover .case-more { opacity: 1; transform: translateX(4px); }

/* === 大图卡片用的小标签（也用于详情页） === */
.cd-tag {
  display: inline-block;
  background: var(--bg-soft);
  color: var(--primary-dark);
  font-size: 12px; font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 2px 4px 2px 0;
}
.cd-tags { line-height: 1.8; }

/* ============================================================
   案例 / 新闻 详情全屏页面（仿简道云 customer_case 详情）
   ============================================================ */
.cd-page { background: var(--bg); }
.cd-banner {
  position: relative;
  min-height: 380px;
  background-color: #0f4c81;
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex; align-items: flex-end;
  padding: 48px 0;
}
/* 解决方案详情：无封面大图时，用渐变背景 + 大图标占位 */
.cd-banner.sol-banner-fallback { background: linear-gradient(135deg, var(--gradient-1) 0%, #0f4c81 100%); }
.cd-news-banner {
  position: relative;
  min-height: 320px;
  background-color: #1a73e8;
  background-image: linear-gradient(135deg, #1a73e8 0%, #0f4c81 100%) !important;
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex; align-items: flex-end;
  padding: 48px 0;
}
.cd-banner-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,76,129,.55) 0%, rgba(15,76,129,.85) 100%);
}
.cd-banner-content {
  position: relative; z-index: 1;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}
.cd-back {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff; text-decoration: none;
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  margin-bottom: 18px;
  backdrop-filter: blur(6px);
  transition: all .2s;
}
.cd-back:hover { background: rgba(255,255,255,.28); }
.cd-banner-logo {
  width: 64px; height: 64px; border-radius: 14px;
  background: rgba(255,255,255,.95);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; color: var(--primary-dark);
  overflow: hidden; margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.cd-banner-logo img { width: 100%; height: 100%; object-fit: cover; }
.cd-banner-tag {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  padding: 4px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  margin-bottom: 14px; backdrop-filter: blur(6px);
}
.cd-banner-title {
  font-size: 32px; line-height: 1.35; font-weight: 700;
  margin: 0 0 16px; max-width: 880px;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.cd-banner-quote {
  margin: 0 0 16px;
  font-size: 16px; line-height: 1.7;
  max-width: 800px;
  color: rgba(255,255,255,.92);
  font-style: italic;
  border-left: 3px solid rgba(255,255,255,.6);
  padding-left: 16px;
}
.cd-banner .cd-tags .cd-tag {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.32);
}

/* === 指标卡片（仿简道云 2000万+/1000+...） === */
.case-card-lg .card-metrics-preview {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(34,102,34,.06), rgba(34,102,34,.02));
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}
.case-card-lg .card-metrics-preview .cm-cell {
  display: flex; flex-direction: column; align-items: flex-start;
  min-width: 56px;
}
.case-card-lg .card-metrics-preview .cm-num {
  font-size: 20px; font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.case-card-lg .card-metrics-preview .cm-lbl {
  font-size: 11px; color: var(--text-muted); font-weight: 500; margin-top: 3px;
  max-width: 80px; line-height: 1.25;
}
@media (max-width: 600px) {
  .case-card-lg .card-metrics-preview { padding: 8px 10px; gap: 10px; }
  .case-card-lg .card-metrics-preview .cm-num { font-size: 18px; }
}
.cd-metrics-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.cd-metrics {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  text-align: center;
}
@media (max-width: 768px) { .cd-metrics { grid-template-columns: repeat(2, 1fr); } }
.cd-metric { padding: 8px; }
.cd-metric .num {
  font-size: 38px; font-weight: 800;
  color: var(--primary);
  line-height: 1.2; margin-bottom: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cd-metric .lbl {
  font-size: 14px; color: var(--text-muted); font-weight: 500;
}

/* === 主体区（主要内容 + 侧边目录） === */
.cd-body {
  max-width: 1200px; margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
}
.cd-body-news { gap: 32px; }
@media (max-width: 980px) {
  .cd-body { grid-template-columns: 1fr; }
  .cd-toc { display: none; }
}
.cd-body-main { min-width: 0; }
.cd-intro, .cd-sections {
  background: var(--surface);
  border-radius: 12px;
  padding: 32px 36px;
  box-shadow: 0 4px 14px rgba(15,76,129,.05);
  margin-bottom: 24px;
  border: 1px solid var(--border);
}
.cd-intro h3, .cd-sections h3 {
  font-size: 22px; color: var(--secondary);
  margin: 0 0 16px; padding-bottom: 14px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.cd-intro p { font-size: 15.5px; line-height: 1.95; color: var(--text); margin: 0; }

.cd-sec { padding: 22px 0; border-bottom: 1px dashed var(--border); }
.cd-sec:last-child { border-bottom: 0; }
.cd-sec h3 { font-size: 19px; color: var(--secondary); margin: 0 0 12px; padding: 0; border: 0; display: block; }
.cd-sec h3 .cd-sec-num {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 14px; font-weight: 700;
  padding: 3px 10px; border-radius: 6px;
  margin-right: 10px;
  vertical-align: 2px;
}
.cd-sec p { font-size: 15.5px; line-height: 1.95; color: var(--text); margin: 0; }

/* === 图片画廊 === */
.cd-gallery { margin-bottom: 24px; }
.cd-gallery h3 {
  font-size: 19px; color: var(--secondary);
  margin: 0 0 14px; padding-left: 12px;
  border-left: 4px solid var(--primary);
}
.cd-gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 768px) { .cd-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.cd-img { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: var(--bg-soft); cursor: zoom-in; }
.cd-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cd-img:hover img { transform: scale(1.05); }

.cd-video { aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #000; }
.cd-video video { width: 100%; height: 100%; }
.cd-video-wrap { margin-bottom: 24px; }
.cd-video-wrap h3 {
  font-size: 19px; color: var(--secondary);
  margin: 0 0 14px; padding-left: 12px;
  border-left: 4px solid var(--primary);
}

/* === 底部 CTA === */
.cd-end-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  margin-top: 12px;
}
.cd-end-cta h3 { font-size: 22px; margin: 0 0 14px; }
.cd-end-cta p { font-size: 15px; line-height: 1.8; color: rgba(255,255,255,.92); max-width: 640px; margin: 0 auto 24px; }
.cd-end-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cd-end-cta-buttons .btn-primary {
  background: #fff; color: var(--primary-dark); border-color: #fff;
}
.cd-end-cta-buttons .btn-primary:hover { background: var(--bg-soft); }
.cd-end-cta-buttons .btn-outline {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.6);
}
.cd-end-cta-buttons .btn-outline:hover { background: rgba(255,255,255,.12); }

/* === 侧边目录 === */
.cd-toc { position: relative; }
.cd-toc-sticky {
  position: sticky; top: 88px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 18px;
  box-shadow: 0 4px 14px rgba(15,76,129,.05);
}
.cd-toc-title {
  font-size: 15px; font-weight: 700; color: var(--secondary);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}
.cd-toc ul { list-style: none; padding: 0; margin: 0 0 18px; }
.cd-toc li { margin-bottom: 6px; }
.cd-toc li a {
  font-size: 13px; color: var(--text-muted); text-decoration: none;
  display: block; padding: 6px 10px;
  border-radius: 6px;
  line-height: 1.5;
  transition: all .15s;
}
.cd-toc li a:hover {
  background: var(--bg-soft);
  color: var(--primary);
  transform: translateX(3px);
}
.cd-toc-cta { display: flex; flex-direction: column; gap: 8px; }
.cd-toc-cta .btn { font-size: 13px; padding: 10px 14px; }

/* === 新闻详情：元信息 + 内容 === */
.cd-news-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted);
  padding: 16px 20px;
  background: var(--bg-soft);
  border-radius: 10px;
  margin-bottom: 20px;
}
.cd-news-meta strong { color: var(--text); }
.cd-news-content {
  background: var(--surface);
  border-radius: 12px;
  padding: 36px 40px;
  box-shadow: 0 4px 14px rgba(15,76,129,.05);
  border: 1px solid var(--border);
}
.cd-news-para {
  font-size: 16px; line-height: 2; color: var(--text);
  margin: 0 0 18px;
}
.cd-news-para:last-child { margin-bottom: 0; }
