/* style.css - 基础样式与重置 (Base styles & reset) */
:root {
  /* 品牌配色参考 - 经典科技蓝 */
  --primary-color: #1e3a8a; /* 深蓝 */
  --secondary-color: #3b82f6; /* 亮蓝 */
  --gradient-bg: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  --bg-color: #ffffff;
  --bg-light: #f3f4f6;
  --text-main: #333333;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --card-bg: #ffffff;
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-md: 8px;
  --radius-lg: 12px;
  --nav-height: 64px;

  /* 按钮高亮颜色 */
  --color-accent: #10b981;
  --color-accent-hover: #059669;
  --color-blue: #2563eb;
  --color-blue-hover: #1d4ed8;
}

/* 重置与基础 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 干净白底内容区 */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--bg-color);
  min-height: calc(100vh - var(--nav-height));
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.02);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

/* 自适应表格 */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 2.5rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background-color: #f8f9fa; /* Matches the light grey card background in screenshot */
}

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-family: "PingFang SC", "Microsoft YaHei", "微软雅黑", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem; /* Noticeably smaller font size */
  color: #374151;
}

th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  background-color: transparent; /* Let the wrapper background show through */
}

tbody td:first-child {
  font-weight: 700;
  color: #111827; /* Deep black for the first column */
}

tr:last-child td {
  border-bottom: none; /* Remove last border to fit perfectly inside rounded wrapper */
}

th {
  background-color: #eef0f3; /* Slightly darker grey for the header */
  font-weight: 700;
  color: #1f2937;
  position: sticky;
  top: 0;
  z-index: 10;
}

tr:nth-child(even) {
  background-color: #f8fafc; /* 隔行微灰底色 */
}

tr:hover {
  background-color: #f1f5f9;
}

/* 原生 details / summary 折叠面板美化 */
details {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none; /* 去除默认箭头 */
  position: relative;
  background-color: #f9fafb;
  user-select: none;
  color: #1f2937;
  outline: none;
}

/* 兼容 Safari 去除箭头 */
summary::-webkit-details-marker {
  display: none;
}

/* 添加平滑动画指示符 */
summary::after {
  content: '';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

summary:hover::after {
  border-color: var(--color-blue);
}

details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

details > div {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  animation: fadeInDown 0.3s ease-out;
  color: #4b5563;
}

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