/* 道和官网 · 暗色奢华风 + 品牌橙 #F36C21 */

:root {
  --bg: #0c0c0e;
  --bg-soft: #131316;
  --card: #1a1a1e;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2efe9;
  --text-dim: #9a968f;
  --accent: #f36c21;
  --accent-press: #d85a15;
  --serif: "Songti SC", "Noto Serif SC", "STSong", serif;
  --sans: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  background: rgba(12, 12, 14, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.logo { display: flex; align-items: baseline; gap: 12px; }
.logo-mark {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 6px;
  background: linear-gradient(120deg, #fff, #f7b98d 55%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-sub { font-size: 11px; letter-spacing: 4px; color: var(--text-dim); }
.nav-links { display: flex; gap: 36px; margin-left: auto; }
.nav-links a {
  font-size: 15px;
  color: var(--text-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 10px 26px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 2px;
  transition: all 0.3s;
}
.nav-cta:hover { background: var(--accent); color: #fff; }
.nav-burger { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; }
.nav-burger span {
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}
.nav-burger span:nth-child(1) { top: 12px; }
.nav-burger span:nth-child(2) { top: 19px; }
.nav-burger span:nth-child(3) { top: 26px; }
.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 32px 24px;
  background: rgba(12, 12, 14, 0.97);
}
.nav-drawer a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text-dim); }
.nav-drawer .nav-cta { margin-top: 16px; text-align: center; border-bottom: 0; }
.nav.open .nav-drawer { display: flex; }
.nav.open .nav-burger span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../images/hero-poster.jpg") center / cover no-repeat;
  transform: scale(1.06);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(243, 108, 33, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(12, 12, 14, 0.55) 0%, rgba(12, 12, 14, 0.35) 45%, var(--bg) 100%);
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 140px 40px 0;
}
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 8px;
  color: var(--accent);
  margin-bottom: 26px;
}
.hero h1 { font-family: var(--serif); font-weight: 700; }
.hero-line {
  display: block;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.25;
  letter-spacing: 10px;
}
.hero-line.accent {
  background: linear-gradient(110deg, var(--accent) 20%, #ffcf9e 60%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-slogan {
  margin-top: 28px;
  font-size: 17px;
  color: var(--text-dim);
  letter-spacing: 3px;
}
.hero-actions { margin-top: 46px; display: flex; gap: 20px; }
.btn {
  display: inline-block;
  padding: 15px 42px;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: 3px;
  border: 0;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 28px rgba(243, 108, 33, 0.35); }
.btn-primary:hover { background: var(--accent-press); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.hero-stats {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  width: 100%;
  margin: 90px auto 0;
  padding: 0 40px 70px;
  display: flex;
  gap: clamp(28px, 6vw, 96px);
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.stat i { font-style: normal; color: var(--accent); font-size: 26px; }
.stat-label { font-size: 13px; color: var(--text-dim); letter-spacing: 2px; margin-top: 6px; }
.hero-scroll {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 24px;
  width: 26px; height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  transform: translateX(-50%);
}
.hero-scroll span {
  display: block;
  width: 3px; height: 8px;
  margin: 7px auto 0;
  border-radius: 3px;
  background: var(--accent);
  animation: scrollHint 1.6s ease-in-out infinite;
}
@keyframes scrollHint { 60% { transform: translateY(14px); opacity: 0.2; } }

/* ---------- 通用 Section ---------- */
.section {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 40px 0;
}
.section-head { margin-bottom: 64px; }
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 6px;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 46px);
  letter-spacing: 6px;
}
.section-desc { margin-top: 14px; color: var(--text-dim); font-size: 15px; }

/* 滚动渐入 */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 品牌理念 ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.brand-media { position: relative; border-radius: 20px; overflow: hidden; }
.brand-media img { width: 100%; height: 520px; object-fit: cover; }
.brand-quote {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 32px 28px;
  background: linear-gradient(transparent, rgba(12, 12, 14, 0.9));
}
.brand-quote p { font-family: var(--serif); font-size: 24px; letter-spacing: 4px; }
.brand-quote span { display: block; margin-top: 10px; font-size: 12px; color: var(--text-dim); letter-spacing: 2px; }
.brand-story p { margin-bottom: 22px; color: var(--text-dim); font-size: 15.5px; }
.brand-story p::first-letter { color: var(--text); }
.brand-honor { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.honor-tag {
  padding: 10px 18px;
  font-size: 13px;
  color: #f7b98d;
  border: 1px solid rgba(243, 108, 33, 0.35);
  border-radius: 999px;
  background: rgba(243, 108, 33, 0.08);
}

/* ---------- 设计团队 ---------- */
.team { background: linear-gradient(180deg, transparent, rgba(243, 108, 33, 0.03), transparent); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
}
.team-card { position: relative; border-radius: 20px; overflow: hidden; background: var(--card); }
.team-card img { width: 100%; height: 460px; object-fit: cover; transition: transform 0.7s ease; }
.team-card:hover img { transform: scale(1.05); }
.team-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 60px 28px 26px;
  background: linear-gradient(transparent, rgba(12, 12, 14, 0.94));
}
.team-name { font-family: var(--serif); font-size: 24px; letter-spacing: 3px; }
.team-title { font-size: 13px; color: var(--accent); letter-spacing: 2px; margin-top: 4px; }
.team-desc { margin-top: 12px; font-size: 13.5px; color: var(--text-dim); }

/* ---------- 案例 ---------- */
.case-filter { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.case-filter button {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: 1px;
  transition: all 0.3s;
}
.case-filter button.active, .case-filter button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(243, 108, 33, 0.08);
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
}
.case-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(243, 108, 33, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.case-cover { position: relative; height: 280px; overflow: hidden; }
.case-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.case-card:hover .case-cover img { transform: scale(1.06); }
.case-style {
  position: absolute;
  top: 18px; left: 18px;
  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: 2px;
  border-radius: 999px;
  background: rgba(12, 12, 14, 0.72);
  color: #ffcf9e;
  backdrop-filter: blur(6px);
}
.case-meta { padding: 22px 24px 26px; }
.case-meta h3 { font-family: var(--serif); font-size: 21px; letter-spacing: 2px; }
.case-meta p { margin-top: 10px; font-size: 13.5px; color: var(--text-dim); }
.case-more { text-align: center; margin-top: 44px; }
.case-more .btn[disabled] { opacity: 0.4; cursor: default; transform: none; }

/* ---------- 服务流程 ---------- */
.process-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.process-step {
  position: relative;
  padding: 34px 26px 30px;
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s;
}
.process-step:hover { border-color: rgba(243, 108, 33, 0.45); transform: translateY(-4px); }
.step-no {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 108, 33, 0.55);
  line-height: 1;
}
.process-step h4 { margin-top: 16px; font-size: 17px; letter-spacing: 2px; }
.process-step p { margin-top: 10px; font-size: 13px; color: var(--text-dim); }

/* ---------- 留言 ---------- */
.message-form {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px;
  border-radius: 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.message-form label { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-dim); }
.form-full { margin-top: 24px; }
.message-form input, .message-form textarea {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 18px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
  resize: vertical;
}
.message-form input:focus, .message-form textarea:focus { border-color: var(--accent); }
.form-foot { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.form-tip { font-size: 13.5px; color: var(--text-dim); min-height: 20px; flex: 1; }
.form-tip.ok { color: #6ecf8e; }
.form-tip.err { color: #ff7d6b; }
.form-tip.loading { color: var(--accent); }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 32px; }
.store-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.store-card img { width: 100%; height: 240px; object-fit: cover; }
.store-body { padding: 26px 28px 30px; }
.store-name { font-family: var(--serif); font-size: 20px; letter-spacing: 2px; }
.store-line { margin-top: 12px; font-size: 14px; color: var(--text-dim); display: flex; gap: 10px; }
.store-line b { color: var(--accent); font-weight: 600; flex-shrink: 0; }

/* ---------- 页脚 ---------- */
.footer { margin-top: 130px; border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand { display: flex; align-items: baseline; gap: 12px; }
.footer-copy { font-size: 13px; color: var(--text-dim); }
.footer-icp { font-size: 13px; color: var(--text-dim); text-decoration: none; transition: color .2s; }
.footer-icp:hover { color: var(--accent); }

/* ---------- 案例弹层 ---------- */
.case-modal { position: fixed; inset: 0; z-index: 200; }
.case-modal[hidden] { display: none; }
.case-modal-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); }
.case-modal-panel {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, calc(100vw - 40px));
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  border-radius: 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.case-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(12, 12, 14, 0.7);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}
.case-modal-close:hover { border-color: var(--accent); color: var(--accent); }
.modal-cover { height: 420px; }
.modal-cover img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 36px 44px 44px; }
.modal-tags { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.modal-tags span {
  padding: 6px 16px;
  font-size: 12.5px;
  letter-spacing: 1px;
  color: #f7b98d;
  border: 1px solid rgba(243, 108, 33, 0.35);
  border-radius: 999px;
}
.modal-body h3 { font-family: var(--serif); font-size: 30px; letter-spacing: 3px; }
.modal-desc { margin-top: 20px; color: var(--text-dim); font-size: 15px; white-space: pre-line; }
/* 案例详情图集：大图纵向铺满展示（每行一张，完整呈现实景） */
.modal-images { margin-top: 24px; display: flex; flex-direction: column; gap: 20px; }
.modal-images img { width: 100%; height: auto; display: block; border-radius: 12px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .nav-links, .nav-inner > .nav-cta { display: none; }
  .nav-burger { display: block; margin-left: auto; }
  .nav-inner { padding: 0 20px; }
  .section { padding: 90px 20px 0; }
  .brand-grid { grid-template-columns: 1fr; }
  .brand-media img { height: 380px; }
  .hero-content { padding: 120px 20px 0; }
  .hero-stats { padding: 0 20px 60px; gap: 28px; }
  .case-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .message-form { padding: 28px 22px; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .footer-inner { flex-direction: column; }
  .modal-cover { height: 260px; }
  .modal-body { padding: 24px; }
}
