:root {
  --red-deep: #b80f18;
  --red: #e31c24;
  --red-mid: #f02a32;
  --gold: #e8c989;
  --gold-bright: #f3d9a2;
  --cream: #fff6ea;
  --cream-soft: rgba(255, 246, 234, 0.9);
  --cream-muted: rgba(255, 246, 234, 0.72);
  --ink: #1a1a1a;
  --ink-soft: #3d3d3d;
  --muted: #6b6b6b;
  --line: rgba(26, 26, 26, 0.1);
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --shell: min(1180px, calc(100% - 2.5rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* —— Header：首屏透明浅色字，滚后白底深色字 —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.header-inner {
  width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
}

.brand-mark {
  max-width: min(58vw, 440px);
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.4vw, 0.98rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  color: var(--gold-bright);
  transition: color 0.3s ease;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  flex-shrink: 0;
}

.site-nav a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--cream-muted);
  transition: color 0.25s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.site-nav a:hover {
  color: var(--gold-bright);
}

body.is-scrolled .site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(10px);
}

body.is-scrolled .brand-mark {
  color: var(--red);
}

body.is-scrolled .site-nav a {
  color: var(--ink-soft);
}

body.is-scrolled .site-nav a:hover {
  color: var(--red);
}

/* —— Hero：唯一红区 —— */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--cream);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 82% 0%, rgba(255, 90, 80, 0.35), transparent 58%),
    radial-gradient(ellipse 70% 45% at 8% 90%, rgba(160, 10, 18, 0.35), transparent 55%),
    linear-gradient(165deg, #f01f28 0%, #e31c24 40%, #c8161e 100%);
}

.hero-glow {
  position: absolute;
  right: -10%;
  top: 6%;
  width: min(70vw, 780px);
  height: min(70vw, 780px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 217, 162, 0.18) 0%, rgba(243, 217, 162, 0.04) 42%, transparent 68%);
  animation: drift 16s ease-in-out infinite;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-3%, 3%) scale(1.05);
  }
}

.hero-frame {
  position: absolute;
  right: max(4%, calc((100% - 1180px) / 2));
  top: 16%;
  width: min(40vw, 420px);
  height: min(40vw, 420px);
  border: 1px solid rgba(232, 201, 137, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(232, 201, 137, 0.12);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin: 0 auto;
  padding: 7rem 0 5.8rem;
  max-width: 860px;
  margin-left: max(1.25rem, calc((100% - 1180px) / 2));
  margin-right: auto;
}

.hero-brand {
  margin: 0 0 1.15rem;
  max-width: 12em;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  text-shadow: 0 10px 40px rgba(60, 8, 12, 0.28);
}

.hero-rule {
  width: 72px;
  height: 2px;
  margin: 0 0 1.3rem;
  background: linear-gradient(90deg, var(--gold-bright), transparent);
}

.hero-title {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.12em;
  color: var(--cream);
}

.hero-lead {
  margin: 0 0 2.1rem;
  max-width: 32em;
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.95;
  color: var(--cream-muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold);
  color: #5a1016;
  box-shadow: 0 12px 28px rgba(60, 8, 12, 0.25);
}

.btn-primary:hover {
  background: var(--gold-bright);
}

.btn-ghost {
  border-color: rgba(232, 201, 137, 0.45);
  color: var(--cream);
  background: rgba(255, 246, 234, 0.06);
}

.btn-ghost:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

/* —— 白区通用 —— */
.section {
  background: var(--bg);
  padding: clamp(5rem, 10vw, 7.5rem) 0;
}

.section-inner {
  width: var(--shell);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--red);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.35;
  color: var(--ink);
}

.section-desc {
  margin: 1rem 0 0;
  max-width: 32em;
  color: var(--muted);
}

.section-head {
  margin-bottom: 2.8rem;
}

/* 关于我们 */
.about {
  background: var(--bg);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) 1.35fr;
  gap: clamp(2.2rem, 5vw, 4.5rem);
  align-items: start;
}

.about-aside {
  display: flex;
  gap: 1.15rem;
  align-items: stretch;
}

.about-aside-bar {
  width: 4px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--red) 0%, rgba(227, 28, 36, 0.25) 100%);
  border-radius: 2px;
}

.about-quote {
  margin: 1.5rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: 0.12em;
  color: var(--red);
}

.about-prose {
  display: grid;
  gap: 1.4rem;
  padding-top: 0.2rem;
}

.about-prose p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

/* 核心能力：分割列表，非卡片 */
.capabilities {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 3rem;
}

.cap-item {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.85rem 1.1rem;
  padding: 1.55rem 0;
  border-top: 1px solid var(--line);
}

.cap-item:nth-last-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.cap-item:last-child {
  grid-column: 1 / -1;
}

.cap-index {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.04em;
  padding-top: 0.15rem;
}

.cap-body h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.cap-body p {
  margin: 0;
  max-width: 36em;
  color: var(--muted);
  font-size: 0.98rem;
}

/* 理念 */
.spirit {
  background: var(--bg);
}

.spirit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.4rem;
  margin-top: 2.8rem;
}

.spirit-block {
  padding-top: 1.35rem;
  border-top: 2px solid var(--red);
}

.spirit-block h3 {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--red);
}

.spirit-block p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.9vw, 1.42rem);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* 页脚 */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 2.6rem;
}

.footer-inner {
  width: var(--shell);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-brand,
.footer-beian {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.footer-beian a {
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-beian a:hover {
  color: var(--red);
  border-bottom-color: rgba(227, 28, 36, 0.4);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal.delay-1 {
  transition-delay: 0.1s;
}

.reveal.delay-2 {
  transition-delay: 0.2s;
}

.reveal.delay-3 {
  transition-delay: 0.3s;
}

@media (max-width: 900px) {
  .about-layout,
  .spirit-grid,
  .cap-list {
    grid-template-columns: 1fr;
  }

  .cap-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .cap-item:last-child {
    grid-column: auto;
    border-bottom: 1px solid var(--line);
  }

  .hero-frame {
    opacity: 0.4;
  }

  .hero-inner {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 560px) {
  .site-nav {
    display: none;
  }

  .hero {
    align-items: center;
  }

  .hero-inner {
    padding-top: 6rem;
    padding-bottom: 4.5rem;
  }

  .hero-brand {
    letter-spacing: 0.05em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal.delay-1,
  .reveal.delay-2,
  .reveal.delay-3 {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-glow {
    animation: none;
  }
}
