/* ===== 青桐筑家 · 全宽通栏 + 细缝布局 ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-soft: #fbfbfd;
  --text: #1d1d1f;
  --text-sub: #6e6e73;
  --text-mute: #86868b;
  --accent: #0f5a3e;
  --accent-hover: #0b4633;
  --accent-bright: #2ea76a;
  --accent-soft: #e8f1ec;
  --border: #d2d2d7;
  --gap: 12px;             /* 通栏间细缝 */
  --card-w: 1024px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: -apple-system, "SF Pro Display", "SF Pro Text", "Helvetica Neue",
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg-alt);
  line-height: 1.47;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== 导航栏（毛玻璃） ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  height: 48px; backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255,255,255,0.72); border-bottom: 1px solid rgba(0,0,0,0.08);
}
.nav-inner {
  max-width: var(--card-w); margin: 0 auto; height: 100%;
  padding: 0 22px; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { font-size: 19px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: 12px; color: var(--text); opacity: 0.88; }
.nav-links a:hover { opacity: 1; text-decoration: none; }

/* ===== 通用（纯文字区，全宽白底，无圆角） ===== */
.section { padding: 88px 22px; text-align: center; background: var(--bg); }
.section-alt { background: var(--bg-alt); }
.wrap { max-width: 980px; margin: 0 auto; }
.section-eyebrow { font-size: 17px; color: var(--accent); margin-bottom: 6px; font-weight: 500; }
.section-title { font-size: 48px; font-weight: 600; letter-spacing: -0.003em; line-height: 1.08; margin-bottom: 14px; }
.section-sub { font-size: 21px; color: var(--text-sub); max-width: 680px; margin: 0 auto 40px; line-height: 1.38; }

/* ===== 按钮 ===== */
.cta-group { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 26px; border-radius: 980px; font-size: 17px; transition: all 0.2s; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-alt); text-decoration: none; }
.btn-link { color: var(--accent); font-size: 17px; display: inline-flex; align-items: center; gap: 2px; }
.btn-link:hover { text-decoration: underline; }
.btn-link::after { content: "›"; margin-left: 2px; }

