/* ========================================
   首页左蓝右红分屏布局样式
   Homepage Split-Screen Layout Styles
   ======================================== */

:root {
  --blue-primary: #1890ff;
  --blue-dark: #096dd9;
  --blue-light: #e6f7ff;
  --red-primary: #ff4d4f;
  --red-dark: #cf1322;
  --red-light: #fff1f0;
  --text-dark: #262626;
  --text-secondary: #595959;
  --text-light: #8c8c8c;
  --bg-white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.page-home-split {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ========================================
   顶部导航
   ======================================== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo a {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition-fast);
}

.nav-logo a:hover {
  color: var(--blue-primary);
}

.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-item {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  transition: var(--transition-fast);
}

.nav-item:hover,
.nav-item.active {
  color: var(--blue-primary);
  background: var(--blue-light);
}

.nav-item.nav-cta {
  background: var(--blue-primary);
  color: white;
}

.nav-item.nav-cta:hover {
  background: var(--blue-dark);
}

.nav-indicator {
  display: flex;
  gap: 10px;
}

.indicator-blue,
.indicator-red {
  width: 30px;
  height: 4px;
  border-radius: 2px;
  transition: var(--transition-normal);
}

.indicator-blue {
  background: var(--blue-primary);
}

.indicator-red {
  background: var(--red-primary);
}

/* ========================================
   分屏容器 - 桌面端
   ======================================== */
@media (min-width: 1200px) {
  .split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "blue red";
    min-height: 100vh;
    margin-top: 70px;
    position: relative;
  }

  .blue-side {
    grid-area: blue;
    background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
    position: relative;
    transition: var(--transition-slow);
  }

  .red-side {
    grid-area: red;
    background: linear-gradient(135deg, #fff1f0 0%, #ffccc7 100%);
    position: relative;
    transition: var(--transition-slow);
  }

  /* 悬停效果 */
  .split-container:hover .blue-side {
    filter: brightness(0.85);
  }

  .split-container:hover .red-side {
    filter: brightness(0.85);
  }

  .blue-side:hover {
    filter: brightness(1.1) !important;
  }

  .red-side:hover {
    filter: brightness(1.1) !important;
  }

  .blue-side:hover ~ .center-divider {
    transform: translateX(-10px) rotate(-5deg);
  }

  .red-side:hover ~ .center-divider {
    transform: translateX(10px) rotate(5deg);
  }
}

/* ========================================
   分屏容器 - 平板端
   ======================================== */
@media (max-width: 1199px) and (min-width: 768px) {
  .split-container {
    display: flex;
    flex-direction: column;
    margin-top: 70px;
  }

  .blue-side,
  .red-side {
    min-height: 50vh;
    width: 100%;
  }

  .blue-side {
    background: linear-gradient(180deg, #e6f7ff 0%, #bae7ff 100%);
  }

  .red-side {
    background: linear-gradient(180deg, #fff1f0 0%, #ffccc7 100%);
  }

  .center-divider {
    transform: rotate(90deg);
    left: 50%;
    top: 50%;
  }
}

/* ========================================
   分屏容器 - 手机端
   ======================================== */
@media (max-width: 767px) {
  .split-container {
    display: flex;
    flex-direction: column;
    margin-top: 70px;
  }

  .blue-side,
  .red-side {
    min-height: 100vh;
    width: 100%;
  }

  .blue-side {
    background: linear-gradient(180deg, #e6f7ff 0%, #bae7ff 100%);
  }

  .red-side {
    background: linear-gradient(180deg, #fff1f0 0%, #ffccc7 100%);
  }

  .center-divider {
    display: none;
  }
}

/* ========================================
   侧边内容区域
   ======================================== */
.side-content {
  padding: 60px 40px;
  max-width: 700px;
  margin: 0 auto;
}

/* Hero区域 */
.hero-area {
  margin-bottom: 50px;
  text-align: center;
}

.main-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
}

.blue-side .main-title {
  color: var(--blue-dark);
}

.red-side .main-title {
  color: var(--red-dark);
}

.sub-title {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: white;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-primary);
  box-shadow: var(--shadow-sm);
}

.warning-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--red-primary);
  color: white;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

/* 优势卡片 */
.advantages-area,
.pain-points-area,
.cost-analysis-area,
.methods-area,
.process-area,
.social-proof-area {
  margin-bottom: 50px;
}

.section-heading {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
}

.blue-side .section-heading {
  color: var(--blue-dark);
}

.red-side .section-heading {
  color: var(--red-dark);
}

.advantage-cards,
.pain-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.advantage-card,
.pain-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.advantage-card:hover,
.pain-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card-icon,
.pain-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.advantage-card h4,
.pain-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.advantage-card p,
.pain-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pain-card blockquote {
  margin-top: 12px;
  padding: 10px 15px;
  background: var(--red-light);
  border-left: 3px solid var(--red-primary);
  font-size: 13px;
  font-style: italic;
  color: var(--text-secondary);
}

/* 社会证明 */
.proof-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-box {
  background: white;
  padding: 25px 15px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--blue-primary);
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
}

/* 成本分析 */
.cost-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cost-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.cost-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.cost-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.cost-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--red-dark);
}

