/* ==========================================================================
   熊猫建设 PANDA CONSTRUCTION — 乡墅营造
   设计系统：暖白纸感 + 墨色 + 松绿，克制的留白与细线
   ========================================================================== */

:root {
  --paper: #f7f5f1;
  --paper-2: #efeae2;
  --paper-3: #e6e0d6;
  --ink: #14161a;
  --ink-2: #22262b;
  --muted: #6d7176;
  --muted-2: #8e9297;
  --line: rgba(20, 22, 26, 0.13);
  --line-soft: rgba(20, 22, 26, 0.07);
  --pine: #2f4438;
  --pine-soft: #3e5b4b;
  --clay: #b4815c;
  --white: #ffffff;
  --danger: #a8433a;
  --max: 1240px;
  --nav-h: 78px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.9;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, p { margin: 0; }

::selection { background: var(--ink); color: var(--paper); }

/* ---------- 基础排版 ---------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: clamp(72px, 9vw, 132px) 0; }

[id] { scroll-margin-top: calc(var(--nav-h) + 18px); }
.section--tight { padding: clamp(56px, 6vw, 88px) 0; }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section--ink .eyebrow { color: rgba(247, 245, 241, 0.62); }

.h-display {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.42;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.h-section {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.5;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.lead {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 2;
  color: var(--muted);
  font-weight: 300;
}

.section--ink .lead { color: rgba(247, 245, 241, 0.7); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 68px); }
.section-head .h-section { margin-bottom: 20px; }

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  max-width: none;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 30px;
  border: 1px solid transparent;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  letter-spacing: 0.08em;
  border-radius: 0;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn:hover { background: var(--pine); transform: translateY(-1px); }

.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(247, 245, 241, 0.5);
}
.btn--ghost:hover { background: rgba(247, 245, 241, 0.12); border-color: var(--paper); }

.btn--line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn--sm { height: 42px; padding: 0 22px; font-size: 13px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.06em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.link-arrow:hover { border-color: var(--ink); gap: 16px; }
.link-arrow svg { width: 14px; height: 14px; }

/* ---------- 导航 ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease),
    backdrop-filter 0.45s var(--ease);
  border-bottom: 1px solid transparent;
  color: var(--paper);
}

.nav.is-solid {
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line-soft);
  color: var(--ink);
}

.nav-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 32px; height: 32px; flex: none; display: block; border-radius: 50%; }
.brand-mark img,
.brand-mark svg { width: 100%; height: 100%; display: block; object-fit: contain; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.24em;
}
.brand-text em {
  font-family: var(--serif);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.22em;
  opacity: 0.55;
  margin-top: 5px;
}

.nav-links { display: flex; align-items: center; gap: 40px; }

.nav-links a {
  position: relative;
  font-size: 14px;
  letter-spacing: 0.1em;
  opacity: 0.82;
  transition: opacity 0.3s var(--ease);
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after,
.nav-links a.is-active::after { width: 100%; }
.nav-links a.is-active { opacity: 1; }

.nav-right { display: flex; align-items: center; gap: 22px; }

.nav-phone {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.08em;
  opacity: 0.8;
}
.nav-phone:hover { opacity: 1; }

.nav-auth { display: flex; align-items: center; }

.btn-login {
  height: 38px;
  padding: 0 20px;
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease), background 0.3s var(--ease);
}
.btn-login:hover { opacity: 1; background: rgba(127, 127, 127, 0.12); }

.user-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 12px 0 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  max-width: 190px;
}
.nav.is-solid .user-chip { border-color: var(--line); }
.user-chip .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-size: 12px;
  flex: none;
  overflow: hidden;
}
.user-chip .avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-chip .uname {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 176px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  box-shadow: 0 18px 40px rgba(20, 22, 26, 0.12);
  padding: 6px;
  display: none;
  color: var(--ink);
  z-index: 95;
}
.user-menu.is-open { display: block; }
.user-menu a,
.user-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  font-size: 13px;
  background: none;
  border: 0;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.user-menu a:hover,
.user-menu button:hover { background: var(--paper-2); }

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  padding: 10px 8px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-burger span {
  display: block;
  height: 1px;
  width: 100%;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}
body.menu-open .nav-burger span:first-child { transform: translateY(9px) rotate(45deg); }
body.menu-open .nav-burger span:last-child { transform: translateY(-9px) rotate(-45deg); }
body.menu-open .nav { background: var(--paper); color: var(--ink); }

/* ---------- 首页 Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--nav-h);
  color: var(--paper);
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  animation: heroZoom 22s var(--ease) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(12, 14, 16, 0.5) 0%,
      rgba(12, 14, 16, 0.18) 34%,
      rgba(12, 14, 16, 0.42) 72%,
      rgba(12, 14, 16, 0.72) 100%
    );
}

.hero-inner {
  position: relative;
  padding-bottom: 56px;
  max-width: var(--max);
}

.hero-eyebrow {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(34px, 5.2vw, 68px);
  line-height: 1.34;
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 26px;
  text-shadow: 0 1px 30px rgba(0, 0, 0, 0.18);
}

.hero-sub {
  max-width: 540px;
  font-size: 15px;
  line-height: 2;
  color: rgba(247, 245, 241, 0.82);
  font-weight: 300;
  margin-bottom: 38px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-meta {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 32px;
  border-top: 1px solid rgba(247, 245, 241, 0.22);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 245, 241, 0.7);
  width: 100%;
  max-width: var(--max);
}

/* 入场动画 */
.hero-eyebrow, .hero h1, .hero-sub, .hero-actions {
  animation: heroUp 1s var(--ease) both;
}
.hero h1 { animation-delay: 0.1s; }
.hero-sub { animation-delay: 0.22s; }
.hero-actions { animation-delay: 0.34s; }
.hero-eyebrow { animation-delay: 0.02s; }

@keyframes heroUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 数据条 ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 42px 30px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.stat .num small { font-size: 0.42em; letter-spacing: 0.1em; margin-left: 6px; }
.stat .label {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ---------- 两栏叙述 ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.split--text-left { align-items: start; }

.figure {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
}
.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.figure:hover img { transform: scale(1.03); }
.figure--tall { aspect-ratio: 3 / 4; }
.figure--wide { aspect-ratio: 4 / 3; }

.figure-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 14px 18px;
  background: rgba(20, 22, 26, 0.72);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.16em;
  font-family: var(--serif);
}

.prose p + p { margin-top: 18px; }
.prose .lead { margin-bottom: 26px; }

/* ---------- 优势卡片 ---------- */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.card-line {
  padding: 40px 34px 46px;
  border-right: 1px solid var(--line);
  position: relative;
}
.card-line:last-child { border-right: 0; }
.card-line .idx {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted-2);
}
.card-line h3 {
  margin: 20px 0 14px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.card-line p { font-size: 14px; line-height: 1.95; color: var(--muted); }
.card-line::after {
  content: "";
  position: absolute;
  left: 34px;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--pine);
  transition: width 0.5s var(--ease);
}
.card-line:hover::after { width: calc(100% - 68px); }

