/* ===== 基础重置与变量 ===== */
:root {
  --primary: #798875;
  --primary-light: #a3b39e;
  --primary-dark: #5a6854;
  --text: #333;
  --text-light: #666;
  --bg: #fafaf8;
  --white: #fff;
  --border: #e8e8e4;
  --shadow: 0 2px 12px rgba(121, 136, 117, 0.1);
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--primary-dark);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 头部导航 ===== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 44px;
  width: auto;
}

.logo-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 2px;
}

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

.nav a {
  color: var(--text);
  font-size: 15px;
  position: relative;
  padding: 4px 0;
}

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

.nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* 移动端菜单按钮 */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* ===== 首页英雄区 ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 12px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 40px;
  letter-spacing: 2px;
}

.hero-btn {
  display: inline-block;
  padding: 14px 40px;
  border: 2px solid var(--white);
  color: var(--white);
  border-radius: 50px;
  font-size: 16px;
  letter-spacing: 2px;
  transition: all 0.3s;
}

.hero-btn:hover {
  background: var(--white);
  color: var(--primary);
}

/* ===== 场景入口 ===== */
.scenes {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 32px;
  color: var(--primary);
  letter-spacing: 4px;
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-light);
  font-size: 16px;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.scene-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border);
}

.scene-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(121, 136, 117, 0.18);
}

.scene-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.scene-icon svg {
  width: 32px;
  height: 32px;
}

.scene-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text);
}

.scene-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ===== 精选产品区 ===== */
.products-section {
  padding: 80px 0;
  background: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(121, 136, 117, 0.15);
}

.product-card .card-img {
  height: 220px;
  background: linear-gradient(135deg, #f0f2ee, #dde3d9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.product-card .card-img svg {
  width: 56px;
  height: 56px;
}

.product-card .card-body {
  padding: 24px;
}

.product-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 14px;
  color: var(--text-light);
}

/* ===== 内容区 ===== */
.content-section {
  padding: 80px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.content-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.content-card .tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(121, 136, 117, 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 16px;
}

.content-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.content-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ===== 品牌信任区 ===== */
.trust-section {
  padding: 80px 0;
  background: var(--primary);
  color: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.trust-item h3 {
  font-size: 36px;
  font-weight: 300;
  margin-bottom: 8px;
}

.trust-item p {
  font-size: 14px;
  opacity: 0.85;
}

/* ===== 联系方式 ===== */
.contact-section {
  padding: 80px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 22px;
  margin-bottom: 24px;
  color: var(--primary);
}

.contact-info .info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--text-light);
}

.info-item .icon {
  width: 36px;
  height: 36px;
  background: rgba(121, 136, 117, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.info-item .icon svg {
  width: 18px;
  height: 18px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-form textarea {
  height: 120px;
  resize: vertical;
}

.btn-submit {
  display: inline-block;
  padding: 12px 36px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: var(--primary-dark);
}

/* ===== 页脚 ===== */
.footer {
  background: #2c3328;
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo-text {
  color: var(--white);
  font-size: 22px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.8;
}

.footer h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 500;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: color 0.3s;
}

.footer ul a:hover {
  color: var(--white);
}

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

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== 内页通用 ===== */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-banner h1 {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 6px;
}

.page-banner p {
  margin-top: 12px;
  opacity: 0.85;
  font-size: 16px;
}

.page-content {
  padding: 80px 0;
}

/* 品牌故事页 */
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.story-block.reverse {
  direction: rtl;
}

.story-block.reverse > * {
  direction: ltr;
}

.story-img {
  background: linear-gradient(135deg, #f0f2ee, #dde3d9);
  border-radius: var(--radius);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.story-img svg {
  width: 64px;
  height: 64px;
}

.story-text h3 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 16px;
}

.story-text p {
  color: var(--text-light);
  line-height: 2;
  margin-bottom: 12px;
}

/* 产品页 */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== 六境分区（产品/服务页） ===== */
.hall-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.hall-nav a {
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  transition: all 0.3s;
}

.hall-nav a:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.hall-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.hall-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.hall-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.hall-head .hall-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.hall-head .hall-icon svg {
  width: 30px;
  height: 30px;
}

.hall-head .hall-title h2 {
  font-size: 26px;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.hall-head .hall-title p {
  font-size: 14px;
  color: var(--text-light);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(121, 136, 117, 0.14);
}

.cat-card h4 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
}

.cat-card .desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(121, 136, 117, 0.08);
  border: 1px solid rgba(121, 136, 117, 0.2);
  color: var(--primary-dark);
  border-radius: 20px;
  font-size: 12px;
  line-height: 1.8;
}

/* 首页服务概览条 */
.services-intro {
  padding: 60px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-intro .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.services-intro h2 {
  font-size: 26px;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.services-intro p {
  color: var(--text-light);
  max-width: 640px;
}

.btn-outline {
  display: inline-block;
  padding: 12px 32px;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 50px;
  font-size: 15px;
  letter-spacing: 1px;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* 内容页 */
.article-list {
  display: grid;
  gap: 32px;
}

.article-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.article-item:hover {
  box-shadow: 0 6px 20px rgba(121, 136, 117, 0.12);
}

.article-thumb {
  background: linear-gradient(135deg, #f0f2ee, #dde3d9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  min-height: 160px;
}

.article-thumb svg {
  width: 40px;
  height: 40px;
}

.article-body {
  padding: 24px 24px 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-body .meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.article-body h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.article-body p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

/* 隐私政策 */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content h2 {
  font-size: 22px;
  color: var(--primary);
  margin: 32px 0 16px;
}

.policy-content h3 {
  font-size: 18px;
  margin: 24px 0 12px;
}

.policy-content p {
  color: var(--text-light);
  line-height: 2;
  margin-bottom: 12px;
}

.policy-content ul {
  padding-left: 24px;
  margin-bottom: 12px;
}

.policy-content ul li {
  color: var(--text-light);
  line-height: 2;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .scene-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header .container {
    height: 60px;
  }
  .nav {
    display: none;
  }
  .menu-btn {
    display: flex;
  }
  .hero h1 {
    font-size: 32px;
    letter-spacing: 6px;
  }
  .hero p {
    font-size: 16px;
  }
  .scene-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .cat-grid {
    grid-template-columns: 1fr;
  }
  .hall-head {
    gap: 14px;
  }
  .hall-head .hall-title h2 {
    font-size: 22px;
  }
  .services-intro .inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .story-block {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .story-block.reverse {
    direction: ltr;
  }
  .article-item {
    grid-template-columns: 1fr;
  }
  .article-body {
    padding: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
