/* ==========================================================
   新广传媒官网 - 前台样式（浅色主题）
   ========================================================== */
:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --dark: #1d2b3a;
  --text: #33404f;
  --text-light: #6b7887;
  --bg: #ffffff;
  --bg-gray: #f6f7f9;
  --border: #e8ecf1;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(29, 43, 58, .07);
  --maxw: 1120px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 800px; }
.center { text-align: center; }

/* ---------- 顶部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text strong { font-size: 18px; color: var(--dark); }
.logo-text small { font-size: 12px; color: var(--text-light); }
.site-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.site-nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; color: var(--text);
  transition: all .2s;
}
.site-nav a:hover { color: var(--primary); background: #fdf1f2; }
.site-nav a.active { color: var(--primary); font-weight: 600; }
.header-phone { color: var(--primary); font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--dark); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 460px; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, #1d2b3a 0%, #2a3f57 45%, #8a2633 100%);
}
.hero-content { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 80px 20px; color: #fff; }
.hero-content h1 { font-size: 40px; line-height: 1.3; margin-bottom: 14px; letter-spacing: 1px; }
.hero-content p { font-size: 18px; opacity: .85; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.banner-hero { display: block; padding: 0; }
.banner-wrap { position: relative; height: 460px; }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.slide.active { opacity: 1; }
.slide-bg { position: absolute; inset: 0; background: linear-gradient(120deg, #1d2b3a, #8a2633); }
.slide-content { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; color: #fff; padding: 0 20px; }
.slide-content h2 { font-size: 36px; margin-bottom: 10px; }
.slide-content p { font-size: 17px; opacity: .85; }
.banner-dots { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; z-index: 5; }
.banner-dots span {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.5); margin: 0 5px; cursor: pointer; transition: all .2s;
}
.banner-dots span.active { background: #fff; width: 24px; border-radius: 5px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 11px 26px; border-radius: 10px;
  font-size: 15px; cursor: pointer; border: none; transition: all .2s;
  font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.28); }
.btn-outline { border: 1.5px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); font-weight: 600; }
.btn-block { width: 100%; }
button:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- 区块 ---------- */
.section { padding: 70px 0; }
.section-gray { background: var(--bg-gray); }
.section-title { font-size: 28px; color: var(--dark); margin-bottom: 14px; }
.section-title.center { text-align: center; margin-bottom: 10px; }
.section-sub { color: var(--text-light); margin-bottom: 40px; }
.section-sub.center { text-align: center; }
.page-head {
  background: linear-gradient(120deg, #1d2b3a, #2a3f57);
  color: #fff; padding: 60px 0; margin-top: 1px;
}
.page-head h1 { font-size: 30px; margin-bottom: 6px; }
.page-head p { opacity: .75; }

/* 关于 + 数据 */
.about-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: center; }
.about-text { color: var(--text-light); margin-bottom: 24px; white-space: pre-wrap; }
.stats-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  background: var(--bg-gray); border-radius: var(--radius); padding: 30px;
}
.stat-item { text-align: center; }
.stat-num { font-size: 34px; font-weight: 700; color: var(--primary); }
.stat-label { color: var(--text-light); font-size: 14px; }

/* 卡片网格 */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(29,43,58,.12); }
.service-card h3 { color: var(--dark); margin: 14px 0 10px; font-size: 19px; }
.service-card p { color: var(--text-light); font-size: 14.5px; }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; font-size: 28px;
  background: #fdf1f2; display: flex; align-items: center; justify-content: center;
}
.case-card { padding: 0; overflow: hidden; }
.case-cover { height: 180px; background: linear-gradient(135deg, #2a3f57, #8a2633); }
.case-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-cover-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8); font-size: 20px; letter-spacing: 4px;
}
.case-body { padding: 22px; }
.case-body h3 { color: var(--dark); font-size: 17px; margin-bottom: 8px; }
.case-body p { color: var(--text-light); font-size: 14px; }

/* 新闻 */
.news-list { display: flex; flex-direction: column; gap: 2px; }
.news-item {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center;
  padding: 18px 14px; border-bottom: 1px solid var(--border); transition: background .2s;
}
.news-item:hover { background: var(--bg-gray); }
.news-date { color: var(--text-light); font-size: 14px; }
.news-title { color: var(--dark); font-size: 16px; font-weight: 600; }
.news-summary { grid-column: 1 / -1; color: var(--text-light); font-size: 13.5px; margin-top: -8px; }
.news-arrow { color: var(--primary); font-size: 22px; }

