/* ============ 星辰科技 · 企业官网 ============ */
:root {
  --primary: #1d4ed8;
  --primary-dark: #0b1f3a;
  --primary-deep: #07162b;
  --accent: #38bdf8;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 31, 58, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; color: var(--primary-dark);
  letter-spacing: 1px;
}
.logo svg { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 15px; color: var(--text-light); font-weight: 500;
  padding: 6px 0; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--primary);
  border-radius: 2px; transition: width 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 999px; border: none;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: #fff;
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(29, 78, 216, 0.4); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--text-light);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { color: var(--primary); border-color: var(--primary); }

.user-chip {
  display: none; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border);
  font-size: 14px; color: var(--primary-dark); font-weight: 600;
}
.user-chip .avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.user-chip a { color: var(--text-light); font-weight: 400; cursor: pointer; }
.user-chip a:hover { color: var(--primary); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.menu-toggle svg { width: 26px; height: 26px; stroke: var(--primary-dark); }

/* ---------- 页面通用头图 ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-dark) 55%, #123063 100%);
  color: #fff; padding: 88px 0 72px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; right: -140px; top: -140px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25), transparent 65%);
}
.page-hero h1 { font-size: 40px; letter-spacing: 2px; margin-bottom: 14px; }
.page-hero p { color: rgba(255, 255, 255, 0.72); font-size: 17px; max-width: 640px; }
.page-hero .crumb { font-size: 13px; color: rgba(255, 255, 255, 0.55); margin-bottom: 18px; letter-spacing: 2px; }

/* ---------- 首页 Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-dark) 55%, #123063 100%);
  color: #fff; padding: 130px 0 150px; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; right: -180px; top: -180px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 65%);
}
.hero::after {
  content: ""; position: absolute; left: -120px; bottom: -220px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.35), transparent 65%);
}
.hero .container { position: relative; z-index: 1; }
.hero .tagline {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25); color: var(--accent);
  font-size: 13px; letter-spacing: 4px; margin-bottom: 26px;
}
.hero h1 { font-size: 52px; line-height: 1.25; letter-spacing: 3px; margin-bottom: 22px; }
.hero h1 span { background: linear-gradient(90deg, var(--accent), #7dd3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 18px; color: rgba(255, 255, 255, 0.7); max-width: 560px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }
.hero .btn-primary { padding: 14px 34px; font-size: 16px; }
.hero .btn-outline { padding: 14px 34px; font-size: 16px; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* ---------- 通用区块 ---------- */
.section { padding: 92px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .kicker {
  display: inline-block; font-size: 13px; letter-spacing: 4px;
  color: var(--primary); font-weight: 600; margin-bottom: 12px;
}
.section-head h2 { font-size: 34px; color: var(--primary-dark); letter-spacing: 1px; }
.section-head p { color: var(--text-light); margin-top: 14px; max-width: 620px; margin-left: auto; margin-right: auto; }

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

.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px 30px;
  transition: all 0.3s; position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(56, 189, 248, 0.12));
  margin-bottom: 22px;
}
.card .icon svg { width: 28px; height: 28px; stroke: var(--primary); }
.card h3 { font-size: 19px; color: var(--primary-dark); margin-bottom: 12px; }
.card p { font-size: 14.5px; color: var(--text-light); }

/* ---------- 数据统计条 ---------- */
.stats-band {
  background: linear-gradient(135deg, var(--primary-dark), #123063);
  color: #fff; padding: 64px 0;
}
.stats-band .grid-4 { gap: 20px; }
.stat { text-align: center; }
.stat .num { font-size: 40px; font-weight: 700; letter-spacing: 1px; }
.stat .num small { font-size: 18px; font-weight: 500; margin-left: 2px; }
.stat .label { color: rgba(255, 255, 255, 0.65); font-size: 14px; margin-top: 8px; letter-spacing: 2px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--primary-deep); color: rgba(255, 255, 255, 0.6);
  padding: 64px 0 0; font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 18px; letter-spacing: 1px; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand p { line-height: 1.9; margin-top: 14px; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 19px; font-weight: 700; letter-spacing: 1px; }
.footer-logo svg { width: 30px; height: 30px; }
.copyright { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 20px 0; text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.4); }

/* ---------- 表单 ---------- */
.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--primary-dark); margin-bottom: 8px; }
.form-group label em { color: #ef4444; font-style: normal; margin-left: 3px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 15px; font-family: inherit;
  color: var(--text); background: var(--bg); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 12.5px; color: var(--text-light); margin-top: 8px; }
.alert {
  padding: 12px 16px; border-radius: 10px; font-size: 14px;
  margin-bottom: 18px; display: none;
}
.alert.show { display: block; }
.alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---------- 登录页 ---------- */
.auth-wrap {
  min-height: calc(100vh - 68px);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-dark) 60%, #123063);
  padding: 60px 20px;
}
.auth-card {
  width: 100%; max-width: 430px; background: #fff;
  border-radius: 20px; padding: 44px 40px; box-shadow: var(--shadow-lg);
}
.auth-card h2 { font-size: 24px; color: var(--primary-dark); text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--text-light); font-size: 14px; margin-bottom: 30px; }
.auth-tabs { display: flex; background: var(--bg-soft); border-radius: 12px; padding: 5px; margin-bottom: 28px; }
.auth-tabs button {
  flex: 1; padding: 10px; border: none; background: transparent;
  border-radius: 9px; font-size: 15px; font-weight: 600; cursor: pointer;
  color: var(--text-light); transition: all 0.25s; font-family: inherit;
}
.auth-tabs button.active { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(11, 31, 58, 0.1); }
.auth-tip { margin-top: 22px; font-size: 12.5px; color: var(--text-light); text-align: center; line-height: 1.8; }

/* ---------- 联系页 ---------- */
.contact-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.info-item .icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(56, 189, 248, 0.12));
  display: flex; align-items: center; justify-content: center;
}
.info-item .icon svg { width: 22px; height: 22px; stroke: var(--primary); }
.info-item h4 { font-size: 15px; color: var(--primary-dark); margin-bottom: 4px; }
.info-item p { color: var(--text-light); font-size: 14px; }

/* ---------- 时间线（关于页） ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--primary), var(--accent));
}
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item::before {
  content: ""; position: absolute; left: -28px; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary);
}
.timeline-item .year { font-size: 15px; font-weight: 700; color: var(--primary); }
.timeline-item h4 { font-size: 17px; color: var(--primary-dark); margin: 6px 0; }
.timeline-item p { color: var(--text-light); font-size: 14.5px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4, .grid-2, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .page-hero h1 { font-size: 30px; }
  .section-head h2 { font-size: 26px; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0;
    padding: 12px 5%; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; width: 100%; }
  .nav-links a::after { display: none; }
  .menu-toggle { display: block; }
  .grid-3, .grid-4, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 90px 0 100px; }
  .hero h1 { font-size: 30px; }
  .section { padding: 64px 0; }
}
