/* ============================================================
   创蓝采招官方网站 - 全局样式
   蓝色主题 / 响应式 / 移动端适配
   ============================================================ */

:root {
  --blue-900: #0a2a52;
  --blue-800: #0d3366;
  --blue-700: #0a4fa3;
  --blue-600: #1565c0;
  --blue-500: #1e88e5;
  --blue-400: #42a5f5;
  --blue-300: #90caf9;
  --blue-100: #e3f2fd;
  --blue-50:  #f2f8ff;
  --ink:      #1b2733;
  --ink-2:    #44566c;
  --muted:    #7a8aa0;
  --line:     #e1e9f3;
  --bg:       #ffffff;
  --bg-soft:  #f5f9ff;
  --white:    #ffffff;
  --shadow:   0 10px 30px rgba(13, 51, 102, 0.10);
  --shadow-sm:0 4px 14px rgba(13, 51, 102, 0.08);
  --radius:   16px;
  --radius-sm:10px;
  --maxw:     1200px;
  --header-h: 68px;
  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); color: #fff; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: .25s; white-space: nowrap;
}
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 20px rgba(21,101,192,.28); }
.btn--primary:hover { background: var(--blue-700); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: rgba(255,255,255,.22); }
.btn--outline { background: #fff; color: var(--blue-700); border-color: var(--blue-300); }
.btn--outline:hover { border-color: var(--blue-600); color: var(--blue-600); }

/* ---------- 头部导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--blue-800); }
.brand .logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: 0 6px 14px rgba(21,101,192,.35);
}
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .5px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 9px 14px; border-radius: 10px; font-size: 15px; color: var(--ink-2); font-weight: 500; transition: .2s;
}
.nav a:hover, .nav a.active { color: var(--blue-700); background: var(--blue-50); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--blue-800); border-radius: 2px; transition: .3s; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0a2a52 0%, #0a4fa3 55%, #1e88e5 100%);
  color: #fff; padding: 90px 0 100px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5;
}
.hero::before { width: 480px; height: 480px; right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(66,165,245,.55), transparent 70%); }
.hero::after { width: 360px; height: 360px; left: -120px; bottom: -160px;
  background: radial-gradient(circle, rgba(144,202,249,.4), transparent 70%); }
.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.hero h1 { font-size: 42px; line-height: 1.25; margin: 0 0 18px; font-weight: 800; }
.hero h1 .hl { color: #9ecbff; }
.hero p { font-size: 17px; color: #d7e6fb; max-width: 540px; margin: 0 0 28px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 30px; margin-top: 38px; }
.hero__stats .num { font-size: 30px; font-weight: 800; }
.hero__stats .lbl { font-size: 13px; color: #bcd4f3; }

/* Hero 装饰插画（纯SVG/CSS） */
.hero__art {
  position: relative; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18); border-radius: 22px; padding: 22px;
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
}
.hero__art .fake-ui { background: rgba(255,255,255,.95); border-radius: 14px; padding: 18px; color: var(--ink); }
.fake-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.fake-row:last-child { border-bottom: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue-400); flex: none; }
.fake-bar { height: 10px; border-radius: 6px; background: var(--blue-100); flex: 1; }
.fake-bar.s { width: 60%; }
.fake-bar.m { width: 80%; }
.fake-pill { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--blue-100); color: var(--blue-700); font-weight: 700; }

/* ---------- 区块标题 ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow { color: var(--blue-600); font-weight: 700; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; }
.section-head h2 { font-size: 32px; margin: 10px 0 12px; color: var(--blue-900); font-weight: 800; }
.section-head p { color: var(--ink-2); margin: 0; font-size: 16px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: .25s; box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-200, #cfe0f5); }

.icon-box {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
  color: var(--blue-700); margin-bottom: 18px;
}
.icon-box svg { width: 30px; height: 30px; }

.feature h3 { margin: 0 0 8px; font-size: 19px; color: var(--blue-900); }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- 数据条 ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.metric .n { font-size: 40px; font-weight: 800; color: #fff; }
.metric .t { color: #bcd4f3; font-size: 14px; margin-top: 6px; }

/* ---------- 产品列表 ---------- */
.product-card { display: flex; flex-direction: column; }
.product-card .thumb {
  border-radius: 12px; overflow: hidden; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  aspect-ratio: 16/9; display: grid; place-items: center; position: relative;
}
.product-card .thumb svg { width: 64px; height: 64px; color: var(--blue-600); }
.product-card h3 { font-size: 19px; margin: 0 0 8px; color: var(--blue-900); }
.product-card p { color: var(--ink-2); font-size: 14px; margin: 0 0 14px; flex: 1; }
.tag { display: inline-block; font-size: 12px; color: var(--blue-700); background: var(--blue-100);
  padding: 4px 12px; border-radius: 999px; font-weight: 700; }