/* ---------- 案例 ---------- */

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 44px);
}

.project {
  display: block;
  opacity: 1;
}

.project-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-3);
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease), filter 0.6s var(--ease);
}
.project:hover .project-media img { transform: scale(1.045); }

.project-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  background: rgba(247, 245, 241, 0.92);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.project-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px 0;
}
.project-body h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.project-meta {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.project-summary {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 12px;
  max-width: 46ch;
}

.projects-empty {
  grid-column: 1 / -1;
  padding: 60px 0;
  text-align: center;
  color: var(--muted-2);
  font-size: 14px;
  letter-spacing: 0.08em;
}

/* ---------- 流程 ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
}
.step {
  padding: 36px 22px 40px;
  border-right: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-right: 0; }
.step .dot {
  width: 9px;
  height: 9px;
  border: 1px solid var(--pine);
  border-radius: 50%;
  background: var(--paper);
  position: absolute;
  top: -5px;
  left: 22px;
}
.step .n {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted-2);
}
.step h4 {
  margin: 16px 0 10px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.step p { font-size: 13px; color: var(--muted); line-height: 1.85; }

/* ---------- CTA 跨栏 ---------- */

.cta {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(56px, 7vw, 92px) 0;
}
.cta h2 {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.04em;
  max-width: 640px;
}
.cta-sub { margin-top: 16px; font-size: 14px; color: rgba(247, 245, 241, 0.62); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(247, 245, 241, 0.14);
}
.footer .brand { color: var(--paper); margin-bottom: 22px; }
/* 深色页脚上给徽章补一圈细光边，避免深蓝外环与底色糊在一起 */
.footer .brand-mark { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16); }
.footer-desc {
  font-size: 13px;
  line-height: 2;
  color: rgba(247, 245, 241, 0.55);
  max-width: 34ch;
}
.footer h5 {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: rgba(247, 245, 241, 0.45);
  text-transform: uppercase;
  font-family: var(--serif);
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a,
.footer-links span {
  font-size: 13.5px;
  color: rgba(247, 245, 241, 0.72);
  letter-spacing: 0.04em;
  transition: color 0.3s var(--ease);
}
.footer-links a:hover { color: var(--paper); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  font-size: 12px;
  color: rgba(247, 245, 241, 0.4);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
}

/* ---------- 内页页头 ---------- */

.page-hero {
  padding: calc(var(--nav-h) + clamp(64px, 8vw, 110px)) 0 clamp(48px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 22px; }
.page-hero h1 {
  font-size: clamp(30px, 4.2vw, 54px);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.04em;
  max-width: 20ch;
}
.page-hero .lead { margin-top: 24px; max-width: 620px; }

.page-hero--media {
  position: relative;
  color: var(--paper);
  border-bottom: 0;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(48px, 6vw, 82px);
  overflow: hidden;
}
.page-hero--media .ph-bg { position: absolute; inset: 0; }
.page-hero--media .ph-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 14, 16, 0.46), rgba(12, 14, 16, 0.7));
}
.page-hero--media .wrap { position: relative; z-index: 2; }
.page-hero--media .eyebrow { color: rgba(247, 245, 241, 0.7); }
.page-hero--media .lead { color: rgba(247, 245, 241, 0.78); }

