/* ============================================================
   MDS 别墅大宅商空设计机构 — 全站样式
   风格：简约大气 | 米白 + 炭黑 + 金色点缀
   ============================================================ */

:root {
  --bg: #faf9f6;
  --bg-soft: #f3f1ec;
  --ink: #23211e;
  --ink-soft: #55524c;
  --muted: #97917f;
  --accent: #b08d57;
  --accent-dark: #8f7040;
  --dark: #1d1c1a;
  --line: #e6e1d6;
  --white: #ffffff;
  --serif: "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --shadow: 0 20px 60px rgba(35, 33, 30, 0.10);
  --radius: 2px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; transition: color .3s; }
ul { list-style: none; }

.container { width: min(1200px, 90%); margin: 0 auto; }

/* ---------- 通用排版 ---------- */
.section { padding: 110px 0; }
.section-label {
  font-size: 13px;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.3;
  margin-bottom: 22px;
}
.section-desc { color: var(--ink-soft); max-width: 640px; }
.center { text-align: center; }
.center .section-desc { margin: 0 auto; }

.btn {
  display: inline-block;
  padding: 14px 42px;
  font-size: 14px;
  letter-spacing: .25em;
  border: 1px solid var(--ink);
  color: var(--ink);
  transition: all .35s;
  cursor: pointer;
  background: transparent;
  font-family: var(--sans);
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn-solid { background: var(--ink); color: var(--white); }
.btn-solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all .4s;
}
.site-header .header-inner {
  width: min(1360px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
}
.brand { display: flex; align-items: baseline; gap: 14px; color: #fff; transition: color .4s; }
.brand-mark {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .18em;
}
.brand-mark em { font-style: normal; color: var(--accent); }
.brand-sub {
  font-size: 12px;
  letter-spacing: .3em;
  color: rgba(255,255,255,.75);
  border-left: 1px solid rgba(255,255,255,.35);
  padding-left: 14px;
}
.main-nav ul { display: flex; gap: 46px; }
.main-nav a {
  color: rgba(255,255,255,.85);
  font-size: 15px;
  letter-spacing: .2em;
  padding: 6px 0;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -4px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: all .35s;
  transform: translateX(-50%);
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: #fff; }

/* 滚动后导航变白底 */
.site-header.solid {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.solid .brand { color: var(--ink); }
.site-header.solid .brand-sub { color: var(--muted); border-color: var(--line); }
.site-header.solid .main-nav a { color: var(--ink-soft); }
.site-header.solid .main-nav a:hover,
.site-header.solid .main-nav a.active { color: var(--ink); }
.header-contact {
  color: rgba(255,255,255,.85);
  font-size: 14px;
  letter-spacing: .1em;
}
.header-contact strong { color: var(--accent); font-size: 17px; font-family: var(--serif); }
.site-header.solid .header-contact { color: var(--ink-soft); }

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 34px; height: 24px;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 6px 0;
  transition: all .35s;
}
.site-header.solid .nav-toggle span { background: var(--ink); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("../images/hero.jpg") center/cover no-repeat;
  animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,19,17,.55) 0%, rgba(20,19,17,.25) 45%, rgba(20,19,17,.62) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  width: min(1200px, 90%);
  margin: 0 auto;
}
.hero-kicker {
  font-size: 14px;
  letter-spacing: .6em;
  color: rgba(255,255,255,.8);
  margin-bottom: 26px;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.25;
  margin-bottom: 12px;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-family: var(--serif);
  font-size: clamp(16px, 2vw, 22px);
  letter-spacing: .5em;
  color: rgba(255,255,255,.85);
  margin-bottom: 48px;
}
.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-line {
  position: absolute;
  left: 50%; bottom: 44px;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.7);
  font-size: 11px;
  letter-spacing: .4em;
  text-align: center;
}
.hero-line::after {
  content: "";
  display: block;
  width: 1px; height: 52px;
  background: linear-gradient(180deg, rgba(255,255,255,.8), transparent);
  margin: 12px auto 0;
  animation: lineDrop 2.2s ease-in-out infinite;
}
@keyframes lineDrop {
  0%,100% { transform: scaleY(.4); opacity: .5; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* ---------- 首页 · 关于 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img { width: 100%; height: 480px; object-fit: cover; }
.about-media::after {
  content: "";
  position: absolute;
  border: 1px solid var(--accent);
  width: 60%; height: 60%;
  right: -22px; bottom: -22px;
  z-index: -1;
}
.about-copy .section-desc { margin-bottom: 34px; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 70px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.stat-num {
  font-family: var(--serif);
  font-size: 44px;
  color: var(--ink);
  line-height: 1.1;
}
.stat-num span { font-size: 16px; color: var(--accent); margin-left: 4px; }
.stat-label { font-size: 13px; color: var(--muted); letter-spacing: .2em; margin-top: 8px; }

/* ---------- 服务板块 ---------- */
.section-soft { background: var(--bg-soft); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 64px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 52px 34px;
  transition: all .4s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }
.service-no {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
  letter-spacing: .2em;
  margin-bottom: 26px;
}
.service-name {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: .1em;
  margin-bottom: 16px;
}
.service-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.9; }

/* ---------- 案例板块 ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 64px;
}
.case-item { position: relative; overflow: hidden; cursor: pointer; }
.case-item img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform .8s ease;
}
.case-item:hover img { transform: scale(1.06); }
.case-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 32px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(20,19,17,.78));
}
.case-tag {
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.case-name { font-family: var(--serif); font-size: 22px; letter-spacing: .1em; }
.case-more { text-align: center; margin-top: 60px; }

/* ---------- 引言带 ---------- */
.quote-band {
  background: var(--dark) url("../images/case-2.jpg") center/cover no-repeat fixed;
  position: relative;
  padding: 150px 0;
  text-align: center;
  color: #fff;
}
.quote-band::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(20,19,17,.72);
}
.quote-band .container { position: relative; z-index: 2; }
.quote-band blockquote {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: .18em;
  line-height: 1.9;
  max-width: 820px;
  margin: 0 auto 20px;
}
.quote-cite {
  font-size: 13px;
  letter-spacing: .4em;
  color: var(--accent);
}

/* ---------- 页脚 CTA ---------- */
.cta-band { background: var(--dark); color: #fff; padding: 100px 0; text-align: center; }
.cta-band .section-title { color: #fff; }
.cta-band p { color: rgba(255,255,255,.6); margin-bottom: 40px; letter-spacing: .15em; }

/* ---------- 页脚 ---------- */
.site-footer { background: #141311; color: rgba(255,255,255,.62); padding: 90px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 50px;
  padding-bottom: 70px;
}
.footer-brand .brand-mark { color: #fff; font-size: 24px; }
.footer-brand p { font-size: 14px; margin-top: 22px; line-height: 2; }
.footer-title {
  color: #fff;
  font-size: 15px;
  letter-spacing: .25em;
  margin-bottom: 26px;
  font-family: var(--serif);
}
.footer-list li { margin-bottom: 14px; font-size: 14px; }
.footer-list a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: 10px; font-size: 14px; line-height: 1.9; }
.footer-contact strong { color: rgba(255,255,255,.85); font-weight: 500; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 26px 0;
  font-size: 13px;
  letter-spacing: .1em;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,.4);
}

/* ---------- 内页 Banner ---------- */
.page-banner {
  position: relative;
  height: 46vh;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--dark);
}
.page-banner .banner-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,19,17,.5), rgba(20,19,17,.55));
}
.page-banner .container {
  position: relative;
  z-index: 2;
  padding-bottom: 60px;
  color: #fff;
}
.banner-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4.5vw, 48px);
  letter-spacing: .16em;
  margin-bottom: 8px;
}
.banner-en {
  font-size: 13px;
  letter-spacing: .5em;
  color: var(--accent);
  text-transform: uppercase;
}
.breadcrumb {
  position: absolute;
  right: 0; bottom: 60px;
  z-index: 2;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  letter-spacing: .15em;
}
.breadcrumb a:hover { color: var(--accent); }

