/* 
 * 微波合成COFs研究报告 - 主样式表
 * 作者: Formatting Agent
 * 日期: 2023-05-22
 */

/* 基础样式 */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #f59e0b;
  --light-bg: #f8fafc;
  --dark-bg: #0f172a;
  --text-color: #334155;
  --light-text: #f1f5f9;
  --border-color: #e2e8f0;
  --card-bg: #ffffff;
  --section-spacing: 5rem;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif SC', serif;
  font-weight: 600;
  line-height: 1.3;
}

.section-title {
  position: relative;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 3px;
  background-color: var(--primary-color);
}

/* 导航栏样式 */
.navbar {
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: var(--card-bg) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

/* Hero 区域样式 */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.6));
}

.hero-content {
  z-index: 10;
}

/* 内容区域样式 */
.content-section {
  padding: var(--section-spacing) 0;
}

.content-section:nth-child(even) {
  background-color: var(--card-bg);
}

/* 卡片样式 */
.card {
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 表格样式 */
.table-container {
  overflow-x: auto;
  margin-bottom: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
}

.custom-table th {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem;
  text-align: left;
}

.custom-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.custom-table tr:nth-child(even) {
  background-color: rgba(241, 245, 249, 0.5);
}

/* 图标样式 */
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* 引用样式 */
blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  font-style: italic;
  margin: 2rem 0;
}

/* 按钮样式 */
.custom-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
  :root {
    --section-spacing: 3rem;
  }
  
  .section-title {
    margin-bottom: 1.5rem;
  }
  
  .feature-icon {
    width: 3rem;
    height: 3rem;
  }
}

/* 动画效果 */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

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

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

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

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

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