/* 青尺起名官网样式表 - 全新设计 */

/* ========== 变量定义 ========== */
:root {
  /* 主品牌色 - 蓝紫色系 */
  --primary-color: rgb(100, 102, 233);
  --primary-hover: rgb(80, 82, 213);
  --primary-light: rgba(100, 102, 233, 0.1);
  --primary-gradient: linear-gradient(135deg, rgb(100, 102, 233) 0%, rgb(80, 82, 213) 100%);

  /* 中性色 */
  --text-dark: rgb(23, 23, 23);
  --text-medium: rgb(82, 82, 82);
  --text-light: rgb(163, 163, 163);
  --background: #ffffff;
  --background-alt: rgb(248, 249, 250);
  --background-section: rgb(245, 246, 250);
  --border-light: rgb(235, 236, 240);

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(100, 102, 233, 0.08);
  --shadow-md: 0 4px 16px rgba(100, 102, 233, 0.12);
  --shadow-lg: 0 8px 32px rgba(100, 102, 233, 0.16);

  /* 间距 */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  --spacing-section: 6rem;

  /* 字体大小 */
  --font-size-xs: 0.875rem;
  --font-size-sm: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.25rem;
  --font-size-4xl: 3.5rem;
  --font-size-hero: 4rem;
}

/* ========== 全局重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background);
  font-size: var(--font-size-sm);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========== 头部导航 ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: none;
  z-index: 1000;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.header.scrolled {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  font-size: var(--font-size-xl);
  font-weight: 700;
  letter-spacing: -0.5px;
  flex: 0 0 auto;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary-gradient);
  color: white;
  border-radius: 12px;
  font-size: 1.5rem;
  margin-right: 0.75rem;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.logo-text {
  color: var(--text-dark);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-toggle img {
  width: 28px;
  height: 28px;
  filter: brightness(0) saturate(100%) invert(20%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(91%) contrast(88%);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

.nav-links a {
  display: inline-block;
  padding: 0.625rem 1.125rem;
  color: var(--text-medium);
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

.nav-links a:hover::before,
.nav-links a.active::before {
  width: 60%;
}

/* ========== 主要内容区域 ========== */
.main-content {
  margin-top: 82px;
}

/* ========== 通用元素 ========== */
.section-title {
  text-align: center;
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--text-dark);
  /* margin-bottom: var(--spacing-sm); */
  letter-spacing: -0.5px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 1.25rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: var(--font-size-lg);
  color: var(--text-medium);
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
  line-height: 1.8;
}

/* ========== 按钮 ========== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: var(--font-size-md);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  text-align: center;
  min-height: 48px; /* 确保触摸友好的最小高度 */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05); /* iOS 点击高亮优化 */
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
}

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

.btn-nav {
  padding: 0.625rem 1.5rem;
  font-size: var(--font-size-sm);
  box-shadow: var(--shadow-sm);
}

.btn-nav:hover {
  transform: translateY(-2px);
}

/* ========== Hero区域 ========== */
.hero {
  padding: var(--spacing-section) 0;
  background: linear-gradient(135deg, var(--background-alt) 0%, var(--background) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: var(--font-size-hero);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
  letter-spacing: -1px;
}

.hero-title .highlight {
  color: var(--primary-color);
  position: relative;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-medium);
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
}

.trust-badges {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-sm);
  color: var(--text-medium);
}

.check-icon {
  color: #10B981;
  font-weight: bold;
  font-size: 1.125rem;
}

/* ========== 方法滑动区域 ========== */
.methods-section {
  padding: var(--spacing-section) 0;
  background-color: var(--background);
  position: relative;
}

.methods-slider-container {
  position: relative;
  margin-top: var(--spacing-xl);
  padding: 0 3rem;
}

.methods-slider {
  display: flex;
  gap: var(--spacing-lg);
  overflow-x: hidden;
  padding: 1rem 1rem;
  scroll-behavior: smooth;
}

/* 隐藏滚动条 */
.methods-slider::-webkit-scrollbar {
  display: none;
}

