/* =============================
   千屹网络官网 - 主样式表
   ============================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a3a8f;
  --primary-light: #2550c8;
  --accent: #e8392a;
  --text: #2c2c2c;
  --text-light: #666;
  --text-muted: #999;
  --bg-light: #f6f8fc;
  --bg-white: #fff;
  --border: #e5e8ef;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --radius: 6px;
  --font: 'PingFang SC', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); line-height: 1.7; background: #fff; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---- 按钮 ---- */
.btn-main {
  display: inline-block;
  padding: 12px 32px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  transition: background .2s;
}
.btn-main:hover { background: var(--primary-light); }
.btn-outline {
  display: inline-block;
  padding: 10px 28px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius);
  font-size: 14px;
  transition: all .2s;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ---- 通用 Section ---- */
.section { padding: 72px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: 1px; }
.divider {
  width: 48px; height: 3px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 2px;
}
.sub-text { color: var(--text-light); font-size: 14px; margin-top: 10px; }

/* ========================
   HEADER / NAV
   ======================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  transition: all .3s;
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo a {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; color: var(--primary);
  letter-spacing: 1px;
}
.logo-svg {
  width: 38px; height: 38px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(26,86,219,0.25));
}
.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
}
.nav ul { display: flex; gap: 32px; }
.nav a {
  font-size: 15px; color: var(--text); transition: color .2s;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }

/* ========================
   BANNER
   ======================== */
.banner {
  position: relative;
  height: 520px;
  margin-top: 64px;
  display: flex; align-items: center;
  overflow: hidden;
}
.banner-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0d1f5c 0%, #1a3a8f 40%, #2550c8 70%, #3a6fd8 100%);
}
/* 装饰网格 */
.banner-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
/* 装饰圆 */
.banner-bg::after {
  content: '';
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.06), transparent 70%);
  right: -80px; top: -80px;
}
.banner-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.12); }
.banner-content {
  position: relative; z-index: 2;
  padding: 0 0 0 60px;
}
.banner-content h1 {
  font-size: 42px; font-weight: 800;
  color: #fff; letter-spacing: 3px;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
  margin-bottom: 16px;
}
.banner-content p {
  font-size: 17px; color: rgba(255,255,255,.85);
  margin-bottom: 32px; letter-spacing: 1px;
}

/* ========================
   STATS BAR
   ======================== */
.stats-bar {
  background: var(--primary);
  padding: 0;
}
.stats-bar .container {
  display: flex; justify-content: space-around;
}
.stat-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 16px;
  border-right: 1px solid rgba(255,255,255,.15);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 36px; font-weight: 800; color: #fff;
  line-height: 1;
}
.stat-num i { font-style: normal; font-size: 22px; }
.stat-label {
  font-size: 13px; color: rgba(255,255,255,.75);
  margin-top: 6px; letter-spacing: 1px;
}

/* ========================
   ABOUT BRIEF
   ======================== */
