/* 星辰智联官网 · Apple 风格设计系统 */
:root {
  --c-text: #1d1d1f;
  --c-sub: #6e6e73;
  --c-blue: #d95c14;
  --c-blue-hover: #ea661c;
  --c-bg: #ffffff;
  --c-bg-gray: #f5f5f7;
  --c-line: rgba(0, 0, 0, 0.08);
  --c-dark: #000000;
  --nav-h: 52px;
  --radius: 18px;
  --max-w: 980px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Display",
    "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--c-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--c-line);
}
.nav.on-dark { background: rgba(22, 22, 23, 0.72); border-bottom-color: rgba(255,255,255,0.08); }
.nav-inner {
  max-width: 1024px; margin: 0 auto; padding: 0 22px;
  height: 100%; display: flex; align-items: center; gap: 34px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 19px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--c-text); text-decoration: none;
}
.nav.on-dark .nav-logo { color: #f5f5f7; }
.nav-logo svg { width: 20px; height: 20px; }
.nav-links { display: flex; gap: 30px; flex: 1; }
.nav-links a {
  color: var(--c-sub); font-size: 13.5px; text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--c-text); text-decoration: none; }
.nav.on-dark .nav-links a { color: rgba(245, 245, 247, 0.75); }
.nav.on-dark .nav-links a:hover { color: #f5f5f7; }
.nav-links a.active { color: var(--c-text); }
.nav.on-dark .nav-links a.active { color: #f5f5f7; }
.nav-user { display: flex; align-items: center; gap: 14px; }
.nav-user a { font-size: 13.5px; }
.nav-user .who { color: var(--c-sub); font-size: 13.5px; }
.nav.on-dark .nav-user .who { color: rgba(245,245,247,0.75); }
.btn-nav {
  background: var(--c-blue); color: #fff !important;
  padding: 5px 14px; border-radius: 980px; font-size: 13px;
  text-decoration: none; transition: background 0.2s;
}
.btn-nav:hover { background: var(--c-blue-hover); text-decoration: none; }
.btn-plain { color: var(--c-sub); text-decoration: none; font-size: 13.5px; }
.btn-plain:hover { color: var(--c-text); text-decoration: none; }
.nav.on-dark .btn-plain { color: rgba(245,245,247,0.75); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: #f5f5f7;
  background: #000 url("../img/hero.png") center / cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.05) 45%, rgba(0,0,0,0.55) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; padding: 0 24px; }
.hero h1 {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 700; letter-spacing: -0.015em; line-height: 1.18;
  margin-bottom: 22px;
}
.hero p {
  font-size: clamp(19px, 2.4vw, 26px);
  color: rgba(245, 245, 247, 0.88);
  font-weight: 400; margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px; border-radius: 980px;
  font-size: 17px; text-decoration: none; cursor: pointer;
  border: none; transition: all 0.2s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--c-blue); color: #fff; }
.btn-primary:hover { background: var(--c-blue-hover); }
.btn-ghost-light {
  background: transparent; color: #f5f5f7;
  box-shadow: inset 0 0 0 1.5px rgba(245,245,247,0.85);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); }
.btn-ghost {
  background: transparent; color: var(--c-blue);
  box-shadow: inset 0 0 0 1.5px var(--c-blue);
}
.btn-ghost:hover { background: rgba(0, 113, 227, 0.06); }
.btn-link { font-size: 19px; }
.btn-link::after { content: " ›"; }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-danger { background: transparent; color: #e30000; box-shadow: inset 0 0 0 1.5px #e30000; }
.btn-danger:hover { background: rgba(227,0,0,0.06); }

/* ---------- 通用分区 ---------- */
.section { padding: 110px 0; }
.section.gray { background: var(--c-bg-gray); }
.section.dark { background: var(--c-dark); color: #f5f5f7; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head h2 {
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 700; letter-spacing: -0.01em; line-height: 1.28;
  margin-bottom: 16px;
}
.section-head p { font-size: 20px; color: var(--c-sub); }
.section.dark .section-head p { color: rgba(245,245,247,0.7); }
.eyebrow {
  display: block; color: var(--c-blue);
  font-size: 15px; font-weight: 600; margin-bottom: 12px;
  letter-spacing: 0.01em;
}

/* ---------- 页面级头部 ---------- */
.page-head { padding: 90px 0 40px; text-align: center; }
.page-head h1 {
  font-size: clamp(40px, 5.6vw, 64px);
  font-weight: 700; letter-spacing: -0.015em; line-height: 1.22;
  margin-bottom: 16px;
}
.page-head .lede { font-size: 21px; color: var(--c-sub); max-width: 680px; margin: 0 auto; }

/* ---------- 数据条 ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stats .num {
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 700; letter-spacing: -0.02em;
  background: linear-gradient(92deg, #f59e0b, #ef6c2f 55%, #e2372f);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stats .label { color: var(--c-sub); font-size: 16px; margin-top: 6px; }
.section.dark .stats .label { color: rgba(245,245,247,0.65); }

/* ---------- 卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--c-bg); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block; color: var(--c-text); text-decoration: none;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0,0,0,0.12); text-decoration: none; }
.section.gray .card, .gray .card { background: #fff; }
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.card-body { padding: 26px 26px 30px; }
.card-body h3 { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.card-body p { color: var(--c-sub); font-size: 15px; margin-bottom: 14px; }
.card-body .more { color: var(--c-blue); font-size: 15px; }

/* ---------- 特性网格 ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 48px; }
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(0, 113, 227, 0.1);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature .icon svg { width: 24px; height: 24px; stroke: var(--c-blue); }
.feature h3 { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.feature p { color: var(--c-sub); font-size: 16px; }

/* ---------- 产品大区块（products 页） ---------- */
.product-block { padding: 100px 0; }
.product-block.dark { background: var(--c-dark); color: #f5f5f7; }
.product-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.product-grid.reverse .p-media { order: 2; }
.product-grid .p-media img { border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0,0,0,0.25); }
.p-copy .tag { color: var(--c-blue); font-size: 15px; font-weight: 600; }
.product-block.dark .p-copy .tag { color: #2997ff; }
.p-copy h2 {
  font-size: clamp(32px, 4vw, 46px); font-weight: 700;
  letter-spacing: -0.01em; margin: 10px 0 14px; line-height: 1.28;
}
.p-copy .desc { font-size: 18px; color: var(--c-sub); margin-bottom: 22px; }
.product-block.dark .p-copy .desc { color: rgba(245,245,247,0.7); }
.p-copy ul { list-style: none; margin-bottom: 26px; }
.p-copy ul li {
  padding: 9px 0 9px 28px; position: relative;
  font-size: 16px; color: var(--c-text);
}
.product-block.dark .p-copy ul li { color: rgba(245,245,247,0.85); }
.p-copy ul li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 16px; height: 16px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d95c14' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}
.product-block.dark .p-copy ul li::before { filter: brightness(1.6); }

/* ---------- 时间线 ---------- */
.timeline { position: relative; max-width: 720px; margin: 0 auto; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--c-line);
}
.tl-item { position: relative; padding-bottom: 42px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -34px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--c-blue);
}
.tl-item .year { color: var(--c-blue); font-size: 15px; font-weight: 700; }
.tl-item h3 { font-size: 20px; font-weight: 600; margin: 4px 0 6px; }
.tl-item p { color: var(--c-sub); font-size: 16px; }

/* ---------- 价值观 ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value {
  background: var(--c-bg-gray); border-radius: var(--radius);
  padding: 36px 30px; text-align: center;
}
.value h3 { font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.value p { color: var(--c-sub); font-size: 15.5px; }

/* ---------- 表单 ---------- */
.form-wrap { max-width: 640px; margin: 0 auto; }
.form-card {
  background: var(--c-bg-gray); border-radius: var(--radius);
  padding: 44px 42px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: 14px; font-weight: 600;
  margin-bottom: 8px; color: var(--c-text);
}
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px;
  border: 1px solid rgba(0,0,0,0.14); border-radius: 12px;
  font-size: 16px; font-family: inherit; background: #fff;
  color: var(--c-text); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.14);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: 13px; color: var(--c-sub); margin-top: 6px; }
