/* aivlog.tech — 极简暗色科技风 */
:root {
  --bg: #0b0f17;
  --bg-soft: #101623;
  --text: #e8eef7;
  --muted: #9aa7ba;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #22d3ee;
  --accent2: #a78bfa;
  --grad: linear-gradient(120deg, #22d3ee, #a78bfa);
  --card: rgba(255, 255, 255, 0.03);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* 背景光晕 + 网格 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(640px 320px at 18% -5%, rgba(34, 211, 238, 0.13), transparent 70%),
    radial-gradient(720px 360px at 88% 8%, rgba(167, 139, 250, 0.11), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }

/* ===== 顶栏 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 15, 23, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2px;
}
.logo .logo-dot {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b0f17;
  font-size: 14px;
  font-weight: 800;
}
.logo .tld { color: var(--muted); font-weight: 500; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14.5px;
  transition: all 0.18s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-links a.active { color: var(--text); background: rgba(255, 255, 255, 0.08); }

/* ===== Hero ===== */
.hero { padding: 96px 0 72px; text-align: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: var(--card);
  margin-bottom: 26px;
}
.hero-badge .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.hero h1 .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 17px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--line);
  transition: all 0.18s ease;
  cursor: pointer;
}
.btn-primary { background: var(--grad); color: #0b0f17; border: none; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(34, 211, 238, 0.28); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); transform: translateY(-2px); }

/* ===== 区块 ===== */
.section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-tag {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 600;
}
.section-head h2 { font-size: 30px; font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 8px; font-size: 15.5px; }

/* ===== 主题卡片 ===== */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}
.theme-card {
  position: relative;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: all 0.22s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.theme-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(34, 211, 238, 0.12);
  background: rgba(255, 255, 255, 0.05);
}
.theme-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.22);
  margin-bottom: 16px;
}
.theme-icon svg { width: 22px; height: 22px; stroke: var(--accent); }
.theme-card:nth-child(even) .theme-icon {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.22);
}
.theme-card:nth-child(even) .theme-icon svg { stroke: var(--accent2); }
.theme-card h3 { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.theme-card h3 .en { font-size: 11.5px; color: var(--muted); font-weight: 500; letter-spacing: 1.5px; }
.theme-card p { color: var(--muted); font-size: 14.5px; margin-top: 8px; flex: 1; }
.theme-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 16px; }
.tag {
  font-size: 12px;
  color: var(--muted);
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}
.theme-more { font-size: 14px; color: var(--accent); font-weight: 600; }
.theme-card:hover .theme-more { text-decoration: underline; text-underline-offset: 4px; }
.soon-badge {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 11px;
  color: var(--muted);
  border: 1px dashed var(--line);
  padding: 2px 9px;
  border-radius: 999px;
}

/* ===== 主打项目 ===== */
.feature {
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.07), rgba(167, 139, 250, 0.06));
  padding: 38px 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
}
.feature .f-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #0b0f17;
  background: var(--grad);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.feature h3 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.feature p { color: var(--muted); font-size: 15px; }
.feature .tags { margin: 16px 0 24px; }
.feature .stats { display: grid; gap: 14px; }
.stat {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 18px;
  background: rgba(11, 15, 23, 0.5);
}
.stat b { display: block; font-size: 22px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 13px; }

/* ===== 动态列表 ===== */
.post-list { display: grid; gap: 14px; }
.post-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  transition: all 0.18s ease;
}
.post-item:hover { background: rgba(255, 255, 255, 0.05); transform: translateX(4px); }
.post-item .p-title { font-weight: 600; font-size: 15.5px; }
.post-item .p-title .p-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 1px 8px;
  border-radius: 999px;
  margin-right: 10px;
  vertical-align: 2px;
}
.post-item time { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* ===== 关于 & 页脚 ===== */
.about-box {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15.5px;
}
.about-box strong { color: var(--text); }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 34px 0 44px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}
.site-footer .heart { color: var(--accent); }

/* ===== 主题子页 ===== */
.theme-page-hero { padding: 72px 0 40px; text-align: center; }
.theme-page-hero .theme-icon { margin: 0 auto 18px; width: 56px; height: 56px; }
.theme-page-hero .theme-icon svg { width: 26px; height: 26px; }
.theme-page-hero h1 { font-size: 34px; font-weight: 800; }
.theme-page-hero h1 .en { display: block; font-size: 13px; color: var(--muted); letter-spacing: 4px; font-weight: 500; margin-top: 6px; }
.theme-page-hero p { color: var(--muted); max-width: 560px; margin: 14px auto 0; }
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 26px;
  transition: color 0.15s;
}
.back-home:hover { color: var(--accent); }
.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 56px 24px;
  text-align: center;
  color: var(--muted);
  background: var(--card);
}
.empty-state .e-icon { font-size: 34px; margin-bottom: 12px; }
.empty-state b { color: var(--text); display: block; font-size: 16px; margin-bottom: 6px; }

/* ===== 背景故事 ===== */
.story-quote {
  text-align: center;
  font-size: clamp(21px, 3.4vw, 30px);
  font-weight: 800;
  line-height: 1.7;
  padding: 36px 26px;
  margin: 0 auto 46px;
  max-width: 760px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.06), rgba(167, 139, 250, 0.05));
  position: relative;
}
.story-quote::before,
.story-quote::after {
  position: absolute;
  font-size: 46px;
  font-weight: 800;
  opacity: 0.16;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.story-quote::before { content: "「"; top: 6px; left: 18px; }
.story-quote::after { content: "」"; bottom: -14px; right: 18px; }
.story-quote code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 3px;
}
.acts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 18px;
}
.act {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 26px 22px;
  transition: all 0.2s ease;
}
.act:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(255, 255, 255, 0.05);
}
.act-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 12px;
}
.act h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; }
.act p { color: var(--muted); font-size: 14px; line-height: 1.8; }

@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; padding: 28px 22px; }
  .hero { padding: 64px 0 48px; }
  .post-item { flex-direction: column; align-items: flex-start; gap: 6px; }
  .quote-br { display: none; }
  .acts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .acts { grid-template-columns: 1fr; }
}
