/* ============================================================
   原石闪闪 YSSpark 官网样式
   设计基调:深墨蓝 + 原石金,B 端专业风格
   ============================================================ */

:root {
  --ink: #12182c;
  --ink-2: #1b2340;
  --gold: #e8b345;
  --gold-deep: #c98f22;
  --gold-soft: #f7dd9a;
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --text: #2b3149;
  --muted: #67708c;
  --line: #e5e8f2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 24, 44, 0.08);
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

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

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

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 24, 44, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-name em {
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold-soft);
  margin-left: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  white-space: nowrap;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--gold-soft); }

.nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--ink) !important;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(232, 179, 69, 0.35);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ---------------- Hero ---------------- */

.hero {
  background:
    radial-gradient(700px 420px at 18% 8%, rgba(232, 179, 69, 0.14), transparent 65%),
    radial-gradient(560px 380px at 88% 82%, rgba(232, 179, 69, 0.10), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 48px;
  padding-top: 96px;
  padding-bottom: 96px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  max-width: 34em;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 60%, var(--gold-deep));
  color: var(--ink);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(232, 179, 69, 0.4);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn-lg { padding: 16px 40px; font-size: 17px; }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-chips li {
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.04);
}

.hero-art svg { width: 100%; height: auto; }

/* ---------------- Sections ---------------- */

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}

.section-head h2, .about-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 14px;
}

.section-sub { color: var(--muted); }

/* ---------------- 服务卡片 ---------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(232, 179, 69, 0.55);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
  background: linear-gradient(135deg, rgba(247, 221, 154, 0.35), rgba(232, 179, 69, 0.18));
  margin-bottom: 20px;
}

.card-icon svg { width: 26px; height: 26px; }

.card h3 {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 10px;
}

.card p { color: var(--muted); font-size: 15px; }

/* ---------------- 优势 ---------------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 40px;
}

.why-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
}

.why-item h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 8px;
}

.why-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  background: rgba(232, 179, 69, 0.14);
  border-radius: 8px;
  padding: 3px 9px;
}

.why-item p { color: var(--muted); font-size: 15px; }

/* ---------------- 流程 ---------------- */

.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: step;
}

.process li {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px 22px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}

.process h3 {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 6px;
}

.process p { color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ---------------- 关于 ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.5fr);
  gap: 48px;
  align-items: start;
}

.about-copy p { margin-bottom: 14px; }

.about-side {
  display: flex;
  justify-content: center;
  padding-top: 40px;
  opacity: 0.9;
}

/* ---------------- 联系 ---------------- */

.contact {
  background:
    radial-gradient(600px 320px at 50% 0%, rgba(232, 179, 69, 0.12), transparent 65%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
}

.contact-inner {
  text-align: center;
  max-width: 620px;
}

.contact h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.contact p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 30px;
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: #0e1426;
  color: rgba(255, 255, 255, 0.55);
  padding: 36px 0;
  font-size: 13.5px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.footer-line a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-line a:hover { color: var(--gold-soft); }

.gongan {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 14px;
}

/* ---------------- Reveal 动效(仅 JS 可用时启用,保证无 JS 环境内容完整可见) ---------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; padding-top: 72px; padding-bottom: 72px; }
  .hero-art { max-width: 300px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-side { display: none; }
}

/* 导航折叠:900px 以下改为汉堡菜单(内联导航在此宽度下放不下) */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 24px 20px;
    display: none;
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-cta {
    margin-top: 14px;
    text-align: center;
    border-bottom: none !important;
  }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .card-grid, .why-grid, .process { grid-template-columns: 1fr; }
}
