/* ============================================
   APSPRE - 图表样式扩展
   最终整合优化版
   ============================================ */

/* Hero 背景图 */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
    rgba(10, 10, 15, 0.9) 0%, 
    rgba(10, 10, 15, 0.7) 50%, 
    rgba(10, 10, 15, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  margin-bottom: 2rem;
}

/* 渐变文字 */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 统计数据网格 */
.stats-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 3rem;
}

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

.stat-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--bg-elevated), transparent);
}

@media (max-width: 640px) {
  .stats-grid {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .stat-divider {
    width: 60px;
    height: 1px;
  }
}

/* 作者信息 */
.hero-authors {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bg-elevated);
}

.hero-authors p {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.hero-authors .affiliation {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

/* 滚动指示器 */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  animation: bounce 2s infinite;
}

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scroll {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 18px; }
}

/* Tab 样式优化 */
.tab-icon {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.tab-text {
  font-size: 0.9375rem;
}

/* 机制卡片 */
.mechanism-card {
  background: var(--bg-tertiary);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid var(--bg-elevated);
}

.mechanism-header {
  margin-bottom: 2rem;
}

.mechanism-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1rem;
}

.mechanism-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.mechanism-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .mechanism-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.mechanism-description {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.molecule-list {
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 12px;
}

.molecule-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.clinical-note {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(0, 217, 163, 0.1);
  border-radius: 12px;
  border-left: 3px solid var(--accent-secondary);
}

.note-icon {
  font-size: 1.25rem;
}

.clinical-note p {
  color: var(--accent-secondary);
  font-size: 0.9375rem;
  margin: 0;
}

/* 图表容器 */
.mechanism-diagram {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 1rem;
}

.diagram-svg {
  width: 100%;
  height: auto;
  max-height: 300px;
}

/* 页脚优化 */
.footer-journal {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-doi {
  margin: 1.5rem 0;
}

.doi-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-tertiary);
  border-radius: 100px;
  color: var(--accent-primary);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.doi-link:hover {
  background: var(--bg-elevated);
  transform: translateY(-2px);
}

.footer-authors {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.author-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.author-card strong {
  color: var(--text-primary);
  font-size: 1rem;
}

.author-card a {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.footer-note {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 按钮图标 */
.btn svg {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.btn:hover svg {
  transform: translate(3px, -3px);
}

/* 动画优化 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 研究背景区块 */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

@media (max-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
}

.intro-card {
  background: var(--bg-tertiary);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--bg-elevated);
  transition: all 0.3s ease;
}

.intro-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
}

.intro-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1.5rem;
}

.intro-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.intro-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.intro-highlight {
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 217, 163, 0.1));
  border-radius: 20px;
  border-left: 4px solid var(--accent-primary);
}

.intro-highlight blockquote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
}

.intro-highlight cite {
  display: block;
  margin-top: 1rem;
  color: var(--text-tertiary);
  font-size: 0.875rem;
  font-style: normal;
}

/* 原文图表区块 */
.figures-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 3rem;
}

.figure-card {
  background: var(--bg-tertiary);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--bg-elevated);
  transition: all 0.3s ease;
}

.figure-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.figure-image {
  width: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.figure-image img {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
}

.figure-caption {
  padding: 2rem;
}

.figure-label {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--accent-primary);
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.figure-caption h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.figure-caption p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* 打印样式 */
@media print {
  .hero-bg,
  .scroll-indicator,
  .btn {
    display: none;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  body {
    background: white;
    color: black;
  }
}
