/* ============ 星璨时空官网样式 ============ */
:root {
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --cyan: #22d3ee;
  --ink: #10213f;
  --ink-soft: #47587a;
  --line: #dde7f5;
  --bg: #f5f9ff;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(37, 99, 235, 0.08);
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* 滚动进入动效 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 42px; height: 42px; display: flex; }
.brand-logo svg, .brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 19px; letter-spacing: 2px; color: var(--ink); }
.brand-text small { font-size: 11px; color: var(--ink-soft); letter-spacing: 0.5px; }
.nav-links { display: flex; gap: 28px; font-size: 15px; }
.nav-links a { color: var(--ink-soft); transition: color 0.2s; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan)); transition: all .25s; transform: translateX(-50%);
}
.nav-links a:hover { color: var(--blue-600); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--blue-600); cursor: pointer; }

/* ---------- 首屏：大图轮播 ---------- */
.hero { position: relative; overflow: hidden; padding: 120px 0 96px; text-align: center; color: #eaf3ff; }
.hero-slides { position: absolute; inset: 0; z-index: -3; background: #050b1f; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease; transform: scale(1);
}
.hero-slide.is-active { opacity: 1; animation: slowZoom 9s ease-out forwards; }
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero-veil {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, rgba(4, 10, 33, 0.72) 0%, rgba(6, 16, 46, 0.55) 45%, rgba(4, 12, 38, 0.82) 100%);
}
.hero-scanline {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(56, 189, 248, 0.10) 50%, transparent 100%);
  background-size: 100% 240px; background-repeat: no-repeat;
  animation: scan 7s linear infinite; opacity: .8;
}
@keyframes scan { from { background-position: 0 -240px; } to { background-position: 0 110vh; } }
@media (prefers-reduced-motion: reduce) {
  .hero-scanline { animation: none; }
  .hero-slide.is-active { animation: none; }
}
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(8, 20, 55, 0.55); border: 1px solid rgba(125, 211, 252, 0.35);
  color: #bae6fd; font-size: 14px; backdrop-filter: blur(4px);
}
.hero-title {
  margin-top: 26px; font-size: clamp(44px, 8vw, 76px); letter-spacing: 8px; color: #fff;
  text-shadow: 0 0 34px rgba(56, 189, 248, 0.45), 0 4px 18px rgba(2, 8, 30, 0.6);
}
.hero-slogan {
  margin-top: 10px; font-size: clamp(18px, 3vw, 26px); font-weight: 600; letter-spacing: 4px;
  background: linear-gradient(90deg, #7dd3fc, #c7d2fe, #7dd3fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc { max-width: 620px; margin: 22px auto 0; color: #c9dcf7; font-size: 16px; }
.hero-desc em { font-style: normal; color: #7dd3fc; font-weight: 600; }
.hero-actions { margin-top: 36px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 32px; border-radius: 999px; font-size: 15px; font-weight: 600; transition: all 0.2s; }
.btn-primary { background: linear-gradient(120deg, var(--blue-600), #38bdf8); color: #fff; box-shadow: 0 8px 26px rgba(37, 99, 235, 0.45); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(56, 189, 248, 0.5); }
.btn-ghost { background: rgba(10, 24, 60, 0.4); color: #dbeafe; border: 1px solid rgba(147, 197, 253, 0.5); backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: #7dd3fc; color: #fff; }
.hero-meta {
  margin-top: 56px; display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
}
.hero-cap {
  font-size: 13px; letter-spacing: 2px; color: #93c5fd;
  padding: 4px 14px; border: 1px solid rgba(147, 197, 253, 0.35); border-radius: 999px;
  background: rgba(8, 20, 55, 0.45);
}
.hero-dots { display: inline-flex; gap: 8px; }
.hero-dots button {
  width: 26px; height: 4px; border-radius: 2px; border: none; cursor: pointer;
  background: rgba(147, 197, 253, 0.35); transition: background .3s;
}
.hero-dots button.on { background: #7dd3fc; }

/* ---------- 通用区块 ---------- */
.section { padding: 84px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: 13px;
  background: var(--blue-50); color: var(--blue-600); border: 1px solid var(--blue-100); letter-spacing: 2px;
}
.section-head h2 { margin-top: 14px; font-size: clamp(24px, 4vw, 34px); letter-spacing: 2px; }
.section-sub { margin-top: 8px; color: var(--ink-soft); font-size: 14px; }

/* ---------- 关于我们 ---------- */
.about-section { position: relative; overflow: hidden; padding-bottom: 170px; }
.about-deco {
  position: absolute; inset: 0; pointer-events: none;
  background: url("/assets/img/deco-about.svg") bottom center / 100% auto no-repeat;
  opacity: .9;
}
@media (max-width: 860px) {
  .about-deco { background-size: 170% auto; }
}
.about-section .container { position: relative; }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.about-text { font-size: 16.5px; color: var(--ink-soft); }
.about-text strong { color: var(--blue-700); }
.about-stats { display: grid; gap: 14px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 22px; display: flex; align-items: baseline; gap: 14px; box-shadow: var(--shadow);
  border-left: 3px solid var(--blue-500);
}
.stat b { font-size: 22px; color: var(--blue-600); white-space: nowrap; }
.stat span { color: var(--ink-soft); font-size: 14px; }

/* ---------- 主要业务 ---------- */
.service-list { display: grid; gap: 18px; }
.service-card {
  display: flex; align-items: center; gap: 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s, border-color .2s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(37, 99, 235, 0.14); border-color: #bfdbfe; }
.service-num {
  font-size: 34px; font-weight: 800; font-style: italic; min-width: 72px; text-align: center;
  background: linear-gradient(160deg, var(--blue-600), #93c5fd);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.service-icon {
  font-size: 26px; width: 58px; height: 58px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 14px;
}
.service-body h3 { font-size: 19px; color: var(--blue-700); margin-bottom: 4px; }
.service-body p { color: var(--ink-soft); font-size: 15px; }

/* ---------- 核心方向（可点击） ---------- */
.direction-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.direction-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); cursor: pointer;
  transition: transform 0.22s, box-shadow 0.22s, border-color .22s;
}
.direction-card:hover, .direction-card:focus-visible {
  transform: translateY(-4px); box-shadow: 0 16px 40px rgba(37, 99, 235, 0.18); border-color: #93c5fd; outline: none;
}
.direction-thumb {
  height: 190px; background-size: cover; background-position: center;
  border-bottom: 1px solid var(--line); position: relative;
}
.direction-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 16, 46, 0.35));
}
.direction-body { padding: 22px 26px 24px; }
.direction-body h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.direction-body p { color: var(--ink-soft); font-size: 14.5px; }
.card-more { display: inline-block; margin-top: 12px; font-size: 13.5px; color: var(--blue-600); font-weight: 600; }
.direction-card:hover .card-more { text-decoration: underline; }

/* ---------- 项目案例（可点击） ---------- */
.case-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 22px; }
.case-list li {
  position: relative; padding: 14px 40px 14px 40px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink-soft); font-size: 15px; cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.case-list li::before {
  content: "◆"; position: absolute; left: 16px; top: 14px;
  color: var(--blue-500); font-size: 12px;
}
.case-list li::after {
  content: "→"; position: absolute; right: 16px; top: 13px;
  color: var(--blue-500); opacity: 0; transition: opacity .2s;
}
.case-list li:hover {
  border-color: #93c5fd; background: #eef5ff; transform: translateX(3px); color: var(--ink);
}
.case-list li:hover::after { opacity: 1; }

/* ---------- 价值观 ---------- */
.value-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.value-card {
  text-align: center; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 14px; box-shadow: var(--shadow); transition: transform 0.2s, border-color .2s;
}
.value-card:hover { transform: translateY(-4px); border-color: #bfdbfe; }
.value-icon { font-size: 30px; }
.value-card h3 { margin: 10px 0 6px; font-size: 18px; color: var(--blue-700); letter-spacing: 2px; }
.value-card p { font-size: 13px; color: var(--ink-soft); }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: stretch; }
.contact-info {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px;
}
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-ico {
  width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 12px; font-size: 20px;
}
.contact-item b { font-size: 14px; color: var(--ink); display: block; }
.contact-item p { color: var(--ink-soft); font-size: 14.5px; word-break: break-all; }
.contact-item a { color: var(--blue-600); }
.contact-item a:hover { text-decoration: underline; }
.contact-qrs { display: flex; gap: 18px; margin-top: 4px; flex-wrap: wrap; }
.qr-card {
  text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px 8px;
}
.qr-card img { width: 128px; height: 128px; object-fit: contain; border-radius: 8px; background: #fff; }
.qr-card figcaption { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }
.contact-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 420px; }
.map-box { width: 100%; height: 100%; min-height: 420px; background: #e8f0fb; position: relative; }
.map-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px;
  align-items: center; justify-content: center; color: var(--ink-soft); font-size: 14px;
}
.map-fallback span { font-size: 40px; }

/* ---------- 友情链接 ---------- */
.link-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.link-grid a {
  padding: 10px 24px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); color: var(--blue-600); font-size: 14.5px;
  transition: all 0.2s;
}
.link-grid a:hover { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }

/* ---------- 页脚 ---------- */
.footer {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0a1c4d, #1d4ed8);
  color: #dbeafe; text-align: center; padding: 60px 0 40px;
}
.footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
}
.footer-inner { position: relative; }
.footer-slogan { font-size: clamp(20px, 3.4vw, 28px); font-weight: 700; letter-spacing: 4px; color: #fff; }
.footer-sub { margin-top: 10px; font-size: 14.5px; opacity: 0.8; }
.footer-meta {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px; opacity: 0.75; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
}
.footer-meta a:hover { text-decoration: underline; }

/* ---------- 图文预览弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(4, 10, 32, 0.72); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative; width: min(880px, 100%); max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: 18px; box-shadow: 0 30px 80px rgba(2, 8, 30, 0.5);
  animation: pop .28s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(22px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(4, 10, 32, 0.55); color: #fff; font-size: 16px;
}
.modal-close:hover { background: rgba(4, 10, 32, 0.8); }
.modal-gallery { position: relative; background: #050b1f; }
.gallery-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.gallery-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .5s ease;
}
.gallery-frame img.on { opacity: 1; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(4, 10, 32, 0.5); color: #fff; font-size: 24px; line-height: 1;
  transition: background .2s;
}
.gallery-nav:hover { background: rgba(37, 99, 235, 0.85); }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.gallery-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.4); transition: background .2s, transform .2s;
}
.gallery-dots button.on { background: #7dd3fc; transform: scale(1.25); }
.gallery-cap {
  position: absolute; left: 16px; bottom: 12px; font-size: 12.5px; color: #bae6fd;
  background: rgba(4, 10, 32, 0.55); padding: 3px 12px; border-radius: 999px;
}
.modal-body { padding: 26px 32px 32px; }
.modal-body h3 { font-size: 21px; color: var(--blue-700); margin-bottom: 12px; letter-spacing: 1px; }
.modal-body p { color: var(--ink-soft); font-size: 15px; margin-bottom: 10px; }
.modal-body .tag-row { margin: 4px 0 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.modal-body .tag-row span {
  font-size: 12.5px; color: var(--blue-600); background: var(--blue-50);
  border: 1px solid var(--blue-100); padding: 2px 12px; border-radius: 999px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 16px 24px; gap: 16px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .about-grid, .direction-grid, .case-list, .contact-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid .value-card:last-child { grid-column: 1 / -1; }
  .service-card { flex-wrap: wrap; padding: 20px; }
  .service-num { min-width: auto; }
  .hero { padding: 90px 0 70px; }
  .contact-map { min-height: 320px; }
  .map-box { min-height: 320px; }
  .modal-body { padding: 20px; }
}