.methods-slider {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 箭头按钮 */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: var(--background);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

/* 在桌面端悬停时显示箭头，在移动端始终显示 */
@media (hover: hover) and (pointer: fine) {
  .methods-slider-container:hover .slider-arrow {
    opacity: 1;
    pointer-events: auto;
  }
}

/* 移动端始终显示箭头 */
@media (hover: none) or (pointer: coarse) {
  .slider-arrow {
    opacity: 1;
    pointer-events: auto;
  }
}

.slider-arrow img {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(43%) sepia(98%) saturate(2345%) hue-rotate(228deg) brightness(98%) contrast(93%);
  transition: filter 0.3s ease;
}

.slider-arrow:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.slider-arrow:hover img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7500%) hue-rotate(201deg) brightness(104%) contrast(104%);
}

.slider-arrow:disabled {
  opacity: 0 !important;
  cursor: not-allowed;
  pointer-events: none !important;
}

.slider-arrow:disabled:hover {
  background: var(--background);
  color: var(--primary-color);
  transform: translateY(-50%) scale(1);
  box-shadow: var(--shadow-md);
}

.slider-arrow:disabled:hover img {
  filter: brightness(0) saturate(100%) invert(43%) sepia(98%) saturate(2345%) hue-rotate(228deg) brightness(98%) contrast(93%);
}

.slider-arrow.prev {
  left: -20px;
}

.slider-arrow.next {
  right: -20px;
}

.method-card {
  background: var(--background);
  border: none;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  width: 380px;
}

.method-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.method-card:hover {
  transform: translateY(-8px);
  /* box-shadow: var(--shadow-lg); */
  box-shadow: 2px 5px 20px 0px rgba(100, 102, 233, 0.16);
}

.method-card:hover::before {
  transform: scaleX(1);
}

.method-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
}

.method-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(43%) sepia(98%) saturate(2345%) hue-rotate(228deg) brightness(98%) contrast(93%);
}

.method-card h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

.method-desc {
  font-size: var(--font-size-md);
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.method-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  background-color: var(--background-alt);
  border-radius: 8px;
}

.detail-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: var(--font-size-sm);
  color: var(--text-medium);
}

/* ========== 需求区域 ========== */
.needs-section {
  padding: var(--spacing-section) 0;
  background-color: var(--background-alt);
}

.needs-content {
  display: flex;
  gap: var(--spacing-xxl);
  margin-top: var(--spacing-xl);
  align-items: center;
}

.needs-left {
  flex: 1.2;
}

.value-stats {
  flex: 1.5;
}

.needs-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.needs-left {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.needs-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0;
  line-height: 1.3;
}

.needs-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 0;
}

.need-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.need-item:hover {
  transform: translateX(8px);
}

.need-item h3 {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0;
}

.color-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-color);
  flex-shrink: 0;
}

.need-item p {
  font-size: var(--font-size-xs);
  color: var(--text-medium);
  line-height: 1.7;
  margin-left: 1.25rem;
}

.learn-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: all 0.3s ease;
  width: fit-content;
}

.learn-more-link::after {
  content: '→';
  transition: transform 0.3s ease;
}

.learn-more-link:hover {
  color: var(--primary-hover);
  transform: translateX(5px);
}

.learn-more-link:hover::after {
  transform: translateX(3px);
}

.value-stats {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding: 3rem 2.5rem;
  background: var(--background);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  align-self: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-medium);
  line-height: 1.6;
}

