/* ============================================================
   AI 全球资讯站 — 博客风格主题
   卡片式布局 · 完整导航 · 移动端自适应
   ============================================================ */

:root {
  --bg: #f8f7f4;
  --bg-card: #ffffff;
  --bg-elevated: #f3f2ef;
  --bg-hero: linear-gradient(135deg, #eef2ff 0%, #faf5ff 50%, #f0fdfa 100%);
  --text: #1a1a2e;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f0f0ec;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-soft: rgba(99, 102, 241, 0.1);
  --purple: #8b5cf6;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --radius: 14px;
  --radius-sm: 8px;
  --font-sans: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", serif;
  --header-h: 64px;
  --container: 1140px;
  --prose: 680px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ========== 顶栏导航 ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { color: var(--text); }
.logo-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

/* 主导航 */
.site-nav { flex: 1; display: flex; justify-content: center; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.nav-link:hover,
.nav-link.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

/* 汉堡菜单 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== Hero ========== */
.blog-hero {
  background: var(--bg-hero);
  border-bottom: 1px solid var(--border-light);
  padding: 3rem 0 2.5rem;
}
.blog-hero__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.blog-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 640px;
}
.blog-hero__title em {
  font-style: normal;
  color: var(--accent);
}
.blog-hero__desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 1.5rem;
}
.blog-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hero-tag {
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  transition: all var(--transition);
}
.hero-tag:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ========== 区块标题 ========== */
.section { padding: 2.5rem 0; }
.section-head { margin-bottom: 1.75rem; }
.section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ========== 文章卡片网格 ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card-grid__ad {
  grid-column: 1 / -1;
}

/* 博客卡片 */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.blog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.blog-card__link:hover { color: inherit; }

.blog-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elevated);
}
.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.blog-card:hover .blog-card__img { transform: scale(1.04); }

.blog-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  color: var(--accent);
  opacity: 0.5;
}
.blog-card__placeholder svg { width: 48px; height: 48px; }

.blog-card__region {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}

.blog-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card--featured .blog-card__title { font-size: 1.15rem; }

.blog-card__excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}
.blog-card__source { font-weight: 500; color: var(--text-secondary); }

/* 地区标签 */
.region {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
}
.region-cn { background: #fef2f2; color: #dc2626; }
.region-us { background: #eff6ff; color: #2563eb; }
.region-global { background: #f5f3ff; color: #7c3aed; }

/* ========== 归档/分类页 ========== */
.page-archive { padding: 2rem 0 3rem; }
.archive-header {
  text-align: center;
  padding: 2rem 0 2.5rem;
  margin-bottom: 1rem;
}
.archive-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.archive-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.archive-desc {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* ========== 文章详情页 ========== */
.page-article { padding: 2rem 0 4rem; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

.article-main {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { margin: 0 0.4rem; opacity: 0.5; }

.article-lead {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.article-byline__dot { opacity: 0.4; }
.article-source {
  margin-left: auto;
  font-weight: 500;
  font-size: 0.85rem;
}

.article-cover {
  margin: 0 0 1.75rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.article-cover img { width: 100%; }

.article-prose {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text-secondary);
}
.article-prose p { margin-bottom: 1.25rem; }
.article-prose strong { color: var(--text); font-weight: 600; }
.article-prose h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-soft);
}
.article-prose h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.75rem;
}
.article-prose ul {
  margin: 0 0 1.25rem 1.25rem;
  color: var(--text-secondary);
}
.article-prose li { margin-bottom: 0.4rem; }

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}
.tag-pill {
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-radius: 999px;
  text-decoration: none;
  transition: all var(--transition);
}
.tag-pill:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* 侧边栏 */
.article-sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); }

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 0.35rem; }
.sidebar-links a {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
}
.sidebar-links a:hover { color: var(--accent); }

