:root {
  color-scheme: light;
  --ink: #302522;
  --ink-soft: #594945;
  --muted: #766762;
  --paper: #fffdf8;
  --paper-deep: #f7efe3;
  --rose: #a94f52;
  --rose-dark: #773639;
  --gold: #b98a48;
  --line: #e8dbcf;
  --white: #fff;
  --shadow: 0 22px 60px rgba(82, 49, 38, .10);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --sans: "Source Han Sans CN", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 4%, rgba(185, 138, 72, .08), transparent 24rem),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; color: #fff; background: var(--rose-dark); }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(232, 219, 207, .82);
  background: rgba(255, 253, 248, .94);
  backdrop-filter: blur(16px);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: max-content; text-decoration: none; font-weight: 760; }
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 55% 45% 52% 48%;
  color: #fff;
  background: linear-gradient(145deg, #cf7475, #8d4044);
  box-shadow: 0 8px 20px rgba(169, 79, 82, .24);
}
.nav-links { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 14px; }
.nav-links a { text-decoration: none; white-space: nowrap; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] { color: var(--rose-dark); }

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255,253,248,.84), rgba(247,239,227,.82)),
    repeating-linear-gradient(90deg, transparent 0 78px, rgba(169,79,82,.035) 78px 79px);
}
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -150px;
  bottom: -200px;
  border: 1px solid rgba(169, 79, 82, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(169,79,82,.025), 0 0 0 82px rgba(169,79,82,.018);
}
.hero-layout { min-height: 570px; padding: 96px 0 86px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 64px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--rose-dark); font-size: 13px; font-weight: 780; letter-spacing: .14em; }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
h1, h2, .display { font-family: var(--serif); font-weight: 700; }
h1 { max-width: 780px; margin: 0; font-size: clamp(42px, 6.8vw, 74px); line-height: 1.12; letter-spacing: -.04em; }
.hero-copy { max-width: 700px; margin: 24px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 48px; padding: 11px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--rose); border-radius: 999px; text-decoration: none; font-weight: 720; }
.button-primary { color: #fff; background: var(--rose); }
.button-primary:hover, .button-primary:focus-visible { background: var(--rose-dark); border-color: var(--rose-dark); }
.button-secondary { color: var(--rose-dark); background: rgba(255,255,255,.72); }
.hero-note { position: relative; padding: 32px; border: 1px solid rgba(255,255,255,.88); border-radius: 30px 8px 30px 8px; background: rgba(255,255,255,.74); box-shadow: var(--shadow); }
.hero-note::before { content: "元"; position: absolute; right: 24px; top: 18px; color: rgba(169,79,82,.09); font: 700 88px/1 var(--serif); }
.hero-note strong { position: relative; display: block; margin-bottom: 14px; color: var(--rose-dark); font-size: 18px; }
.hero-note ul { position: relative; margin: 0; padding-left: 20px; color: var(--muted); }

section { padding: 88px 0; }
.section-soft { background: var(--paper-deep); }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading h2 { margin: 0 0 12px; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.22; }
.section-heading p { margin: 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: 24px 8px 24px 8px; background: #fff; box-shadow: 0 12px 32px rgba(76,52,39,.05); }
.card-index { color: var(--rose); font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.card h3 { margin: 10px 0 10px; font: 700 22px/1.35 var(--serif); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card-link { display: inline-flex; margin-top: 18px; color: var(--rose-dark); font-size: 14px; font-weight: 750; text-underline-offset: 4px; }

.entry-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 20px; }
.entry-card { position: relative; min-height: 320px; padding: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: 28px 10px 28px 10px; background: #fff; text-decoration: none; box-shadow: var(--shadow); }
.entry-card .entry-number { color: var(--gold); font: 700 13px/1 var(--sans); letter-spacing: .16em; }
.entry-card h3 { max-width: 500px; margin: 62px 0 12px; font: 700 clamp(28px,4vw,44px)/1.2 var(--serif); }
.entry-card p { max-width: 520px; margin: 0; color: var(--muted); }
.entry-card::after { content: "↗"; position: absolute; right: 28px; top: 26px; color: var(--rose); font-size: 24px; transition: transform .2s ease; }
.entry-card:hover::after, .entry-card:focus-visible::after { transform: translate(4px,-4px); }
.entry-card-wide { color: #fff; border-color: transparent; background: linear-gradient(140deg, #9e4a4e, #6f3337); }
.entry-card-wide p { color: rgba(255,255,255,.78); }
.entry-card-wide::after { color: #fff; }

.case-preview { overflow: hidden; padding: 0; }
.case-preview img { width: 100%; height: 230px; object-fit: cover; }
.case-preview-body { padding: 24px 26px 28px; }
.case-preview .tag, .tag { display: inline-flex; padding: 4px 10px; border-radius: 999px; color: var(--rose-dark); background: #f8ece8; font-size: 12px; font-weight: 750; }

.steps { counter-reset: steps; display: grid; gap: 14px; }
.step { counter-increment: steps; padding: 22px 24px; display: grid; grid-template-columns: 48px 1fr; gap: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.step::before { content: counter(steps, decimal-leading-zero); color: var(--rose-dark); font-weight: 800; }
.step h3 { margin: 0 0 4px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.policy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.policy { padding: 28px; border-top: 3px solid var(--rose); background: #fff; }
.policy h3 { margin: 0 0 12px; }
.policy p, .policy li { color: var(--muted); font-size: 15px; }
.policy ul { margin: 0; padding-left: 20px; }
.notice, .evidence-note { margin-top: 18px; padding: 18px 20px; border: 1px solid #ead8bd; border-radius: 14px; color: #5f4f47; background: #fff8ee; font-size: 14px; }

.contact { padding: 38px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; border-radius: 28px 10px 28px 10px; color: #fff; background: linear-gradient(135deg, #99474b, #6f3337); box-shadow: var(--shadow); }
.contact h2 { margin: 0 0 8px; font-size: clamp(28px,4vw,40px); }
.contact p { margin: 0; color: rgba(255,255,255,.82); }
.contact-badge { padding: 14px 18px; border: 1px solid rgba(255,255,255,.42); border-radius: 16px; white-space: nowrap; }

.page-hero { padding: 72px 0 62px; border-bottom: 1px solid var(--line); background: linear-gradient(145deg, #fffaf3, #f4eadf); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.breadcrumb a { text-underline-offset: 3px; }
.page-hero h1 { max-width: 900px; font-size: clamp(38px,6vw,66px); }
.page-intro { max-width: 760px; margin: 18px 0 0; color: var(--muted); font-size: 18px; }

.profile-grid { display: grid; grid-template-columns: minmax(260px,.72fr) minmax(0,1.28fr); gap: 42px; align-items: start; }
.profile-carousel { position: relative; width: 100%; min-width: 0; max-width: 100%; border-radius: 90px 12px 90px 12px; background: #e9e1d8; box-shadow: var(--shadow); outline-offset: 6px; }
.profile-carousel-viewport { position: relative; width: 100%; height: 0; min-height: 0; padding-top: 125%; overflow: hidden; border-radius: inherit; isolation: isolate; }
.profile-carousel-viewport::after { content: ""; position: absolute; z-index: 2; inset: auto 0 0; height: 34%; pointer-events: none; background: linear-gradient(transparent, rgba(44,29,25,.36)); }
.profile-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.025); transition: opacity .45s ease, transform .7s ease; pointer-events: none; }
.profile-slide.is-active { z-index: 1; opacity: 1; transform: scale(1); pointer-events: auto; }
.profile-slide img { width: 100%; height: 100%; object-fit: cover; }
.profile-slide:nth-child(1) img { object-position: 50% 30%; }
.profile-slide:nth-child(2) img { object-position: 34% 50%; }
.profile-slide:nth-child(3) img { object-position: 68% 50%; }
.profile-carousel-controls { position: absolute; z-index: 4; left: 22px; right: 22px; bottom: 22px; display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 14px; }
.carousel-arrow { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.58); border-radius: 50%; color: #fff; background: rgba(48,37,34,.38); backdrop-filter: blur(8px); cursor: pointer; font: 600 18px/1 var(--sans); transition: background .2s ease, transform .2s ease; }
.carousel-arrow:hover { background: rgba(119,54,57,.82); transform: translateY(-1px); }
.carousel-dots { display: flex; justify-content: center; gap: 8px; }
.carousel-dot { width: 24px; height: 4px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.48); cursor: pointer; transition: width .2s ease, background .2s ease; }
.carousel-dot.is-active { width: 38px; background: #fff; }
.profile-copy { min-width: 0; }
.profile-copy h2 { margin: 0 0 8px; font-size: clamp(34px,5vw,52px); }
.profile-role { margin: 0 0 26px; color: var(--rose-dark); font-weight: 750; }
.fact-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.fact-list li { padding: 14px 16px; border-left: 3px solid var(--gold); background: #fff; }
.qr-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,360px); gap: 44px; align-items: center; }
.qr-card { padding: 22px; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.qr-card img { width: 100%; border-radius: 12px; }
.instruction-list { counter-reset: qr; display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.instruction-list li { counter-increment: qr; display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.instruction-list li::before { content: counter(qr); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--rose); font-weight: 750; }

.case-list { display: grid; gap: 24px; }
.case-row { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(0,1.2fr); overflow: hidden; border: 1px solid var(--line); border-radius: 28px 10px 28px 10px; background: #fff; box-shadow: 0 16px 40px rgba(76,52,39,.06); }
.case-row img { width: 100%; height: 100%; min-height: 290px; object-fit: cover; }
.case-row-copy { padding: 34px; }
.case-row h2 { margin: 14px 0 12px; font-size: clamp(28px,4vw,42px); line-height: 1.25; }
.case-row p { color: var(--muted); }

.case-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 34px; }
.case-meta div { padding: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.68); }
.case-meta dt { color: var(--muted); font-size: 12px; letter-spacing: .12em; }
.case-meta dd { margin: 6px 0 0; font-weight: 720; }
.story-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(270px,.75fr); gap: 42px; align-items: start; }
.story-grid h2 { margin-top: 0; font-size: clamp(30px,4.5vw,48px); }
.story-grid p { color: var(--ink-soft); }
.deliverables { margin: 0; padding-left: 20px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.gallery.gallery-single { grid-template-columns: minmax(0,820px); justify-content: center; }
.gallery figure { margin: 0; overflow: hidden; border-radius: 24px 8px 24px 8px; background: #eee; box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.gallery figcaption { padding: 12px 16px; color: var(--muted); background: #fff; font-size: 13px; }
.back-link { display: inline-flex; margin-top: 26px; color: var(--rose-dark); font-weight: 750; text-underline-offset: 4px; }

.site-footer { padding: 36px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-company, .footer-meta { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.footer-inner a { color: inherit; text-underline-offset: 3px; }

:focus-visible { outline: 3px solid rgba(169,79,82,.34); outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .entry-card, .card, .case-row { transition: transform .22s ease, box-shadow .22s ease; }
  .entry-card:hover, .card:hover, .case-row:hover { transform: translateY(-3px); box-shadow: 0 22px 54px rgba(82,49,38,.12); }
}
@supports (aspect-ratio: 4 / 5) {
  .profile-carousel-viewport { height: auto; padding-top: 0; aspect-ratio: 4 / 5; }
}
@media (max-width: 1100px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-carousel { width: min(100%,620px); margin-inline: auto; border-radius: 64px 10px 64px 10px; }
}
@media (max-width: 820px) {
  .wrap { width: min(100% - 28px,1120px); }
  .nav { min-height: 64px; align-items: center; }
  .nav-links { max-width: 58vw; gap: 18px; overflow-x: auto; padding: 18px 0; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .hero-layout { min-height: auto; padding: 70px 0 62px; grid-template-columns: 1fr; gap: 34px; }
  .hero-note { padding: 24px; }
  section { padding: 64px 0; }
  .grid, .policy-grid, .entry-grid, .profile-grid, .qr-layout, .case-row, .story-grid { grid-template-columns: 1fr; }
  .entry-card { min-height: 270px; }
  .entry-card h3 { margin-top: 48px; }
  .contact { padding: 28px; grid-template-columns: 1fr; }
  .contact-badge { white-space: normal; }
  .case-row img { min-height: 240px; max-height: 360px; }
  .case-meta { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { min-height: 260px; }
}
@media (max-width: 520px) {
  .brand span:last-child { display: none; }
  .nav-links { max-width: calc(100vw - 84px); }
  h1 { font-size: 42px; }
  .page-hero h1 { font-size: 38px; }
  .card, .case-row-copy { padding: 24px; }
  .profile-carousel-controls { left: 16px; right: 16px; bottom: 16px; }
  .carousel-arrow { width: 38px; height: 38px; }
  .carousel-dot { width: 18px; }
  .carousel-dot.is-active { width: 30px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (prefers-reduced-motion: reduce) { .profile-slide, .carousel-arrow, .carousel-dot { transition: none; } }
