/* ===========================
   CC的AI轻百科 — 全站样式
   =========================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fafafa;
  --bg-alt: #f0f2f5;
  --ink: #1a1a2e;
  --ink-light: #6b7280;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dark: #4f46e5;
  --border: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
}

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

body {
  font-family: 'Noto Sans SC', -apple-system, 'PingFang SC', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,250,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}


.logo-icon { font-size: 24px; }
.logo-text { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }

.main-nav { display: flex; gap: 32px; }
.nav-link { color: var(--ink-light); font-size: 15px; font-weight: 500; transition: color 0.2s; }
.nav-link:hover { color: var(--accent); }

/* --- Hero --- */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  background: linear-gradient(180deg, #f0f2ff 0%, var(--bg) 100%);
}

.hero-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.hero-title {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 18px;
  color: var(--ink-light);
  margin-bottom: 28px;
}

.hero-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.badge {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
}

/* --- Sections --- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
}

.section-more { font-size: 14px; color: var(--accent); font-weight: 500; }

/* --- Article Cards --- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.article-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
  color: var(--ink);
}
.article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  color: var(--ink);
}

.article-category {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.article-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-excerpt {
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #9ca3af;
}

/* --- Skills Grid --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.skill-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.skill-card.coming-soon { background: var(--bg-alt); opacity: 0.7; }

.skill-icon { font-size: 36px; margin-bottom: 12px; }
.skill-name { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.skill-desc { font-size: 14px; color: var(--ink-light); }
.skill-cmd {
  margin-top: 14px;
  background: #1e293b;
  color: #a8d8c8;
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Footer --- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 40px 0;
  margin-top: 0;
}

.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 600; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 13px; width: 100%; }

/* --- Empty/Loading --- */
.loading, .empty { text-align: center; padding: 48px; color: var(--ink-light); font-size: 15px; }

/* --- Responsive --- */
@media (max-width: 640px) {
  .main-nav { gap: 20px; }
  .hero { padding: 56px 0 40px; }
  .article-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}


/* --- Social Links --- */
.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  font-size: 20px;
  text-decoration: none;
  transition: all 0.2s;
}
.social-link:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
  transform: translateY(-2px);
}
.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}




.logo:hover 

.logo:hover {
  color: var(--ink);
}
/* --- Header Logo --- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.8; color: var(--ink); }
.site-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 6px rgba(0,0,0,0.15);
  border: 1.5px solid rgba(0,0,0,0.06);
}

