:root {
  --bg: #f7f5ef;
  --paper: #fffdf8;
  --ink: #242424;
  --muted: #69655c;
  --line: rgba(36, 36, 36, 0.12);
  --dark: #242527;
  --dark-2: #34363a;
  --gold: #b9965b;
  --gold-2: #e6d4ab;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(18, 18, 18, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body::before {
  position: fixed;
  right: clamp(18px, 4vw, 52px);
  top: 48%;
  z-index: 0;
  content: "心流";
  color: rgba(36, 36, 36, 0.035);
  font-size: clamp(72px, 12vw, 180px);
  font-weight: 900;
  writing-mode: vertical-rl;
  pointer-events: none;
}

.site-header,
main,
.site-footer,
.float-actions {
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(247, 245, 239, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(185, 150, 91, 0.44);
  background: linear-gradient(145deg, #202124, #4a4438);
  color: var(--gold-2);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 10px 12px;
  color: #4d4b46;
  font-size: 14px;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 22px;
}

.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: center;
  padding: clamp(52px, 7vw, 110px) clamp(18px, 5vw, 72px);
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(115deg, rgba(185, 150, 91, 0.16), transparent 34%),
    radial-gradient(circle at 22% 28%, rgba(230, 212, 171, 0.16), transparent 26%);
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, #171819 0%, #252323 45%, #4a4034 100%),
    var(--dark);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(18, 18, 18, 0.94), rgba(24, 24, 24, 0.64) 44%, rgba(24, 24, 24, 0.16)),
    linear-gradient(180deg, rgba(24, 24, 24, 0.1), rgba(24, 24, 24, 0.72));
}

.hero-media img {
  width: min(52vw, 720px);
  height: calc(100% - 34px);
  margin: 34px clamp(18px, 5vw, 72px) 0 auto;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(230, 212, 171, 0.2);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

.hero-founder {
  position: absolute;
  right: clamp(18px, 5vw, 74px);
  bottom: clamp(24px, 6vw, 74px);
  z-index: 2;
  width: min(330px, calc(100% - 36px));
  padding: 20px;
  border: 1px solid rgba(230, 212, 171, 0.28);
  background: rgba(24, 24, 24, 0.62);
  color: #fff;
  backdrop-filter: blur(14px);
}

.hero-founder span,
.hero-founder small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
}

.hero-founder b {
  display: block;
  margin: 8px 0;
  color: var(--gold-2);
  font-size: 24px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.25;
}

p,
li {
  color: var(--muted);
  line-height: 1.8;
}

.hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
}

.lead {
  color: var(--gold-2) !important;
  font-size: clamp(20px, 2vw, 28px) !important;
}

.hero-actions,
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #1e1e1e;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.section {
  padding: clamp(64px, 8vw, 120px) clamp(18px, 5vw, 72px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-head h2 {
  max-width: 860px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.case-card,
.article-card,
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(18, 18, 18, 0.06);
}

.case-card {
  display: block;
}

.service-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
}

.service-card img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.service-card span,
.case-card small,
.article-card small,
.price-card small,
.article-detail small {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.service-card span,
.service-card h3,
.service-card p {
  margin-right: 22px;
  margin-left: 22px;
}

.service-card span {
  margin-top: 24px;
}

.service-card:hover {
  transform: translateY(-5px);
  transition: transform 0.24s ease;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list article,
.deliverables article {
  display: grid;
  gap: 8px;
  padding: 22px;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--line);
}

.feature-list b {
  font-size: 19px;
}

.feature-list span {
  color: var(--muted);
  line-height: 1.7;
}

.profile-card {
  margin: 26px 0 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.profile-card img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  object-position: center top;
}

.profile-card figcaption {
  padding: 16px 18px;
  color: #5e574d;
  font-weight: 800;
}

.case-grid,
.article-grid,
.service-list,
.pricing-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.case-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.case-card div,
.article-card,
.price-card {
  padding: 24px;
}

.case-card b,
.price-card b {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 24px;
}

.article-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  background: var(--dark);
  color: #fff;
}

.article-strip a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.article-strip span {
  color: var(--gold-2);
  font-size: 13px;
}

.page-hero {
  padding: clamp(76px, 10vw, 150px) clamp(18px, 5vw, 72px) clamp(42px, 7vw, 88px);
  background: linear-gradient(135deg, var(--dark), #3b3c3e);
  color: #fff;
}

.page-hero h1 {
  max-width: 1050px;
  font-size: clamp(38px, 5vw, 70px);
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.page-hero.compact {
  min-height: 420px;
  display: grid;
  align-content: center;
}

.service-hero {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 42px;
  align-items: center;
}

.service-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}

.table-card {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #eee8dc;
  color: #3a3327;
}

.notice {
  margin-top: 18px;
  padding: 20px;
  background: #efe8d8;
  border-left: 4px solid var(--gold);
  color: #5b4d35;
  line-height: 1.7;
}

.pricing-band article {
  padding: 28px;
  background: var(--dark);
  color: #fff;
}

.pricing-band p {
  color: rgba(255, 255, 255, 0.72);
}

.deliverables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  counter-reset: deliverable;
}