.about-brief { background: #fff; }
.about-flex { display: flex; gap: 64px; align-items: center; }
.about-text { flex: 1; }
.about-text p {
  color: var(--text-light); font-size: 15px; line-height: 1.9;
  margin-bottom: 14px;
}
.about-text .btn-outline { margin-top: 8px; }
.about-img { flex: 0 0 380px; }
.img-placeholder {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 260px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 13px;
  overflow: hidden;
  position: relative;
}
/* 简约楼宇图标 */
.building-icon { margin-bottom: 10px; }
.b-top {
  width: 80px; height: 14px;
  background: #c8d0e0; border-radius: 3px 3px 0 0;
  margin: 0 auto;
}
.b-mid {
  width: 100px; height: 110px;
  background: #dce3ef;
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 6px; padding: 8px;
  border-left: 3px solid #b0bbcc;
  border-right: 3px solid #b0bbcc;
}
.window {
  background: linear-gradient(135deg, #a0b8e0, #c8d8f0);
  border-radius: 2px;
}
.b-bot {
  width: 120px; height: 10px;
  background: #b0bbcc; border-radius: 0 0 3px 3px;
  margin: 0 auto;
}

/* ========================
   BUSINESS
   ======================== */
.business-section { background: var(--bg-light); }
.business-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.biz-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.biz-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.biz-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  margin: 0 auto 18px;
  background: var(--primary);
  position: relative;
}
/* 业务图标用简单形状模拟 */
.biz-icon::before, .biz-icon::after {
  content: '';
  position: absolute;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
}
.icon-dev::before { width: 20px; height: 4px; top: 17px; left: 10px; }
.icon-dev::after  { width: 4px; height: 20px; top: 10px; left: 26px; }
.icon-op::before  { width: 22px; height: 22px; top: 14px; left: 17px; border-radius: 50%; background: transparent; border: 3px solid rgba(255,255,255,.85); }
.icon-op::after   { width: 8px; height: 8px; top: 22px; left: 24px; border-radius: 50%; }
.icon-pub::before { width: 24px; height: 3px; top: 18px; left: 16px; }
.icon-pub::after  { width: 24px; height: 3px; top: 26px; left: 16px; }
.icon-tech::before { width: 16px; height: 16px; top: 14px; left: 12px; border-radius: 2px; }
.icon-tech::after  { width: 16px; height: 16px; top: 14px; left: 28px; border-radius: 2px; background: rgba(255,255,255,.5); }

.biz-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.biz-card p  { font-size: 13px; color: var(--text-light); line-height: 1.8; }

/* ========================
   NEWS
   ======================== */
.news-section { background: #fff; }
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.news-item:first-child { border-top: 1px solid var(--border); }
.news-date {
  flex: 0 0 64px;
  text-align: center;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 0;
}
.news-date .day { display: block; font-size: 26px; font-weight: 700; color: var(--primary); line-height: 1; }
.news-date .ym  { display: block; font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.news-body { flex: 1; }
.news-body h4 a { font-size: 15px; font-weight: 600; color: var(--text); transition: color .2s; }
.news-body h4 a:hover { color: var(--primary); }
.news-body p { font-size: 13px; color: var(--text-light); margin-top: 6px; line-height: 1.7; }
.more-link { text-align: center; margin-top: 32px; }

/* ========================
   PARTNERS
   ======================== */
.partners-section { background: var(--bg-light); }
.partners-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 16px;
}
.partner-logo {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 28px;
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
  min-width: 130px;
  text-align: center;
  transition: box-shadow .2s, color .2s;
}
.partner-logo:hover { box-shadow: var(--shadow); color: var(--primary); }

/* ========================
   FOOTER
   ======================== */
.footer { background: #13213f; color: rgba(255,255,255,.75); }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 40px;
  padding: 48px 0 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col h4 { font-size: 15px; color: #fff; font-weight: 600; margin-bottom: 14px; }
.footer-col p { font-size: 13px; line-height: 2; }
.footer-addr { margin-top: 6px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 13px; color: rgba(255,255,255,.65); transition: color .2s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}
.footer-bottom p { margin-bottom: 4px; }
.footer-bottom a { color: rgba(255,255,255,.5); transition: color .2s; }
.footer-bottom a:hover { color: rgba(255,255,255,.85); }

/* ========================
   INNER PAGE - ABOUT
   ======================== */
.page-hero {
  margin-top: 64px;
  background: linear-gradient(135deg, #0d1f5c, #1a3a8f);
  padding: 56px 0 52px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-hero h1 { font-size: 32px; font-weight: 700; position: relative; z-index: 1; }
.page-hero p  { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 10px; position: relative; z-index: 1; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 8px; position: relative; z-index: 1; }
.breadcrumb a { color: rgba(255,255,255,.6); }

/* ========================
   ABOUT PAGE
   ======================== */
.about-intro { background: #fff; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.intro-text h2 { font-size: 24px; font-weight: 700; margin-bottom: 20px; color: var(--primary); }
.intro-text p { font-size: 14px; color: var(--text-light); line-height: 1.9; margin-bottom: 12px; }
.intro-img-box {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 300px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 13px;
}

.milestones { background: var(--bg-light); }
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.tl-item { position: relative; padding: 0 0 32px 28px; }
.tl-dot {
  position: absolute;
  left: -22px; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}
.tl-year { font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.tl-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.tl-item p  { font-size: 13px; color: var(--text-light); }

.team-culture { background: #fff; }
.culture-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.culture-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.culture-card .c-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; font-weight: 700;
}
.culture-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.culture-card p  { font-size: 13px; color: var(--text-light); line-height: 1.8; }

/* ========================
   PRODUCTS PAGE
   ======================== */
.products-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.prod-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s;
}
.prod-card:hover { box-shadow: var(--shadow); }
.prod-img {
  height: 180px;
  background: linear-gradient(135deg, #1a3a8f, #2550c8);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); font-size: 13px;
}
.prod-img.color-2 { background: linear-gradient(135deg, #1a5c3a, #2aaa65); }
.prod-img.color-3 { background: linear-gradient(135deg, #5c1a1a, #c83030); }
.prod-img.color-4 { background: linear-gradient(135deg, #3a3a1a, #a0a02a); }
.prod-img.color-5 { background: linear-gradient(135deg, #1a3a5c, #2a80c8); }
.prod-body { padding: 18px 20px; }
.prod-body h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.prod-tag {
  display: inline-block;
  font-size: 11px; padding: 2px 8px;
  border-radius: 2px; margin-bottom: 8px;
  background: #e8f0fe; color: var(--primary);
}
.prod-body p { font-size: 13px; color: var(--text-light); line-height: 1.7; }
.prod-status {
  display: flex; align-items: center; gap: 6px;
  margin-top: 12px; font-size: 12px; color: var(--text-muted);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #52c41a; }
.status-dot.offline { background: #faad14; }

/* ========================
   NEWS PAGE
   ======================== */
.news-full .news-item { padding: 28px 0; }
.news-full .news-body h4 a { font-size: 16px; }

/* ========================
   CONTACT PAGE
   ======================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 { font-size: 18px; font-weight: 600; margin-bottom: 20px; }
.info-row {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 18px;
}
.info-icon {
  flex: 0 0 36px; height: 36px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 16px;
}
.info-text strong { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 2px; }
.info-text span { font-size: 14px; color: var(--text); }

.contact-form h3 { font-size: 18px; font-weight: 600; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text-light); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { height: 120px; resize: vertical; }
.form-submit {
  background: var(--primary); color: #fff;
  border: none; cursor: pointer;
  padding: 11px 32px;
  border-radius: var(--radius);
  font-size: 14px; font-family: var(--font);
  transition: background .2s;
}
.form-submit:hover { background: var(--primary-light); }

/* ========================
   MAP PLACEHOLDER
   ======================== */
.map-section { background: var(--bg-light); }
.map-placeholder {
  height: 280px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-muted); gap: 8px;
}
.map-placeholder .map-icon {
  width: 40px; height: 40px;
  border: 3px solid var(--primary);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  position: relative;
}
.map-placeholder .map-icon::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  background: var(--primary);
  border-radius: 50%;
  top: 9px; left: 9px;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 960px) {
  .business-grid { grid-template-columns: repeat(2,1fr); }
  .products-grid  { grid-template-columns: repeat(2,1fr); }
  .about-flex     { flex-direction: column; }
  .about-img      { flex: none; width: 100%; }
  .intro-grid     { grid-template-columns: 1fr; }
  .footer-top     { grid-template-columns: 1fr 1fr; }
  .culture-grid   { grid-template-columns: repeat(2,1fr); }
  .contact-grid   { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .business-grid   { grid-template-columns: 1fr; }
  .products-grid   { grid-template-columns: 1fr; }
  .culture-grid    { grid-template-columns: 1fr; }
  .footer-top      { grid-template-columns: 1fr; }
  .banner-content  { padding: 0 24px; }
  .banner-content h1 { font-size: 28px; }
  .stats-bar .container { flex-wrap: wrap; }
  .stat-item { flex: 0 0 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 0; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 10px 24px; border-bottom: none; }
  .nav-toggle { display: flex; }
}