/* ---------- 新闻列表 ---------- */
.news-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center;
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: .25s; margin-bottom: 16px;
}
.news-item:hover { box-shadow: var(--shadow); border-color: var(--blue-300); transform: translateY(-3px); }
.news-date {
  text-align: center; border-right: 1px solid var(--line); padding-right: 14px;
}
.news-date .d { font-size: 30px; font-weight: 800; color: var(--blue-600); line-height: 1; }
.news-date .y { font-size: 13px; color: var(--muted); }
.news-item h3 { margin: 0 0 6px; font-size: 18px; color: var(--blue-900); }
.news-item p { margin: 0 0 8px; color: var(--ink-2); font-size: 14px; }
.news-cat { font-size: 12px; color: var(--blue-700); background: var(--blue-100); padding: 3px 10px; border-radius: 999px; font-weight: 700; }

/* ---------- 面包屑 ---------- */
.breadcrumb { background: var(--bg-soft); padding: 22px 0; font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--blue-600); }
.breadcrumb span.sep { margin: 0 8px; }

/* ---------- 关于我们 ---------- */
.about-hero {
  background: linear-gradient(135deg, #0a2a52, #1e88e5);
  color: #fff; padding: 70px 0;
}
.about-hero h1 { font-size: 36px; margin: 0 0 10px; font-weight: 800; }
.about-hero p { color: #d7e6fb; max-width: 760px; margin: 0; font-size: 16px; }
.timeline { position: relative; margin-top: 10px; }
.timeline::before { content: ""; position: absolute; left: 86px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 30px 130px; }
.tl-item .year { position: absolute; left: 0; top: -4px; width: 70px; text-align: right; font-weight: 800; color: var(--blue-700); font-size: 18px; }
.tl-item .node { position: absolute; left: 79px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--blue-600); border: 3px solid #fff; box-shadow: 0 0 0 3px var(--blue-100); }
.tl-item h4 { margin: 0 0 6px; color: var(--blue-900); }
.tl-item p { margin: 0; color: var(--ink-2); font-size: 15px; }

.value-card { text-align: center; padding: 30px 22px; }
.value-card .icon-box { margin: 0 auto 16px; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list .ic { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; }
.info-list .ic svg { width: 22px; height: 22px; }
.info-list b { display: block; color: var(--blue-900); }
.info-list span { color: var(--ink-2); font-size: 15px; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.form label { display: block; font-size: 14px; font-weight: 600; color: var(--blue-900); margin: 0 0 8px; }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; color: var(--ink); background: var(--bg-soft); margin-bottom: 18px;
  transition: .2s;
}
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 3px var(--blue-100); }
.form textarea { resize: vertical; min-height: 120px; }
.form .note { font-size: 13px; color: var(--muted); margin-top: 6px; }

.map-placeholder {
  height: 320px; border-radius: var(--radius); overflow: hidden; position: relative;
  background:
    linear-gradient(rgba(10,79,163,.08), rgba(10,79,163,.08)),
    repeating-linear-gradient(45deg, #eaf2fc, #eaf2fc 22px, #e3eefb 22px, #e3eefb 44px);
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--blue-700); font-weight: 700;
}

/* ---------- 页脚 ---------- */
.footer { background: var(--blue-900); color: #c7d8ef; padding: 56px 0 24px; }
.footer h4 { color: #fff; font-size: 16px; margin: 0 0 16px; }
.footer a { color: #aec6e6; display: block; padding: 5px 0; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand small { color: #8fb0d8; }
.footer p { font-size: 14px; color: #9fb7d6; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; text-align: center; font-size: 13px; color: #8fb0d8; }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--blue-600); color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 24px rgba(21,101,192,.4); opacity: 0; pointer-events: none; transition: .3s; z-index: 90;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--blue-700); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { display: none; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 768px) {
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 20px; transform: translateX(100%); transition: .3s; z-index: 99;
    box-shadow: 0 20px 40px rgba(0,0,0,.1);
  }
  .nav.open { transform: translateX(0); }
  .nav a { padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-toggle { display: flex; }
  .section { padding: 52px 0; }
  .hero { padding: 64px 0 72px; }
  .hero h1 { font-size: 30px; }
  .hero__stats { gap: 18px; flex-wrap: wrap; }
  .section-head h2 { font-size: 26px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 12px; }
  .news-date { display: flex; align-items: baseline; gap: 8px; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 10px; }
  .timeline::before { left: 12px; }
  .tl-item { padding: 0 0 26px 44px; }
  .tl-item .year { position: static; width: auto; text-align: left; margin-bottom: 2px; }
  .tl-item .node { left: 5px; }
}
