/* =============================================
   WL棋牌 - 万乐棋牌 设计系统
   暖陶×鼠尾草绿 | 奶油基底 | 自然温润风格
   ============================================= */

/* 基础重置 */
*, *::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: #fefaf6;
  color: #3d3535;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 核心布局 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section:nth-child(even) {
  background: #f7f3ed;
}

/* 导航 — 固定顶部 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(254, 250, 246, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e8e0d8;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: #3d3535;
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.8;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: #c4815c;
  color: #fff;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: #5a4e4e;
  transition: color 0.2s, transform 0.2s;
}

.main-nav a:hover {
  color: #7d9b76;
  transform: translateY(-1px);
}

.nav-cta {
  padding: 8px 20px;
  border-radius: 8px;
  color: #fff !important;
  font-weight: 600;
  background: #7d9b76;
  transition: background 0.25s, transform 0.2s !important;
}

.nav-cta:hover {
  background: #5c7a56;
  transform: translateY(-2px) !important;
  color: #fff !important;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  color: #3d3535;
  font-size: 1.5rem;
  align-items: center;
  justify-content: center;
}

/* 首页Hero */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  gap: 48px;
  padding-top: 68px;
}

.hero-content {
  flex: 1;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  background: #f0e6e0;
  color: #c4815c;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #3d3535;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.7;
  max-width: 560px;
  margin-bottom: 32px;
  color: #5a4e4e;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 14px;
}

.hero-image {
  flex: 0 0 42%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(61, 53, 53, 0.1);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s;
  font-size: 0.95rem;
}

.btn-primary {
  color: #fff;
  background: #7d9b76;
}

.btn-primary:hover {
  background: #5c7a56;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(125, 155, 118, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #7d9b76;
  color: #7d9b76;
}

.btn-outline:hover {
  background: #7d9b76;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(125, 155, 118, 0.25);
}

/* 标签/标题 */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 12px;
  color: #c4815c;
  text-transform: uppercase;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 14px;
  color: #3d3535;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-desc {
  max-width: 600px;
  opacity: 0.7;
  margin-bottom: 40px;
  color: #5a4e4e;
  line-height: 1.7;
}

/* 卡片网格 */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.category-card {
  border-radius: 14px;
  padding: 28px;
  border: 1px solid #e8e0d8;
  transition: all 0.3s;
  background: #fffdfb;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(61, 53, 53, 0.1);
  border-color: #d5c9be;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
  background: #e8efe6;
  color: #7d9b76;
}

.card-link {
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  color: #7d9b76;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-link:hover {
  color: #5c7a56;
}

/* 特性块 */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-image {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(61, 53, 53, 0.08);
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-text {
  color: #3d3535;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5a4e4e;
  font-size: 0.95rem;
}

.feature-list li::before {
  content: '✓';
  font-weight: 700;
  color: #7d9b76;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* 数据条 */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 28px 20px;
  border-radius: 14px;
  border: 1px solid #e8e0d8;
  background: #fffdfb;
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(61, 53, 53, 0.08);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #c4815c;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-top: 6px;
  color: #5a4e4e;
}

/* 内容墙 */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.content-wall-item {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e8e0d8;
  transition: all 0.3s;
  background: #fffdfb;
}

.content-wall-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(61, 53, 53, 0.1);
  border-color: #d5c9be;
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.content-wall-body {
  padding: 20px;
  color: #3d3535;
}

.content-wall-body h3,
.content-wall-body h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #3d3535;
}

.content-wall-body p {
  font-size: 0.9rem;
  opacity: 0.7;
  color: #5a4e4e;
  line-height: 1.6;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid #e8e0d8;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #fffdfb;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
  border-color: #d5c9be;
}

.faq-item .faq-question {
  padding: 18px 22px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #3d3535;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.faq-item .faq-question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: #7d9b76;
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  content: '−';
  transform: rotate(0deg);
}

.faq-item .faq-answer {
  padding: 0 22px 18px;
  display: none;
  opacity: 0.7;
  color: #5a4e4e;
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open {
  border-color: #d5c9be;
  box-shadow: 0 2px 12px rgba(61, 53, 53, 0.05);
  background: #fdfaf7;
}

.faq-item.open .faq-question {
  color: #7d9b76;
}

/* CTA横幅 */
.cta-banner {
  padding: 56px 24px;
  text-align: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #c4815c 0%, #d4946e 30%, #d9a07d 60%, #c4815c 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -30%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -20%;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner h2 {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary {
  background: #fff;
  color: #c4815c;
  position: relative;
  z-index: 1;
  font-weight: 700;
}

.cta-banner .btn-primary:hover {
  background: #fefaf6;
  color: #a86d4a;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* 页脚 */
.site-footer {
  padding: 56px 0 28px;
  background: #ede6de;
  color: #3d3535;
}

.site-footer .container {
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  color: #3d3535;
}

.footer-brand p {
  opacity: 0.7;
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #5a4e4e;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #3d3535;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  text-decoration: none;
  color: #5a4e4e;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #7d9b76;
}

.footer-bottom {
  border-top: 1px solid rgba(61, 53, 53, 0.08);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #8a7e7e;
}

/* 工具类 */
.text-accent {
  color: #c4815c;
}

.text-center {
  text-align: center;
}

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  opacity: 0.7;
  color: #5a4e4e;
  line-height: 1.7;
  font-size: 0.95rem;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

/* =============================================
   响应式
   ============================================= */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 40px;
    gap: 32px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero p {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .feature-block {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: #fefaf6;
    padding: 20px;
    border-bottom: 1px solid #e8e0d8;
    box-shadow: 0 8px 24px rgba(61, 53, 53, 0.08);
    gap: 8px;
  }

  .main-nav.open a {
    padding: 10px 16px;
    border-radius: 8px;
    width: 100%;
  }

  .main-nav.open a:hover {
    background: #f7f3ed;
  }

  .main-nav.open .nav-cta {
    text-align: center;
    margin-top: 4px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .cta-banner h2 {
    font-size: 1.4rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .cards-grid,
  .content-wall,
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .cta-banner {
    padding: 36px 18px;
    border-radius: 12px;
  }

  .cta-banner h2 {
    font-size: 1.2rem;
  }

  .feature-block {
    gap: 28px;
  }

  .stats-bar {
    gap: 14px;
  }

  .stat-item {
    padding: 20px 14px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .faq-item .faq-question {
    font-size: 0.9rem;
    padding: 14px 16px;
  }

  .faq-item .faq-answer {
    padding: 0 16px 14px;
  }

  .content-wall-item img {
    height: 160px;
  }
}