/* ---------- 关于我们页 ---------- */
.about-article { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-article + .about-article { margin-top: 110px; }
.about-article .pic img { width: 100%; height: 420px; object-fit: cover; }
.about-article .txt h3 {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: .12em;
  margin: 6px 0 24px;
}
.about-article .txt p { color: var(--ink-soft); margin-bottom: 18px; font-size: 15.5px; }

/* 时间轴 */
.timeline { position: relative; margin-top: 70px; padding-left: 30px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--line);
}
.timeline-item { position: relative; padding-bottom: 44px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -35px; top: 10px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line);
}
.timeline-year {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--accent);
  letter-spacing: .1em;
  margin-bottom: 6px;
}
.timeline-item h4 { font-size: 17px; letter-spacing: .1em; margin-bottom: 4px; }
.timeline-item p { color: var(--ink-soft); font-size: 14.5px; max-width: 640px; }

/* 理念卡片 */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 60px; }
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 46px 36px;
  text-align: center;
  transition: all .4s;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value-card .zh {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .2em;
  margin-bottom: 6px;
}
.value-card .en {
  font-size: 12px;
  letter-spacing: .35em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.value-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- 产品服务页 ---------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 60px 0;
}
.service-block + .service-block { border-top: 1px solid var(--line); }
.service-block .pic img { width: 100%; height: 400px; object-fit: cover; }
.service-block.flip .pic { order: 2; }
.service-block .no {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
  letter-spacing: .25em;
  margin-bottom: 14px;
  display: block;
}
.service-block h3 {
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: .12em;
  margin-bottom: 20px;
}
.service-block p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 22px; }
.service-points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.service-points li {
  font-size: 14px;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}
