:root {
  --black: #0b0b09;
  --carbon: #15130f;
  --ink: #222018;
  --ivory: #f7f0e3;
  --paper: #fffaf0;
  --muted: #7a7266;
  --gold: #d8ae62;
  --gold-soft: #f0d59a;
  --ember: #f05a28;
  --red: #9e241a;
  --line: rgba(34, 32, 24, .12);
  --white-line: rgba(255, 250, 240, .14);
  --shadow: 0 24px 70px rgba(21, 19, 15, .16);
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: max(14px, env(safe-area-inset-top)) 22px 14px;
  color: var(--paper);
  background: linear-gradient(to bottom, rgba(11, 11, 9, .9), rgba(11, 11, 9, .16), transparent);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(216, 174, 98, .62);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 70%, var(--gold), var(--ember) 43%, transparent 44%), rgba(255,255,255,.05);
  position: relative;
  box-shadow: 0 0 30px rgba(240, 90, 40, .24);
}
.brand-mark::after {
  content: "炬";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--paper);
  font-size: 16px;
}
.brand strong { display: block; font-size: 18px; line-height: 1; letter-spacing: 0; }
.brand small { display: block; margin-top: 4px; font-size: 10px; color: rgba(255,250,240,.65); letter-spacing: 0; }
.nav { display: flex; gap: 16px; color: rgba(255,250,240,.78); font-size: 13px; white-space: nowrap; }
.nav a { padding: 8px 0; }

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: center;
  padding: 120px 22px 88px;
  color: var(--paper);
  overflow: hidden;
  background: var(--black);
}
.hero-bg, .hero-bg img, .hero-bg video, .hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-bg img, .hero-bg video { object-fit: cover; opacity: .82; }
.hero-bg video:not([src]) { display: none; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 54%, rgba(240, 90, 40, .18), transparent 35%),
    linear-gradient(90deg, rgba(11, 11, 9, .96) 0%, rgba(11, 11, 9, .72) 46%, rgba(11, 11, 9, .28) 100%),
    linear-gradient(to top, rgba(11, 11, 9, .94), transparent 48%, rgba(11, 11, 9, .52));
}
.hero-grid {
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: drift 28s linear infinite;
}
.hero-content {
  width: min(1120px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero h1, .section h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-weight: 600;
  letter-spacing: 0;
}
.hero h1 {
  max-width: 820px;
  font-size: clamp(42px, 10vw, 88px);
  line-height: 1.02;
}
.hero-sub {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 250, 240, .78);
  font-size: clamp(17px, 3vw, 23px);
  line-height: 1.75;
}
.hero-actions, .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(216, 174, 98, .46);
  color: var(--paper);
  background: rgba(255, 250, 240, .06);
  backdrop-filter: blur(10px);
}
.btn.primary {
  color: #17110c;
  background: linear-gradient(135deg, var(--gold), #f2c46e 45%, var(--ember));
  font-weight: 800;
  animation: breathe 2.8s ease-in-out infinite;
}
.scroll-mark {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 1px;
  height: 46px;
  background: rgba(255,250,240,.26);
  overflow: hidden;
}
.scroll-mark::after {
  content: "";
  display: block;
  height: 16px;
  background: var(--gold);
  animation: scrollLine 1.8s infinite;
}

.section {
  padding: 92px 22px;
  position: relative;
}
.section-head, .pain-grid, .module-cloud, .service-matrix, .process-track, .client-grid, .advantage-grid, .numbers, .case-grid, .deliverable-list, .contact-section {
  width: min(1160px, 100%);
  margin-left: auto;
  margin-right: auto;
}
.section-head { margin-bottom: 36px; }
.section h2 {
  font-size: clamp(30px, 6vw, 56px);
  line-height: 1.12;
}
.section-head > p:not(.eyebrow), .contact-copy > p:not(.eyebrow) {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 16px;
}
.section-dark {
  color: var(--paper);
  background: radial-gradient(circle at 70% 15%, rgba(240, 90, 40, .13), transparent 32%), var(--black);
}
.section-dark h2, .section-ember h2 { color: var(--paper); }
.section-dark .section-head > p:not(.eyebrow), .section-ember .section-head > p:not(.eyebrow) { color: rgba(255,250,240,.68); }
.section-ivory { background: var(--ivory); }
.section-white { background: var(--paper); }
.section-ember {
  color: var(--paper);
  background: linear-gradient(135deg, #15100d, #24120d 54%, #3a130d);
}

.pain-grid, .advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.pain-card, .advantage-card, .case-card, .matrix-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, .72);
  box-shadow: 0 14px 38px rgba(21, 19, 15, .07);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.pain-card, .advantage-card { padding: 22px; min-height: 190px; }
.pain-card:hover, .advantage-card:hover, .case-card:hover, .matrix-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(216, 174, 98, .4);
}
.pain-card span, .advantage-card span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-bottom: 24px;
  background: var(--black);
  color: var(--gold);
  font-weight: 800;
}
.pain-card h3, .advantage-card h3, .case-card h3, .matrix-card h3 { margin: 0 0 10px; font-size: 21px; }
.pain-card p, .advantage-card p, .case-card p { margin: 0; color: var(--muted); line-height: 1.78; }

