/* 星域电（重庆）电子科技有限公司 官方网站样式 | 制作日期：2026-10-09 */
:root {
  --brand: #1f4fd6;
  --brand-dark: #0c1d4a;
  --brand-soft: #eaf0ff;
  --accent: #19b6c9;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --soft: #f6f8fc;
  --radius: 12px;
  --max: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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


/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.logo:hover { text-decoration: none; }
.logo svg { width: 36px; height: 36px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 18px; letter-spacing: 2px; }
.logo-text small { font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: .5px; }

.nav { display: flex; gap: 32px; }
.nav a { color: var(--text); font-size: 15px; }
.nav a:hover { color: var(--brand); text-decoration: none; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; border-radius: 8px; color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0c1d4a 0%, #13307a 55%, #1f4fd6 100%);
  color: #fff;
}
.hero .container {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  padding-top: 96px; padding-bottom: 104px;
}
.hero h1 { font-size: 42px; line-height: 1.3; font-weight: 700; letter-spacing: 1px; }
.hero h1 span { color: #8fe3ef; }
.hero p { margin-top: 20px; font-size: 17px; color: rgba(255, 255, 255, .82); max-width: 560px; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art svg { width: 100%; height: auto; max-width: 420px; display: block; margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: #fff; color: var(--brand-dark); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head .eyebrow { color: var(--brand); font-size: 13px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; }
.section-head h2 { color: var(--ink); font-size: 32px; margin-top: 6px; }
.section-head p { color: var(--muted); margin-top: 12px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-text p + p { margin-top: 16px; }
.about-text h3 { color: var(--ink); font-size: 22px; margin-bottom: 16px; }

.info-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.info-card h3 { font-size: 16px; color: var(--ink); padding: 16px 22px; background: var(--soft); border-bottom: 1px solid var(--line); }
.info-card dl { display: grid; grid-template-columns: 150px 1fr; }
.info-card dt, .info-card dd { padding: 13px 22px; border-bottom: 1px solid var(--line); font-size: 15px; }
.info-card dt { color: var(--muted); padding-right: 0; }
.info-card dd { color: var(--ink); }
.info-card dl > :nth-last-child(-n+2) { border-bottom: 0; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: box-shadow .2s ease, border-color .2s ease;
}
.card:hover { border-color: #c7d4f5; box-shadow: 0 12px 32px rgba(15, 37, 100, .08); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { color: var(--ink); font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--muted); }
.card ul { list-style: none; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.card li { font-size: 13px; color: var(--text); background: var(--soft); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: 30px; font-weight: 800; color: var(--brand); opacity: .9; margin-bottom: 8px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.step h3 { color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); }

/* Promise */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.promise div { padding: 4px 0 4px 18px; border-left: 3px solid var(--brand); }
.promise h3 { color: var(--ink); font-size: 18px; }
.promise p { font-size: 15px; color: var(--muted); margin-top: 6px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr 1.5fr 1fr; gap: 24px; }
.contact-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.contact-item .card-icon { margin-bottom: 14px; }
.contact-item h3 { font-size: 15px; color: var(--muted); font-weight: 500; }
.contact-item p { color: var(--ink); font-size: 15px; margin-top: 4px; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.footer { background: #0b1533; color: rgba(255, 255, 255, .7); font-size: 14px; }
.footer .container { padding-top: 48px; padding-bottom: 28px; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer .logo { color: #fff; }
.footer .logo-text small { color: rgba(255, 255, 255, .55); }
.footer-links { display: flex; gap: 10px 28px; flex-wrap: wrap; align-items: center; }
.footer .logo-text strong { font-size: 16px; letter-spacing: 1px; }
.footer a { color: rgba(255, 255, 255, .8); }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer .beian { display: inline-flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.footer .beian a { display: inline-flex; align-items: center; gap: 6px; }
.footer .beian img { width: 16px; height: 16px; }

/* ---------- Legal pages ---------- */
.page-banner { background: linear-gradient(135deg, #0c1d4a, #1f4fd6); color: #fff; padding: 64px 0 56px; }
.page-banner h1 { font-size: 34px; }
.page-banner p { color: rgba(255, 255, 255, .75); margin-top: 8px; font-size: 15px; }

.legal { max-width: 860px; margin: 0 auto; padding: 56px 20px 88px; }
.legal h2 { color: var(--ink); font-size: 21px; margin: 40px 0 12px; padding-top: 4px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 15.5px; }
.legal p + p { margin-top: 10px; }
.legal ul, .legal ol { padding-left: 22px; margin: 10px 0; }
.legal li + li { margin-top: 6px; }
.legal .meta { color: var(--muted); font-size: 14px; padding: 14px 18px; background: var(--soft); border-radius: 8px; margin-bottom: 36px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 72px; padding-bottom: 80px; }
  .hero-art { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .promise { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--line); }
  .container { padding: 0 16px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: 26px; }
  .cards, .steps, .contact-grid { grid-template-columns: 1fr; }
  .info-card dl { grid-template-columns: 1fr; }
  .info-card dt { border-bottom: 0; padding-bottom: 0; font-size: 13px; }
  .info-card dd { padding-top: 2px; }
  .info-card dt, .info-card dd { padding-left: 16px; padding-right: 16px; }
  .page-banner h1 { font-size: 28px; }
  .legal { padding: 40px 16px 64px; }
}
