/* 主色调：金色 + 白色，避免黑色 */
:root {
  --color-bg: #fafaf8;
  --color-bg-warm: #f7f5f0;
  --color-surface: #ffffff;
  --color-surface-soft: rgba(255, 255, 255, 0.85);
  --color-gold: #b8860b;
  --color-gold-light: #c9a227;
  --color-gold-bright: #d4a84b;
  --color-gold-pale: rgba(201, 162, 39, 0.15);
  --color-gold-border: rgba(184, 134, 11, 0.35);
  --color-text: #2c2c2c;
  --color-text-muted: #5c5c5c;
  --color-text-soft: #6b6b6b;
  --font-serif: "Noto Serif SC", "SimSun", serif;
  --font-sans: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/*  subtle gold grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--color-gold-pale) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-gold-pale) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  opacity: 0.6;
}

/* ========== 动态效果：关键帧 ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.9; }
}

/* 入场动画：首屏 */
.hero-inner .hero-title {
  animation: fadeInUp 0.8s ease-out forwards;
}
.hero-inner .hero-subtitle {
  animation: fadeInUp 0.8s ease-out 0.15s forwards;
  opacity: 0;
}
.hero-inner .hero-desc {
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
  opacity: 0;
}

/* 区块进入视口时淡入上移（由 JS 添加 .in-view） */
.section .container,
.section .container-wide {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease;
}
.section.in-view .container,
.section.in-view .container-wide {
  opacity: 1;
  transform: translateY(0);
}

/* 业务卡片交错动画 */
.business-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out, box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.section.in-view .business-card:nth-child(1) { transition-delay: 0.05s; }
.section.in-view .business-card:nth-child(2) { transition-delay: 0.1s; }
.section.in-view .business-card:nth-child(3) { transition-delay: 0.15s; }
.section.in-view .business-card:nth-child(4) { transition-delay: 0.2s; }
.section.in-view .business-card:nth-child(5) { transition-delay: 0.25s; }
.section.in-view .business-card:nth-child(6) { transition-delay: 0.3s; }
.section.in-view .business-card {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-surface-soft);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-gold-border);
  transition: box-shadow 0.3s ease;
}
.site-header:hover {
  box-shadow: 0 4px 20px var(--color-gold-pale);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.25s ease, transform 0.25s ease;
}
.logo:hover {
  color: var(--color-gold-light);
  transform: scale(1.02);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color 0.25s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width 0.3s ease;
}
.nav a:hover,
.nav a:focus {
  color: var(--color-gold);
}
.nav a:hover::after {
  width: 100%;
}

/* 主内容区 */
main {
  padding-bottom: 5rem;
  position: relative;
  z-index: 1;
}

/* Hero：金白渐变 + 微光 */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 30%, var(--color-gold-pale) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 70%, rgba(201, 162, 39, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-warm) 50%, var(--color-bg) 100%);
  pointer-events: none;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, var(--color-gold-pale) 25%, transparent 50%, var(--color-gold-pale) 75%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 12s linear infinite;
  pointer-events: none;
  opacity: 0.4;
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  color: var(--color-gold);
  margin: 0 0 0.5rem;
  letter-spacing: 0.15em;
  text-shadow: 0 2px 20px var(--color-gold-pale);
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--color-text-muted);
  margin: 0;
  letter-spacing: 0.2em;
  font-weight: 500;
}

.hero-desc {
  margin: 1rem 0 0;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  color: var(--color-text-soft);
  letter-spacing: 0.05em;
}

/* Sections */
.section {
  position: relative;
  padding: 4rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

.section-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, var(--color-gold-pale) 20%, var(--color-gold-pale) 80%, transparent 100%);
  opacity: 0.4;
}

.section .container {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-gold-border);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(184, 134, 11, 0.08);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-gold);
  margin: 0 0 2rem;
  text-align: center;
  letter-spacing: 0.1em;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 0.75rem auto 0;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0.9;
}

.section-lead {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.6;
}

.container-wide {
  max-width: 960px;
}

/* 公司简介 */
.about-intro p {
  margin: 0 0 1.5rem;
  color: var(--color-text);
  font-size: 1rem;
  text-indent: 2em;
  line-height: 1.8;
}

.about-meta {
  padding-top: 1rem;
  border-top: 1px solid var(--color-gold-border);
}

.about-meta dl {
  margin: 0;
  display: grid;
  gap: 0.75rem 1.5rem;
}

.about-meta dt {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-gold);
  font-weight: 600;
}

.about-meta dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text);
}

@media (min-width: 640px) {
  .about-meta dl {
    grid-template-columns: auto 1fr;
  }
  .about-meta dt {
    grid-column: 1;
  }
  .about-meta dd {
    grid-column: 2;
  }
}

/* 主营业务网格 */
.business-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .business-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .business-card-license {
    grid-column: 1 / -1;
  }
}

.business-card {
  padding: 1.5rem 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-gold-border);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(184, 134, 11, 0.06);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
}
.business-card:hover {
  border-color: var(--color-gold-light);
  box-shadow: 0 8px 28px rgba(184, 134, 11, 0.15);
  transform: translateY(-4px);
}

.business-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-gold);
}

.business-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.7;
}

.business-card-license {
  border-color: var(--color-gold-border);
  background: var(--color-bg-warm);
}
.business-card-license h3 {
  color: var(--color-gold-light);
}

/* 联系我们 */
.contact-block p {
  margin: 0.5rem 0;
  color: var(--color-text);
  font-size: 0.95rem;
}

.contact-block strong {
  color: var(--color-text-muted);
  font-weight: 600;
  margin-right: 0.25rem;
}

.brand-content p,
.business-content p {
  margin: 0;
  color: var(--color-text);
  font-size: 1rem;
  text-indent: 2em;
}

/* Download */
.download {
  padding-bottom: 5rem;
}

.qrcode-placeholder {
  text-align: center;
}

.qrcode-box {
  width: 160px;
  height: 160px;
  margin: 0 auto 1rem;
  background: var(--color-bg-warm);
  border: 1px solid var(--color-gold-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  box-shadow: 0 2px 16px rgba(184, 134, 11, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.qrcode-box:hover {
  box-shadow: 0 4px 24px rgba(184, 134, 11, 0.2);
  transform: scale(1.02);
}

.qrcode-tip {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Footer 固定底部 */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  border-top: 1px solid var(--color-gold-border);
  background: var(--color-surface-soft);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-inner p {
  margin: 0.2rem 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-inner a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer-inner a:hover {
  color: var(--color-gold);
}

.copyright {
  margin-top: 0.25rem;
}

@media (max-width: 640px) {
  .nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .nav a {
    font-size: 0.8rem;
  }
  .section {
    padding: 3rem 1rem;
  }
  .section .container {
    padding: 1.5rem 1.25rem;
  }
}
