/* ============================================
   江苏中百系统集成科技有限公司 官网样式
   品牌色：科技蓝 + 深空蓝灰
   ============================================ */

:root {
  --brand-blue: #0b5ed7;
  --brand-blue-dark: #0847a3;
  --brand-navy: #0f2038;
  --brand-navy-2: #16283f;
  --accent-cyan: #18a0c8;
  --accent-gold: #c9a24b;
  --text-primary: #1a2332;
  --text-secondary: #4a5568;
  --text-light: #8a94a6;
  --bg-white: #ffffff;
  --bg-light: #f5f7fa;
  --bg-gray: #eef1f5;
  --border-color: #e2e6ec;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(15, 32, 56, 0.06);
  --shadow-md: 0 6px 24px rgba(15, 32, 56, 0.10);
  --shadow-lg: 0 12px 40px rgba(15, 32, 56, 0.14);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-gray { background: var(--bg-light); }

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head .en {
  display: block;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand-blue);
  font-weight: 600;
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.section-head .line {
  width: 48px;
  height: 3px;
  background: var(--brand-blue);
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-head p.desc {
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== 顶部导航 ===== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow .3s;
}

.topbar.scrolled { box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo-mark {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--brand-blue), var(--accent-cyan));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
}

.logo-text { line-height: 1.2; }
.logo-text .cn { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.logo-text .en { font-size: 10px; color: var(--text-light); letter-spacing: 0.5px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 32px; }

.nav-links a {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}

.nav-links a:hover { color: var(--brand-blue); }

.nav-links a.active { color: var(--brand-blue); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brand-blue);
  border-radius: 1px;
}

.nav-cta {
  background: var(--brand-blue);
  color: #fff;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
}

.nav-cta:hover { background: var(--brand-blue-dark); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: .3s;
}

/* ===== Hero 区 ===== */
.hero {
  position: relative;
  padding: 140px 0 100px;
  background: linear-gradient(150deg, #0f2038 0%, #16283f 40%, #0b3a6b 100%);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  right: -120px; top: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(24,160,200,0.35), transparent 70%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 2; }

.hero-tag {
  display: inline-block;
  background: rgba(24,160,200,0.2);
  border: 1px solid rgba(24,160,200,0.5);
  color: #7fd4ea;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 1px;
  margin-bottom: 20px;
  max-width: 720px;
}

.hero h1 .highlight { color: #7fd4ea; }

.hero .subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 620px;
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: all .2s;
  cursor: pointer;
}

.btn-primary { background: var(--brand-blue); color: #fff; }
.btn-primary:hover { background: var(--brand-blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.hero-stat { text-align: left; }

.hero-stat .num {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero-stat .num span { color: #7fd4ea; font-size: 20px; }

.hero-stat .label { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 8px; }

/* ===== 通用卡片 ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all .25s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-blue);
}

.card .icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(11,94,215,0.1), rgba(24,160,200,0.1));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 26px;
}

.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; color: var(--text-primary); }

.card p { font-size: 15px; color: var(--text-secondary); line-height: 1.8; }

/* ===== 业务范围 ===== */
.business-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.business-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all .2s;
}

.business-item:hover { border-color: var(--brand-blue); box-shadow: var(--shadow-sm); }

.business-item .dot {
  width: 8px; height: 8px;
  background: var(--brand-blue);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.business-item .name { font-weight: 600; font-size: 16px; color: var(--text-primary); }
.business-item .en { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* ===== 项目业绩 ===== */
.project-filter { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.filter-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}

.filter-btn:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.filter-btn.active { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.project-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .25s;
}

.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.project-thumb {
  height: 170px;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue));
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.project-thumb .tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 4px;
}

.project-thumb .status {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
}

.status-done { background: rgba(76,175,80,0.9); color: #fff; }
.status-ongoing { background: rgba(255,152,0,0.9); color: #fff; }

.project-thumb .icon-big { font-size: 48px; opacity: 0.8; }

.project-body { padding: 20px; }

.project-body .client { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; line-height: 1.4; }

.project-body .scope { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.6; }

.project-body .meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-light);
  padding-top: 12px;
  border-top: 1px solid var(--bg-gray);
}

.project-body .meta .amount { color: var(--brand-blue); font-weight: 700; font-size: 14px; }

/* ===== 资质 ===== */
.qual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.qual-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all .25s;
}

.qual-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--accent-gold); }

.qual-card .badge {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), #e0b96a);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}

.qual-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.qual-card .level { color: var(--accent-gold); font-weight: 700; font-size: 15px; }
.qual-card .desc { font-size: 13px; color: var(--text-light); margin-top: 6px; }

/* ===== 关于/文化 ===== */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }

.about-text h3 { font-size: 26px; font-weight: 700; margin-bottom: 20px; }
.about-text p { color: var(--text-secondary); font-size: 15px; line-height: 1.9; margin-bottom: 16px; }

.about-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }

.about-point {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.about-point .num { font-size: 28px; font-weight: 800; color: var(--brand-blue); }
.about-point .label { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }

.culture-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.culture-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.culture-item h3 { font-size: 18px; font-weight: 700; color: var(--brand-blue); margin-bottom: 8px; }
.culture-item .cn { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.culture-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }

/* ===== 联系 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.contact-info .item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info .icon { font-size: 22px; }
.contact-info .label { font-size: 13px; color: var(--text-light); }
.contact-info .value { font-size: 16px; font-weight: 600; color: var(--text-primary); }

/* ===== 页脚 ===== */
.footer {
  background: var(--brand-navy);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }

.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer p { font-size: 14px; line-height: 1.8; }
.footer a { font-size: 14px; display: block; margin-bottom: 10px; transition: color .2s; }
.footer a:hover { color: #7fd4ea; }

.footer .slogan {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2px;
  margin-top: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

/* ===== 子页面 banner ===== */
.page-banner {
  background: linear-gradient(150deg, #0f2038, #0b3a6b);
  color: #fff;
  padding: 120px 0 60px;
  text-align: center;
}

.page-banner h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.page-banner .crumb { font-size: 14px; color: rgba(255,255,255,0.6); }
.page-banner .crumb a:hover { color: #7fd4ea; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .grid-3, .grid-4, .qual-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 20px 24px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--bg-gray); }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4, .qual-grid, .project-grid, .business-list, .culture-list, .about-points { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 110px 0 70px; }
  .hero h1 { font-size: 30px; }
  .hero-stats { gap: 28px; }
  .hero-stat .num { font-size: 28px; }
}
