/* ==========================================================================
   激光熔覆服务官网 - 全站样式
   工业蓝灰配色 / 响应式 / SEO友好
   ========================================================================== */

:root {
  --primary: #1d5c8f;
  --primary-light: #2f76ad;
  --primary-dark: #143d5f;
  --primary-darker: #0d2c47;
  --accent: #e07b2f;
  --accent-dark: #c86a20;
  --bg: #ffffff;
  --bg-gray: #f2f6fa;
  --bg-blue: #e8f0f8;
  --line: #dfe7f0;
  --text: #2b3440;
  --muted: #5c6b7a;
  --white: #ffffff;
  --shadow: 0 2px 10px rgba(13, 44, 71, 0.08);
  --shadow-lg: 0 8px 28px rgba(13, 44, 71, 0.14);
  --radius: 8px;
  --radius-lg: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
ul, ol { padding-left: 1.4em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-light); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.75); }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: var(--white); }

.section { padding: 70px 0; }
.section-gray { background: var(--bg-gray); }
.section-blue { background: var(--bg-blue); }
.section-title { font-size: 30px; color: var(--primary-darker); text-align: center; margin-bottom: 12px; font-weight: 700; }
.section-sub { text-align: center; color: var(--muted); max-width: 760px; margin: 0 auto 42px; font-size: 16px; }

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }

/* ---------- 顶栏 ---------- */
.header-top { background: var(--primary-darker); color: rgba(255,255,255,0.85); font-size: 14px; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; flex-wrap: wrap; }
.header-top a { color: rgba(255,255,255,0.9); }
.header-top a:hover { color: #fff; }
.top-phone { font-weight: 700; letter-spacing: 0.5px; }

.header-main { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: flex; flex-direction: column; line-height: 1.2; }
.brand-logo { font-size: 22px; font-weight: 800; color: var(--primary-darker); }
.brand-logo i { color: var(--accent); font-style: normal; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 1px; }

.site-nav { display: flex; gap: 6px; }
.site-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover, .site-nav a.active { color: var(--white); background: var(--primary); }

.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--primary-darker); cursor: pointer; padding: 4px 8px; }

/* ---------- 首页大图区 ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: var(--white);
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(224,123,47,0.28), transparent 40%),
    radial-gradient(circle at 12% 85%, rgba(255,255,255,0.10), transparent 45%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.hero h1 { font-size: 40px; line-height: 1.35; margin-bottom: 18px; font-weight: 800; }
.hero h1 em { font-style: normal; color: #ffc089; }
.hero p { font-size: 17px; color: rgba(255,255,255,0.88); max-width: 720px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats .stat { }
.hero-stats .num { font-size: 30px; font-weight: 800; color: #ffc089; }
.hero-stats .label { font-size: 13px; color: rgba(255,255,255,0.8); }

/* 页面副标题条（内页顶部） */
.page-hero {
  background: linear-gradient(120deg, var(--primary-darker), var(--primary));
  color: var(--white);
  padding: 56px 0 48px;
}
.page-hero h1 { font-size: 32px; margin-bottom: 10px; font-weight: 800; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 760px; }
.breadcrumb { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,0.75); }
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: #fff; }