.service-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 6px; height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* 流程 */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; margin-top: 60px; }
.process-step {
  text-align: center;
  padding: 40px 18px;
  border: 1px solid var(--line);
  background: var(--white);
  position: relative;
  transition: all .4s;
}
.process-step:hover { border-color: var(--accent); transform: translateY(-6px); }
.process-step .num {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 18px;
}
.process-step h4 { font-size: 16px; letter-spacing: .15em; margin-bottom: 10px; }
.process-step p { font-size: 13px; color: var(--ink-soft); line-height: 1.9; }
.process-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -18px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 15px;
  z-index: 2;
}

/* 承诺 */
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 56px; }
.promise-item {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 26px;
}
.promise-item h4 { font-size: 16px; letter-spacing: .12em; margin-bottom: 8px; }
.promise-item p { font-size: 14px; color: var(--ink-soft); }

/* ---------- 联系我们页 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-bottom: 90px; }
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 42px 30px;
  text-align: center;
  transition: all .4s;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-6px); }
.contact-card .icon { color: var(--accent); margin-bottom: 18px; }
.contact-card h4 { font-size: 15px; letter-spacing: .25em; margin-bottom: 12px; }
.contact-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.9; }

.contact-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 70px; align-items: start; }
.contact-form-wrap h3, .contact-side h3 {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: .12em;
  margin-bottom: 30px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 13px 16px;
  font-size: 15px;
  font-family: var(--sans);
  color: var(--ink);
  outline: none;
  transition: border-color .3s;
  border-radius: var(--radius);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-success {
  display: none;
  background: var(--white);
  border: 1px solid var(--accent);
  color: var(--accent-dark);
  text-align: center;
  padding: 60px 30px;
  letter-spacing: .15em;
}
.form-success strong { display: block; font-family: var(--serif); font-size: 22px; margin-bottom: 10px; }

.contact-side p { color: var(--ink-soft); font-size: 15px; margin-bottom: 26px; }
.contact-side dl { border-top: 1px solid var(--line); }
.contact-side dl > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.contact-side dt { color: var(--muted); letter-spacing: .2em; }
.contact-side dd { color: var(--ink); line-height: 1.8; }
.contact-side dd strong { font-family: var(--serif); font-size: 19px; color: var(--accent-dark); }
.map-box {
  margin-top: 90px;
  height: 380px;
  background:
    linear-gradient(rgba(29,28,26,.82), rgba(29,28,26,.82)),
    url("../images/case-4.jpg") center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}
.map-box .pin { font-size: 40px; color: var(--accent); margin-bottom: 14px; }
.map-box h4 { font-family: var(--serif); font-size: 22px; letter-spacing: .15em; margin-bottom: 8px; }
.map-box p { color: rgba(255,255,255,.65); font-size: 14px; letter-spacing: .1em; }

/* ---------- 滚动显现动画 ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .process-step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .header-contact { display: none; }
}
@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .about-grid, .about-article, .contact-layout, .service-block { grid-template-columns: 1fr; gap: 44px; }
  .service-block.flip .pic { order: 0; }
  .about-media img, .about-article .pic img, .service-block .pic img { height: 300px; }
  .cases-grid { grid-template-columns: 1fr; }
  .case-item img { height: 260px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .values-grid, .promise-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .quote-band { background-attachment: scroll; }
  .timeline { padding-left: 24px; }
  .breadcrumb { display: none; }

  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(20,19,17,.97);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all .4s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 34px; text-align: center; }
  .main-nav a { font-size: 20px; color: #fff !important; }
  .nav-toggle { display: block; }
  .brand-sub { display: none; }
}
