/* ============================================
   木艺洋全屋定制 - 纯静态企业官网样式
   作者：GEO内容发布系统
   ============================================ */

/* ============================================
   一、重置样式 (Reset)
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1A1A1A;
  background-color: #FAF8F5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: #2C2C2C;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
  color: #1A1A1A;
}

a {
  color: #8B6E4E;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #2C2C2C;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   二、基础布局 (Layout)
   ============================================ */

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 区块通用 */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.section-title p {
  color: #666666;
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto;
}

/* 顶部导航 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #FFFFFF;
  border-bottom: 1px solid #E8E0D5;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.375rem;
  font-weight: 700;
  color: #2C2C2C;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #8B6E4E;
  color: #FFFFFF;
  border-radius: 6px;
  font-size: 1.25rem;
  font-weight: 700;
}

.logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text .brand {
  font-size: 1.125rem;
  color: #2C2C2C;
}

.logo-text .tagline {
  font-size: 0.6875rem;
  color: #8B6E4E;
  letter-spacing: 0.05em;
}

/* 导航菜单 */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
}

.main-nav a {
  display: inline-block;
  padding: 8px 20px;
  color: #2C2C2C;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #8B6E4E;
  background-color: rgba(139, 110, 78, 0.08);
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #2C2C2C;
  transition: all 0.3s ease;
}

/* 主体区域 */
main {
  min-height: calc(100vh - 72px - 240px);
  padding-top: 72px;
}

/* 底部 */
.site-footer {
  background-color: #2C2C2C;
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.0625rem;
  margin-bottom: 16px;
}

.footer-col p,
.footer-col li {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  margin-bottom: 8px;
  line-height: 1.8;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #8B6E4E;
}

.footer-col .footer-logo {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
  color: #8B6E4E;
}

/* ============================================
   三、组件样式 (Components)
   ============================================ */

/* 首屏大横幅 */
.hero {
  background: linear-gradient(135deg, #FAF8F5 0%, #F0EBE3 100%);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(139, 110, 78, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 110, 78, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #2C2C2C;
}

.hero h1 .highlight {
  color: #8B6E4E;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #666666;
  margin-bottom: 16px;
  line-height: 1.6;
}

.hero-tagline {
  font-size: 1rem;
  color: #8B6E4E;
  margin-bottom: 36px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: #8B6E4E;
  color: #FFFFFF;
  border-color: #8B6E4E;
}

.btn-primary:hover {
  background-color: #7A5E3F;
  border-color: #7A5E3F;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(139, 110, 78, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: #8B6E4E;
  border-color: #8B6E4E;
}

.btn-secondary:hover {
  background-color: #8B6E4E;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* 核心卖点展示 */
.selling-points {
  background-color: #FFFFFF;
}

.points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.point-card {
  padding: 32px 28px;
  background-color: #FAF8F5;
  border-radius: 8px;
  border: 1px solid #E8E0D5;
  transition: all 0.3s ease;
}

.point-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #8B6E4E;
}

.point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: rgba(139, 110, 78, 0.1);
  color: #8B6E4E;
  border-radius: 12px;
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.point-card h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  color: #2C2C2C;
}

.point-card p {
  color: #666666;
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.7;
}

/* 产品分类入口 */
.product-categories {
  background-color: #FAF8F5;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid #E8E0D5;
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: #8B6E4E;
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background-color: rgba(139, 110, 78, 0.1);
  color: #8B6E4E;
  border-radius: 16px;
  font-size: 2rem;
  margin-bottom: 20px;
}

.category-card h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  color: #2C2C2C;
}

