/* 仟度广告官网 全站样式 */
:root {
  --primary: #b91c1c;
  --primary-dark: #7f1010;
  --navy: #1e293b;
  --text: #333;
  --muted: #666;
  --bg: #f7f8fa;
  --line: #e5e7eb;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; color: var(--text); background: #fff; line-height: 1.75; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-size: 24px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.logo-img { height: 40px; width: auto; }
.logo span { font-size: 12px; color: var(--muted); letter-spacing: 2px; }
.nav { display: flex; gap: 6px; }
.nav a { padding: 8px 16px; font-size: 16px; border-radius: 6px; color: var(--text); }
.nav a:hover { background: #f1f5f9; }
.nav a.active { color: var(--primary); font-weight: 700; }
.phone-btn { background: var(--primary); color: #fff; padding: 9px 18px; border-radius: 24px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.menu-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--navy); }

/* ===== Hero / Banner ===== */
.page-banner { position: relative; background: #334155; background-size: cover; background-position: center; color: #fff; text-align: center; padding: 72px 20px; }
.page-banner h1 { font-size: 36px; letter-spacing: 2px; }
.page-banner p { margin-top: 10px; font-size: 17px; opacity: .9; }

/* 首页轮播 */
.hero { position: relative; overflow: hidden; }
.slide { display: none; position: relative; color: #fff; text-align: center; padding: 110px 20px; background: linear-gradient(rgba(30,41,59,.6), rgba(30,41,59,.6)) center/cover no-repeat; background-size: cover; }
.slide.active { display: block; animation: fade .6s; }
.slide h2 { font-size: 40px; letter-spacing: 3px; }
.slide p { margin-top: 12px; font-size: 19px; opacity: .92; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; }
.hero-dots button.on { background: #fff; }

/* ===== 通用区块 ===== */
.section { padding: 64px 0; }
.section.alt { background: var(--bg); }
.section-title { text-align: center; font-size: 30px; margin-bottom: 10px; color: var(--navy); }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 42px; font-size: 16px; }

/* 数据条 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats b { font-size: 34px; color: var(--primary); display: block; }
.stats span { color: var(--muted); font-size: 15px; }

/* 卡片 */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-3px); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 16px 18px; }
.card-body h3 { font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.card-body p { font-size: 14px; color: var(--muted); }

/* 优势条目 */
.adv-item { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.adv-num { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.adv-item h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.adv-item p { font-size: 14px; color: var(--muted); }

/* 表格 */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
th { background: #eef2f7; color: var(--navy); white-space: nowrap; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { font-weight: 700; color: var(--navy); cursor: pointer; font-size: 16px; }
.faq details p { margin-top: 10px; color: #444; font-size: 15px; }

/* 文章 */
.article { max-width: 860px; margin: 0 auto; }
.article h1 { font-size: 28px; color: var(--navy); line-height: 1.4; }
.article .meta { color: var(--muted); font-size: 14px; margin: 14px 0 26px; }
.article h2 { font-size: 22px; color: var(--navy); margin: 34px 0 14px; padding-left: 12px; border-left: 4px solid var(--primary); }
.article p { margin: 12px 0; font-size: 16px; }
.article ul { margin: 12px 0 12px 24px; }
.article .art-end { margin-top: 36px; padding: 16px 20px; background: var(--bg); border-radius: 8px; font-size: 15px; color: var(--muted); }

/* 时间轴 */
.timeline { max-width: 760px; margin: 0 auto; border-left: 3px solid var(--primary); padding-left: 28px; }
.timeline .t-item { position: relative; margin-bottom: 30px; }
.timeline .t-item::before { content: ""; position: absolute; left: -37px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--primary); }
.timeline h3 { color: var(--primary); font-size: 18px; }
.timeline p { color: #444; font-size: 15px; margin-top: 4px; }

/* CTA */
.cta { background: var(--navy); color: #fff; text-align: center; padding: 52px 20px; }
.cta h2 { font-size: 26px; margin-bottom: 10px; }
.cta p { opacity: .85; margin-bottom: 24px; }
.btn { display: inline-block; background: var(--primary); color: #fff; padding: 13px 34px; border-radius: 28px; font-size: 17px; font-weight: 600; }
.btn.ghost { background: transparent; border: 2px solid #fff; margin-left: 12px; }

/* 联系页 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.contact-card h3 { color: var(--navy); margin-bottom: 14px; font-size: 19px; }
.contact-card .big-phone { font-size: 26px; color: var(--primary); font-weight: 700; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; }
.form-submit { width: 100%; padding: 13px; border: none; border-radius: 8px; background: var(--primary); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; }
.qr-panel { display: none; text-align: center; padding: 20px; }
.qr-panel.show { display: block; }
.qr-panel img { width: 200px; margin: 12px auto; border: 1px solid var(--line); }

/* Footer */
.site-footer { background: var(--navy); color: #cfd8e3; padding: 44px 0 20px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 16px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; text-align: center; font-size: 13px; opacity: .7; }

/* 浮动电话（移动端） */
.float-phone { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 90; background: var(--primary); color: #fff; padding: 12px 18px; border-radius: 30px; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.25); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .stats, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 10px 20px; box-shadow: 0 8px 16px rgba(0,0,0,.1); }
  .nav.open { display: flex; }
  .phone-btn { display: none; }
  .float-phone { display: block; }
  .slide h2 { font-size: 26px; }
  .slide p { font-size: 15px; }
  .slide { padding: 70px 20px; }
  .page-banner h1 { font-size: 26px; }
  .section { padding: 44px 0; }
  .section-title { font-size: 24px; }
}

/* ===== 电脑端电话询价弹窗 ===== */
.cm-mask {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15, 23, 42, .62);
  display: none; align-items: center; justify-content: center; padding: 20px;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.cm-mask.open { display: flex; }
.cm-box {
  position: relative; background: #fff; border-radius: 14px;
  width: 100%; max-width: 330px; padding: 30px 24px 24px;
  text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  animation: cmIn .18s ease-out;
}
@keyframes cmIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.cm-close {
  position: absolute; top: 8px; right: 12px; border: 0; background: none;
  font-size: 26px; line-height: 1; color: #94a3b8; cursor: pointer; padding: 4px;
}
.cm-close:hover { color: #475569; }
.cm-box h3 { font-size: 19px; color: var(--primary); margin-bottom: 8px; }
.cm-tip { font-size: 13px; color: #8b98a8; margin-bottom: 14px; }
.cm-phone {
  font-size: 27px; font-weight: 700; color: #b91c1c;
  letter-spacing: .5px; margin-bottom: 14px;
}
.cm-copy {
  display: inline-block; border: 1px solid var(--primary); color: var(--primary);
  background: #fff; border-radius: 999px; padding: 7px 24px; font-size: 14px;
  cursor: pointer; font-family: inherit; transition: .15s;
}
.cm-copy:hover { background: var(--primary); color: #fff; }
.cm-copy.done { background: #16a34a; border-color: #16a34a; color: #fff; }
.cm-qr { margin-top: 20px; padding-top: 18px; border-top: 1px dashed #e5e7eb; }
.cm-qr img { width: 132px; height: 132px; object-fit: contain; display: block; margin: 0 auto 8px; border-radius: 6px; }
.cm-qr span { font-size: 12.5px; color: #8b98a8; }