/* ========== 功能区域 ========== */
.features-section {
  padding: var(--spacing-section) 0;
  background-color: var(--background);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.feature-card {
  background: transparent;
  border: none;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: none;
  border-color: transparent;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background:  var(--primary-color);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.feature-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(105%) contrast(105%);
}

.feature-card h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

.feature-card p {
  font-size: var(--font-size-md);
  color: var(--text-medium);
  line-height: 1.8;
}

/* ========== 服务统计区域 ========== */
.service-section {
  padding: var(--spacing-section) 0;
  background-color: var(--background);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.stat-box {
  background: var(--background);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: none;
  transition: all 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: none;
}

.stat-box .stat-number {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.stat-box .stat-desc {
  font-size: var(--font-size-md);
  color: var(--text-medium);
  font-weight: 500;
}

/* ========== CTA区域 ========== */
.cta-section {
  padding: var(--spacing-section) 0;
  background: var(--primary-gradient);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.cta-subtitle {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xl);
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* 确保按钮在窄屏设备上不粘连 */
@media (max-width: 600px) {
  .cta-buttons {
    gap: 0.75rem;
  }
}

.cta-section .btn-primary {
  background: white;
  color: var(--primary-color);
  border: 2px solid white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-primary:hover {
  background: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-secondary {
  background: transparent;
  border-color: white;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-secondary:hover {
  background: white;
  color: var(--primary-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ========== 页脚 ========== */
.footer {
  background-color: var(--text-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  margin-bottom: var(--spacing-md);
}

.footer-brand .logo-icon {
  background: var(--primary-gradient);
}

.brand-desc {
  font-size: var(--font-size-sm);
  line-height: 1.8;
  max-width: 400px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-lg);
}

.link-group h4 {
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.link-group ul {
  list-style: none;
}

.link-group li {
  margin-bottom: 0.5rem;
}

.link-group a,
.link-group li {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.link-group a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
}

.footer-bottom p {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ========== 响应式设计 ========== */

/* 小屏幕优化 (1024px以下) - 融合实践模型纵向布局 */
@media (max-width: 1023px) {
  .practice-steps-horizontal {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .container {
    max-width: 1600px;
    padding: 0 3rem;
  }

  .hero-title {
    font-size: var(--font-size-hero);
  }

  .section-title {
    font-size: var(--font-size-3xl);
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 平板横屏与小屏桌面 (1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  :root {
    --font-size-hero: 3.5rem;
    --font-size-4xl: 2.5rem;
    --font-size-3xl: 2rem;
  }

  .method-card {
    width: 340px;
  }

  .methods-slider-container {
    padding: 0 2rem;
  }

  .slider-arrow.prev {
    left: -16px;
  }

  .slider-arrow.next {
    right: -16px;
  }

  .needs-content {
    gap: var(--spacing-xl);
  }

  .value-stats {
    padding: 1.5rem;
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 平板竖屏与移动端横屏 (768px) */
@media (max-width: 768px) {
  :root {
    --font-size-hero: 2.5rem;
    --font-size-3xl: 2rem;
    --font-size-2xl: 1.75rem;
    --spacing-section: 4rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  .navbar {
    padding: 1rem 0;
    position: relative;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--background);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin: 0;
    gap: 0.25rem;
    z-index: 1001;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
    margin-bottom: 0;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: var(--font-size-md);
    border-radius: 8px;
  }

  .nav-actions {
    display: none;
  }

  .mobile-menu-overlay {
    display: none !important;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: var(--font-size-md);
    margin-bottom: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    padding: 0.875rem 2rem;
    font-size: var(--font-size-md);
  }

  .trust-badges {
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .trust-badge {
    font-size: var(--font-size-xs);
  }

  .section-title {
    font-size: var(--font-size-2xl);
    margin-bottom: 1rem;
  }

  .section-subtitle {
    font-size: var(--font-size-md);
    margin-bottom: 2rem;
  }

  .methods-section,
  .needs-section,
  .features-section,
  .service-section,
  .cta-section {
    padding: 4rem 0;
  }

  .method-card {
    width: 320px;
    padding: 2rem 1.5rem;
  }

  .methods-slider-container {
    padding: 0 2rem;
    margin-top: 2rem;
  }

  .slider-arrow {
    width: 44px;
    height: 44px;
  }

  .slider-arrow.prev {
    left: -2px;
  }

  .slider-arrow.next {
    right: -2px;
  }

  .slider-arrow img {
    width: 18px;
    height: 18px;
  }

  .needs-content {
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
  }

  .needs-left,
  .value-stats {
    flex: auto;
  }

  .value-stats {
    padding: 1.5rem;
  }

  .stat-item .stat-number {
    font-size: 2rem;
  }

  .stat-item .stat-label {
    font-size: var(--font-size-sm);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .feature-card,
  .stat-box {
    padding: 2rem 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 1rem 2rem;
    backdrop-filter: blur(2px);
  }

  .cta-section .btn-primary {
    background: white;
    border: 2px solid white;
    color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }

  .cta-section .btn-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
  }
}

/* 手机屏幕 (480px) */
@media (max-width: 480px) {
  :root {
    --font-size-hero: 2rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.75rem;
    --spacing-section: 3rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .logo {
    font-size: var(--font-size-lg);
  }

  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1.125rem;
    margin-right: 0.5rem;
  }

  .logo-text {
    font-size: var(--font-size-md);
  }

  .mobile-menu-toggle img {
    width: 24px;
    height: 24px;
  }

  .nav-actions {
    display: none;
  }

  .hero {
    padding: 3rem 0 2rem;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }

  .hero-title .highlight {
    display: block;
    margin-top: 0.25rem;
  }

  .hero-subtitle {
    font-size: var(--font-size-sm);
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  .hero-buttons .btn {
    max-width: 280px;
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-sm);
  }

  .trust-badges {
    gap: 0.75rem;
    margin-top: 1.25rem;
  }

  .trust-badge {
    font-size: 0.75rem;
  }

  .check-icon {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .section-subtitle {
    font-size: var(--font-size-sm);
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  .methods-section,
  .needs-section,
  .features-section,
  .service-section,
  .cta-section {
    padding: 3rem 0;
  }

  .method-card {
    width: 300px;
    padding: 1.5rem 1.25rem;
  }

  .method-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
  }

  .method-card h3 {
    font-size: var(--font-size-lg);
    margin-bottom: 0.5rem;
  }

  .method-desc {
    font-size: var(--font-size-sm);
    line-height: 1.7;
    margin-bottom: 1rem;
  }

  .detail-item {
    padding: 0.625rem;
  }

  .detail-label {
    font-size: 0.75rem;
  }

  .detail-value {
    font-size: var(--font-size-xs);
  }

  .methods-slider-container {
    padding: 0 1.5rem;
    margin-top: 1.5rem;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
  }

  .slider-arrow.prev {
    left: 0;
  }

  .slider-arrow.next {
    right: 0;
  }

  .slider-arrow img {
    width: 16px;
    height: 16px;
  }

  .needs-content {
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .needs-title {
    font-size: var(--font-size-lg);
    margin-bottom: 0.25rem;
  }

  .needs-subtitle {
    font-size: var(--font-size-xs);
    line-height: 1.6;
  }

  .need-item h3 {
    font-size: var(--font-size-sm);
  }

  .need-item p {
    font-size: var(--font-size-xs);
    line-height: 1.6;
  }

  .learn-more-link {
    font-size: var(--font-size-xs);
  }

  .value-stats {
    padding: 1.25rem;
  }

  .stat-item .stat-number {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
  }

  .stat-item .stat-label {
    font-size: var(--font-size-xs);
    line-height: 1.5;
  }

  .features-grid,
  .stats-grid {
    gap: 1.25rem;
    margin-top: 1.5rem;
    grid-template-columns: 1fr;
  }

  .feature-card,
  .stat-box {
    padding: 1.5rem 1.25rem;
  }

  .feature-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
  }

  .feature-icon img {
    width: 32px;
    height: 32px;
  }

  .feature-card h3,
  .stat-box .stat-number {
    font-size: var(--font-size-lg);
  }

  .feature-card p,
  .stat-box .stat-desc {
    font-size: var(--font-size-sm);
  }

  .stat-box .stat-number {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .cta-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }

  .cta-subtitle {
    font-size: var(--font-size-sm);
    margin-bottom: 1.5rem;
  }

  .cta-buttons .btn {
    padding: 0.875rem 1.5rem;
  }

  .cta-section .btn-primary {
    background: white;
    border: 2px solid white;
    color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }

  .cta-section .btn-secondary {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.7);
    color: white;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .link-group h4 {
    font-size: var(--font-size-xs);
    margin-bottom: 0.5rem;
  }

  .link-group a,
  .link-group li {
    font-size: var(--font-size-xs);
  }
}

/* 超小屏幕优化 (360px) */
@media (max-width: 360px) {
  .container {
    padding: 0 1rem;
  }

  .method-card {
    width: 280px;
    padding: 1.25rem 1rem;
  }

  .methods-slider-container {
    padding: 0 1rem;
  }

  .slider-arrow {
    width: 36px;
    height: 36px;
  }

  .slider-arrow.prev {
    left: 2px;
  }

  .slider-arrow.next {
    right: 2px;
  }

  .slider-arrow img {
    width: 14px;
    height: 14px;
  }

  .feature-card,
  .stat-box {
    padding: 1.25rem 1rem;
  }

  .value-stats {
    padding: 1rem;
  }

  .nav-actions {
    display: none;
  }

  .trust-badges {
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .trust-badge {
    font-size: 0.6875rem;
  }

  .check-icon {
    font-size: 0.875rem;
  }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 2rem 0;
  }

  .hero-title {
    font-size: var(--font-size-2xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-sm);
    margin-bottom: 1rem;
  }

  .section-title {
    font-size: var(--font-size-xl);
  }

  .detail-heading {
    font-size: var(--font-size-lg);
  }

  .methods-section,
  .needs-section,
  .features-section,
  .service-section,
  .cta-section {
    padding: 2rem 0;
  }

  .method-card {
    padding: 1.5rem;
  }

  .nav-links {
    padding: 3rem 2rem 1rem;
  }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-icon,
  .slider-arrow,
  .feature-icon {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* ========== 起名方法页面响应式设计 ========== */

/* 平板横屏与小屏桌面 (1024px) */
@media (max-width: 1024px) {
  .comparison-table {
    font-size: var(--font-size-sm);
  }

  .table-cell {
    padding: 1.25rem 1rem;
  }

  .detail-heading {
    font-size: var(--font-size-xl);
  }

  .character-examples {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 平板竖屏与移动端横屏 (768px) */
@media (max-width: 768px) {
  .methods-overview-section {
    padding: 3rem 0;
  }

  .comparison-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 1.5rem;
    background: var(--background);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
  }

  .comparison-table::-webkit-scrollbar {
    height: 8px;
  }

  .comparison-table::-webkit-scrollbar-track {
    background: var(--background-alt);
    border-radius: 4px;
  }

  .comparison-table::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
  }

  .table-header,
  .table-row {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    min-width: 800px;
  }

  .table-header {
    display: grid;
  }

  .table-cell {
    padding: 1rem 0.75rem;
    font-size: var(--font-size-xs);
    line-height: 1.6;
  }

  .method-detail-section {
    padding: 2.5rem 0;
  }

  .detail-content {
    margin-top: 1.5rem;
  }

  .detail-heading {
    font-size: var(--font-size-lg);
    padding-left: 1.25rem;
    margin-bottom: 1rem;
  }

  .two-column-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .column-left,
  .column-right {
    gap: 1.5rem;
  }

  /* 覆盖诗经、五行和论语区域的特殊样式，在移动端恢复为上下布局 */
  .shijing-layout .column-right,
  .wuxing-layout .column-left,
  .lunyu-layout .column-right,
  .lunyu-layout .column-left {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    height: auto !important;
  }

  .detail-block {
    margin-bottom: 1.25rem;
  }

  .step-item {
    padding: 1rem;
    gap: 0.875rem;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: var(--font-size-sm);
  }

  .step-title {
    font-size: var(--font-size-sm);
  }

  .step-desc {
    font-size: var(--font-size-xs);
  }

  .risk-item,
  .mistake-item {
    padding: 0.875rem;
    gap: 0.875rem;
  }

  .risk-title,
  .mistake-title {
    font-size: var(--font-size-xs);
  }

  .risk-desc,
  .mistake-desc {
    font-size: 0.75rem;
  }

  .character-examples {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .char-group {
    padding: 1rem;
  }

  .char-label {
    font-size: var(--font-size-md);
  }

  .char-item {
    padding: 0.375rem 0.75rem;
    font-size: var(--font-size-sm);
  }

  .wuxing-layout .character-examples {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .practice-model {
    padding: 1.5rem;
  }

  .model-step {
    margin-bottom: 1.25rem;
  }

  .model-step-title {
    font-size: var(--font-size-lg);
  }

  .model-list li {
    font-size: var(--font-size-sm);
    padding: 0.5rem 0;
  }

  .cta-block {
    padding: 1.5rem;
    margin-top: 1.5rem;
  }

  .cta-title {
    font-size: var(--font-size-xl);
  }

  .cta-desc {
    font-size: var(--font-size-sm);
  }

  /* 融合实践模型样式调整 */
  .practice-step-item {
    padding: 1.5rem;
  }

  .step-title {
    font-size: var(--font-size-lg);
  }

  .step-list li {
    font-size: var(--font-size-sm);
  }

  .practice-cta {
    margin-top: 2rem;
  }
}

/* 手机屏幕 (480px) */
@media (max-width: 480px) {
  .methods-overview-section {
    padding: 2.5rem 0;
  }

  .comparison-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 1.5rem;
    background: var(--background);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
  }

  .comparison-table::-webkit-scrollbar {
    height: 6px;
  }

  .comparison-table::-webkit-scrollbar-track {
    background: var(--background-alt);
    border-radius: 3px;
  }

  .comparison-table::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
  }

  .table-header,
  .table-row {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    min-width: 700px;
  }

  .table-cell {
    padding: 0.875rem 0.5rem;
    font-size: 0.6875rem;
    line-height: 1.5;
  }

  .method-detail-section {
    padding: 2rem 0;
  }

  .detail-heading {
    font-size: var(--font-size-md);
    padding-left: 1rem;
    margin-bottom: 0.875rem;
  }

  .detail-text {
    font-size: var(--font-size-sm);
  }

  .two-column-layout {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .column-left,
  .column-right {
    gap: 0.875rem;
  }

  .detail-block {
    margin-bottom: 1rem;
  }

  .step-item {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.875rem;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: var(--font-size-xs);
  }

  .step-title {
    font-size: var(--font-size-xs);
  }

  .step-desc {
    font-size: 0.75rem;
  }

  .risk-item,
  .mistake-item {
    padding: 0.75rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .risk-icon,
  .mistake-icon {
    font-size: 1.125rem;
  }

  .risk-title,
  .mistake-title {
    font-size: 0.75rem;
  }

  .risk-desc,
  .mistake-desc {
    font-size: 0.6875rem;
  }

  .virtue-tags {
    gap: 0.5rem;
  }

  .virtue-tag {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
  }

  .char-group {
    padding: 0.875rem;
  }

  .char-label {
    font-size: var(--font-size-sm);
    margin-bottom: 0.5rem;
  }

  .char-item {
    padding: 0.25rem 0.625rem;
    font-size: var(--font-size-xs);
  }

  .wuxing-layout .character-examples {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .practice-model {
    padding: 1rem;
  }

  .model-step {
    margin-bottom: 1rem;
  }

  .model-step-title {
    font-size: var(--font-size-md);
    margin-bottom: 0.5rem;
  }

  .model-list li {
    font-size: var(--font-size-xs);
    padding: 0.375rem 0;
  }

  .cta-block {
    padding: 1.25rem;
    margin-top: 1.25rem;
  }

  .cta-title {
    font-size: var(--font-size-lg);
    margin-bottom: 0.75rem;
  }

  .cta-desc {
    font-size: var(--font-size-xs);
    margin-bottom: 1rem;
    line-height: 1.6;
  }

  .poetry-symbol,
  .calligraphy-symbol {
    font-size: var(--font-size-sm);
    padding: 0.5rem 1.25rem;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
    letter-spacing: 0.5rem;
  }

  .wuxing-icon {
    padding: 1.5rem;
  }

  .wuxing-icon img {
    width: 70px;
    height: 70px;
  }

  .poetry-icon,
  .calligraphy-element {
    padding: 1.5rem;
    margin-top: 1rem;
  }

  /* 融合实践模型样式调整 */
  .practice-step-item {
    padding: 1.25rem;
  }

  .step-title {
    font-size: var(--font-size-md);
    margin-bottom: 0.75rem;
  }

  .step-list li {
    font-size: var(--font-size-sm);
    padding: 0.5rem 0;
  }

  .practice-cta {
    margin-top: 1.5rem;
  }

  .btn-large {
    padding: 0.875rem 2rem;
    font-size: var(--font-size-md);
    width: 100%;
    max-width: 300px;
  }
}

/* 减少动画（用户偏好） */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========== 起名方法页面专用样式 ========== */

/* 三大方法总览对比 */
.methods-overview-section {
  padding: 4rem 0;
  background-color: var(--background);
}

.comparison-table {
  margin-top: 2rem;
  background: var(--background);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.table-header,
.table-row {
  display: grid;
  grid-template-columns: 1.5fr 2fr 3fr 2fr 2fr;
  gap: 0;
}

.table-header {
  background: var(--primary-gradient);
  color: white;
}

.header-cell {
  font-weight: 700;
  font-size: var(--font-size-md);
}

.table-cell {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

.table-header .table-cell {
  border-bottom: none;
}

.table-row:last-child .table-cell {
  border-bottom: none;
}

.method-name {
  font-weight: 700;
  color: var(--text-dark);
}

.method-icon-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary-light);
  border-radius: 6px;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.method-icon-small img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(43%) sepia(98%) saturate(2345%) hue-rotate(228deg) brightness(98%) contrast(93%);
}

/* 方法详解区域 */
.method-detail-section {
  padding: 3rem 0;
  background-color: var(--background);
}

.method-detail-section.alt-bg {
  background-color: var(--background-alt);
}

.detail-content {
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
/* 
.detail-block {
  margin-bottom: 1.5rem;
} */

.detail-block:last-child {
  margin-bottom: 0;
}

.detail-block.full-width {
  margin-top: 2rem;
}

.detail-heading {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--spacing-xs);
  position: relative;
  padding-left: 1.5rem;
}

.detail-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: var(--primary-color);
  border-radius: 2px;
}

.detail-text {
  font-size: var(--font-size-md);
  color: var(--text-medium);
  line-height: 1.9;
  /* margin-bottom: var(--spacing-sm); */
}

/* 两列布局 */
.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.column-left,
.column-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* 诗经起名详解特殊布局 */
.shijing-layout .section-title::after {
  display: none;
}

.shijing-layout .detail-heading::before {
  display: none;
}

.shijing-layout .column-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.risk-box-centered {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  width: 100%;
}

.shijing-layout .step-item {
  background: transparent;
  border: none;
  padding: 0.5rem 0;
  align-items: flex-start;
}

.shijing-layout .steps-list {
  gap: 0.5rem;
}

.shijing-layout .step-number {
  background: var(--primary-gradient);
  color: white;
  border: none;
}

.shijing-layout .risk-item,
.shijing-layout .mistake-item {
  background: transparent;
  border: none;
  border-left: none;
  padding: 0.5rem 0;
  align-items: flex-start;
}

.shijing-layout .risk-icon,
.shijing-layout .mistake-icon {
  display: none;
}

.shijing-layout .risk-list {
  gap: 0.5rem;
}

/* 五行起名详解特殊布局 */
.wuxing-layout .section-title::after {
  display: none;
}

.wuxing-layout .detail-heading::before {
  display: none;
}

.wuxing-layout .column-left {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.wuxing-layout .step-item {
  background: transparent;
  border: none;
  padding: 0.5rem 0;
  align-items: flex-start;
}

.wuxing-layout .steps-list {
  gap: 0.5rem;
}

.wuxing-layout .step-number {
  background: var(--primary-gradient);
  color: white;
  border: none;
}

.wuxing-layout .wuxing-icon {
  margin: 1rem 0;
  padding: 1.5rem;
  background: var(--background-alt);
  border-radius: 12px;
  text-align: center;
}

.wuxing-layout .wuxing-icon img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(43%) sepia(98%) saturate(2345%) hue-rotate(228deg) brightness(98%) contrast(93%);
}

.wuxing-layout .character-examples {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.wuxing-layout .char-group {
  margin-bottom: 0;
  padding: 0.75rem;
  background: transparent;
  border: none;
}

.wuxing-layout .char-label {
  font-size: var(--font-size-sm);
  margin-bottom: 0.5rem;
}

.wuxing-layout .char-item {
  font-size: var(--font-size-xs);
  padding: 0.25rem 0.5rem;
}

/* 论语起名详解特殊布局 */
.lunyu-layout .section-title::after {
  display: none;
}

.lunyu-layout .detail-heading::before {
  display: none;
}

.lunyu-layout .column-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lunyu-layout .step-item {
  background: transparent;
  border: none;
  padding: 0.5rem 0;
  align-items: flex-start;
}

.lunyu-layout .steps-list {
  gap: 0.5rem;
}

.lunyu-layout .step-number {
  background: var(--primary-gradient);
  color: white;
  border: none;
}

.lunyu-layout .mistake-item {
  background: transparent;
  border: none;
  border-left: none;
  padding: 0.5rem 0;
  align-items: flex-start;
}

.lunyu-layout .mistake-icon {
  display: none;
}

.lunyu-layout .mistake-list {
  gap: 0.5rem;
}

/* 步骤列表 */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--background);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.step-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-color);
  padding: 10px;
}

.step-number {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background: var(--primary-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-sm);
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: var(--font-size-sm);
  color: var(--text-medium);
  line-height: 1.7;
}

/* 诗词/图标元素 */
.poetry-icon,
.wuxing-icon,
.calligraphy-element,
.lunyu-icon {
  margin-top: var(--spacing-md);
  padding: 2rem;
  background: var(--background-alt);
  border-radius: 12px;
  text-align: center;
}

.poetry-symbol,
.calligraphy-symbol {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--background);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1rem;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.wuxing-icon img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(43%) sepia(98%) saturate(2345%) hue-rotate(228deg) brightness(98%) contrast(93%);
}

/* 风险与纠偏列表 */
.risk-list,
.mistake-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.risk-item,
.mistake-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--background);
  border-radius: 12px;
  border-left: 4px solid #F59E0B;
  transition: all 0.3s ease;
}

.risk-item:hover,
.mistake-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-sm);
  padding: 10px;
}

.mistake-item {
  border-left-color: #EF4444;
}

.risk-icon,
.mistake-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.risk-content,
.mistake-content {
  flex: 1;
}

.risk-title,
.mistake-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.risk-desc,
.mistake-desc {
  font-size: var(--font-size-xs);
  color: var(--text-medium);
  line-height: 1.7;
}

/* 常见用字示例 */
.character-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.char-group {
  background: var(--background);
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.char-label {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.char-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.char-item {
  padding: 0.5rem 1rem;
  background: var(--background-alt);
  border-radius: 8px;
  font-size: var(--font-size-md);
  color: var(--text-dark);
  font-weight: 600;
  transition: all 0.3s ease;
}

.char-item:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
}

/* 德性关键词标签 */
.virtue-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.virtue-tag {
  padding: 0.22rem 2.5rem;
  background: var(--background);
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.virtue-tag:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* 实践模型 */
.practice-model {
  background: var(--background);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.model-step {
  margin-bottom: 1.5rem;
}

.model-step:last-child {
  margin-bottom: 0;
}

.model-step-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.model-list {
  list-style: none;
  padding-left: 1.5rem;
}

.model-list li {
  padding: 0.75rem 0;
  font-size: var(--font-size-md);
  color: var(--text-medium);
  position: relative;
  line-height: 1.7;
}

.model-list li::before {
  content: '✓';
  position: absolute;
  left: -1.5rem;
  color: var(--primary-color);
  font-weight: 700;
}

.model-arrow {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-color);
  margin: var(--spacing-md) 0;
}

/* 融合实践模型默认横向布局 */
.practice-steps-horizontal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.practice-step-item {
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.practice-step-item.step-1 {
  background: rgb(250 250 250);
}

.practice-step-item.step-2 {
  background: rgb(238 242 255);
}

.practice-step-item.step-3 {
  background: rgb(23 23 23);
  color: white;
}

.practice-step-item.step-3 .step-title,
.practice-step-item.step-3 .step-list li {
  color: white;
}

.step-title {
  /* font-size: var(--font-size-xl); */
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.step-list {
  list-style: none;
  padding: 0;
}

.step-list li {
  padding: 0.625rem 0;
  font-size: var(--font-size-md);
  color: var(--text-medium);
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.7;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.practice-step-item.step-1 .step-icon {
  filter: invert(47%) sepia(55%) saturate(1297%) hue-rotate(144deg) brightness(92%) contrast(93%);
}

.practice-step-item.step-2 .step-icon {
  filter: invert(43%) sepia(98%) saturate(2345%) hue-rotate(228deg) brightness(98%) contrast(93%);
}

.practice-step-item.step-3 .step-icon {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7500%) hue-rotate(0deg) brightness(103%) contrast(103%);
}

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

.practice-cta {
  text-align: center;
  margin-top: 3rem;
}

.btn-large {
  padding: 1rem 3rem;
  font-size: var(--font-size-lg);
}

/* CTA区块 */
.cta-block {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--primary-gradient);
  border-radius: 16px;
  color: white;
  text-align: center;
}

.cta-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-desc {
  font-size: var(--font-size-md);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.cta-block .btn-primary {
  background-color: white;
  color: var(--primary-color);
}

/* ========== 动画 ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* 选中文本颜色 */
::selection {
  background-color: var(--primary-color);
  color: white;
}

::-moz-selection {
  background-color: var(--primary-color);
  color: white;
}

/* 页脚二维码样式 */
.qrcode-container {
  margin-top: 0.5rem;
}

.qrcode-image {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  background: white;
  padding: 8px;
  display: block;
}