.deliverables article::before {
  counter-increment: deliverable;
  content: "0" counter(deliverable);
  color: var(--gold);
  font-weight: 800;
}

.price-card span {
  display: block;
  color: var(--muted);
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.tag-row a {
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: #4a473f;
  font-size: 14px;
}

.filter input {
  min-height: 48px;
  flex: 1 1 280px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  font: inherit;
}

.article-card h2 {
  font-size: 24px;
}

.article-card img {
  width: calc(100% + 48px);
  max-width: none;
  height: 180px;
  margin: -24px -24px 20px;
  object-fit: cover;
}

.text-link {
  color: var(--gold);
  font-weight: 800;
}

.article-detail {
  width: min(880px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(70px, 9vw, 130px) 0;
}

.article-detail h1 {
  font-size: clamp(36px, 5vw, 62px);
}

.article-detail p {
  font-size: 18px;
}

.prose {
  color: var(--muted);
  line-height: 1.9;
  font-size: 17px;
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--ink);
}

.prose img {
  max-width: 100%;
  height: auto;
  margin: 18px 0;
  border: 1px solid var(--line);
}

.prose blockquote {
  margin: 22px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--gold);
  background: #efe8d8;
  color: #4f483a;
}

.article-cta {
  margin-top: 44px;
  padding: 28px;
  background: var(--dark);
  color: #fff;
}

.article-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.article-cta h3 {
  margin: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 30px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #514e48;
  font-weight: 700;
}

.contact-form .full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input,
select {
  min-height: 46px;
  padding: 0 13px;
}

textarea {
  padding: 13px;
  resize: vertical;
}

.contact-aside {
  padding: 30px;
  background: var(--dark);
  color: #fff;
}

.contact-aside p {
  color: rgba(255, 255, 255, 0.75);
}

.float-actions {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.float-actions a,
.float-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(185, 150, 91, 0.42);
  background: rgba(36, 37, 39, 0.9);
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 800;
  font: inherit;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.float-actions a:first-child,
.float-actions button:last-child {
  background: var(--gold);
  color: #1b1b1b;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 42px clamp(18px, 5vw, 72px);
  background: #171819;
  color: #fff;
}

.site-footer span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.58);
}

.icp-link {
  display: inline-block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .service-grid,
  .case-grid,
  .article-grid,
  .service-list,
  .pricing-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    position: absolute;
    top: 75px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    border-bottom: 1px solid var(--line);
  }

  .hero {
    display: block;
    min-height: auto;
    padding: 0 16px 96px;
    background:
      linear-gradient(180deg, #1b1b1b 0%, #242220 54%, #151515 100%);
  }

  .hero::before {
    opacity: 0.42;
  }

  .hero-media {
    position: relative;
    inset: auto;
    height: min(68svh, 560px);
    margin: 0 -16px;
    overflow: hidden;
    background: #211f1d;
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(18, 18, 18, 0.04), rgba(18, 18, 18, 0.06) 46%, rgba(18, 18, 18, 0.72) 100%),
      linear-gradient(90deg, rgba(18, 18, 18, 0.2), transparent 48%, rgba(18, 18, 18, 0.24));
  }

  .hero-media img {
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0.94;
    border: 0;
    object-fit: cover;
    object-position: center 12%;
    box-shadow: none;
  }

  .hero-copy {
    width: auto;
    padding: 26px 0 14px;
  }

  .hero-copy .eyebrow {
    display: none;
  }

  .hero-copy h1 {
    max-width: 9em;
    margin-bottom: 14px;
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.06;
  }

  .hero .lead {
    margin-bottom: 12px;
    font-size: 20px !important;
    line-height: 1.5;
  }

  .hero p:not(.lead) {
    display: none;
  }

  .hero-actions {
    display: none;
  }

  .hero-founder {
    display: none;
  }

  .split,
  .service-hero,
  .contact-layout,
  .article-strip {
    grid-template-columns: 1fr;
  }

  .deliverables,
  .contact-form,
  .service-grid,
  .case-grid,
  .article-grid,
  .service-list,
  .pricing-band {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
    padding-bottom: 104px;
  }

  .float-actions {
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    background: rgba(247, 245, 239, 0.88);
    border: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }

  .float-actions a,
  .float-actions button {
    min-height: 46px;
    padding: 0 8px;
    font-size: 14px;
    box-shadow: none;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 68px;
    padding: 10px 14px;
  }

  .brand small {
    display: none;
  }

  .hero,
  .section,
  .page-hero {
    padding-right: 16px;
    padding-left: 16px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
  }

  .contact-form {
    padding: 18px;
  }
}
