/* ==================== 基础重置与变量 ==================== */
:root {
  --primary: #2F6B5A;
  --primary-dark: #255849;
  --primary-light: #3D8671;
  --accent: #E8F5F0;
  --accent2: #F0F9F6;
  --bg: #FDFCF8;
  --surface: #FFFFFF;
  --text: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  --border: #E5E7EB;
  --shadow: 0 4px 20px rgba(47, 107, 90, 0.08);
  --shadow-hover: 0 8px 30px rgba(47, 107, 90, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --header-height: 72px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== 按钮 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-block {
  width: 100%;
}

/* ==================== 顶部导航 ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(253, 252, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.logo-text {
  white-space: nowrap;
}

.main-nav {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--text);
  border-radius: 50px;
  transition: all var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--primary);
  background: var(--accent);
}

.header-phone {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}

.header-phone:hover {
  background: var(--primary);
  color: #fff;
}

.icon-phone {
  width: 18px;
  height: 18px;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
}

.menu-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav.open {
  display: flex;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: var(--surface);
  flex-direction: column;
  padding: 24px 20px;
  box-shadow: var(--shadow);
}

.main-nav.open .nav-list {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.main-nav.open .nav-list a {
  padding: 14px 16px;
  font-size: 17px;
  border-radius: var(--radius);
}

/* ==================== 通用区块 ==================== */
.section {
  padding: 64px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.section-footer {
  text-align: center;
  margin-top: 40px;
}

/* ==================== 首页横幅 ==================== */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 48px);
  padding-bottom: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--bg) 60%, #fff 100%);
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 80px;
}

.hero-content {
  text-align: center;
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-title em {
  color: var(--primary);
  font-style: normal;
  display: block;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-highlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: var(--shadow);
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 100px;
}

.hero-stat strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.hero-stat span {
  font-size: 13px;
  color: var(--text-secondary);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 340px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-hover);
}

.hero-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 20px;
  border-radius: 20px;
}

.hero-card-text {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.hero-card-slogan {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--accent);
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 50px;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
  fill: var(--bg);
}

/* ==================== 服务 ==================== */
.section-services {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==================== 房源 ==================== */
.section-houses {
  background: var(--accent2);
}

.houses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.house-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.house-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.house-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.house-body {
  padding: 20px;
}

.house-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.house-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.house-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.house-meta span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--primary-light);
  border-radius: 50%;
}

.house-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.house-unit {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 14px;
}

.house-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.house-tag {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: 50px;
}

/* ==================== 流程 ==================== */
.section-process {
  background: var(--bg);
}

.process-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.process-item {
  display: flex;
  gap: 18px;
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.process-item:hover {
  box-shadow: var(--shadow-hover);
}

.process-step {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
}

.process-text h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.process-text p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==================== 关于我们 ==================== */
.section-about {
  background: var(--accent2);
}

.about-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 28px;
}

.value-card {
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

.value-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.value-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-logo {
  width: 100%;
  max-width: 280px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
}

/* ==================== 联系我们 ==================== */
.section-contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-item strong {
  display: block;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-wechat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  color: var(--primary);
  background: var(--accent);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}

.contact-wechat:hover {
  background: var(--primary);
  color: #fff;
}

.copy-hint {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.75;
}

.contact-form {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
}

.contact-form h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-field span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

/* ==================== 页脚 ==================== */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
}

.footer-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.footer-slogan {
  font-size: 14px;
  opacity: 0.85;
}

.footer-contact a {
  color: #fff;
  font-weight: 700;
}

.footer-phone {
  font-size: 18px;
  margin-bottom: 6px;
}

.footer-wechat {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  padding: 4px 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}

.footer-wechat:hover {
  background: #fff;
  color: var(--primary-dark);
}

.footer-time {
  font-size: 14px;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  font-size: 13px;
  opacity: 0.6;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== 移动端底部栏 ==================== */
.mobile-bottom-bar {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  height: 56px;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  z-index: 999;
}

.mobile-bottom-bar a,
.mobile-bottom-bar button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  border: none;
  cursor: pointer;
}

.mobile-bar-phone {
  background: var(--accent);
  color: var(--primary);
}

.mobile-bar-phone svg {
  width: 20px;
  height: 20px;
}

.mobile-bar-form {
  background: var(--primary);
  color: #fff;
}

body {
  padding-bottom: 56px;
}

/* ==================== 轻提示 ==================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 2000;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==================== 平板适配 ==================== */
@media (min-width: 640px) {
  .hero-title {
    font-size: 40px;
  }

  .hero-title em {
    display: inline;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .services-grid,
  .houses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-values,
  .contact-info {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==================== 电脑适配 ==================== */
@media (min-width: 900px) {
  :root {
    --header-height: 80px;
  }

  .menu-toggle {
    display: none;
  }

  .main-nav {
    display: flex;
  }

  .header-phone {
    display: inline-flex;
  }

  .hero {
    padding-top: calc(var(--header-height) + 80px);
  }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .hero-content {
    flex: 1;
    text-align: left;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-highlights {
    justify-content: flex-start;
  }

  .hero-stats {
    justify-content: flex-start;
  }

  .hero-visual {
    flex: 0 0 420px;
  }

  .section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 36px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .houses-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .process-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .about-inner {
    flex-direction: row;
    align-items: center;
  }

  .about-content {
    flex: 1;
  }

  .about-visual {
    flex: 0 0 360px;
  }

  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-brand {
    flex-direction: row;
    align-items: center;
    flex: 1 1 100%;
    margin-bottom: 16px;
  }

  .footer-bottom {
    flex: 1 1 100%;
  }

  .mobile-bottom-bar {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

@media (min-width: 1100px) {
  .houses-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card,
.house-card,
.process-item,
.value-card,
.contact-item,
.contact-form {
  animation: fadeInUp 0.6s ease both;
}
