/* ============================================================
   上海策炜科技有限公司 官网样式
   纯静态 · 无外部依赖 · 响应式
   ============================================================ */

:root {
  --primary: #1d4ed8;
  --primary-dark: #16389e;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg-soft: #f5f7fb;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(29, 78, 216, 0.08);
  --shadow-hover: 0 8px 28px rgba(29, 78, 216, 0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
}

.brand-name { font-size: 18px; font-weight: 700; color: var(--ink); }
.brand-name small { display: block; font-size: 10px; font-weight: 400; color: var(--muted); letter-spacing: 0.4px; }

.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 15px;
  color: var(--ink-soft);
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--primary); background: var(--bg-soft); }
.nav-links a.active { color: var(--primary); font-weight: 600; background: rgba(29, 78, 216, 0.07); }

/* ---------- 首页 Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(59, 130, 246, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(29, 78, 216, 0.08), transparent),
    var(--bg-soft);
  padding: 96px 0 88px;
}

.hero-inner { display: flex; align-items: center; gap: 60px; }
.hero-text { flex: 1.15; }
.hero-visual { flex: 0.85; }

.hero-kicker {
  display: inline-block;
  font-size: 13px;
  color: var(--primary);
  background: rgba(29, 78, 216, 0.08);
  border: 1px solid rgba(29, 78, 216, 0.18);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--ink);
}
.hero h1 em { font-style: normal; color: var(--primary); }

.hero p { font-size: 16.5px; color: var(--ink-soft); max-width: 520px; margin-bottom: 32px; }

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

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink-soft); background: #fff; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* Hero 装饰图形（纯 SVG，无外部资源） */
.hero-art { width: 100%; }

/* ---------- 数据条 ---------- */
.stats-band { background: var(--white); border-bottom: 1px solid var(--line); }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 36px 0;
  text-align: center;
}
.stat-num { font-size: 30px; font-weight: 700; color: var(--primary); }
.stat-num small { font-size: 16px; font-weight: 600; }
.stat-label { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* ---------- 通用区块 ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .eyebrow {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.section-head h2 { font-size: 30px; font-weight: 700; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 15.5px; }

/* ---------- 卡片网格 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: all 0.25s;
}
.card:hover { box-shadow: var(--shadow-hover); border-color: rgba(29, 78, 216, 0.35); transform: translateY(-3px); }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(29, 78, 216, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--muted); }

/* ---------- 关于页 ---------- */
.about-split { display: flex; gap: 56px; align-items: flex-start; }
.about-main { flex: 1.2; }
.about-aside { flex: 0.8; }

.about-main h2 { font-size: 26px; margin-bottom: 18px; }
.about-main p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 16px; text-align: justify; }

.info-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 28px;
}
.info-card h3 { font-size: 17px; margin-bottom: 16px; }
.info-row { display: flex; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.info-row:last-child { border-bottom: none; }
.info-row b { width: 92px; flex-shrink: 0; color: var(--muted); font-weight: 500; }

.milestone { border-left: 2px solid var(--line); margin-left: 8px; padding-left: 26px; }
.milestone-item { position: relative; padding-bottom: 26px; }
.milestone-item:last-child { padding-bottom: 0; }
.milestone-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.25);
}
.milestone-item .year { font-weight: 700; color: var(--primary); font-size: 16px; }
.milestone-item p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }

/* ---------- 新闻列表 ---------- */
.news-list { max-width: 800px; margin: 0 auto; }
.news-item {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.news-item:hover { background: var(--bg-soft); }
.news-date { flex-shrink: 0; text-align: center; width: 66px; }
.news-date .d { font-size: 24px; font-weight: 700; color: var(--primary); line-height: 1.1; }
.news-date .m { font-size: 12px; color: var(--muted); }
.news-item h3 { font-size: 16.5px; margin-bottom: 6px; }
.news-item:hover h3 { color: var(--primary); }
.news-item p { font-size: 14px; color: var(--muted); }

/* ---------- 联系页 ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-info-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-info-item:last-child { border-bottom: none; }
.ci-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 10px; background: rgba(29, 78, 216, 0.08);
  display: flex; align-items: center; justify-content: center;
}
.ci-icon svg { width: 20px; height: 20px; }
.contact-info-item h4 { font-size: 15px; margin-bottom: 3px; }
.contact-info-item p { font-size: 14px; color: var(--muted); }

.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}
.form-panel h3 { font-size: 19px; margin-bottom: 6px; }
.form-panel > p { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }

.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14.5px;
  font-family: inherit;
  background: #fbfcfe;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 55%, #3b82f6);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}
.cta-band h2 { font-size: 28px; margin-bottom: 12px; }
.cta-band p { opacity: 0.85; margin-bottom: 28px; font-size: 15.5px; }
.cta-band .btn { background: #fff; color: var(--primary); }
.cta-band .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); }

/* ---------- 页脚 ---------- */
.site-footer { background: #111a2e; color: #9aa7c0; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .brand-name { color: #fff; font-size: 16px; }
.footer-desc { font-size: 13.5px; line-height: 1.8; max-width: 300px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13.5px; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
}
.footer-bottom a { color: #9aa7c0; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 页面标题条 ---------- */
.page-banner {
  background: linear-gradient(135deg, #f0f4fd, #f7f9ff);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}
.page-banner h1 { font-size: 30px; font-weight: 700; margin-bottom: 8px; }
.page-banner p { color: var(--muted); font-size: 14.5px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; gap: 36px; }
  .hero h1 { font-size: 30px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-split { flex-direction: column; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2, .form-two { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