.sidebar-cards { display: flex; flex-direction: column; gap: 0.75rem; }
.sidebar-card {
  display: block;
  padding: 0.75rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
}
.sidebar-card:hover { background: var(--accent-soft); }
.sidebar-card__title {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 0.25rem;
  color: var(--text);
}
.sidebar-card time { font-size: 0.75rem; color: var(--text-muted); }

/* ========== 广告位 ========== */
.ad-wrap { margin: 1.5rem 0; }
.ad-wrap--in-article { margin: 2rem 0; }
.ad-slot {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* ========== 分页 ========== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}
.pagination__nums { display: flex; gap: 0.35rem; }
.pagination__num,
.pagination__prev,
.pagination__next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
}
.pagination__num:hover,
.pagination__prev:hover,
.pagination__next:hover { border-color: var(--accent); color: var(--accent); }
.pagination__num.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ========== 空状态 / 按钮 / 404 ========== */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}
.empty-state p { margin-bottom: 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

.page-404 {
  text-align: center;
  padding: 5rem 1rem;
}
.page-404 h1 {
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ========== 页脚 ========== */
.site-footer {
  margin-top: auto;
  background: linear-gradient(180deg, var(--bg-card) 0%, #f3f2ef 100%);
  border-top: 1px solid var(--border-light);
  padding: 3rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.5rem;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 0.4rem;
}
.footer-col a:hover { color: var(--accent); }
.muted { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

.footer-bottom {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-light);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-secondary); }

/* ========== 响应式：平板 ========== */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid--tutorial-major { grid-template-columns: repeat(2, 1fr); }
  .card-grid--tutorial-major .blog-card--large { grid-column: span 1; }
  .home-pillars-row { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ========== 响应式：手机 ========== */
@media (max-width: 768px) {
  :root { --header-h: 56px; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-card);
    padding: 1rem 1.25rem 2rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    justify-content: flex-start;
    align-items: stretch;
  }
  body.nav-open .site-nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }
  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  .card-grid,
  .card-grid--compact {
    grid-template-columns: 1fr;
  }

  .blog-hero { padding: 2rem 0 1.75rem; }
  .section { padding: 1.75rem 0; }

  .article-source { margin-left: 0; width: 100%; margin-top: 0.5rem; }
  .article-sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .pagination__prev,
  .pagination__next { font-size: 0.85rem; padding: 0 0.5rem; }
}

@media (max-width: 480px) {
  .blog-card__body { padding: 1rem; }
  .article-main { padding: 1.25rem; border-radius: var(--radius-sm); }
}

/* ========== 四大内容支柱 ========== */
.pillar-bar {
  display: flex;
  gap: 4px;
  max-width: 560px;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.pillar-bar__seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: filter var(--transition);
  min-width: 0;
}
.pillar-bar__seg span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.pillar-bar__seg:hover { filter: brightness(1.08); color: #fff; }
.pillar-bar__seg--news { background: #6366f1; }
.pillar-bar__seg--tutorial { background: #8b5cf6; }
.pillar-bar__seg--tools { background: #06b6d4; }
.pillar-bar__seg--prompts { background: #f59e0b; }

.pillar-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.pillar-label--news { background: #eef2ff; color: #6366f1; }
.pillar-label--tutorial { background: #f5f3ff; color: #7c3aed; }
.pillar-label--tools { background: #ecfeff; color: #0891b2; }
.pillar-label--prompts { background: #fffbeb; color: #d97706; }

.pillar-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: #fff;
}
.pillar-badge--news { background: #6366f1; }
.pillar-badge--tutorial { background: #8b5cf6; }
.pillar-badge--tools { background: #06b6d4; }
.pillar-badge--prompts { background: #f59e0b; }

.nav-link--pillar { gap: 0.4rem; }
.nav-link--primary { font-weight: 700; }
.nav-pillar-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.nav-pillar-dot--news { background: #6366f1; }
.nav-pillar-dot--tutorial { background: #8b5cf6; }
.nav-pillar-dot--tools { background: #06b6d4; }
.nav-pillar-dot--prompts { background: #f59e0b; }
.nav-percent {
  font-size: 0.65rem;
  opacity: 0.55;
  font-weight: 600;
}

.section-head--pillar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}
.section-head--compact { margin-bottom: 1rem; }
.section-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.section-more:hover { text-decoration: underline; }

.home-pillar--major { padding-top: 1rem; }
.home-pillars-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
}
.home-pillar--minor .card-grid--compact {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card-grid--tutorial-major {
  grid-template-columns: repeat(4, 1fr);
}
.card-grid--tutorial-major .blog-card--large {
  grid-column: span 2;
}
.card-grid--tutorial-list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.blog-card__placeholder--news { background: linear-gradient(135deg, #eef2ff, #e0e7ff); }
.blog-card__placeholder--tutorial { background: linear-gradient(135deg, #f5f3ff, #ede9fe); }

.level-badge {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.92);
}
.level-beginner { color: #059669; }
.level-intermediate { color: #d97706; }
.level-advanced { color: #dc2626; }

.blog-card--large .blog-card__title { font-size: 1.2rem; }
.blog-card__media--tool {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/10;
  background: var(--bg-elevated);
}
.blog-card__logo { max-height: 64px; max-width: 64px; object-fit: contain; }
.tool-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card__media--prompt {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  position: relative;
  overflow: hidden;
}
.blog-card__media--prompt .blog-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tool-header-logo--cover {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}
.prompt-preview {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #d97706;
  opacity: 0.35;
}
.model-badge {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.9);
  color: #92400e;
}
.model-badge--lg { position: static; display: inline-block; }

.pricing-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: #ecfdf5;
  color: #059669;
}
.pricing-tag--lg { font-size: 0.85rem; padding: 0.3rem 0.75rem; }
.rating { color: #f59e0b; font-weight: 600; font-size: 0.85rem; }
.rating--lg { font-size: 1rem; }

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.filter-tabs a {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
}
.filter-tabs a:hover,
.filter-tabs a.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.archive-header--major {
  background: linear-gradient(135deg, #f5f3ff, #eef2ff);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
}

.prompt-block {
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.prompt-block__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.prompt-code {
  margin: 0;
  padding: 1.25rem;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  background: #1e1e2e;
  color: #cdd6f4;
  max-height: 400px;
  overflow-y: auto;
}
.btn-copy {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}
.btn-copy.is-copied { background: #ecfdf5; border-color: #059669; color: #059669; }

.tool-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}
.article-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.article-summary { color: var(--text-secondary); font-size: 1.05rem; margin-top: 0.75rem; }
.read-time { font-size: 0.85rem; color: var(--text-muted); }
.use-case-tag { font-size: 0.8rem; color: var(--text-secondary); background: var(--bg-elevated); padding: 0.2rem 0.6rem; border-radius: 4px; }

.footer-col h4 small { font-weight: 400; opacity: 0.6; font-size: 0.75em; }

@media (max-width: 768px) {
  .pillar-bar { max-width: 100%; height: 32px; }
  .pillar-bar__seg span { font-size: 0.6rem; }
  .nav-percent { display: none; }
  .card-grid--tutorial-major { grid-template-columns: 1fr; }
  .section-head--pillar { flex-direction: column; align-items: flex-start; }
  .blog-hero__grid { grid-template-columns: 1fr; }
  .hero-featured { order: -1; }
  .header-search { display: none; }
  .header-search.is-mobile-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; padding: 0.75rem 1.25rem; background: var(--bg-card); border-bottom: 1px solid var(--border); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .path-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-strip__inner { flex-direction: column; text-align: center; }
  .about-grid { grid-template-columns: 1fr; }
}

/* ========== 增强组件 ========== */

/* 顶栏搜索 */
.header-search {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 0 1 200px;
  margin-left: auto;
  margin-right: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.header-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text);
  min-width: 0;
}
.header-search input:focus { outline: none; }
.header-search button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
}
.header-search button:hover { color: var(--accent); }

/* Hero 增强 */
.blog-hero--rich { padding: 3.5rem 0 3rem; }
.blog-hero__grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}
.blog-hero__content { min-width: 0; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.btn-lg { padding: 0.75rem 1.5rem; font-size: 0.95rem; }
.btn-outline {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); transform: none; }
.btn-outline--light {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.35);
}
.btn-outline--light:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  max-width: 480px;
}
.stats-bar--page { max-width: 100%; margin: 2rem 0; }
.stat-item {
  text-align: center;
  padding: 0.85rem 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.stat-item__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}
.stat-item__label { font-size: 0.75rem; color: var(--text-muted); }

.hero-featured__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7c3aed;
  margin-bottom: 0.75rem;
}
.hero-featured__card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}
.hero-featured__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.hero-featured__media { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-elevated); }
.hero-featured__media img { width: 100%; height: 100%; object-fit: cover; }
.hero-featured__body { padding: 1.25rem; }
.hero-featured__body .level-badge { position: static; display: inline-block; margin-bottom: 0.5rem; }
.hero-featured__body h2 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.5rem 0;
  line-height: 1.4;
}
.hero-featured__body p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.75rem; }
.hero-featured__cta { font-size: 0.85rem; font-weight: 600; color: var(--accent); }

/* 学习路径 */
.learning-paths { padding-top: 0; }
.path-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.path-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.path-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  color: inherit;
}
.path-card__icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.path-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.35rem; }
.path-card p { font-size: 0.8rem; color: var(--text-muted); }
.path-card--chatgpt:hover { border-color: #6366f1; }
.path-card--prompt:hover { border-color: #8b5cf6; }
.path-card--midjourney:hover { border-color: #f59e0b; }
.path-card--coding:hover { border-color: #06b6d4; }

.pillar-empty { font-size: 0.85rem; color: var(--text-muted); padding: 1rem 0; }

/* FAQ */
.faq-section { padding-bottom: 1rem; }
.faq-list { max-width: 720px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.25rem; color: var(--accent); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* CTA 条 */
.cta-strip {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  padding: 3rem 0;
  margin-top: 1rem;
}
.cta-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-strip h2 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 0.35rem; }
.cta-strip p { opacity: 0.88; font-size: 0.95rem; }
.cta-strip__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cta-strip .btn-primary { background: #fff; color: var(--accent); }
.cta-strip .btn-primary:hover { background: #f0f0ff; color: var(--accent-hover); }

/* 列表元信息 */
.list-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* 空状态增强 */
.empty-state__icon { font-size: 2.5rem; margin-bottom: 0.75rem; }

/* 分享栏 */
.share-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}
.share-bar__label { font-size: 0.8rem; color: var(--text-muted); margin-right: 0.25rem; }
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.share-btn.is-copied { background: #ecfdf5; border-color: #059669; color: #059669; }

.sidebar-widget--accent {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border-color: transparent;
}
.sidebar-links small { opacity: 0.6; font-size: 0.75em; }

/* 工具详情头图 */
.tool-header-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.tool-header-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; }
.tool-icon--lg { width: 56px; height: 56px; font-size: 1.5rem; border-radius: 12px; }
.inline-related { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border-light); }
.inline-related h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }

.prompt-tips {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
}
.prompt-tips h3 { font-size: 0.9rem; margin-bottom: 0.75rem; color: #92400e; }
.prompt-tips ul { margin-left: 1.25rem; font-size: 0.875rem; color: #78350f; }
.prompt-tips li { margin-bottom: 0.35rem; }
.prompt-tips code { background: rgba(0,0,0,0.06); padding: 0.1rem 0.35rem; border-radius: 3px; font-size: 0.8em; }

/* 搜索页 */
.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 520px;
  margin: 1.25rem auto 0;
}
.search-form input {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
}
.search-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-form--page { max-width: 560px; }
.search-hints { text-align: center; padding: 2rem 0; }
.search-hints__title { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.search-result-count { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.search-section { margin-bottom: 2.5rem; }
.search-section__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}
.search-section__head h2 { font-size: 1.1rem; font-weight: 600; }
.search-section__head a { font-size: 0.85rem; font-weight: 600; }
.search-results { list-style: none; }
.search-result-item a {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}
.search-result-item a:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.search-result-item__title { display: block; font-weight: 600; margin-bottom: 0.25rem; color: var(--text); }
.search-result-item__excerpt { display: block; font-size: 0.85rem; color: var(--text-secondary); }
.search-result-item__date { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.35rem; }

/* 关于页 */
.about-hero {
  background: var(--bg-hero);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}
.about-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.about-hero__desc { color: var(--text-secondary); max-width: 560px; margin: 0 auto; }
.about-body { padding: 2.5rem 0 4rem; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 2rem 0 3rem;
}
.about-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.about-card--featured {
  border-color: #c4b5fd;
  background: linear-gradient(135deg, #faf5ff, #fff);
}
.about-card__icon { font-size: 2rem; margin-bottom: 0.75rem; }
.about-card h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.about-card p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0.75rem; line-height: 1.6; }
.about-card a { font-size: 0.85rem; font-weight: 600; }
.about-tech h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.about-tech-list { list-style: none; }
.about-tech-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* 404 增强 */
.page-404 {
  padding: 4rem 0 5rem;
  text-align: center;
}
.page-404__inner { max-width: 480px; margin: 0 auto; }
.page-404__code {
  font-family: var(--font-serif);
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.page-404 h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.page-404__desc { color: var(--text-secondary); margin-bottom: 1.5rem; }
.page-404__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.page-404__links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.page-404__links a { font-size: 0.9rem; color: var(--text-secondary); text-decoration: none; }
.page-404__links a:hover { color: var(--accent); }

/* 页脚 CTA */
.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.25rem;
  margin-bottom: 0;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(139, 92, 246, 0.04) 100%);
  border-radius: var(--radius);
  margin-top: 0.5rem;
}
.footer-cta__text { display: flex; flex-direction: column; gap: 0.15rem; }
.footer-cta__text strong { font-size: 0.95rem; }
.footer-cta__text span { font-size: 0.8rem; color: var(--text-muted); }

/* 回到顶部 & 阅读进度 */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
  z-index: 150;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-hover); }
.reading-progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  width: 0;
  z-index: 201;
  transition: width 0.1s linear;
}

/* ========== 用户 / 登录 / 个人中心 ========== */
.header-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.header-user__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
}
.header-user__link:hover { color: var(--accent); }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; }

.user-menu { position: relative; }
.user-menu__trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
}
.user-menu__trigger::-webkit-details-marker { display: none; }
.user-menu__avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-menu__name {
  font-size: 0.85rem;
  font-weight: 500;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 0.4rem;
  z-index: 300;
}
.user-menu__dropdown a {
  display: block;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
}
.user-menu__dropdown a:hover { background: var(--accent-soft); color: var(--accent); }
.user-menu__dropdown hr { border: none; border-top: 1px solid var(--border-light); margin: 0.35rem 0; }

.page-auth {
  padding: 2.5rem 1.25rem 4rem;
  min-height: calc(100vh - var(--header-h) - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #eef2ff 0%, #f8f7f4 45%, #faf5ff 100%);
}

.auth-shell {
  display: grid;
  grid-template-columns: 1fr 420px;
  max-width: 920px;
  width: 100%;
  gap: 0;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.auth-panel {
  background: linear-gradient(145deg, #6366f1 0%, #7c3aed 55%, #8b5cf6 100%);
  color: #fff;
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
}
.auth-panel__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.2);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.auth-panel__title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1.5rem;
}
.auth-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.auth-panel__list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
  opacity: 0.92;
  line-height: 1.5;
}
.auth-panel__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
  opacity: 0.85;
}

.auth-card {
  width: 100%;
  background: var(--bg-card);
  padding: 2.25rem 2rem 2rem;
}
.auth-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.auth-card__icon--register { background: #f5f3ff; color: #7c3aed; }
.auth-card__title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}
.auth-card__sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}
.auth-card__foot {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}
.auth-card__foot a { font-weight: 600; }

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}
.auth-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.15rem;
  width: 100%;
}
.auth-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}
.auth-field input,
.auth-form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.auth-field input:focus,
.auth-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: #fff;
}
.auth-field input::placeholder { color: var(--text-muted); }

/* 兼容旧版 label 结构 */
.auth-form label { display: flex; flex-direction: column; margin-bottom: 1.15rem; width: 100%; }
.auth-form label span { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text-secondary); }
.auth-form label input { display: block; width: 100%; box-sizing: border-box; }

.auth-form--account { max-width: 480px; }
.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin: 0.5rem 0 1rem; }

.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.auth-alert--error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.auth-alert--success { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }

.page-account {
  position: relative;
  padding: 2.5rem 0 4.5rem;
  min-height: calc(100vh - var(--header-h) - 200px);
}
.account-page-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #eef2ff 0%, #f8f7f4 40%, #faf5ff 100%);
  pointer-events: none;
  z-index: 0;
}
.account-page-bg::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
}
.account-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.75rem;
  align-items: start;
}
.account-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.account-sidebar__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1.25rem 1.25rem;
  background: linear-gradient(145deg, #6366f1 0%, #7c3aed 55%, #8b5cf6 100%);
  color: #fff;
}
.account-user__info strong {
  display: block;
  font-size: 1rem;
  margin-top: 0.65rem;
}
.account-sidebar__head .muted {
  font-size: 0.78rem;
  opacity: 0.85;
  display: block;
  margin-top: 0.15rem;
}
.account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.account-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem;
}
.account-nav__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.account-nav__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.65;
}
.account-nav__item span { flex: 1; }
.account-nav__badge {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
}
.account-nav__item:hover {
  background: var(--bg-elevated);
  color: var(--text);
}
.account-nav__item:hover .account-nav__icon { opacity: 1; }
.account-nav__item.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.account-nav__item.is-active .account-nav__icon { opacity: 1; color: var(--accent); }
.account-nav__divider {
  height: 1px;
  background: var(--border-light);
  margin: 0.35rem 0.5rem;
}
.account-nav__item--logout { color: var(--text-muted) !important; }
.account-nav__item--logout:hover { color: #dc2626 !important; background: #fef2f2; }

.account-main {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: calc(var(--radius) + 2px);
  padding: 2rem 2.25rem;
  min-height: 420px;
  box-shadow: var(--shadow-sm);
}
.account-page-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.account-page-head--welcome {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1.5rem;
}
.account-page-head__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.account-page-head__icon--purple { background: #ede9fe; color: #7c3aed; }
.account-page-head__icon--blue { background: #eef2ff; color: #6366f1; }
.account-page-head__icon--amber { background: #fffbeb; color: #d97706; }
.account-welcome-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.account-page-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.account-page-title--lg { font-size: 1.75rem; }
.account-page-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.account-form-panel {
  max-width: 480px;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}
.auth-form--account { max-width: none; }
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input-wrap input {
  padding-right: 2.75rem;
}
.auth-input-toggle {
  position: absolute;
  right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.auth-input-toggle:hover {
  color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
}

.account-meta-box {
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 1.15rem;
}
.account-meta-box__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  padding: 0.35rem 0;
}
.account-meta-box__label { color: var(--text-muted); }
.account-meta-box .form-hint { margin: 0.5rem 0 0; }

.account-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.account-stat-card {
  position: relative;
  padding: 1.35rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}
.account-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
}
.account-stat-card--accent::before { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.account-stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.account-stat-card--muted { pointer-events: none; }
.account-stat-card__icon {
  display: flex;
  margin-bottom: 0.65rem;
  color: var(--accent);
  opacity: 0.85;
}
.account-stat-card__num {
  display: block;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}
.account-stat-card__num--sm { font-size: 1.1rem; }
.account-stat-card__label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; display: block; }

.account-section { margin-bottom: 2rem; }
.account-section__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text);
}
.account-quick {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
.account-quick__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.account-quick__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.account-quick__item--tutorial .account-quick__dot { background: #06b6d4; }
.account-quick__item--tools .account-quick__dot { background: #f59e0b; }
.account-quick__item--prompts .account-quick__dot { background: #8b5cf6; }
.account-quick__item--news .account-quick__dot { background: #6366f1; }
.account-quick__item:hover {
  background: var(--bg-card);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.account-info-card {
  padding: 1.25rem 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}
.account-dl {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.55rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.account-dl dt { color: var(--text-muted); font-weight: 500; }
.account-dl dd { color: var(--text); margin: 0; word-break: break-all; }

.filter-tabs--account { justify-content: flex-start; margin-bottom: 1.5rem; }

.fav-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.fav-card {
  padding: 1.15rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  transition: box-shadow var(--transition), transform var(--transition);
}
.fav-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.fav-card--news { border-left-color: #6366f1; }
.fav-card--tutorial { border-left-color: #06b6d4; }
.fav-card--tool { border-left-color: #f59e0b; }
.fav-card--prompt { border-left-color: #8b5cf6; }
.fav-card__type {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.fav-card__title {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 0.35rem;
  line-height: 1.4;
}
.fav-card__title:hover { color: var(--accent); }
.fav-card__summary {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.45;
}
.fav-card__date { font-size: 0.72rem; color: var(--text-muted); }

.empty-state--account { padding: 3rem 1.5rem; }
.empty-state__hint {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.35rem 0 1.25rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* 兼容旧收藏列表 */
.fav-list { list-style: none; }
.fav-list__item { padding: 1rem 0; border-bottom: 1px solid var(--border-light); }
.fav-list__type { display: inline-block; font-size: 0.7rem; font-weight: 600; color: var(--accent); margin-bottom: 0.25rem; }
.fav-list__title { display: block; font-weight: 600; font-size: 1rem; color: var(--text); text-decoration: none; margin-bottom: 0.25rem; }
.fav-list__title:hover { color: var(--accent); }
.fav-list__summary { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.fav-list__date { font-size: 0.75rem; color: var(--text-muted); }

.article-actions { margin-top: 0.75rem; }
.btn-favorite {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.btn-favorite:hover { border-color: #f59e0b; color: #d97706; }
.btn-favorite.is-favorited {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #d97706;
}

@media (max-width: 768px) {
  .header-user__name { display: none; }
  .account-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .account-sidebar { position: static; }
  .account-sidebar__head { flex-direction: row; text-align: left; gap: 1rem; padding: 1.25rem; }
  .account-user__info strong { margin-top: 0; }
  .account-nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.75rem;
    gap: 0.35rem;
  }
  .account-nav__item { flex: 1 1 calc(50% - 0.35rem); min-width: 140px; }
  .account-nav__divider { display: none; }
  .account-main { padding: 1.5rem 1.25rem; }
  .account-form-panel { padding: 1.25rem; }
  .account-quick { grid-template-columns: 1fr; }
  .account-stats { grid-template-columns: 1fr; }
  .fav-grid { grid-template-columns: 1fr; }
  .user-menu__dropdown { right: -0.5rem; }
  .page-auth { padding: 1.5rem 1rem 3rem; min-height: auto; align-items: flex-start; }
  .auth-shell { grid-template-columns: 1fr; max-width: 440px; }
  .auth-panel { padding: 1.75rem 1.5rem; }
  .auth-panel__title { font-size: 1.35rem; margin-bottom: 1rem; }
  .auth-panel__list li { font-size: 0.85rem; }
  .auth-card { padding: 1.75rem 1.5rem; }
}
