/* ============================================================
   熵升网络 · 企业站样式
   配色集中在 :root，改主色只改 --accent 即可
   ============================================================ */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f4f1ea;
  --dark: #1e1d1a;
  --dark-2: #26251f;
  --line: #e5e0d6;
  --line-dark: #3a3931;
  --ink: #1c1b18;
  --ink-soft: #5d584f;
  --ink-faint: #918a7e;
  --accent: #b0533a;
  --accent-deep: #8f3f2a;
  --accent-soft: #f7ebe6;
  --shadow-sm: 0 1px 2px rgba(28, 27, 24, .04);
  --shadow: 0 1px 2px rgba(28, 27, 24, .04), 0 12px 32px rgba(28, 27, 24, .06);
  --radius: 4px;
  --serif: Georgia, "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent-soft); color: var(--accent-deep); }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 3px;
  background: var(--ink);
  color: #fbfaf7;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .06em;
}
.brand-sub {
  font-size: 9.5px;
  letter-spacing: .18em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav a { color: var(--ink-soft); transition: color .18s; padding: 4px 0; }
.nav a:hover { color: var(--accent); }

.nav .btn-sm {
  display: inline-block;
  background: var(--ink);
  color: #fbfaf7;
  font-size: 13.5px;
  padding: 8px 18px;
  border-radius: 3px;
  transition: background .18s, transform .18s;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.6;
}
.nav .btn-sm:hover { background: var(--accent); color: #fbfaf7; transform: translateY(-1px); }

.nav-toggle { display: none; }
.mobile-nav { display: none; }

/* ---------- 首屏 ---------- */
.hero { padding: 84px 0 66px; border-bottom: 1px solid var(--line); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 4px 14px 4px 10px;
  margin-bottom: 26px;
}
.eyebrow i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5.4vw, 54px);
  line-height: 1.32;
  letter-spacing: -.01em;
  font-weight: 700;
  margin: 0 0 24px;
  max-width: 15em;
}
.hero h1 em { font-style: normal; color: var(--accent); }

.hero-lede {
  font-size: 16.5px;
  color: var(--ink-soft);
  max-width: 36em;
  margin: 0 0 34px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 3px;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background .18s, transform .18s, opacity .18s;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-faint); color: var(--ink); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- 数据条 ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.metric {
  padding: 26px 24px 26px 0;
  border-right: 1px solid var(--line);
}
.metric:last-child { border-right: 0; }
.metric b {
  display: block;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}
.metric span { font-size: 12.5px; color: var(--ink-faint); letter-spacing: .02em; }

/* ---------- 通用区块 ---------- */
.section { padding: 76px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }

