/* 科技感主题增强 */
:root {
  --bg: #0a0b10;
  --card: rgba(22, 25, 37, 0.8);
  --card-glow: rgba(78, 165, 255, 0.1);
  --ink: #e6e7ef;
  --muted: #9aa0b4;
  --accent: #4ea5ff;
  --accent-glow: #4ea5ff;
  --warn: #ff8a4e;
  --ok: #5ad68f;
  
  /* 科技感渐变色 */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-tech: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-cyber: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* 动态网格背景 */
.tech-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(78, 165, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 165, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -2;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* 添加科技感背景 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(78, 165, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 138, 78, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(90, 214, 143, 0.05) 0%, transparent 50%);
  z-index: -1;
}

/* 顶部导航栏增强 */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(10, 11, 16, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(78, 165, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar .brand {
  font-size: 1.4em;
  font-weight: 800;
  background: var(--gradient-tech);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.topbar nav {
  display: flex;
  gap: 24px;
}

.topbar a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
}

.topbar a:hover {
  color: var(--ink);
}

.topbar a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-tech);
  transition: width 0.3s ease;
}

.topbar a:hover::after {
  width: 100%;
}

/* 主内容区域 */
main {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* 科技感卡片设计 */
.card {
  background: var(--card);
  border: 1px solid rgba(78, 165, 255, 0.2);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(15px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(78, 165, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(78, 165, 255, 0.1), transparent);
  transition: left 0.8s ease;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 20px 50px rgba(78, 165, 255, 0.25),
    0 0 0 1px rgba(78, 165, 255, 0.3),
    0 0 60px rgba(78, 165, 255, 0.1);
}

.card h2 {
  margin: 0 0 20px 0;
  font-size: 1.8em;
  font-weight: 700;
  background: var(--gradient-tech);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 表单样式 */
.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

textarea, input {
  background: rgba(15, 17, 26, 0.8);
  color: var(--ink);
  border: 1px solid rgba(78, 165, 255, 0.3);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

textarea:focus, input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(78, 165, 255, 0.1);
  background: rgba(15, 17, 26, 0.9);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* 科技感按钮 */
.primary-btn {
  background: var(--gradient-tech);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.primary-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.primary-btn:hover::before {
  left: 100%;
}

.primary-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 12px 30px rgba(79, 172, 254, 0.5),
    0 0 30px rgba(0, 242, 254, 0.4),
    0 0 60px rgba(79, 172, 254, 0.2);
}

.secondary-btn {
  background: rgba(22, 25, 37, 0.6);
  color: var(--muted);
  border: 2px solid rgba(78, 165, 255, 0.4);
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.secondary-btn:hover {
  background: rgba(78, 165, 255, 0.1);
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-2px);
}

/* 回答区域 */
.answer {
  margin-top: 24px;
  border-top: 1px solid rgba(78, 165, 255, 0.2);
  padding-top: 20px;
}

.hide {
  display: none;
}

.philosophy-header {
  background: var(--gradient-tech);
  color: white;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.philosophy-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.framework-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  backdrop-filter: blur(10px);
}

.framework-badge.stoicism { background: rgba(52, 152, 219, 0.8); }
.framework-badge.existentialism { background: rgba(231, 76, 60, 0.8); }
.framework-badge.taoism { background: rgba(39, 174, 96, 0.8); }
.framework-badge.buddhism { background: rgba(155, 89, 182, 0.8); }
.framework-badge.ethical_guardian { background: var(--gradient-cyber); }

.philosopher-ref {
  font-style: italic;
  opacity: 0.9;
  font-size: 1.1em;
}

.wisdom-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  font-style: italic;
  border-left: 4px solid var(--accent);
  padding-left: 20px;
  margin: 24px 0;
  background: rgba(15, 17, 26, 0.4);
  padding: 20px;
  border-radius: 0 12px 12px 0;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.analysis-column h4 {
  color: var(--muted);
  margin-bottom: 16px;
  border-bottom: 2px solid rgba(78, 165, 255, 0.3);
  padding-bottom: 8px;
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.metrics div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(78, 165, 255, 0.1);
}

.metrics span {
  color: var(--ink);
  font-weight: 600;
  background: var(--gradient-tech);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 统计卡片网格 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: rgba(22, 25, 37, 0.6);
  border: 1px solid rgba(78, 165, 255, 0.3);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-tech);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stat-card:hover::after {
  transform: scaleX(1);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(78, 165, 255, 0.2);
}

.stat-value {
  font-size: 2.8em;
  font-weight: 800;
  background: var(--gradient-tech);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* 表格容器 */
.table-container {
  overflow-x: auto;
  margin-bottom: 20px;
  border-radius: 12px;
  background: rgba(22, 25, 37, 0.6);
  backdrop-filter: blur(10px);
}

/* 科技感表格 */
.table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
}

.table th {
  background: var(--gradient-tech);
  color: white;
  padding: 18px 16px;
  font-weight: 700;
  text-align: left;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table td {
  padding: 16px;
  border-bottom: 1px solid rgba(78, 165, 255, 0.1);
  transition: all 0.3s ease;
  font-size: 14px;
}

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

.table tr:hover td {
  background: rgba(78, 165, 255, 0.08);
  transform: scale(1.01);
}

/* 哲学框架网格 */
.frameworks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.framework-card {
  background: rgba(22, 25, 37, 0.8);
  border: 1px solid;
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(15px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.framework-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.03) 100%);
}

.framework-card.stoicism { border-color: #3498db; }
.framework-card.existentialism { border-color: #e74c3c; }
.framework-card.taoism { border-color: #27ae60; }
.framework-card.buddhism { border-color: #9b59b6; }

.framework-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(78, 165, 255, 0.3);
}

.framework-card h3 {
  margin-bottom: 16px;
  font-size: 1.4em;
  font-weight: 700;
}

.framework-card p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.philosophers {
  font-size: 0.9em;
  color: var(--muted);
  font-style: italic;
  border-top: 1px solid rgba(78, 165, 255, 0.2);
  padding-top: 16px;
}

/* 文档样式 */
details {
  background: rgba(22, 25, 37, 0.6);
  border: 1px solid rgba(78, 165, 255, 0.2);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

details[open] {
  background: rgba(22, 25, 37, 0.8);
}

summary {
  padding: 20px;
  font-weight: 600;
  cursor: pointer;
  background: var(--gradient-tech);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.1em;
  transition: all 0.3s ease;
}

summary:hover {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

details p {
  padding: 0 20px 20px 20px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* 联系链接 */
.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-links a:hover {
  color: var(--ink);
  transform: translateX(5px);
}

/* 页脚 */
.footer {
  color: var(--muted);
  text-align: center;
  padding: 32px 20px;
  margin-top: 40px;
  border-top: 1px solid rgba(78, 165, 255, 0.2);
  font-style: italic;
}

/* 哈希值样式 */
.hash {
  font-family: 'Courier New', 'Monaco', monospace;
  font-size: 0.8em;
  color: var(--muted);
  word-break: break-all;
  background: rgba(15, 17, 26, 0.6);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(78, 165, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    gap: 16px;
    padding: 16px 20px;
  }
  
  .topbar nav {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  main {
    margin: 20px auto;
    padding: 0 16px;
    gap: 20px;
  }
  
  .card {
    padding: 20px;
    border-radius: 16px;
  }
  
  .analysis-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .frameworks-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .framework-card:hover {
    transform: none;
  }
  
  .table-container {
    border-radius: 8px;
  }
  
  .table th,
  .table td {
    padding: 12px 8px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-value {
    font-size: 2.2em;
  }
  
  .primary-btn {
    padding: 14px 24px;
    font-size: 14px;
  }
}
/* 文档布局样式 */
.docs-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 32px;
  margin-top: 20px;
}

.docs-nav {
  background: rgba(22, 25, 37, 0.6);
  border: 1px solid rgba(78, 165, 255, 0.2);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(10px);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.docs-nav h3 {
  color: var(--muted);
  font-size: 1.1em;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.docs-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.docs-nav li {
  margin-bottom: 8px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  display: block;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(78, 165, 255, 0.1);
  transform: translateX(5px);
}

.docs-content {
  min-height: 500px;
}

.content-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(78, 165, 255, 0.1);
}

.content-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.content-section h3 {
  color: var(--ink);
  font-size: 1.4em;
  margin-bottom: 16px;
  background: var(--gradient-tech);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-section p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05em;
}

/* 区块链表格样式 */
.blockchain-table {
  margin-top: 16px;
}

.blockchain-table th {
  background: var(--gradient-primary);
}

/* 下载网格样式 */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.download-card {
  background: rgba(22, 25, 37, 0.6);
  border: 1px solid rgba(78, 165, 255, 0.3);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  backdrop-filter: blur(10px);
}

.download-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(78, 165, 255, 0.2);
  text-decoration: none;
  color: inherit;
}

.download-icon {
  font-size: 2em;
  flex-shrink: 0;
}

.download-info h4 {
  color: var(--ink);
  margin-bottom: 8px;
  font-size: 1.1em;
}

.download-info p {
  color: var(--muted);
  font-size: 0.9em;
  line-height: 1.5;
  margin: 0;
}

/* 视觉层次增强 */
.card h2 {
  font-size: 2em;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(78, 165, 255, 0.3);
}

.content-section h3 {
  font-size: 1.5em;
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
}

/* 响应式设计 */
@media (max-width: 968px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .docs-nav {
    position: static;
    order: 2;
  }
  
  .download-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .card h2 {
    font-size: 1.6em;
  }
  
  .content-section h3 {
    font-size: 1.3em;
  }
  
  .download-card {
    padding: 20px;
  }
}