.category-card p {
  color: #666666;
  font-size: 0.875rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: rgba(139, 110, 78, 0.1);
  color: #8B6E4E;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* 品牌背书 */
.brand-endorsement {
  background-color: #2C2C2C;
  color: #FFFFFF;
}

.brand-endorsement .section-title h2 {
  color: #FFFFFF;
}

.brand-endorsement .section-title p {
  color: rgba(255, 255, 255, 0.7);
}

.endorsement-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.endorsement-item {
  text-align: center;
  padding: 32px 20px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.endorsement-item:hover {
  background-color: rgba(139, 110, 78, 0.2);
  border-color: #8B6E4E;
}

.endorsement-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.endorsement-item h3 {
  color: #FFFFFF;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.endorsement-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin: 0;
}

/* 新闻列表（首页） */
.home-news {
  background-color: #FFFFFF;
}

.news-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-preview-card {
  background-color: #FAF8F5;
  border-radius: 8px;
  padding: 28px;
  border: 1px solid #E8E0D5;
  transition: all 0.3s ease;
}

.news-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.news-preview-card time {
  display: block;
  color: #8B6E4E;
  font-size: 0.8125rem;
  margin-bottom: 12px;
  font-weight: 500;
}

.news-preview-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 16px;
  line-height: 1.5;
  color: #2C2C2C;
}

.news-preview-card h3 a {
  color: #2C2C2C;
}

.news-preview-card h3 a:hover {
  color: #8B6E4E;
}

.news-preview-more {
  text-align: center;
  margin-top: 36px;
}

/* 地址/联系方式 */
.contact-info {
  background-color: #FAF8F5;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.contact-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  border: 1px solid #E8E0D5;
  transition: all 0.3s ease;
}

.contact-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.contact-card h3 {
  font-size: 1.125rem;
  margin-bottom: 16px;
  color: #2C2C2C;
}

.contact-card .label {
  color: #8B6E4E;
  font-weight: 500;
  font-size: 0.8125rem;
  margin-bottom: 4px;
}

.contact-card p {
  color: #1A1A1A;
  font-size: 1rem;
  margin-bottom: 8px;
}

.contact-card .phone {
  font-size: 1.375rem;
  font-weight: 700;
  color: #8B6E4E;
}

.contact-card .phone:hover {
  color: #2C2C2C;
}

/* 页面内部标题页（非首页） */
.page-header {
  background: linear-gradient(135deg, #FAF8F5 0%, #F0EBE3 100%);
  padding: 60px 0 48px;
  text-align: center;
  border-bottom: 1px solid #E8E0D5;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.page-header p {
  color: #666666;
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto;
}

/* 产品分类详情 */
.product-category {
  background-color: #FFFFFF;
  padding: 60px 0;
}

.product-category.alt {
  background-color: #FAF8F5;
}

.category-content {
  max-width: 900px;
  margin: 0 auto;
}

.category-content h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: #2C2C2C;
}

.category-desc {
  color: #666666;
  line-height: 1.8;
  margin-bottom: 24px;
  font-size: 1rem;
}

.category-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.category-features li {
  padding: 12px 16px;
  background-color: #FAF8F5;
  border-radius: 6px;
  border-left: 3px solid #8B6E4E;
  color: #2C2C2C;
  font-size: 0.9375rem;
}

/* 新闻文章页样式 */
.news-list {
  background-color: #FFFFFF;
}

.news-article {
  padding: 48px 0;
  border-bottom: 1px solid #E8E0D5;
}

.news-article:last-child {
  border-bottom: none;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 32px;
}

.article-header h2 {
  font-size: 1.625rem;
  margin-bottom: 16px;
  line-height: 1.5;
  color: #2C2C2C;
}

.article-header time {
  display: inline-block;
  color: #8B6E4E;
  font-size: 0.875rem;
  font-weight: 500;
}

.article-body {
  color: #1A1A1A;
  line-height: 1.9;
  font-size: 1rem;
}

.article-body p {
  margin-bottom: 20px;
  text-align: justify;
}

/* 关于我们样式 */
.about-intro {
  background-color: #FFFFFF;
}

.about-story {
  background-color: #FAF8F5;
}

.story-content {
  max-width: 800px;
  margin: 0 auto;
}

.story-content p {
  color: #1A1A1A;
  line-height: 1.9;
  margin-bottom: 20px;
  text-indent: 2em;
}

.about-founder {
  background-color: #FFFFFF;
}

.founder-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 48px;
  background: linear-gradient(135deg, #FAF8F5 0%, #F0EBE3 100%);
  border-radius: 12px;
  border: 1px solid #E8E0D5;
}

.founder-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2C2C2C;
  margin-bottom: 8px;
}

.founder-title {
  color: #8B6E4E;
  font-weight: 500;
  margin-bottom: 24px;
}

.founder-desc {
  color: #666666;
  line-height: 1.9;
  text-align: justify;
}

.about-stores {
  background-color: #FAF8F5;
}

.stores-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.store-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 36px;
  border: 1px solid #E8E0D5;
  transition: all 0.3s ease;
}

.store-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.store-badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: #8B6E4E;
  color: #FFFFFF;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.store-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.store-card .address {
  color: #666666;
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.store-card .notice {
  color: #8B6E4E;
  font-size: 0.875rem;
  font-weight: 500;
}

/* 联系我们（关于我们页底部） */
.contact-cta {
  background-color: #2C2C2C;
  color: #FFFFFF;
  text-align: center;
}

.contact-cta h2 {
  color: #FFFFFF;
  margin-bottom: 16px;
}

.contact-cta p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
}

.contact-cta .phone-big {
  font-size: 2rem;
  font-weight: 700;
  color: #8B6E4E;
  margin-bottom: 24px;
  display: block;
}

.contact-cta .phone-big:hover {
  color: #FFFFFF;
}

/* 滚动淡入动画 */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   四、响应式设计 (Responsive)
   ============================================ */

/* 平板：≤ 992px */
@media (max-width: 992px) {
  section {
    padding: 64px 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 96px 0 80px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .points-grid,
  .endorsement-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-preview-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stores-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* 手机：≤ 768px */
@media (max-width: 768px) {
  section {
    padding: 48px 0;
  }

  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.375rem;
  }

  /* 导航 */
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid #E8E0D5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 4px;
  }

  .main-nav.active {
    transform: translateY(0);
  }

  .main-nav a {
    padding: 12px 16px;
    width: 100%;
  }

  /* 首屏 */
  .hero {
    padding: 72px 0 56px;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  /* 网格改为单列 */
  .points-grid,
  .endorsement-grid,
  .categories-grid,
  .news-preview-grid {
    grid-template-columns: 1fr;
  }

  .category-features {
    grid-template-columns: 1fr;
  }

  /* 页脚 */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  /* 页面标题 */
  .page-header {
    padding: 40px 0 32px;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  /* 创始人卡片 */
  .founder-card {
    padding: 32px 24px;
  }

  /* 文章 */
  .article-header h2 {
    font-size: 1.375rem;
  }
}

/* 小屏手机：≤ 480px */
@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .logo-text .tagline {
    display: none;
  }

  .container {
    padding: 0 12px;
  }

  section {
    padding: 36px 0;
  }
}