/* ===== Hero 轮播（全宽） ===== */
.carousel {
  position: relative; width: 100%; height: 100vh; min-height: 620px; overflow: hidden;
  background: #000; margin: 0 0 var(--gap);
}
.carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; background-color: #0a1f17;
}
.carousel-slide.active { opacity: 1; }
.carousel-slide.grad-1 { background-image: linear-gradient(120deg, rgba(0,25,18,0.50), rgba(0,0,0,0.68)), url('images/hero-home.jpg'); }
.carousel-slide.grad-2 { background-image: linear-gradient(120deg, rgba(0,25,18,0.48), rgba(0,0,0,0.68)), url('images/hero-fund.jpg'); }
.carousel-slide.grad-3 { background-image: linear-gradient(120deg, rgba(0,25,18,0.42), rgba(0,0,0,0.65)), url('images/hero-quality.jpg'); }
.carousel-caption { position: relative; z-index: 2; max-width: 820px; padding: 0 22px; text-align: center; color: #fff; }
.carousel-caption .eyebrow { font-size: 17px; opacity: 0.95; margin-bottom: 10px; letter-spacing: 0.02em; color: var(--accent-bright); font-weight: 500; }
.carousel-caption h2 { font-size: 56px; font-weight: 600; letter-spacing: -0.004em; line-height: 1.06; margin-bottom: 14px; text-shadow: 0 2px 28px rgba(0,0,0,0.5); }
.carousel-caption p { font-size: 21px; opacity: 0.96; margin-bottom: 26px; max-width: 680px; margin-left: auto; margin-right: auto; line-height: 1.4; text-shadow: 0 1px 12px rgba(0,0,0,0.4); }
.carousel-caption .btn-primary { background: #fff; color: #1d1d1f; }
.carousel-caption .btn-primary:hover { background: #f0f0f0; }
.carousel-caption .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.65); }
.carousel-caption .btn-ghost:hover { background: rgba(255,255,255,0.18); }
.carousel-caption .btn-link { color: #fff; }
.carousel-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; padding: 0; cursor: pointer; transition: background 0.3s, transform 0.3s; }
.carousel-dot.active { background: #fff; transform: scale(1.15); }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.18); backdrop-filter: blur(10px); border: none; color: #fff; font-size: 22px; cursor: pointer; z-index: 5; display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.carousel-arrow:hover { background: rgba(255,255,255,0.32); }
.carousel-arrow.prev { left: 24px; }
.carousel-arrow.next { right: 24px; }

/* ===== 全宽通栏 Tile（仅留底部细缝） ===== */
.tile {
  text-align: center; padding: 96px 22px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; min-height: 460px;
  margin-bottom: var(--gap);
}
.tile-text { max-width: 820px; margin: 0 auto; position: relative; z-index: 2; }
.tile-light { background: #fff; color: var(--text); }
.tile-dark { background: #000; color: #f5f5f7; }
.tile-grey { background: var(--bg-alt); color: var(--text); }
.tile-green { background: linear-gradient(155deg, #0f5a3e 0%, #0a4030 100%); color: #fff; }
.tile-softgreen { background: linear-gradient(180deg, #eef4f0 0%, #dde9e2 100%); color: var(--text); }
.tile-eyebrow { font-size: 17px; margin-bottom: 8px; color: var(--accent); font-weight: 500; letter-spacing: 0.01em; }
.tile-dark .tile-eyebrow { color: var(--accent-bright); }
.tile-green .tile-eyebrow { color: #9ed8bd; }
.tile-title { font-size: 48px; font-weight: 600; letter-spacing: -0.003em; line-height: 1.08; margin-bottom: 14px; }
.tile-sub { font-size: 21px; font-weight: 400; line-height: 1.42; margin-bottom: 26px; max-width: 640px; margin-left: auto; margin-right: auto; }
.tile-light .tile-sub, .tile-grey .tile-sub, .tile-softgreen .tile-sub { color: var(--text-sub); }
.tile-dark .tile-sub { color: #a1a1a6; }
.tile-green .tile-sub { color: #c7e3d4; }
.tile-links { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.tile-dark .btn-link { color: var(--accent-bright); }
.tile-green .btn-link { color: #fff; }
.tile-dark .btn-primary { background: #fff; color: #1d1d1f; }
.tile-dark .btn-primary:hover { background: #e8e8e8; }

/* ===== 图片背景通栏（带遮罩，白字） ===== */
.tile-bg { background-size: cover; background-position: center; background-color: #1a1a1a; color: #fff; position: relative; }
.tile-bg .tile-title { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,0.45); }
.tile-bg .tile-sub { color: rgba(255,255,255,0.92); text-shadow: 0 1px 12px rgba(0,0,0,0.4); }
.tile-bg .tile-eyebrow { color: var(--accent-bright); }
.tile-bg .btn-link { color: #fff; }
.tile-bg .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.55); }
.tile-bg .btn-ghost:hover { background: rgba(255,255,255,0.15); }
.bg-family  { background-image: linear-gradient(120deg, rgba(0,0,0,0.40), rgba(0,0,0,0.68)), url('images/bg-family.jpg'); }
.bg-build   { background-image: linear-gradient(120deg, rgba(0,0,0,0.40), rgba(0,0,0,0.68)), url('images/bg-build.jpg'); }
.bg-living  { background-image: linear-gradient(120deg, rgba(0,0,0,0.36), rgba(0,0,0,0.62)), url('images/bg-living.jpg'); }
.bg-warm    { background-image: linear-gradient(120deg, rgba(0,0,0,0.36), rgba(0,0,0,0.62)), url('images/bg-warm.jpg'); }
.bg-site    { background-image: linear-gradient(120deg, rgba(0,0,0,0.46), rgba(0,0,0,0.70)), url('images/bg-site.jpg'); }
.bg-bedroom { background-image: linear-gradient(120deg, rgba(0,0,0,0.36), rgba(0,0,0,0.64)), url('images/bg-bedroom.jpg'); }
.bg-tree    { background-image: linear-gradient(155deg, rgba(15,90,62,0.78), rgba(8,42,31,0.90)), url('images/bg-tree.jpg'); }
.bg-dual    { background-image: linear-gradient(120deg, rgba(0,25,18,0.55), rgba(0,0,0,0.72)), url('images/bg-dual.jpg'); }
.bg-core    { background-image: linear-gradient(120deg, rgba(0,25,18,0.52), rgba(0,0,0,0.70)), url('images/bg-core.jpg'); }

/* 双列网格（小通栏） */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.grid-2 .tile { padding: 64px 22px; min-height: 380px; margin-bottom: 0; }
.grid-2 .tile-title { font-size: 32px; }
.grid-2 .tile-sub { font-size: 17px; }

/* 双保体系对比（资金 vs 质量） */
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.dual .col { padding: 64px 36px; text-align: center; }
.dual .col:first-child { background: var(--accent-soft); }
.dual .col:last-child { background: #fff; }
.dual .col h3 { font-size: 26px; font-weight: 600; margin-bottom: 8px; }
.dual .col .tag { display: inline-block; font-size: 13px; color: var(--accent); background: #fff; padding: 5px 14px; border-radius: 980px; margin-bottom: 16px; font-weight: 500; }
.dual .col:first-child .tag { background: #fff; }
.dual .col:last-child .tag { background: var(--accent-soft); }
.dual .col p { font-size: 16px; color: var(--text-sub); line-height: 1.5; max-width: 360px; margin: 0 auto; }

/* 三步闭环 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 980px; margin: 0 auto; }
.step { text-align: center; }
.step .num { font-size: 15px; color: var(--accent); font-weight: 600; margin-bottom: 10px; letter-spacing: 0.04em; }
.step h4 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--text-sub); line-height: 1.5; }

/* ===== 数据统计 ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 20px; }
.stat-num { font-size: 40px; font-weight: 600; color: var(--accent); letter-spacing: -0.02em; }
.stat-label { font-size: 14px; color: var(--text-sub); margin-top: 6px; }

/* ===== CTA 区 ===== */
.cta-block { padding: 80px 22px; background: linear-gradient(155deg, #0f5a3e 0%, #0a4030 100%); text-align: center; color: #fff; }
.cta-block h2 { font-size: 40px; font-weight: 600; margin-bottom: 18px; color: #fff; }
.cta-block p { font-size: 19px; color: rgba(255,255,255,0.9); margin-bottom: 28px; }
.cta-block .btn-primary { background: #fff; color: #1d1d1f; }
.cta-block .btn-primary:hover { background: #f0f0f0; }

/* ===== 内页 Hero ===== */
.page-hero { padding: 140px 22px 70px; text-align: center; background: var(--bg-alt); }
.page-hero .hero-title { font-size: 56px; font-weight: 600; line-height: 1.07; margin-bottom: 8px; }
.page-hero .hero-sub { font-size: 21px; font-weight: 400; color: var(--text-sub); max-width: 700px; margin: 0 auto; }

/* ===== 关于页 ===== */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.value-item h3 { font-size: 19px; font-weight: 600; margin-bottom: 4px; color: var(--accent); }
.value-item .vsub { font-size: 13px; color: var(--text-mute); margin-bottom: 10px; letter-spacing: 0.02em; }
.value-item p { font-size: 15px; color: var(--text-sub); line-height: 1.5; }

/* ===== 联系页 ===== */
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.contact-card { background: #fff; border-radius: 18px; padding: 44px 28px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.contact-card h3 { font-size: 21px; margin-bottom: 8px; }
.contact-card .ctag { display: inline-block; font-size: 13px; color: var(--accent); background: var(--accent-soft); padding: 4px 12px; border-radius: 980px; margin-bottom: 14px; font-weight: 500; }
.contact-card p { font-size: 15px; color: var(--text-sub); line-height: 1.6; }

/* ===== 联系表单（统一控件样式） ===== */
.form { text-align: left; }
.form-row { margin-bottom: 16px; }
.field {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 12px;
  font-size: 16px; font-family: inherit; line-height: 1.5;
  background: #fff; color: var(--text);
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  box-sizing: border-box; display: block;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,90,62,0.13); }
.field::placeholder { color: var(--text-mute); }
textarea.field { resize: vertical; min-height: 132px; }
/* select：去掉原生外观，自定义箭头，高度与 input 一致 */
select.field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
  padding-right: 44px; cursor: pointer;
}
select.field:invalid { color: var(--text-mute); }
.form-submit { text-align: center; margin-top: 8px; }

/* ===== 页脚 ===== */
.footer { background: var(--bg-alt); color: var(--text-sub); font-size: 12px; padding: 40px 22px 20px; border-top: 1px solid var(--border); }
.footer-inner { max-width: var(--card-w); margin: 0 auto; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.footer-col h4 { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-sub); }
.footer-bottom { padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

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

/* ===== 响应式 ===== */
@media (max-width: 833px) {
  .carousel { height: 80vh; min-height: 480px; }
  .carousel-caption h2 { font-size: 34px; }
  .carousel-caption p { font-size: 17px; }
  .section-title, .tile-title { font-size: 32px; }
  .stats, .steps { grid-template-columns: 1fr 1fr; }
  .value-grid, .contact-cards, .dual, .grid-2 { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 16px; }
  .page-hero .hero-title { font-size: 40px; }
  .carousel-arrow { display: none; }
  .tile { padding: 72px 22px; min-height: 380px; }
}
