/* ==========================================================================
   陕西蓝盾云网 企业官网样式
   主色 / 辅色可在 data/site.json 的 theme 中调整（后台可改）
   ========================================================================== */

:root {
  --primary: #194ce3;
  --primary-dark: #12328f;
  --accent: #359af3;
  --navy: #0b1f3f;
  --text: #1f2937;
  --text-muted: #64748b;
  --bg: #f6f8fc;
  --card: #ffffff;
  --line: #e3e9f2;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 40, 90, 0.08);
  --shadow-lg: 0 18px 50px rgba(15, 40, 90, 0.14);
  --max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 15px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------------------- 顶部导航 ---------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}

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

.brand-logo {
  height: 46px;
  width: auto;
  display: block;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.28);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 18px; letter-spacing: 0.5px; color: var(--navy); }
.brand-text small { font-size: 12px; color: var(--text-muted); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 15px; color: #334155; position: relative; padding: 6px 0; }
.nav a:hover { color: var(--primary); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.25s;
}
.nav a:hover::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff !important;
  padding: 9px 18px !important;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.25);
}
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 20px;
  padding: 4px 10px;
  cursor: pointer;
  color: var(--navy);
}

/* ---------------------------- 首屏 ---------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 82% 8%, rgba(6, 182, 212, 0.28), transparent 62%),
    radial-gradient(700px 380px at 8% 100%, rgba(59, 130, 246, 0.28), transparent 60%),
    linear-gradient(135deg, #0b1f3f 0%, #123063 55%, #1d4ed8 100%);
  color: #fff;
  padding: 92px 0 104px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 800px; }

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.28;
  margin: 0 0 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero p {
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 34px;
  max-width: 680px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------------------------- 通用区块 ---------------------------- */

.section { padding: 84px 0; }
.section.alt { background: #fff; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }

.section-head h2 {
  font-size: clamp(23px, 3vw, 32px);
  margin: 0 0 12px;
  color: var(--navy);
  letter-spacing: 1px;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  border-radius: 4px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.section-head p { color: var(--text-muted); margin: 0; }

/* ---------------------------- 关于我们 ---------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 46px;
  align-items: start;
}

.about-text p { margin: 0 0 16px; color: #374151; }

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

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat .num {
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.3;
}

.stat .label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ---------------------------- 卡片网格 ---------------------------- */

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #cddcf5; }
.card:hover::before { transform: scaleX(1); }

.card .icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #eaf1ff, #e6fbff);
  font-size: 26px;
  margin-bottom: 18px;
}

.card h3 { margin: 0 0 10px; font-size: 17.5px; color: var(--navy); }
.card p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

/* 优势区（深色） */
.advantage-band {
  background: linear-gradient(135deg, #0b1f3f, #16386f);
  color: #fff;
}
.advantage-band .section-head h2 { color: #fff; }
.advantage-band .section-head p { color: rgba(255, 255, 255, 0.7); }
.advantage-band .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  color: #fff;
}
.advantage-band .card h3 { color: #fff; }
.advantage-band .card p { color: rgba(255, 255, 255, 0.72); }
.advantage-band .card .icon { background: rgba(255, 255, 255, 0.12); }

/* ---------------------------- 新闻 ---------------------------- */

.news-list { display: grid; gap: 14px; }

.news-item {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.22s, box-shadow 0.22s;
}
.news-item:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }

.news-date {
  flex: 0 0 108px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.5px;
  padding-top: 3px;
}

.news-body h3 { margin: 0 0 6px; font-size: 16.5px; color: var(--navy); }
.news-body p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

/* ---------------------------- 联系 ---------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
}

.contact-info { display: grid; gap: 16px; align-content: start; }

.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.info-row .ico { font-size: 20px; line-height: 1.5; }
.info-row .k { font-size: 12.5px; color: var(--text-muted); }
.info-row .v { font-size: 15px; color: var(--navy); font-weight: 600; word-break: break-all; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.form-card h3 { margin: 0 0 20px; color: var(--navy); font-size: 18px; }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; color: #475569; margin-bottom: 6px; }
.field input,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14.5px;
  font-family: inherit;
  background: #fbfcfe;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 96px; }

.form-tip { font-size: 12.5px; color: var(--text-muted); margin-top: 12px; }

.form-msg {
  margin-top: 14px;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  display: none;
}
.form-msg.ok { display: block; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.form-msg.err { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---------------------------- 页脚 ---------------------------- */

.site-footer {
  background: #081630;
  color: rgba(255, 255, 255, 0.72);
  padding: 54px 0 26px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand strong { color: #fff; font-size: 17px; }
.footer-logo-box {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 7px 12px;
}
.footer-logo-box img { height: 32px; width: auto; display: block; }
.site-footer p { margin: 0; max-width: 520px; line-height: 1.8; }

.footer-links h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer-links a { display: block; padding: 5px 0; color: rgba(255, 255, 255, 0.66); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.loading { text-align: center; padding: 120px 0; color: var(--text-muted); }

/* ---------------------------- 响应式 ---------------------------- */

@media (max-width: 900px) {
  .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav {
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px dashed var(--line); }
  .nav a::after { display: none; }
  .nav-cta { text-align: center; margin-top: 12px; border-radius: 10px !important; }
  .nav-toggle { display: block; }
  .brand-logo { height: 38px; }
  .grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 72px; }
  .news-item { flex-direction: column; gap: 6px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}
