/* =========================================================
   敬业科技 KINLLE IMPACT · 黑金主题
   想换配色？改下面 :root 里的变量就行
   ========================================================= */

:root {
  /* 金色系 */
  --gold: #d5c08a;
  --gold-bright: #f2e6c2;
  --gold-deep: #a08850;

  /* 背景 */
  --bg: #0c0c0f;
  --bg-alt: #131318;
  --bg-card: #1a1a21;
  --bg-card-2: #20202a;

  /* 文字 */
  --text: #f3f0e9;
  --text-soft: #a6a099;
  --text-dim: #6f6a63;

  /* 结构 */
  --border: rgba(213, 192, 138, .16);
  --border-strong: rgba(213, 192, 138, .32);

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, .45);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, .55);
  --glow: 0 10px 34px rgba(213, 192, 138, .22);

  --container: 1140px;
  --header-h: 72px;

  --font: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Microsoft YaHei", sans-serif;
}

/* ===== 基础 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container.narrow { max-width: 780px; }

code {
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card-2);
  color: var(--gold-bright);
  font-family: "Consolas", "SF Mono", monospace;
  font-size: .92em;
}

.hl {
  color: var(--gold-bright);
  font-weight: 600;
}

em { color: var(--gold); font-style: normal; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease,
    border-color .25s ease, color .25s ease;
  white-space: nowrap;
}

.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-gold {
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  color: #1c1608;
  box-shadow: var(--glow);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(213, 192, 138, .38);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  color: var(--gold-bright);
  box-shadow: var(--glow);
}

/* ===== 头部导航 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(12, 12, 15, .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: box-shadow .3s ease, border-color .3s ease, background .3s ease;
}

.site-header.scrolled {
  border-color: var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .5px;
  cursor: pointer;
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(213, 192, 138, .28);
}

.logo-text { color: var(--gold-bright); }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color .2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold-deep));
  transition: width .25s ease;
}

.nav-link:hover,
.nav-link.active { color: var(--gold-bright); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-cta { margin-left: 4px; padding: 10px 20px; font-size: 14px; }

/* 汉堡菜单 */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--gold-bright);
  transition: transform .3s ease, opacity .3s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 100px) 0 110px;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(213, 192, 138, .12), transparent 62%),
    linear-gradient(180deg, #0c0c0f 0%, #101014 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .3;
}
.blob-1 {
  width: 520px; height: 520px;
  top: -160px; right: -100px;
  background: radial-gradient(circle, var(--gold-deep), transparent 70%);
}
.blob-2 {
  width: 420px; height: 420px;
  bottom: -180px; left: -120px;
  background: radial-gradient(circle, #3b3524, transparent 70%);
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(213, 192, 138, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(213, 192, 138, .05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at center, #000 28%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 28%, transparent 76%);
}

.hero-inner {
  position: relative;
  max-width: 860px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 7px 18px;
  margin-bottom: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(213, 192, 138, .07);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(3.2rem, 11vw, 7rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 10px;
  background: linear-gradient(120deg, var(--gold-bright) 10%, var(--gold) 45%, var(--gold-deep) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 20px 60px rgba(213, 192, 138, .16);
  margin-bottom: 16px;
}

.hero-en {
  font-size: clamp(12px, 2.4vw, 17px);
  letter-spacing: 10px;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 30px;
}

.hero-subtitle {
  font-size: clamp(1.02rem, 2.2vw, 1.24rem);
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 38px;
}

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

/* ===== 通用 Section ===== */
.section { padding: 104px 0; }

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 700px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  padding: 5px 15px;
  margin-bottom: 15px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(213, 192, 138, .08);
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 3px;
}

.section-eyebrow.gold {
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  color: #1c1608;
  border-color: transparent;
}

.section-title {
  font-size: clamp(1.95rem, 4.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 1px;
  margin-bottom: 14px;
  background: linear-gradient(120deg, var(--text) 20%, var(--gold) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-desc {
  font-size: 17px;
  color: var(--text-soft);
}

/* ===== 起源故事 ===== */
.story-body p {
  font-size: 17.5px;
  color: var(--text-soft);
  margin-bottom: 22px;
  line-height: 2.05;
}

.story-body p:first-child {
  font-size: 21px;
  color: var(--text);
  font-weight: 500;
}

.punch {
  margin: 40px 0;
  padding: 30px 34px;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(120deg, rgba(213, 192, 138, .1), rgba(213, 192, 138, .02));
  font-size: clamp(1.5rem, 4.4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 2px;
  color: var(--gold-bright);
}

.story-end {
  margin-top: 34px;
  font-size: 18px !important;
  color: var(--gold) !important;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ===== 卡片 ===== */
.cards {
  display: grid;
  gap: 24px;
}
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }

.card {
  padding: 34px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-card-2) 100%);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.card-tag {
  display: inline-block;
  padding: 4px 13px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(213, 192, 138, .12);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(213, 192, 138, .08);
  font-size: 24px;
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 11px;
  color: var(--gold-bright);
  letter-spacing: .5px;
}

.cards.two .card h3 {
  font-size: 25px;
  background: linear-gradient(120deg, var(--gold-bright), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card > p {
  color: var(--text-soft);
  font-size: 15.5px;
  margin-bottom: 12px;
}

.card > p:last-child { margin-bottom: 0; }

/* ===== 感谢牢草 ===== */
.thanks-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(213, 192, 138, .14), transparent 62%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
}

.thanks-inner { text-align: center; }

.thanks-word {
  font-size: clamp(3.4rem, 15vw, 9.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 12px;
  background: linear-gradient(120deg, var(--gold-bright) 8%, var(--gold) 50%, var(--gold-deep) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 24px 80px rgba(213, 192, 138, .18);
  margin: 18px 0 22px;
}

.thanks-sub {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 520px;
  margin: 0 auto 32px;
}

/* ===== 页脚 ===== */
.site-footer {
  background: #08080a;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding: 64px 24px 44px;
}

.footer-brand .logo { margin-bottom: 16px; }

.footer-brand p {
  font-size: 14.5px;
  color: var(--text-dim);
  max-width: 320px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links h4 {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.footer-links a,
.footer-links span {
  font-size: 14.5px;
  color: var(--text-dim);
  transition: color .2s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 1px;
}

/* ===== 滚动进场动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

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

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

/* =========================================================
   开屏 · 感谢牢草 · 背景音乐
   ========================================================= */

.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(1000px 560px at 50% 12%, rgba(213, 192, 138, .12), transparent 60%),
    #08080a;
  transition: opacity .85s ease, visibility .85s ease;
}

.splash.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  transition: opacity .45s ease, transform .45s ease;
}

.splash.thanks-on .splash-inner {
  opacity: 0;
  transform: scale(.92);
}

.splash-logo {
  width: clamp(132px, 26vw, 206px);
  height: auto;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .65), 0 0 60px rgba(213, 192, 138, .12);
  margin-bottom: 26px;
  animation: floatY 4s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.splash-brand {
  color: var(--gold);
  font-size: clamp(14px, 3vw, 18px);
  letter-spacing: 5px;
  margin-bottom: 36px;
}

.splash-enter {
  padding: 16px 48px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  color: #1c1608;
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 6px;
  cursor: pointer;
  transition: transform .25s ease;
  animation: pulseRing 2.2s ease-out infinite;
}

.splash-enter:hover { transform: translateY(-3px) scale(1.03); }

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(213, 192, 138, .5); }
  70% { box-shadow: 0 0 0 24px rgba(213, 192, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(213, 192, 138, 0); }
}

.splash-hint {
  margin-top: 20px;
  color: var(--text-dim);
  font-size: 13.5px;
}

/* 「感谢牢草」四个大字 */
.thanks {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 3vw, 36px);
  padding: 0 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.thanks.show { opacity: 1; }

.thanks span {
  font-size: clamp(3.2rem, 17vw, 11.5rem);
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 14px 44px rgba(213, 192, 138, .5));
  transform: scale(0) rotate(-14deg);
}

.thanks.show span {
  animation: popIn .6s cubic-bezier(.18, 1.35, .4, 1) forwards;
}
.thanks.show span:nth-child(1) { animation-delay: .02s; }
.thanks.show span:nth-child(2) { animation-delay: .16s; }
.thanks.show span:nth-child(3) { animation-delay: .30s; }
.thanks.show span:nth-child(4) { animation-delay: .44s; }

@keyframes popIn {
  0% { opacity: 0; transform: scale(0) rotate(-14deg); }
  65% { opacity: 1; transform: scale(1.18) rotate(4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* 背景音乐按钮 */
.music-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(26, 26, 33, .88);
  backdrop-filter: blur(12px);
  color: var(--gold-bright);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
  transition: transform .25s ease, border-color .25s ease;
}

.music-toggle:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.music-toggle.playing .music-icon {
  animation: spinDisc 3.2s linear infinite;
}

@keyframes spinDisc {
  to { transform: rotate(360deg); }
}

/* =========================================================
   响应式适配
   ========================================================= */
@media (max-width: 960px) {
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 22px;
    background: rgba(12, 12, 15, .97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    transition: transform .32s ease, opacity .32s ease;
    margin-left: 0;
  }

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

  .nav-link {
    padding: 13px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }
  .nav-link:last-child { border-bottom: none; }
  .nav-link::after { display: none; }

  .nav-cta { display: none; }
  .menu-toggle { display: flex; }

  .hero { padding: calc(var(--header-h) + 70px) 0 80px; }
  .hero-title { letter-spacing: 6px; }

  .section { padding: 76px 0; }

  .cards.two,
  .cards.four { grid-template-columns: 1fr; }

  .story-body p { font-size: 16.5px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 24px 32px;
  }

  .music-toggle {
    right: 16px;
    bottom: 16px;
    padding: 11px 15px;
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-lg { width: 100%; }
}