.cost-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 流程步骤 */
.process-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.step-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  flex: 1;
  max-width: 200px;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--blue-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 12px;
}

.step-content h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
}

.step-content p {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

.step-arrow {
  font-size: 24px;
  color: var(--blue-primary);
  font-weight: 700;
}

/* 传统方法标签 */
.method-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.method-tag {
  background: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition-normal);
}

.method-tag:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.tag-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.tag-issue {
  font-size: 13px;
  color: var(--red-primary);
  font-weight: 600;
}

/* CTA按钮区域 */
.cta-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 50px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-normal);
  min-width: 280px;
}

.btn-large {
  padding: 18px 40px;
  font-size: 18px;
}

.btn-primary {
  background: var(--blue-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-danger {
  background: var(--red-primary);
  color: white;
}

.btn-danger:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--text-dark);
  border: 2px solid var(--text-secondary);
}

.btn-secondary:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}

.btn-text {
  background: transparent;
  color: var(--text-secondary);
  min-width: auto;
  padding: 10px 20px;
}

.btn-text:hover {
  color: var(--blue-primary);
}

/* ========================================
   中央分隔线
   ======================================== */
.center-divider {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--blue-primary), var(--red-primary));
  transform: translateX(-50%);
  z-index: 100;
  transition: var(--transition-normal);
}

.divider-badge {
  position: sticky;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition-normal);
}

.divider-badge:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.vs-text {
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue-primary), var(--red-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider-tooltip {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-dark);
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.divider-badge:hover .divider-tooltip {
  opacity: 1;
}

.tooltip-arrow {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-dark);
}

/* ========================================
   底部过渡栏
   ======================================== */
.transition-bar {
  background: var(--text-dark);
  color: white;
  padding: 60px 30px;
}

.transition-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.uncertain-section h3,
.articles-section h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.uncertain-section p {
  font-size: 16px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  text-decoration: none;
  color: white;
  transition: var(--transition-fast);
}

.article-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.article-title {
  font-size: 14px;
  flex: 1;
}

.article-views {
  font-size: 12px;
  opacity: 0.7;
  margin-left: 15px;
}

/* ========================================
   浮动咨询按钮
   ======================================== */
.floating-consult {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.consult-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  background: var(--blue-primary);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
}

.consult-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(24, 144, 255, 0.4);
}

.consult-text {
  font-size: 16px;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
  .side-content {
    padding: 40px 30px;
  }

  .main-title {
    font-size: 36px;
  }

  .advantage-cards,
  .pain-cards {
    grid-template-columns: 1fr;
  }

  .proof-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .cost-cards {
    grid-template-columns: 1fr;
  }

  .process-steps {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .transition-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 20px;
    height: 60px;
  }

  .nav-logo a {
    font-size: 20px;
  }

  .nav-menu {
    gap: 15px;
  }

  .nav-item {
    font-size: 14px;
    padding: 6px 12px;
  }

  .side-content {
    padding: 30px 20px;
  }

  .main-title {
    font-size: 28px;
  }

  .sub-title {
    font-size: 16px;
  }

  .section-heading {
    font-size: 22px;
  }

  .btn {
    min-width: 100%;
  }

  .floating-consult {
    bottom: 20px;
    right: 20px;
  }

  .consult-text {
    display: none;
  }

  .consult-btn {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .trust-badges {
    flex-direction: column;
    align-items: center;
  }

  .proof-stats {
    grid-template-columns: 1fr;
  }

  .method-tags {
    flex-direction: column;
  }
}
