/* 健康真相页面样式 */
/* CSS变量定义 */
:root {
  --coffee-brown: #4e342e;
  --coffee-light: #d7ccc8;
  --coffee-dark: #3e2723;
  --accent-cream: #fff8e1;
  --text-color: #2e1d19;
  --hover-color: #8d6e63;
}
/* Hero 区域 */
.health-facts-hero {
  background: linear-gradient(135deg, #228B22 0%, #32CD32 50%, #98FB98 100%);
  background-size: 400% 400%;
  animation: gradientShift 8s ease-in-out infinite;
  color: white;
  text-align: center;
  padding: 120px 20px 80px;
  position: relative;
  overflow: hidden;
}

.health-facts-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="2" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="45" r="1.5" fill="%23ffffff" opacity="0.1"/><circle cx="45" cy="75" r="1" fill="%23ffffff" opacity="0.1"/></svg>') repeat;
  animation: float 20s linear infinite;
}

.health-facts-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  animation: slideInDown 1s ease-out;
}

.health-facts-hero p {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
  animation: slideInUp 1s ease-out 0.3s both;
}

/* 数据统计区域 */
.health-stats {
  padding: 80px 20px;
  background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.stats-container h2 {
  font-size: 2.5rem;
  color: #228B22;
  margin-bottom: 50px;
  position: relative;
}

.stats-container h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, #32CD32, #98FB98);
  border-radius: 2px;
}

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

/* 圆形进度条 */
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 0.8s ease-out;
}

.stat-item:nth-child(1) { animation-delay: 0.2s; }
.stat-item:nth-child(2) { animation-delay: 0.4s; }
.stat-item:nth-child(3) { animation-delay: 0.6s; }
.stat-item:nth-child(4) { animation-delay: 0.8s; }

.progress-circle {
  position: relative;
  width: 150px;
  height: 150px;
  margin-bottom: 20px;
}

.progress-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-circle .bg-circle {
  fill: none;
  stroke: #e9ecef;
  stroke-width: 8;
}

.progress-circle .progress-bar {
  fill: none;
  stroke: #32CD32;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  animation: progressAnimation 2s ease-out forwards;
}

.stat-item:nth-child(1) .progress-bar {
  animation-delay: 0.5s;
  stroke-dashoffset: 132; /* 70% of 440 */
}

.stat-item:nth-child(2) .progress-bar {
  animation-delay: 0.7s;
  stroke-dashoffset: 176; /* 60% of 440 */
}

.stat-item:nth-child(3) .progress-bar {
  animation-delay: 0.9s;
  stroke-dashoffset: 88; /* 80% of 440 */
}

.stat-item:nth-child(4) .progress-bar {
  animation-delay: 1.1s;
  stroke-dashoffset: 220; /* 50% of 440 */
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
  font-weight: 700;
  color: #228B22;
}

.stat-label {
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
  margin-bottom: 10px;
}

.stat-description {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  line-height: 1.5;
  max-width: 200px;
}

/* 科学事实区域 */
.scientific-facts {
  padding: 80px 20px;
  background: #f8f9fa;
}

.facts-container {
  max-width: 1000px;
  margin: 0 auto;
}

.facts-container h2 {
  font-size: 2.5rem;
  color: #228B22;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.facts-container h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, #32CD32, #98FB98);
  border-radius: 2px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.fact-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
}

.fact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #228B22, #32CD32);
}

.fact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.fact-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #228B22, #32CD32);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.fact-card h3 {
  font-size: 1.3rem;
  color: #228B22;
  margin-bottom: 15px;
  font-weight: 600;
}

.fact-card .fact-stat {
  font-size: 2rem;
  font-weight: 700;
  color: #32CD32;
  margin-bottom: 10px;
}

.fact-card p {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* 对比图表区域 */
.comparison-charts {
  padding: 80px 20px;
  background: white;
}

.charts-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.charts-container h2 {
  font-size: 2.5rem;
  color: #228B22;
  margin-bottom: 50px;
  position: relative;
}

.charts-container h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, #32CD32, #98FB98);
  border-radius: 2px;
}

.chart-item {
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease-out;
}

.chart-title {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 20px;
  font-weight: 600;
}

.chart-bar {
  background: #e9ecef;
  height: 30px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  margin-bottom: 10px;
}

.chart-fill {
  height: 100%;
  background: linear-gradient(135deg, #228B22, #32CD32);
  border-radius: 15px;
  position: relative;
  animation: fillAnimation 2s ease-out forwards;
  width: 0;
}

.chart-item:nth-child(1) .chart-fill {
  animation-delay: 0.5s;
}

.chart-item:nth-child(2) .chart-fill {
  animation-delay: 0.7s;
}

.chart-item:nth-child(3) .chart-fill {
  animation-delay: 0.9s;
}

.chart-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #666;
}

/* 动画定义 */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes progressAnimation {
  from {
    stroke-dashoffset: 440;
  }
  to {
    stroke-dashoffset: var(--target-offset, 0);
  }
}

@keyframes fillAnimation {
  from {
    width: 0;
  }
  to {
    width: var(--target-width, 100%);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .health-facts-hero h1 {
    font-size: 2.5rem;
  }
  
  .health-facts-hero p {
    font-size: 1.1rem;
  }
  
  .stats-container h2,
  .facts-container h2,
  .charts-container h2 {
    font-size: 2rem;
  }
  
  .stats-grid,
  .facts-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .progress-circle {
    width: 120px;
    height: 120px;
  }
  
  .progress-text {
    font-size: 1.5rem;
  }
  
  .fact-card {
    padding: 20px;
  }
  
  .fact-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}