/* 祥兴数字科技 · 公司官网 */

:root {
  --ink: #0c1219;
  --ink-soft: #161e28;
  --ink-mid: #243041;
  --paper: #f3efe6;
  --paper-dim: #e8e2d6;
  --gold: #c9a227;
  --gold-bright: #e0bc4a;
  --gold-dim: rgba(201, 162, 39, 0.18);
  --text: #e8e4dc;
  --text-muted: #9aa3ae;
  --line: rgba(243, 239, 230, 0.12);
  --radius: 2px;
  --header-h: 68px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(12, 18, 25, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(12, 18, 25, 0.92);
}

.header-inner {
  width: min(1120px, calc(100% - 40px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--paper);
}

.brand-sub {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: none;
}

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

.site-nav a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  transition: color 0.25s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--gold-bright);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--paper);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), top 0.3s var(--ease);
}

.nav-toggle span:first-child {
  top: 15px;
}

.nav-toggle span:last-child {
  top: 23px;
}

.nav-toggle.is-open span:first-child {
  top: 19px;
  transform: rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  top: 19px;
  transform: rotate(-45deg);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(201, 162, 39, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(36, 72, 96, 0.35), transparent 50%),
    linear-gradient(165deg, #0a1018 0%, #121a24 45%, #0c1219 100%);
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243, 239, 230, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 239, 230, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.hero-title-brand {
  font-family: var(--font-serif);
  font-size: clamp(64px, 12vw, 104px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  color: var(--paper);
  text-indent: 0.08em;
}

.hero-title-company {
  font-size: clamp(16px, 2.4vw, 20px);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.hero-lead {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 500;
  color: var(--gold-bright);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 36em;
  margin-bottom: 40px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  font-size: 14px;
  letter-spacing: 0.12em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--gold-bright);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--paper);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  z-index: 1;
}

.hero-scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--gold);
  border-radius: 2px;
  animation: scroll-dot 1.8s var(--ease) infinite;
}

@keyframes scroll-dot {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* —— Sections —— */
.section {
  padding: 100px 0;
  position: relative;
}

.section-head {
  margin-bottom: 56px;
  max-width: 560px;
}

.section-label {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--paper);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 15px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* About */
.about {
  background: var(--ink-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.about-copy p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 20px;
}

.about-copy strong {
  color: var(--paper);
  font-weight: 600;
}

.stat-list {
  list-style: none;
  border-left: 1px solid var(--gold-dim);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* Business */
.business {
  background:
    linear-gradient(180deg, var(--ink) 0%, #0e1520 100%);
}

.biz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.biz-item {
  background: var(--ink);
  padding: 40px 36px;
  transition: background 0.35s var(--ease);
}

.biz-item:hover {
  background: var(--ink-soft);
}

.biz-index {
  display: block;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 20px;
}

.biz-item h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--paper);
  margin-bottom: 14px;
}

.biz-item p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 32em;
}

/* Product */
.product {
  background: var(--ink-soft);
}

.product-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 48px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(201, 162, 39, 0.06), transparent 45%),
    var(--ink);
}

.product-copy p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.product-points {
  list-style: none;
  margin-bottom: 32px;
}

.product-points li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--paper-dim);
}

.product-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 1px;
}

.product-visual {
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.product-orb {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(224, 188, 74, 0.35), transparent 60%);
  filter: blur(8px);
  animation: orb-pulse 6s ease-in-out infinite;
}

@keyframes orb-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

.product-logo {
  position: relative;
  z-index: 1;
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.product-slogan {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

/* Contact */
.contact {
  background: var(--ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contact-card {
  padding: 28px 28px 32px;
  border-bottom: 1px solid var(--line);
}

.contact-card-wide {
  grid-column: 1 / -1;
}

.contact-card h3 {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 500;
}

.contact-card p {
  font-size: 17px;
  color: var(--paper);
  letter-spacing: 0.02em;
}

.contact-card a {
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.contact-card a:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  background: #080c11;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--paper-dim);
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  transition: color 0.25s var(--ease);
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-meta {
  font-size: 12px;
  color: #6b7380;
  line-height: 1.8;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal.is-visible:nth-child(1) { transition-delay: 0.05s; }
.hero .reveal.is-visible:nth-child(2) { transition-delay: 0.15s; }
.hero .reveal.is-visible:nth-child(3) { transition-delay: 0.25s; }
.hero .reveal.is-visible:nth-child(4) { transition-delay: 0.35s; }
.hero .reveal.is-visible:nth-child(5) { transition-delay: 0.45s; }

.biz-item.reveal.is-visible:nth-child(1) { transition-delay: 0.05s; }
.biz-item.reveal.is-visible:nth-child(2) { transition-delay: 0.12s; }
.biz-item.reveal.is-visible:nth-child(3) { transition-delay: 0.19s; }
.biz-item.reveal.is-visible:nth-child(4) { transition-delay: 0.26s; }

/* —— Responsive —— */
@media (max-width: 860px) {
  .about-grid,
  .product-panel {
    grid-template-columns: 1fr;
  }

  .product-panel {
    padding: 32px 24px;
  }

  .product-visual {
    min-height: 220px;
    order: -1;
  }

  .biz-grid {
    grid-template-columns: 1fr;
  }

  .biz-item {
    padding: 32px 24px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 60px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 20px;
    background: rgba(12, 18, 25, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    padding-top: calc(var(--header-h) + 36px);
    padding-bottom: 72px;
    align-items: flex-end;
  }

  .hero-inner {
    width: calc(100% - 32px);
  }

  .hero-title-brand {
    letter-spacing: 0.12em;
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card-wide {
    grid-column: auto;
  }

  .contact-card {
    padding: 20px 0;
  }

  .stat-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px 32px;
    border-left: 0;
    border-top: 1px solid var(--gold-dim);
    padding-left: 0;
    padding-top: 28px;
  }

  .stat-list li {
    min-width: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-scroll span,
  .product-orb {
    animation: none;
  }
}
