/* ============================================================
   康宁通信 企业官网 - 前台样式（简约大气）
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  color: #2b3440;
  background: #fff;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- 页头 ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e8edf2;
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, #0b4a8f, #1f6fb8);
  color: #fff; font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.logo-text strong { display: block; font-size: 20px; color: #16324f; letter-spacing: 1px; }
.logo-text small { display: block; font-size: 12px; color: #8296ac; letter-spacing: 2px; }
.nav { display: flex; gap: 8px; }
/* 页头咨询电话（调用后台「联系电话」设置） */
.header-phone {
  display: flex; align-items: center; gap: 10px;
  margin-left: 24px; margin-right: auto;
  padding: 6px 14px;
  border-left: 2px solid #e3ecf5;
  color: #0b4a8f;
}
.header-phone .hp-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #eef4fa, #dceafa);
  color: #0b4a8f;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.header-phone .hp-text small {
  display: block; font-size: 12px; color: #8296ac; letter-spacing: 1px;
}
.header-phone .hp-text strong {
  display: block; font-size: 18px; color: #0b4a8f; letter-spacing: .5px; white-space: nowrap;
}
.header-phone.empty { display: none; }
.nav a {
  padding: 8px 18px; border-radius: 6px; font-size: 15px; color: #3c4a5a;
  transition: all .2s;
}
.nav a:hover { color: #0b4a8f; background: #eef4fa; }
.nav a.active { color: #fff; background: #0b4a8f; }

/* ---------- 首页 Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(63,146,224,.35), transparent 60%),
    radial-gradient(900px 420px at 10% 110%, rgba(28,108,178,.4), transparent 60%),
    linear-gradient(135deg, #072a52 0%, #0b4a8f 55%, #145f9e 100%);
  color: #fff;
  padding: 120px 0 130px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: 50%;
  width: 480px; height: 480px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 2px, transparent 2px 34px),
              repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 2px, transparent 2px 34px);
  border-radius: 24px;
  transform: translateY(-50%) rotate(18deg);
}
.hero .container { position: relative; z-index: 2; }
.hero-tag {
  display: inline-block; padding: 5px 16px; border: 1px solid rgba(255,255,255,.45);
  border-radius: 99px; font-size: 13px; letter-spacing: 3px; margin-bottom: 26px; opacity: .9;
}
.hero h1 { font-size: 52px; letter-spacing: 6px; font-weight: 700; margin-bottom: 20px; }
.hero p { font-size: 17px; max-width: 620px; opacity: .88; margin-bottom: 40px; }
.hero-btns a {
  display: inline-block; padding: 12px 34px; border-radius: 6px; font-size: 15px; margin-right: 14px;
  transition: all .2s;
}
.btn-solid { background: #fff; color: #0b4a8f; font-weight: 600; }
.btn-solid:hover { background: #e8f1fa; }
.btn-line { border: 1px solid rgba(255,255,255,.6); color: #fff; }
.btn-line:hover { background: rgba(255,255,255,.12); }

/* ---------- 通用区块 ---------- */
.section { padding: 80px 0; }
.section.alt { background: #f6f8fb; }
.sec-head { text-align: center; margin-bottom: 50px; }
.sec-head h2 { font-size: 30px; color: #16324f; letter-spacing: 3px; }
.sec-head .line { width: 46px; height: 3px; background: #0b4a8f; margin: 14px auto 0; border-radius: 2px; }
.sec-head p { color: #7c8ba0; font-size: 14px; margin-top: 12px; }
.more-link { text-align: center; margin-top: 44px; }
.more-link a {
  display: inline-block; padding: 10px 34px; border: 1px solid #0b4a8f; color: #0b4a8f;
  border-radius: 6px; font-size: 14px; transition: all .2s;
}
.more-link a:hover { background: #0b4a8f; color: #fff; }

/* 关于区块 */
.about-flex { display: flex; gap: 60px; align-items: center; }
.about-text h3 { font-size: 24px; color: #16324f; margin-bottom: 18px; }
.about-text p { color: #5b6b7f; font-size: 15px; margin-bottom: 14px; }
.about-stats { display: flex; gap: 40px; margin-top: 26px; }
.about-stats b { display: block; font-size: 30px; color: #0b4a8f; }
.about-stats span { font-size: 13px; color: #7c8ba0; }
.about-visual {
  flex: 0 0 420px; height: 300px; border-radius: 14px;
  background:
    radial-gradient(400px 200px at 80% 20%, rgba(63,146,224,.5), transparent 70%),
    linear-gradient(135deg, #0b4a8f, #2a7cc3);
  position: relative; overflow: hidden;
}
.about-visual::before, .about-visual::after {
  content: ""; position: absolute; left: -10%; right: -10%; height: 2px;
  background: rgba(255,255,255,.35);
}
.about-visual::before { top: 35%; transform: rotate(-14deg); }
.about-visual::after { top: 62%; transform: rotate(-14deg); }

/* 产品网格 */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.p-card {
  background: #fff; border: 1px solid #e8edf2; border-radius: 10px; overflow: hidden;
  transition: all .25s;
}
.p-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(11,74,143,.12); border-color: transparent; }
.p-thumb { height: 180px; overflow: hidden; }
.p-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.p-card:hover .p-thumb img { transform: scale(1.06); }
.p-thumb .ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px; letter-spacing: 4px;
  background: linear-gradient(135deg, #0b4a8f, #2a7cc3);
}
.p-body { padding: 20px 22px 24px; }
.p-body .cat { font-size: 12px; color: #2a7cc3; letter-spacing: 1px; }
.p-body h3 { font-size: 17px; color: #16324f; margin: 6px 0 8px; }
.p-body p { font-size: 13px; color: #7c8ba0; }

/* 资讯列表 */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.n-card {
  display: flex; gap: 20px; background: #fff; border: 1px solid #e8edf2;
  border-radius: 10px; padding: 24px; transition: all .25s;
}
.n-card:hover { box-shadow: 0 12px 30px rgba(11,74,143,.1); }
.n-date {
  flex: 0 0 72px; text-align: center; border-right: 1px solid #eef2f6; padding-right: 16px;
}
.n-date b { display: block; font-size: 24px; color: #0b4a8f; line-height: 1.2; }
.n-date span { font-size: 12px; color: #9aa8ba; }
.n-info h3 { font-size: 16px; color: #16324f; margin-bottom: 8px; }
.n-info p { font-size: 13px; color: #7c8ba0; }
.n-info .cat { font-size: 12px; color: #2a7cc3; }

/* CTA 条 */
.cta {
  background: linear-gradient(120deg, #0b4a8f, #2a7cc3);
  color: #fff; padding: 56px 0; text-align: center;
}
.cta h2 { font-size: 26px; letter-spacing: 2px; margin-bottom: 10px; }
.cta p { opacity: .85; font-size: 15px; margin-bottom: 24px; }
.cta a {
  display: inline-block; background: #fff; color: #0b4a8f; font-weight: 600;
  padding: 12px 40px; border-radius: 6px;
}
.cta a:hover { background: #e8f1fa; }

/* ---------- 内页 Banner ---------- */
.page-banner {
  background: linear-gradient(135deg, #072a52, #0b4a8f 70%, #145f9e);
  color: #fff; text-align: center; padding: 66px 0 70px;
}
.page-banner h1 { font-size: 32px; letter-spacing: 4px; margin-bottom: 10px; }
.page-banner p { opacity: .8; font-size: 14px; }

/* 分类筛选 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 42px; }
.filter-bar a {
  padding: 8px 24px; border: 1px solid #d5dde6; border-radius: 99px; font-size: 14px; color: #4d5f74;
  transition: all .2s;
}
.filter-bar a:hover { border-color: #0b4a8f; color: #0b4a8f; }
.filter-bar a.active { background: #0b4a8f; border-color: #0b4a8f; color: #fff; }

/* ---------- 文章 / 详情 ---------- */
.article { max-width: 860px; margin: 0 auto; }
.article-head { text-align: center; margin-bottom: 36px; }
.article-head h1 { font-size: 26px; color: #16324f; margin-bottom: 12px; }
.article-head .meta { font-size: 13px; color: #9aa8ba; }
.article-img { border-radius: 10px; margin-bottom: 30px; }
.article-content { color: #43536a; font-size: 15px; }
.article-content p { margin-bottom: 16px; }
.article-content ul { margin: 0 0 16px 22px; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }
.article-content table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.article-content td, .article-content th { border: 1px solid #e4eaf1; padding: 8px 12px; }
.article-content blockquote {
  border-left: 3px solid #0b4a8f; background: #f6f8fb; padding: 10px 16px; margin-bottom: 16px;
}
.article-content h2, .article-content h3 { color: #16324f; margin: 22px 0 10px; font-size: 18px; }
.back-link { margin-top: 44px; text-align: center; }
.back-link a { color: #0b4a8f; font-size: 14px; }
.back-link a:hover { text-decoration: underline; }

/* ---------- 关于我们 / 联系我们 ---------- */
.about-page p { margin-bottom: 16px; color: #43536a; font-size: 15px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 60px; }
.c-card {
  background: #f6f8fb; border-radius: 10px; padding: 30px; text-align: center;
  border: 1px solid #eef2f6;
}
.c-card .ico {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 12px;
  background: linear-gradient(135deg, #0b4a8f, #2a7cc3); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.c-card h4 { font-size: 16px; color: #16324f; margin-bottom: 8px; }
.c-card p { font-size: 14px; color: #6a7a8e; }

/* 表单 */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; color: #3c4a5a; margin-bottom: 7px; }
.form-row label b { color: #d64541; }
.form-row input, .form-row textarea {
  width: 100%; padding: 11px 14px; border: 1px solid #d5dde6; border-radius: 6px;
  font-size: 14px; font-family: inherit; outline: none; transition: border .2s; background: #fff;
}
.form-row input:focus, .form-row textarea:focus { border-color: #0b4a8f; }
.form-row textarea { height: 140px; resize: vertical; }
.btn-submit {
  background: #0b4a8f; color: #fff; border: none; padding: 12px 44px;
  border-radius: 6px; font-size: 15px; cursor: pointer; transition: background .2s;
}
.btn-submit:hover { background: #093e78; }
.flash-ok {
  background: #eef8ef; border: 1px solid #bfe3c4; color: #1e7d32;
  border-radius: 8px; padding: 14px 18px; margin-bottom: 24px; font-size: 14px;
}

/* ---------- 页脚 ---------- */
.site-footer { background: #10263d; color: #b8c6d6; margin-top: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 20px 44px;
}
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; letter-spacing: 1px; }
.site-footer p { font-size: 13px; line-height: 2; }
.f-links a { display: block; font-size: 13px; line-height: 2.2; }
.f-links a:hover { color: #fff; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center; font-size: 13px; }
.footer-bar a:hover { color: #fff; }

/* ---------- 分页 ---------- */
.pager {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; margin: 36px auto 0; flex-wrap: wrap;
}
.pager a {
  min-width: 38px; height: 38px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #dfe8f2; border-radius: 6px;
  color: #3c4a5a; font-size: 14px; background: #fff;
  transition: all .2s;
}
.pager a:hover { color: #0b4a8f; border-color: #0b4a8f; }
.pager a.active { color: #fff; background: #0b4a8f; border-color: #0b4a8f; }
.pager .dots { color: #9aa8ba; padding: 0 4px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero h1 { font-size: 34px; }
  .about-flex { flex-direction: column; }
  .about-visual { flex: none; width: 100%; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .contact-wrap, .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 640px) {
  .header-inner { flex-direction: column; height: auto; padding: 12px 0; gap: 10px; }
  .nav { flex-wrap: wrap; justify-content: center; }
  .header-phone { display: none; }
  .hero { padding: 70px 0; text-align: center; }
  .hero p { margin: 0 auto 30px; }
  .product-grid { grid-template-columns: 1fr; }
}