/* ---------- 关于我们 ---------- */

.principles { display: grid; gap: 0; border-top: 1px solid var(--line); }
.principle {
  display: grid;
  grid-template-columns: 120px 1fr 1.2fr;
  gap: 32px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.principle .p-idx {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--muted-2);
}
.principle h3 { font-size: 20px; font-weight: 500; letter-spacing: 0.05em; }
.principle p { font-size: 14px; color: var(--muted); line-height: 1.95; }

.timeline { border-top: 1px solid var(--line); }
.tl-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.tl-year {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.04em;
}
.tl-body h4 { font-size: 16px; font-weight: 500; margin-bottom: 8px; letter-spacing: 0.05em; }
.tl-body p { font-size: 13.5px; color: var(--muted); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.fact { background: var(--paper); padding: 26px 24px; }
.fact dt { font-size: 12px; color: var(--muted-2); letter-spacing: 0.12em; margin-bottom: 8px; }
.fact dd { margin: 0; font-size: 15px; letter-spacing: 0.03em; }

/* ---------- 产品服务 ---------- */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.svc {
  background: var(--paper);
  padding: 40px 32px 44px;
  display: flex;
  flex-direction: column;
  transition: background 0.5s var(--ease);
}
.svc:hover { background: var(--white); }
.svc .svc-k {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.svc h3 { font-size: 22px; font-weight: 400; letter-spacing: 0.06em; margin: 18px 0 14px; }
.svc p { font-size: 13.5px; color: var(--muted); line-height: 1.95; flex: 1; }
.svc ul { list-style: none; padding: 0; margin: 24px 0 0; }
.svc li {
  font-size: 13px;
  color: var(--ink-2);
  padding: 11px 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.svc li span:last-child { color: var(--muted); font-family: var(--serif); }

.style-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.style-item { position: relative; overflow: hidden; aspect-ratio: 3 / 4; }
.style-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.style-item:hover img { transform: scale(1.05); }
.style-item span {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 32px 16px 14px;
  background: linear-gradient(transparent, rgba(12, 14, 16, 0.78));
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.price-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.price-table th,
.price-table td {
  text-align: left;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.price-table th {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  border-bottom-color: var(--ink);
  text-transform: uppercase;
}
.price-table td:first-child { letter-spacing: 0.04em; }
.price-table td.num { font-family: var(--serif); white-space: nowrap; }
.price-table tr:hover td { background: rgba(255, 255, 255, 0.5); }

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 24px 44px 24px 0;
  position: relative;
  font-size: 15.5px;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.faq-q::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.35s var(--ease);
  opacity: 0.55;
}
.faq-item.is-open .faq-q::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}
.faq-a p {
  padding: 0 0 26px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.95;
  max-width: 72ch;
}

/* ---------- 联系我们 ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.contact-list { border-top: 1px solid var(--line); }
.contact-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.contact-row dt {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}
.contact-row dd { margin: 0; font-size: 15px; letter-spacing: 0.03em; }
.contact-row dd a:hover { border-bottom: 1px solid var(--ink); }
.contact-note { font-size: 13px; color: var(--muted); line-height: 1.9; margin-top: 6px; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  padding: clamp(28px, 3.4vw, 44px);
}
.form-title { font-size: 20px; font-weight: 400; letter-spacing: 0.06em; }
.form-hint { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.85; }

.field { margin-top: 22px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 8px;
}
.field label .req { color: var(--clay); margin-left: 4px; }

.input,
.select,
.textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 11px 2px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.3s var(--ease);
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.85; }
.select { appearance: none; background-image: none; }

.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.field-error {
  display: none;
  color: var(--danger);
  font-size: 12px;
  margin-top: 7px;
  letter-spacing: 0.02em;
}
.field.has-error .input,
.field.has-error .textarea { border-bottom-color: var(--danger); }
.field.has-error .field-error { display: block; }

.file-drop {
  margin-top: 10px;
  border: 1px dashed var(--line);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.file-drop:hover { border-color: var(--ink); background: var(--paper); }
.file-drop .fd-text { font-size: 13px; color: var(--muted); line-height: 1.7; }
.file-drop .fd-name { font-size: 13px; color: var(--ink); }
.file-drop input { display: none; }

.form-foot {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.form-foot .note { font-size: 12px; color: var(--muted-2); line-height: 1.7; max-width: 34ch; }

.form-msg {
  display: none;
  margin-top: 20px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.8;
  border-left: 2px solid var(--pine);
  background: var(--paper-2);
}
.form-msg.is-error { border-left-color: var(--danger); }
.form-msg.is-show { display: block; }

/* 我的预约 */
.records { margin-top: 26px; border-top: 1px solid var(--line); }
.records-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 20px 0 14px;
}
.records-head h3 { font-size: 15px; font-weight: 500; letter-spacing: 0.06em; }
.records-head span { font-size: 12px; color: var(--muted-2); }
.record {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.record .r-main { color: var(--ink); letter-spacing: 0.02em; }
.record .r-sub { color: var(--muted-2); font-size: 12px; margin-top: 4px; }
.record .r-status {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--pine);
  border: 1px solid var(--pine);
  padding: 2px 8px;
  height: fit-content;
  white-space: nowrap;
}
.record .r-status.is-done { color: var(--muted-2); border-color: var(--line); }
.record a.r-file {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--pine-soft);
  border-bottom: 1px solid var(--line);
  width: fit-content;
}
.records-empty { padding: 18px 0 4px; font-size: 13px; color: var(--muted-2); }

/* ---------- 登录弹层 ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 16, 0.55);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.3s var(--ease);
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--paper);
  padding: 44px 40px 38px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.28);
  animation: panelUp 0.45s var(--ease);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes panelUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
}
.modal-close:hover { color: var(--ink); }

.modal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}
.modal-brand .brand-mark { width: 28px; height: 28px; }
.modal-brand strong { font-size: 14px; font-weight: 500; letter-spacing: 0.2em; }

.modal-title { font-size: 24px; font-weight: 300; letter-spacing: 0.06em; }
.modal-sub { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.8; }

.auth-tabs {
  display: flex;
  gap: 28px;
  margin: 26px 0 4px;
  border-bottom: 1px solid var(--line);
}
.auth-tab {
  background: none;
  border: 0;
  padding: 12px 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  position: relative;
  margin-bottom: -1px;
}
.auth-tab.is-active { color: var(--ink); }
.auth-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
}

.auth-pane { display: none; padding-top: 6px; }
.auth-pane.is-active { display: block; }

.otp-row { display: flex; gap: 12px; align-items: flex-end; }
.otp-row .field { flex: 1; }

.btn-code {
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.btn-code:hover { border-color: var(--ink); }
.btn-code[disabled] { color: var(--muted-2); cursor: not-allowed; }

.auth-submit { width: 100%; margin-top: 26px; }

.auth-alt {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-wechat {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: border-color 0.3s var(--ease);
}
.btn-wechat:hover { border-color: #07845a; color: #07845a; }
.btn-wechat svg { width: 18px; height: 18px; }

.auth-error {
  display: none;
  margin-top: 16px;
  font-size: 13px;
  color: var(--danger);
  line-height: 1.7;
}
.auth-error.is-show { display: block; }

.auth-terms {
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--muted-2);
  line-height: 1.8;
}

.signed-card { text-align: left; }
.signed-card .avatar-lg {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-size: 18px;
  overflow: hidden;
  margin-bottom: 18px;
}
.signed-card .avatar-lg img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 滚动揭示 ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; row-gap: 36px; }
  .footer-top > div:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(3) { border-right: 0; }
  .step:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .style-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    color: var(--ink);
    padding: 8px 32px 28px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  body.menu-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a {
    width: 100%;
    padding: 16px 0;
    color: var(--ink);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-links a::after { display: none; }
  .nav-burger { display: flex; }
  .nav-phone { display: none; }
  .split { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .card-line { border-right: 0; border-bottom: 1px solid var(--line); padding-inline: 0; }
  .card-line::after { left: 0; }
  .card-line:hover::after { width: 100%; }
  .projects { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .svc-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .principle { grid-template-columns: 1fr; gap: 12px; }
  .tl-item { grid-template-columns: 84px 1fr; gap: 18px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .section-head--row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-meta { flex-direction: column; gap: 8px; padding-inline: 32px; }
  .figure--tall { aspect-ratio: 4 / 3; }
}

@media (max-width: 620px) {
  .wrap, .nav-inner { padding: 0 22px; }
  .hero h1 { font-size: clamp(30px, 8.4vw, 40px); }
  .hero-meta { padding-inline: 22px; font-size: 10px; letter-spacing: 0.16em; }
  .field-2 { grid-template-columns: 1fr; gap: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:nth-child(odd) { border-right: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .facts { grid-template-columns: 1fr; }
  .price-table th:nth-child(3),
  .price-table td:nth-child(3) { display: none; }
  .modal-panel { padding: 34px 24px 28px; }
  .user-chip .uname { display: none; }
  .brand-text em { display: none; }
  .project-summary { font-size: 13px; }
}