.sec-head { margin-bottom: 42px; max-width: 42em; }
.sec-kicker {
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.sec-head h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.4;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -.005em;
}
.sec-head p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- 服务 ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--surface);
  padding: 32px 32px 34px;
  transition: background .2s;
}
.service:hover { background: #fffdfa; }
.service-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.service h3 {
  font-size: 17.5px;
  font-family: var(--serif);
  font-weight: 700;
  margin: 0;
  letter-spacing: .01em;
}
.service .no {
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.service p { margin: 0 0 16px; font-size: 14.5px; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-size: 11.5px;
  color: var(--ink-soft);
  background: var(--surface-2);
  border-radius: 2px;
  padding: 2px 9px;
  line-height: 1.8;
}

/* ---------- 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step {
  padding: 30px 26px 30px 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-right: 0; padding-right: 0; }
.step .num {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #fff;
  background: var(--ink);
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 15.5px; margin: 0 0 10px; font-weight: 700; }
.step p { margin: 0; font-size: 13.8px; color: var(--ink-soft); line-height: 1.75; }

/* ---------- 案例（深色） ---------- */
.dark { background: var(--dark); color: #f2efe8; border-bottom: 0; }
.dark .sec-kicker { color: #d98a6f; }
.dark .sec-head h2 { color: #fbf9f5; }
.dark .sec-head p { color: #a8a296; }

.case-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  background: var(--dark-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.case:hover { border-color: #56544a; transform: translateY(-2px); }
.case-status {
  font-size: 11px;
  letter-spacing: .08em;
  color: #d98a6f;
  border: 1px solid #4a3a31;
  background: rgba(217, 138, 111, .1);
  border-radius: 2px;
  padding: 2px 8px;
  align-self: flex-start;
  margin-bottom: 16px;
}
.case h3 {
  font-family: var(--serif);
  font-size: 18.5px;
  margin: 0 0 10px;
  color: #fbf9f5;
  font-weight: 700;
}
.case p { font-size: 13.8px; color: #a8a296; margin: 0 0 20px; line-height: 1.8; flex: 1; }
.case .chips { gap: 6px; }
.case .chip { background: #33322b; color: #b9b3a6; }

/* ---------- 关于 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: start;
}
.about-copy h2 {
  font-family: var(--serif);
  font-size: clamp(23px, 3vw, 29px);
  line-height: 1.45;
  margin: 0 0 20px;
  font-weight: 700;
}
.about-copy p { margin: 0 0 16px; color: var(--ink-soft); font-size: 15.5px; }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy strong { color: var(--ink); font-weight: 600; }

.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 26px 22px;
}
.side-card h3 {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 18px;
  font-weight: 600;
}
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 11px 0 11px 18px;
  position: relative;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}
.side-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.side-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 20px;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* ---------- 技术栈 ---------- */
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.stack span {
  font-size: 12.5px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 4px 11px;
  background: var(--surface);
}

/* ---------- 联系 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 {
  font-family: var(--serif);
  font-size: clamp(23px, 3vw, 29px);
  line-height: 1.45;
  margin: 0 0 16px;
  font-weight: 700;
}
.contact-info p { color: var(--ink-soft); font-size: 15px; margin: 0 0 22px; }
.contact-meta { list-style: none; padding: 0; margin: 0; }
.contact-meta li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.contact-meta li b { color: var(--ink); font-weight: 600; flex-shrink: 0; }

form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: 13px; color: var(--ink-soft); letter-spacing: .01em; }
label .req { color: var(--accent); }

input, select, textarea {
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 11px 13px;
  width: 100%;
  transition: border-color .18s, box-shadow .18s;
  line-height: 1.6;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176, 83, 58, .09);
}
textarea { resize: vertical; min-height: 118px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23918a7e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }

.form-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.form-note { font-size: 12.5px; color: var(--ink-faint); }
.form-msg { font-size: 13.5px; margin: 0; min-height: 0; }
.form-msg.ok { color: #3f7a56; }
.form-msg.err { color: #b0463a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 44px;
  font-size: 13px;
  color: var(--ink-faint);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-brand b { font-family: var(--serif); font-size: 15px; color: var(--ink); letter-spacing: .05em; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}
.footer-bottom a { color: var(--ink-faint); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- 动画 ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .nav { display: none; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--surface);
    cursor: pointer;
    padding: 0 9px;
  }
  .nav-toggle i { display: block; height: 1.5px; background: var(--ink); border-radius: 1px; }
  .header-inner { position: relative; }
  .mobile-nav {
    display: none;
    position: absolute;
    top: 100%; left: -22px; right: -22px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 10px 22px 18px;
    flex-direction: column;
    gap: 2px;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .mobile-nav a:last-child { border-bottom: 0; }
}

@media (max-width: 900px) {
  .wrap { padding: 0 22px; }
  .hero { padding: 54px 0 44px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric { padding: 20px 16px 20px 0; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(3), .metric:nth-child(4) { border-top: 1px solid var(--line); }
  .section { padding: 52px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service { padding: 24px 20px 26px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { padding: 24px 18px 24px 0; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(3), .step:nth-child(4) { border-top: 1px solid var(--line); }
  .case-list { grid-template-columns: 1fr; gap: 14px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .field-row { grid-template-columns: 1fr; }
  .site-footer { padding: 32px 0 36px; }
}

@media (max-width: 420px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 0; }
  .step:last-child { border-bottom: 0; }
}