.module-cloud {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.module-cloud span, .client-grid span, .deliverable-list span {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--white-line);
  background: rgba(255, 250, 240, .06);
  color: rgba(255,250,240,.86);
}

.service-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.matrix-card {
  padding: 22px;
  background: #fffbf3;
}
.matrix-letter {
  color: var(--ember);
  font-family: "Songti SC", "STSong", serif;
  font-size: 44px;
  line-height: 1;
}
.matrix-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}
.matrix-card li {
  color: var(--muted);
  line-height: 1.5;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.process-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: rgba(255,250,240,.16);
  border: 1px solid rgba(255,250,240,.16);
}
.process-step {
  min-height: 160px;
  padding: 18px;
  background: rgba(11, 11, 9, .32);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.process-step strong { color: var(--gold-soft); font-size: 13px; }
.process-step p { margin: 0; line-height: 1.55; font-weight: 700; }

.client-grid, .deliverable-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.client-grid span, .deliverable-list span {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  justify-content: center;
  text-align: center;
}

.advantage-grid { grid-template-columns: repeat(3, 1fr); }
.section-dark .advantage-card {
  background: rgba(255,250,240,.06);
  border-color: var(--white-line);
}
.section-dark .advantage-card p { color: rgba(255,250,240,.66); }
.section-dark .advantage-card h3 { color: var(--paper); }
.numbers {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--white-line);
}
.number-card {
  padding: 24px;
  border-right: 1px solid var(--white-line);
}
.number-card:last-child { border-right: 0; }
.number-value {
  color: var(--gold-soft);
  font-family: "Songti SC", "STSong", serif;
  font-size: 54px;
  line-height: 1;
}
.number-card p { margin: 10px 0 0; color: rgba(255,250,240,.68); }

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.case-card { padding: 24px; background: #fffbf3; }
.case-lines { display: grid; gap: 10px; margin-top: 18px; }
.case-lines p { border-top: 1px solid var(--line); padding-top: 10px; }
.case-lines strong { color: var(--ink); margin-right: 6px; }

.contact-section {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 22px;
  align-items: stretch;
}
.contact-section h2 { color: var(--paper); }
.contact-section {
  color: var(--paper);
}
#contact {
  background:
    radial-gradient(circle at 80% 20%, rgba(216, 174, 98, .16), transparent 34%),
    linear-gradient(135deg, #0b0b09, #17100d);
}
.contact-card {
  padding: 24px;
  border: 1px solid var(--white-line);
  border-radius: var(--radius);
  background: rgba(255,250,240,.06);
}
.contact-lines { display: grid; gap: 12px; }
.contact-lines p {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--white-line);
  color: rgba(255,250,240,.76);
  line-height: 1.7;
}
.contact-lines strong { display: block; color: var(--gold-soft); margin-bottom: 2px; }
.contact-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: 18px;
  border: 1px solid var(--white-line);
}
.footer {
  text-align: center;
  padding: 34px 20px calc(34px + env(safe-area-inset-bottom));
  background: var(--black);
  color: rgba(255,250,240,.68);
}
.footer p { margin: 0 0 8px; color: var(--gold-soft); }

