/* ============================================
   江西省久居家具有限公司 - 全局样式
   原木自然风格
   ============================================ */

/* === CSS Variables === */
:root {
  --color-primary: #A0785A;
  --color-primary-light: #B8956E;
  --color-primary-dark: #8A6548;
  --color-cream: #FAF6F0;
  --color-bg: #F5F2ED;
  --color-text: #3D3229;
  --color-text-light: #6B5D50;
  --color-accent: #7A8B6F;
  --color-accent-light: #8FA07F;
  --color-border: #E8E2DA;
  --color-white: #FFFFFF;
  --font-cn: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-en: 'Inter', 'Helvetica Neue', sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(61, 50, 41, 0.06);
  --shadow-md: 0 4px 16px rgba(61, 50, 41, 0.08);
  --shadow-lg: 0 8px 32px rgba(61, 50, 41, 0.12);
  --transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  --max-width: 1200px;
}

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-cn);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

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

/* === Header === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.header-logo img {
  height: 48px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.header-nav a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--color-primary);
  background: rgba(160, 120, 90, 0.08);
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

.header-phone svg {
  width: 18px;
  height: 18px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* === Page Banner === */
.page-banner {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  margin-top: 72px;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.page-banner h1 {
  position: relative;
  color: var(--color-white);
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-banner .breadcrumb {
  position: relative;
  margin-top: 12px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.page-banner .breadcrumb a {
  color: rgba(255,255,255,0.9);
}

.page-banner .breadcrumb a:hover {
  color: var(--color-white);
}

/* === Hero Section === */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/banner-home.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

.hero-content h1 {
  color: var(--color-white);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.25rem;
  margin-bottom: 32px;
}

.hero-content .btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.hero-content .btn:hover {
  background: var(--color-accent-light);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* === Section Common === */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-cream);
}

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

.section-header h2 {
  font-size: 2rem;
  color: var(--color-text);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-header .divider {
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* === Buttons === */
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--color-accent-light);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

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

/* === Cards === */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.card-body p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* === Grid Layouts === */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

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

/* === Advantages Section === */
.advantage-item {
  text-align: center;
  padding: 32px 24px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.advantage-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.advantage-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(160, 120, 90, 0.1);
  border-radius: 50%;
}

.advantage-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-primary);
}

.advantage-item h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.advantage-item p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* === Process Section === */
.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 130px;
}

.process-step .step-num {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 12px;
}

.process-step .step-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

/* === About Section === */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.about-text p {
  font-size: 1rem;
  line-height: 2;
  color: var(--color-text-light);
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* === Stats === */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 64px;
  padding: 48px 0;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-top: 8px;
}

/* === Cases Grid === */
.case-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.case-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.case-card .case-info {
  padding: 20px 24px;
}

.case-card .case-info h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.case-card .case-info p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* === News List === */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-item {
  display: flex;
  gap: 24px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.news-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.news-item img {
  width: 280px;
  min-height: 180px;
  object-fit: cover;
  flex-shrink: 0;
}

.news-item .news-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-item .news-date {
  font-family: var(--font-en);
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.news-item .news-content h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.news-item .news-content p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* === News Detail === */
.article-header {
  text-align: center;
  padding: 40px 0 24px;
}

.article-header h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.article-body p {
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.article-body img {
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

/* === Contact Section === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-item .icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(160, 120, 90, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-info-item .icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-primary);
}

.contact-info-item .info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-info-item .info p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

.contact-form {
  background: var(--color-white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-cn);
  color: var(--color-text);
  background: var(--color-bg);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(160, 120, 90, 0.1);
}

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

/* === Footer === */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
}

.footer-links h4 {
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* === Scroll Animation === */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Back to Top === */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  
  .header-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-cream);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
  }
  
  .header-nav.open {
    display: flex;
  }
  
  .header-nav a {
    padding: 12px 16px;
    width: 100%;
  }
  
  .header-phone {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .news-item {
    flex-direction: column;
  }
  
  .news-item img {
    width: 100%;
    height: 200px;
  }
  
  .stats-row {
    flex-wrap: wrap;
    gap: 32px;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .page-banner {
    height: 240px;
  }
  
  .page-banner h1 {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 48px 0;
  }
}

@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .process-steps {
    gap: 24px;
  }
  
  .hero {
    min-height: 500px;
  }
}