.form-msg { margin-top: 16px; font-size: 15px; min-height: 22px; }
.form-msg.ok { color: #158a3c; }
.form-msg.err { color: #e30000; }

/* ---------- 登录页 ---------- */
.auth-wrap {
  min-height: calc(100vh - var(--nav-h) - 200px);
  display: flex; align-items: center; justify-content: center;
  padding: 70px 22px;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--c-bg-gray); border-radius: 22px; padding: 46px 44px;
}
.auth-card h1 { font-size: 30px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.auth-card .sub { text-align: center; color: var(--c-sub); font-size: 15px; margin-bottom: 30px; }
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: rgba(0,0,0,0.05); border-radius: 12px; padding: 4px; margin-bottom: 28px;
}
.auth-tabs button {
  padding: 9px 0; border: none; border-radius: 9px;
  background: transparent; font-size: 15px; font-weight: 500;
  color: var(--c-sub); cursor: pointer; font-family: inherit;
}
.auth-tabs button.active { background: #fff; color: var(--c-text); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.auth-foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--c-sub); }

/* ---------- 用户中心 ---------- */
.account-grid { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.panel {
  background: var(--c-bg-gray); border-radius: var(--radius); padding: 30px;
}
.panel h2 { font-size: 20px; font-weight: 600; margin-bottom: 18px; }
.avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef6c2f);
  color: #fff; font-size: 30px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.profile-meta { font-size: 14.5px; color: var(--c-sub); line-height: 2; }
.profile-meta b { color: var(--c-text); font-weight: 600; }
.list-item {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 15px 0; border-bottom: 1px solid var(--c-line);
}
.list-item:last-child { border-bottom: none; }
.list-item .t { font-weight: 500; font-size: 15.5px; }
.list-item .d { color: var(--c-sub); font-size: 13.5px; margin-top: 3px; }
.list-item .size { color: var(--c-sub); font-size: 13px; white-space: nowrap; }
.empty { color: var(--c-sub); font-size: 15px; text-align: center; padding: 30px 0; }

/* ---------- 联系信息 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.contact-info .ci-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.contact-info .ci-item:last-child { border-bottom: none; }
.contact-info .ci-item svg { width: 22px; height: 22px; stroke: var(--c-blue); flex-shrink: 0; margin-top: 2px; }
.contact-info .ci-item b { display: block; font-size: 15.5px; margin-bottom: 3px; }
.contact-info .ci-item span { color: var(--c-sub); font-size: 15px; }

/* ---------- CTA 横幅 ---------- */
.cta-banner {
  text-align: center; padding: 120px 24px;
  background: var(--c-dark) url("../img/hero.png") center 30% / cover no-repeat;
  color: #f5f5f7; position: relative;
}
.cta-banner::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 {
  font-size: clamp(34px, 4.8vw, 54px); font-weight: 700;
  letter-spacing: -0.01em; margin-bottom: 18px; line-height: 1.28;
}
.cta-banner p { font-size: 20px; color: rgba(245,245,247,0.82); margin-bottom: 34px; }

/* ---------- 页脚 ---------- */
footer { background: var(--c-bg-gray); border-top: 1px solid var(--c-line); padding: 52px 0 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px; margin-bottom: 40px;
}
.footer-grid h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 14px; color: var(--c-text); }
.footer-grid a { display: block; color: var(--c-sub); font-size: 13.5px; padding: 4px 0; text-decoration: none; }
.footer-grid a:hover { color: var(--c-text); text-decoration: underline; }
.footer-brand p { color: var(--c-sub); font-size: 13.5px; max-width: 260px; margin-top: 10px; }
.footer-bottom {
  border-top: 1px solid var(--c-line); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: var(--c-sub); font-size: 12.5px;
}

/* ---------- 杂项 ---------- */
.section-img { border-radius: var(--radius); width: 100%; }
.two-col { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.two-col h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 16px; line-height: 1.28; }
.two-col p { color: var(--c-sub); font-size: 18px; margin-bottom: 14px; }
.badge-login {
  display: inline-block; background: rgba(0,113,227,0.1); color: var(--c-blue);
  font-size: 13px; padding: 4px 12px; border-radius: 980px; margin-bottom: 14px; font-weight: 500;
}

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; gap: 40px; }
  .product-grid, .two-col, .contact-grid, .account-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-grid.reverse .p-media { order: 0; }
  .values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { display: none; }
  .section { padding: 72px 0; }
  .form-card { padding: 30px 24px; }
}

/* ---------- 标题均衡断行（消灭第二行孤字，1105 文博反馈） ---------- */
.section-head h2, .page-head h1 { text-wrap: balance; }

/* 正文段落末行防孤字（pretty：旧浏览器无害降级） */
.section-head p, .fd-story, .qz-why, .qz-case, .card-body p { text-wrap: pretty; }