/* 文章详情 */
.back-link { display: inline-block; color: var(--text-light); margin: 30px 0 18px; }
.back-link:hover { color: var(--primary); }
.article-title { font-size: 30px; color: var(--dark); margin-bottom: 10px; line-height: 1.4; }
.article-meta { color: var(--text-light); font-size: 14px; border-bottom: 1px solid var(--border); padding-bottom: 18px; margin-bottom: 26px; }
.article-cover { border-radius: var(--radius); margin-bottom: 26px; width: 100%; }
.article-body { font-size: 16.5px; color: var(--text); }
.article-body p { margin-bottom: 14px; }
.article-body img { border-radius: 8px; }

/* 下载中心 */
.download-list { display: flex; flex-direction: column; gap: 14px; }
.download-item {
  display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow);
}
.dl-icon { font-size: 30px; }
.dl-info { flex: 1; min-width: 0; }
.dl-name { font-weight: 600; color: var(--dark); font-size: 16px; }
.dl-desc { color: var(--text-light); font-size: 13.5px; margin: 2px 0; }
.dl-meta { color: #9aa5b1; font-size: 12.5px; }
.dl-btn { white-space: nowrap; }
.dl-note { color: var(--text-light); font-size: 13.5px; margin-top: 22px; text-align: center; }
.empty-box {
  background: var(--bg-gray); border: 1px dashed #d5dbe3; border-radius: var(--radius);
  padding: 46px; text-align: center; color: var(--text-light);
}

/* CTA */
.cta-band {
  background: linear-gradient(120deg, var(--primary), #c1121f);
  color: #fff; text-align: center; padding: 60px 20px;
}
.cta-band h2 { font-size: 28px; margin-bottom: 8px; }
.cta-band p { opacity: .85; margin-bottom: 24px; }

/* 联系页 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-info h3, .contact-form-card h3 { font-size: 20px; color: var(--dark); margin-bottom: 16px; }
.contact-info p { margin-bottom: 12px; color: var(--text); font-size: 15px; }
.wechat-qr { margin-top: 20px; text-align: center; }
.wechat-qr img { width: 160px; height: 160px; object-fit: contain; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.wechat-qr p { color: var(--text-light); font-size: 13px; margin-top: 6px; }
.contact-form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow);
}
.form-tip { color: var(--text-light); font-size: 14px; margin-bottom: 20px; }
.contact-form-card input, .contact-form-card textarea {
  width: 100%; padding: 12px 14px; margin-bottom: 14px;
  border: 1px solid var(--border); border-radius: 10px; font-size: 15px;
  font-family: inherit; transition: border .2s;
}
.contact-form-card input:focus, .contact-form-card textarea:focus {
  outline: none; border-color: var(--primary);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* 关于页 */
.about-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; }
.about-side .mvv {
  background: var(--bg-gray); border-radius: var(--radius); padding: 22px 26px;
  margin-bottom: 16px; border-left: 4px solid var(--primary);
}
.about-side h3 { font-size: 16px; color: var(--dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #cfd6de; margin-top: 0; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 54px 20px 40px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px;
}
.footer-col h4 { color: #fff; font-size: 17px; margin-bottom: 16px; }
.footer-slogan { margin-bottom: 14px; font-size: 14px; opacity: .8; }
.footer-line { font-size: 14px; margin-bottom: 8px; opacity: .85; }
.footer-col a { color: #cfd6de; font-size: 14px; display: inline-block; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-btn {
  display: inline-block; margin-top: 8px; padding: 9px 22px;
  background: var(--primary); color: #fff !important; border-radius: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  max-width: var(--maxw); margin: 0 auto; padding: 18px 20px;
  display: flex; justify-content: space-between; font-size: 13px; opacity: .7;
}

/* ---------- 悬浮按钮 ---------- */
.float-actions { position: fixed; right: 18px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 90; }
.fab {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transition: transform .2s;
}
.fab:hover { transform: scale(1.1); }
.fab-msg { background: var(--primary); }
.fab-down { background: #2a3f57; }

/* ---------- 加载与 Toast ---------- */
.page-loading { text-align: center; padding: 120px 0; color: var(--text-light); }
.spinner {
  width: 36px; height: 36px; margin: 0 auto 14px;
  border: 3px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#__toast {
  position: fixed; left: 50%; top: 76px; transform: translateX(-50%) translateY(-16px);
  background: #243447; color: #fff; padding: 11px 22px; border-radius: 10px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 999;
}
#__toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#__toast.err { background: #b02a37; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: block; margin-left: auto; }
  .site-nav { display: none; width: 100%; flex-direction: column; padding: 8px 0; }
  .site-nav.open { display: flex; }
  .header-phone { display: none; }
  .hero, .banner-wrap { min-height: 340px; }
  .hero-content h1 { font-size: 27px; }
  .hero-content { padding: 56px 20px; }
  .grid-3 { grid-template-columns: 1fr; }
  .about-split, .about-cols, .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 84px 1fr auto; }
  .download-item { flex-wrap: wrap; }
  .dl-btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