.hidden-admin-zone {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 20;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-hero { opacity: 0; transform: translateY(18px); animation: enter .8s ease forwards; }
.delay-1 { animation-delay: .12s; }
.delay-2 { animation-delay: .24s; }
.delay-3 { animation-delay: .36s; }

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  background: rgba(11, 11, 9, .72);
  padding: 16px;
}
.admin-modal.open { display: grid; place-items: center; }
.admin-panel {
  width: min(980px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
  position: relative;
}
.admin-close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 3;
  margin: 12px 12px 0 0;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--black);
  color: var(--paper);
  font-size: 24px;
}
.admin-login, .admin-editor { padding: 24px; }
.admin-login h2, .admin-editor h2 { margin: 0 0 8px; }
.admin-login p, .admin-head p, .admin-tip { color: var(--muted); line-height: 1.7; }
.admin-login input, .admin-field input, .admin-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}
.admin-login button, .admin-tools button, .admin-savebar button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  background: var(--black);
  color: var(--paper);
}
.admin-note { color: var(--red); }
.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.admin-status {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(216,174,98,.14);
  color: #7a4a12;
  font-weight: 700;
  white-space: nowrap;
}
.admin-status.success { background: rgba(42, 125, 78, .14); color: #2a7d4e; }
.admin-form { display: grid; gap: 16px; padding-bottom: 18px; }
.admin-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.admin-section h3 {
  grid-column: 1 / -1;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.admin-field.wide { grid-column: 1 / -1; }
.admin-field label { display: block; margin-bottom: 6px; font-weight: 700; }
.admin-field small { display: block; margin-top: 6px; color: var(--muted); line-height: 1.45; font-size: 12px; }
.admin-field textarea { min-height: 96px; resize: vertical; }
.admin-advanced {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: #fffdf8;
}
.admin-advanced summary { cursor: pointer; font-weight: 800; color: var(--ember); }
.admin-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.admin-tools button { background: #fff; color: var(--ink); }
.admin-tip {
  margin: 14px 0 72px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(216,174,98,.14);
}
.admin-savebar {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 -24px -24px;
  padding: 14px 24px calc(14px + env(safe-area-inset-bottom));
  background: rgba(255,250,240,.96);
  border-top: 1px solid var(--line);
}
.admin-savebar #cancelEdit { background: #fff; color: var(--ink); }
.admin-savebar #saveEdit { background: linear-gradient(135deg, var(--gold), var(--ember)); color: #17110c; font-weight: 800; }

@keyframes enter { to { opacity: 1; transform: translateY(0); } }
@keyframes drift { to { transform: translate3d(-64px, -64px, 0); } }
@keyframes scrollLine {
  from { transform: translateY(-18px); }
  to { transform: translateY(48px); }
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 rgba(240,90,40,0); }
  50% { box-shadow: 0 0 28px rgba(240,90,40,.32); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .section { padding: 72px 18px; }
  .pain-grid, .module-cloud, .service-matrix, .advantage-grid, .case-grid, .contact-section { grid-template-columns: 1fr; }
  .client-grid, .deliverable-list { grid-template-columns: repeat(2, 1fr); }
  .process-track { grid-template-columns: 1fr; }
  .process-step { min-height: 106px; }
  .numbers { grid-template-columns: 1fr; }
  .number-card { border-right: 0; border-bottom: 1px solid var(--white-line); }
  .number-card:last-child { border-bottom: 0; }
}

@media (max-width: 620px) {
  .topbar { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 112px 18px 78px; }
  .hero h1 { font-size: clamp(40px, 13vw, 58px); }
  .hero-sub { font-size: 17px; }
  .hero-actions, .contact-actions { display: grid; }
  .btn { width: 100%; }
  .client-grid, .deliverable-list { grid-template-columns: 1fr; }
  .matrix-card ul { grid-template-columns: 1fr; }
  .admin-modal { padding: 0; }
  .admin-panel { width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
  .admin-login, .admin-editor { padding: 18px; }
  .admin-head { display: block; }
  .admin-status { margin: 10px 0 0; white-space: normal; }
  .admin-section { grid-template-columns: 1fr; padding: 15px; }
  .admin-savebar {
    margin: 0 -18px -18px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .admin-savebar button { flex: 1; }
}

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