/* ---------- 卡片 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card .icon { width: 52px; height: 52px; border-radius: 10px; background: var(--bg-blue); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card h3 { font-size: 18px; color: var(--primary-darker); margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--muted); }

/* ---------- 双城服务 ---------- */
.city-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.city-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--white);
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s;
}
.city-card:hover { transform: translateY(-5px); }
.city-card.tj { background: linear-gradient(135deg, #0d2c47, #1d5c8f 70%); }
.city-card.bj { background: linear-gradient(135deg, #143d5f, #2f76ad 75%); }
.city-card h3 { font-size: 26px; margin-bottom: 8px; }
.city-card p { color: rgba(255,255,255,0.86); font-size: 14.5px; margin-bottom: 14px; }
.city-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.city-card .tags span { font-size: 12.5px; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.3); padding: 3px 10px; border-radius: 999px; }
.city-card .btn { padding: 9px 22px; font-size: 14px; }

/* ---------- 优势列表 ---------- */
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-item { display: flex; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature-item .fi-no { font-size: 26px; font-weight: 800; color: var(--accent); min-width: 44px; }
.feature-item h3 { font-size: 17px; color: var(--primary-darker); margin-bottom: 6px; }
.feature-item p { font-size: 14px; color: var(--muted); }

/* ---------- 文章列表 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  color: var(--text);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.news-card .cat {
  display: inline-block; font-size: 12px; color: var(--primary);
  background: var(--bg-blue); border-radius: 4px; padding: 2px 8px; margin-bottom: 10px;
}
.news-card h3 { font-size: 16.5px; line-height: 1.5; color: var(--primary-darker); margin-bottom: 8px; }
.news-card p { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .more { font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 10px; display: inline-block; }

/* 文章分类页（news/index.html） */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.cat-tabs a {
  padding: 7px 18px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; color: var(--muted); background: var(--white);
}
.cat-tabs a:hover, .cat-tabs a.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

.cat-section { margin-bottom: 44px; }
.cat-section h2 { font-size: 22px; color: var(--primary-darker); margin-bottom: 6px; border-left: 4px solid var(--accent); padding-left: 12px; }
.cat-section .cat-desc { color: var(--muted); font-size: 14px; margin-bottom: 16px; padding-left: 16px; }
.article-list { list-style: none; padding: 0; }
.article-list li {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 10px; padding: 12px 18px; transition: box-shadow 0.2s;
}
.article-list li:hover { box-shadow: var(--shadow); }
.article-list a { display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--text); }
.article-list a:hover { color: var(--accent); }
.article-list .num { color: var(--accent); font-weight: 700; min-width: 54px; font-size: 14px; }
.article-list .t { flex: 1; }

/* ---------- 文章详情页 ---------- */
.article-page { padding: 40px 0 60px; }
.article-detail {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 46px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}
.article-detail .crumb { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.article-detail .crumb a { color: var(--muted); }
.article-detail .crumb a:hover { color: var(--accent); }
.article-detail h1 { font-size: 28px; color: var(--primary-darker); line-height: 1.45; margin-bottom: 14px; font-weight: 800; }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 24px; }
.article-meta .cat { color: var(--primary); background: var(--bg-blue); border-radius: 4px; padding: 1px 8px; }
.article-detail h2 { font-size: 21px; color: var(--primary); margin: 30px 0 12px; line-height: 1.5; }
.article-detail h3 { font-size: 18px; color: var(--primary-dark); margin: 24px 0 10px; }
.article-detail p { margin-bottom: 14px; }
.article-detail ul, .article-detail ol { margin-bottom: 14px; }
.article-detail li { margin-bottom: 6px; }
.article-detail table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.article-detail th, .article-detail td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article-detail th { background: var(--bg-blue); color: var(--primary-dark); font-weight: 600; }
.article-detail strong { color: var(--primary-dark); }
.article-detail blockquote { border-left: 4px solid var(--accent); background: var(--bg-gray); padding: 12px 16px; margin: 16px 0; color: var(--muted); border-radius: 0 6px 6px 0; }
.article-cta {
  margin-top: 34px; background: var(--bg-blue); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 24px; text-align: center;
}
.article-cta p { margin-bottom: 12px; font-size: 15px; color: var(--primary-dark); }
.article-cta .tel { font-size: 24px; font-weight: 800; color: var(--accent); letter-spacing: 1px; }

.related { background: var(--bg-gray); border-radius: var(--radius-lg); padding: 26px; }
.related h2 { font-size: 20px; color: var(--primary-darker); margin-bottom: 16px; }
.related ul { list-style: none; padding: 0; }
.related li { margin-bottom: 8px; padding-left: 18px; position: relative; }
.related li::before { content: "›"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.related a { color: var(--text); font-size: 15px; }
.related a:hover { color: var(--accent); }

/* ---------- 关于/联系页 ---------- */
.prose-block { max-width: 860px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 46px; box-shadow: var(--shadow); }
.prose-block h2 { font-size: 22px; color: var(--primary); margin: 26px 0 12px; }
.prose-block p { margin-bottom: 14px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card { text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 22px; box-shadow: var(--shadow); }
.contact-card .cc-icon { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; background: var(--bg-blue); display: flex; align-items: center; justify-content: center; }
.contact-card h3 { font-size: 17px; color: var(--primary-darker); margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--muted); }
.contact-card .big { font-size: 22px; font-weight: 800; color: var(--accent); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--primary-darker); color: rgba(255,255,255,0.78); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.4fr 1.6fr; gap: 40px; padding: 52px 0 36px; }
.footer-col h3 { font-size: 17px; color: var(--white); margin-bottom: 14px; position: relative; padding-bottom: 10px; }
.footer-col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--accent); border-radius: 2px; }
.footer-col p { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.78); display: block; margin-bottom: 8px; }
.footer-col a:hover { color: #ffc089; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding: 18px 0; text-align: center; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,0.85); }
.footer-bottom a:hover { color: #ffc089; }
.footer-bottom .beian { color: rgba(255,255,255,0.6); }

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed; right: 22px; bottom: 26px; width: 44px; height: 44px;
  background: var(--primary); color: var(--white); border: none; border-radius: 8px;
  font-size: 18px; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden;
  transition: all 0.3s; z-index: 90;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--accent); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 110px 20px; }
.notfound .code { font-size: 90px; font-weight: 800; color: var(--bg-blue); line-height: 1; }
.notfound h1 { font-size: 28px; color: var(--primary-darker); margin: 10px 0; }
.notfound p { color: var(--muted); margin-bottom: 26px; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--white); padding: 10px 20px 18px;
    box-shadow: var(--shadow-lg); display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 28px; }
  .section { padding: 52px 0; }
  .city-grid { grid-template-columns: 1fr; }
  .article-detail, .prose-block { padding: 26px 22px; }
  .article-detail h1 { font-size: 23px; }
  .header-top .top-slogan { display: none; }
  .header-top .container { justify-content: center; }
}

@media (max-width: 576px) {
  .card-grid, .feature-list, .news-grid, .contact-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .hero-stats .num { font-size: 24px; }
  .btn { padding: 10px 22px; font-size: 15px; }
  .section-title { font-size: 24px; }
  .footer-bottom .container { flex-direction: column; gap: 6px; }
}
