/* ============================================
   博天堂918 · 暖色杂志风格设计系统
   配色：陶土橙 + 森林绿 + 暖金 + 米白
   ============================================ */

/* 基础重置 */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
  background: #FCF7F0;
  color: #2C2420;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 核心布局 — 必须居中 */
.container { max-width:1200px; margin:0 auto; padding:0 24px; }

.section { padding:80px 0; position: relative; }
.section:nth-child(even) { 
  background: #F5EDE6; 
  position: relative;
}
.section:nth-child(even)::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #D4704A 0%, #E8C97A 50%, #2B7A6B 100%);
  opacity: 0.3;
}

/* 导航 — 固定顶部 */
.site-header { 
  position: fixed; 
  top: 0; left: 0; width: 100%; 
  z-index: 1000; 
  background: rgba(252, 247, 240, 0.92); 
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 112, 74, 0.15);
  box-shadow: 0 2px 32px rgba(44, 36, 32, 0.04);
}

.header-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  height: 72px; 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 24px; 
}

.logo { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  font-weight: 800; 
  font-size: 1.3rem; 
  text-decoration: none; 
  color: #2C2420;
  letter-spacing: 0.5px;
}
.logo:hover { color: #D4704A; }

.logo-icon { 
  width: 40px; 
  height: 40px; 
  border-radius: 10px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 1.1rem;
  background: linear-gradient(135deg, #D4704A, #E8C97A);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(212, 112, 74, 0.25);
}

.main-nav { 
  display: flex; 
  align-items: center; 
  gap: 32px; 
  list-style: none; 
}

.main-nav a { 
  text-decoration: none; 
  font-size: 0.9rem; 
  font-weight: 500; 
  color: #5A4A42;
  transition: 0.2s;
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: #D4704A;
  transition: 0.3s;
  border-radius: 2px;
}

.main-nav a:hover { color: #D4704A; }
.main-nav a:hover::after { width: 100%; }

.nav-cta { 
  padding: 10px 24px; 
  border-radius: 50px; 
  background: linear-gradient(135deg, #D4704A, #C75B3A);
  color: #fff !important; 
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(212, 112, 74, 0.3);
  letter-spacing: 0.3px;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { 
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(212, 112, 74, 0.4);
  color: #fff !important;
}

.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: #2C2420; cursor: pointer; }

/* 首页Hero */
.hero { 
  min-height: 75vh; 
  display: flex; 
  align-items: center; 
  background: linear-gradient(135deg, #FCF7F0 0%, #F5EDE6 40%, #F0E3D8 100%);
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 60%; height: 140%;
  background: radial-gradient(ellipse at 80% 50%, rgba(212, 112, 74, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to top, #FCF7F0, transparent);
  pointer-events: none;
}

.hero-content { max-width: 680px; position: relative; z-index: 1; }

.hero-eyebrow { 
  display: inline-block; 
  font-size: 0.8rem; 
  font-weight: 600; 
  padding: 6px 18px; 
  border-radius: 50px; 
  margin-bottom: 20px;
  background: rgba(212, 112, 74, 0.1);
  color: #D4704A;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero h1 { 
  font-size: 3.2rem; 
  line-height: 1.15; 
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #2C2420;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, #D4704A, #E8C97A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p { 
  font-size: 1.1rem; 
  opacity: 0.75; 
  max-width: 560px; 
  margin-bottom: 36px;
  line-height: 1.7;
  color: #5A4A42;
}

.hero-buttons { display: flex; gap: 16px; }

.hero-image { 
  border-radius: 16px; 
  overflow: hidden; 
  box-shadow: 0 8px 40px rgba(44, 36, 32, 0.08);
  border: 1px solid rgba(255,255,255,0.5);
}
.hero-image img { width: 100%; height: auto; display: block; }

/* 按钮 */
.btn { 
  display: inline-flex; 
  align-items: center; 
  gap: 10px; 
  padding: 14px 32px; 
  border-radius: 50px; 
  font-weight: 600; 
  cursor: pointer; 
  border: none; 
  text-decoration: none; 
  transition: 0.25s;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}
.btn-primary { 
  background: linear-gradient(135deg, #D4704A, #C75B3A); 
  color: #fff; 
  box-shadow: 0 2px 16px rgba(212, 112, 74, 0.3);
}
.btn-primary:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 6px 24px rgba(212, 112, 74, 0.4); 
}
.btn-outline { 
  background: transparent; 
  border: 2px solid #D4704A; 
  color: #D4704A;
}
.btn-outline:hover { 
  background: rgba(212, 112, 74, 0.06);
  transform: translateY(-2px);
}

/* 标签/标题 */
.section-label { 
  display: inline-block; 
  font-size: 0.75rem; 
  font-weight: 600; 
  letter-spacing: 3px; 
  margin-bottom: 12px;
  color: #D4704A;
  text-transform: uppercase;
}

.section-title { 
  font-size: 2.2rem; 
  margin-bottom: 14px;
  font-weight: 800;
  color: #2C2420;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.section-desc { 
  max-width: 600px; 
  opacity: 0.7; 
  margin-bottom: 44px;
  color: #5A4A42;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* 卡片网格 */
.cards-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); 
  gap: 28px; 
}

.category-card { 
  border-radius: 16px; 
  padding: 32px 28px; 
  background: #fff;
  border: 1px solid rgba(44, 36, 32, 0.06);
  transition: 0.3s;
  box-shadow: 0 2px 12px rgba(44, 36, 32, 0.03);
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #D4704A, #E8C97A);
  opacity: 0;
  transition: 0.3s;
}
.category-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 12px 40px rgba(44, 36, 32, 0.08);
  border-color: rgba(212, 112, 74, 0.15);
}
.category-card:hover::before { opacity: 1; }

.card-icon { 
  width: 52px; 
  height: 52px; 
  border-radius: 14px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin-bottom: 18px; 
  font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(212, 112, 74, 0.1), rgba(232, 201, 122, 0.1));
  color: #D4704A;
}

.category-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #2C2420;
}

.category-card p {
  font-size: 0.9rem;
  opacity: 0.65;
  color: #5A4A42;
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-link { 
  font-weight: 600; 
  font-size: 0.85rem; 
  text-decoration: none; 
  color: #D4704A;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s;
}
.card-link:hover { gap: 12px; color: #C75B3A; }

/* 特性块 */
.feature-block { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 56px; 
  align-items: center; 
}

.feature-image { 
  border-radius: 16px; 
  overflow: hidden; 
  box-shadow: 0 8px 32px rgba(44, 36, 32, 0.06);
  border: 1px solid rgba(255,255,255,0.4);
}
.feature-image img { width: 100%; height: auto; display: block; }

.feature-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #2C2420;
}

.feature-text p {
  font-size: 1rem;
  opacity: 0.7;
  color: #5A4A42;
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-list { list-style: none; }
.feature-list li { 
  padding: 8px 0; 
  display: flex; 
  align-items: center; 
  gap: 10px;
  font-size: 0.95rem;
  color: #3A2E28;
}
.feature-list li::before { 
  content: '✦'; 
  font-weight: 700; 
  color: #D4704A;
  font-size: 1.1rem;
}

/* 数据条 */
.stats-bar { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 24px; 
  text-align: center; 
}

.stat-item { 
  padding: 32px 20px; 
  border-radius: 16px; 
  background: #fff;
  border: 1px solid rgba(44, 36, 32, 0.05);
  box-shadow: 0 2px 12px rgba(44, 36, 32, 0.03);
  transition: 0.3s;
}
.stat-item:hover { 
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(44, 36, 32, 0.06);
  border-color: rgba(212, 112, 74, 0.1);
}

.stat-number { 
  font-size: 2.6rem; 
  font-weight: 800; 
  background: linear-gradient(135deg, #D4704A, #2B7A6B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label { 
  font-size: 0.9rem; 
  opacity: 0.6; 
  margin-top: 8px;
  color: #5A4A42;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* 内容墙 */
.content-wall { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); 
  gap: 28px; 
}

.content-wall-item { 
  border-radius: 16px; 
  overflow: hidden; 
  background: #fff;
  border: 1px solid rgba(44, 36, 32, 0.05);
  transition: 0.3s;
  box-shadow: 0 2px 12px rgba(44, 36, 32, 0.03);
}
.content-wall-item:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 12px 40px rgba(44, 36, 32, 0.08);
  border-color: rgba(212, 112, 74, 0.12);
}
.content-wall-item img { 
  width: 100%; 
  height: 220px; 
  object-fit: cover; 
  transition: 0.4s;
}
.content-wall-item:hover img { transform: scale(1.03); }

.content-wall-body { padding: 24px; }

.content-wall-body h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #2C2420;
}

.content-wall-body p {
  font-size: 0.9rem;
  opacity: 0.65;
  color: #5A4A42;
  line-height: 1.6;
  margin-bottom: 12px;
}

.content-wall-body .card-link { margin-top: 8px; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item { 
  background: #fff;
  border: 1px solid rgba(44, 36, 32, 0.06); 
  border-radius: 12px; 
  margin-bottom: 10px; 
  overflow: hidden; 
  cursor: pointer; 
  transition: 0.2s;
  box-shadow: 0 1px 6px rgba(44, 36, 32, 0.02);
}
.faq-item:hover { 
  border-color: rgba(212, 112, 74, 0.15);
  box-shadow: 0 2px 12px rgba(44, 36, 32, 0.04);
}

.faq-item .faq-question { 
  padding: 18px 24px; 
  font-weight: 600; 
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  color: #2C2420;
  font-size: 1rem;
}
.faq-item .faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: #D4704A;
  font-weight: 300;
  transition: 0.3s;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-item .faq-answer { 
  padding: 0 24px 18px; 
  display: none; 
  opacity: 0.7;
  color: #5A4A42;
  line-height: 1.7;
  font-size: 0.95rem;
}
.faq-item.open .faq-answer { display: block; }

/* CTA横幅 */
.cta-banner { 
  padding: 64px 32px; 
  text-align: center; 
  border-radius: 20px; 
  background: linear-gradient(135deg, #D4704A 0%, #C75B3A 50%, #B84E2E 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(212, 112, 74, 0.25);
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { 
  color: #fff; 
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.cta-banner .btn-primary { 
  background: #fff; 
  color: #D4704A;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.cta-banner .btn-primary:hover { 
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}

/* 页脚 */
.site-footer { 
  padding: 64px 0 32px; 
  background: #2C2420;
  color: rgba(255,255,255,0.7);
}
.site-footer .container { }

.footer-grid { 
  display: grid; 
  grid-template-columns: 2fr 1fr 1fr 1fr; 
  gap: 48px; 
}

.footer-brand .logo { color: #fff; }
.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  opacity: 0.65;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h5 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.2s;
}
.footer-col ul a:hover { color: #E8C97A; }

.footer-bottom { 
  border-top: 1px solid rgba(255,255,255,0.08); 
  margin-top: 40px; 
  padding-top: 24px; 
  text-align: center; 
  font-size: 0.85rem;
  opacity: 0.5;
}

/* 工具类 */
.text-accent { color: #D4704A; }
.text-center { text-align: center; }

.seo-description { 
  max-width: 600px; 
  margin: 0 auto 48px; 
  opacity: 0.7;
  color: #5A4A42;
  line-height: 1.7;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* 装饰性分隔线 */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #D4704A, #E8C97A);
  border-radius: 4px;
  margin: 24px 0 32px;
}
.text-center .divider { margin: 24px auto 32px; }

/* 徽章装饰 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: rgba(43, 122, 107, 0.1);
  color: #2B7A6B;
}

/* ============================================
   响应式设计
   ============================================ */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero h1 { font-size: 2.6rem; }
  .section-title { font-size: 1.8rem; }
}

@media (max-width: 768px) {
  .header-inner { height: 64px; }
  .main-nav { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
  
  .main-nav.open { 
    display: flex; 
    flex-direction: column; 
    position: absolute; 
    top: 64px; 
    left: 0; 
    width: 100%; 
    background: rgba(252, 247, 240, 0.98);
    backdrop-filter: blur(16px);
    padding: 24px 28px; 
    gap: 20px;
    border-bottom: 1px solid rgba(212, 112, 74, 0.1);
    box-shadow: 0 12px 40px rgba(44, 36, 32, 0.06);
  }
  .main-nav.open a { font-size: 1rem; padding: 6px 0; }
  .main-nav.open .nav-cta { display: inline-block; text-align: center; padding: 12px 24px; }
  
  .feature-block { grid-template-columns: 1fr; gap: 32px; }
  .feature-block .feature-image { order: -1; }
  
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-item { padding: 24px 16px; }
  .stat-number { font-size: 2rem; }
  
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  
  .hero { min-height: 60vh; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-buttons { flex-direction: column; gap: 12px; }
  
  .section { padding: 56px 0; }
  .section-title { font-size: 1.6rem; }
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
  
  .cta-banner { padding: 40px 24px; }
  .cta-banner h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  
  .cards-grid,
  .content-wall,
  .stats-bar { grid-template-columns: 1fr; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-buttons { flex-direction: column; }
  
  .hero h1 { font-size: 1.7rem; }
  .section-title { font-size: 1.4rem; }
  
  .stat-item { padding: 20px 16px; }
  .stat-number { font-size: 1.8rem; }
  
  .content-wall-item img { height: 180px; }
  
  .faq-item .faq-question { padding: 14px 18px; font-size: 0.95rem; }
  .faq-item .faq-answer { padding: 0 18px 14px; }
  
  .cta-banner { padding: 32px 20px; border-radius: 16px; }
  .cta-banner h2 { font-size: 1.3rem; }
  
  .btn { padding: 12px 24px; font-size: 0.9rem; width: 100%; justify-content: center; }
  
  .logo { font-size: 1.1rem; }
  .main-nav.open .nav-cta { width: 100%; }
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F5EDE6; }
::-webkit-scrollbar-thumb { 
  background: linear-gradient(135deg, #D4704A, #E8C97A); 
  border-radius: 10px; 
}
::-webkit-scrollbar-thumb:hover { background: #C75B3A; }

/* 选中文本样式 */
::selection {
  background: rgba(212, 112, 74, 0.25);
  color: #2C2420;
}

/* 焦点样式 */
:focus-visible {
  outline: 2px solid #D4704A;
  outline-offset: 2px;
  border-radius: 4px;
}

/* 动画 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content {
  animation: fadeInUp 0.8s ease-out both;
}

.category-card:nth-child(1) { animation: fadeInUp 0.6s ease-out 0.1s both; }
.category-card:nth-child(2) { animation: fadeInUp 0.6s ease-out 0.2s both; }
.category-card:nth-child(3) { animation: fadeInUp 0.6s ease-out 0.3s both; }
.category-card:nth-child(4) { animation: fadeInUp 0.6s ease-out 0.4s both; }

/* 玻璃态装饰元素 */
.glass-tag {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 0.8rem;
  color: #2C2420;
  box-shadow: 0 2px 12px rgba(44, 36, 32, 0.04);
}