/* Anspire CMS PoC 样式 - 基础排版 */

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

a { color: inherit; text-decoration: none; }

.news-empty-state { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 140px 24px 160px; text-align: center; }
.news-empty-state h1 { font-size: 28px; font-weight: 600; }
.news-empty-state p { color: #686c75; font-size: 15px; }

:root {
  --color-text: #1a1a1a;
  --color-text-muted: #666;
  --color-text-light: #999;
  --color-bg: #fff;
  --color-bg-soft: #f8f8f8;
  --color-border: #eaeaea;
  --color-link: #0066cc;
  --max-width: 720px;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== Header ===== */
.site-header {
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}
.site-nav ul { display: flex; gap: 1.5rem; list-style: none; }
.site-nav a { color: var(--color-text-muted); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { color: var(--color-text); }

/* ===== Main ===== */
.main { padding: 2rem 0 3rem; min-height: 60vh; }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.875rem;
}
.site-footer .muted { color: var(--color-text-light); font-size: 0.8rem; margin-top: 0.25rem; }

/* ===== Home ===== */
.home h1 { font-size: 2rem; margin-bottom: 0.5rem; font-weight: 600; }
.lead { color: var(--color-text-muted); font-size: 1.125rem; margin-bottom: 2.5rem; }
.home h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; font-weight: 600; }

/* ===== Article List ===== */
.article-list { list-style: none; }
.article-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}
.article-list li.empty {
  color: var(--color-text-light);
  font-style: italic;
  border: none;
}
.article-list a { color: var(--color-text); text-decoration: none; font-weight: 500; font-size: 1.05rem; }
.article-list a:hover { color: var(--color-link); }
.article-list .date { color: var(--color-text-light); font-size: 0.85rem; margin-left: 0.75rem; }
.article-list .summary { color: var(--color-text-muted); font-size: 0.9rem; margin-top: 0.4rem; }

/* ===== Article ===== */
.article-header { margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--color-border); }
.article-header h1 { font-size: 1.875rem; line-height: 1.35; margin-bottom: 0.6rem; font-weight: 600; }
.article-meta { color: var(--color-text-light); font-size: 0.875rem; }
.article-meta .author { margin-left: 0.4rem; }
.article-header .summary { color: var(--color-text-muted); font-size: 1.05rem; margin-top: 0.8rem; line-height: 1.6; }
.article-header .cover { max-width: 100%; height: auto; border-radius: 6px; margin-top: 1rem; }

.article-content { line-height: 1.8; font-size: 1rem; }
.article-content h2 { font-size: 1.4rem; margin: 2.25rem 0 0.8rem; font-weight: 600; }
.article-content h3 { font-size: 1.15rem; margin: 1.75rem 0 0.6rem; font-weight: 600; }
.article-content p { margin: 1rem 0; }
.article-content strong { font-weight: 600; }
.article-content em { font-style: italic; }
.article-content code {
  background: #f5f5f5;
  padding: 0.125rem 0.4rem;
  border-radius: 3px;
  font-family: "SF Mono", "Consolas", "Monaco", monospace;
  font-size: 0.88em;
}
.article-content pre {
  background: #f5f5f5;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.25rem 0;
  line-height: 1.5;
}
.article-content pre code { background: transparent; padding: 0; font-size: 0.9em; }
.article-content blockquote {
  border-left: 3px solid var(--color-link);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.25rem 0;
  color: var(--color-text-muted);
  background: #f8f9fb;
}
.article-content img { max-width: 100%; height: auto; display: block; margin: 1.25rem auto; border-radius: 4px; }
.article-content a { color: var(--color-link); text-decoration: none; }
.article-content a:hover { text-decoration: underline; }
.article-content ul, .article-content ol { margin: 1rem 0 1rem 1.5rem; }
.article-content li { margin: 0.4rem 0; }
.article-content hr { border: none; border-top: 1px solid var(--color-border); margin: 2rem 0; }

.article-footer { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--color-border); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  background: #f0f0f0;
  color: var(--color-text-muted);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
}

/* ===== List page ===== */
.list h1 { font-size: 1.75rem; margin-bottom: 1.5rem; font-weight: 600; }
.list-intro { color: var(--color-text-muted); margin-bottom: 2rem; line-height: 1.7; }
.list .article-list h3 { margin-bottom: 0.3rem; }

/* ===== Anspire 新闻站 ===== */
:root {
  --news-accent: #4d52f4;
  --news-accent-soft: #eef2ff;
  --news-border: #e6e7ed;
  --news-muted: #6f737d;
  --news-surface: #f8f9fc;
  --news-text: #111318;
}

body {
  background: #fefefe;
  color: var(--news-text);
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.site-shell {
  margin-inline: auto;
  max-width: 1440px;
  width: calc(100% - 48px);
}

.site-header {
  background: rgba(254, 254, 254, 0.96);
  border-bottom: 1px solid #d8dae2;
  padding: 0;
}

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

.brand,
.footer-brand { display: inline-flex; flex: 0 0 auto; }

.main-nav {
  align-items: center;
  display: flex;
  font-size: 15px;
  gap: 48px;
}

.main-nav a { color: var(--news-text); position: relative; white-space: nowrap; }
.main-nav a:not(.nav-cta)::after {
  background: var(--news-text);
  bottom: -8px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease-out;
  width: 100%;
}
.main-nav a:not(.nav-cta):hover::after,
.main-nav a:not(.nav-cta):focus-visible::after { transform: scaleX(1); }

.main-nav .nav-cta {
  align-items: center;
  background: var(--news-text);
  border-radius: 20px;
  color: #fefefe;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  padding-inline: 20px;
}

.site-main { min-height: 60vh; }
.news-index { padding: 80px 0 120px; }

.headline {
  align-items: center;
  display: grid;
  gap: 72px;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 704px);
}

.headline-copy {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
}

.news-kicker {
  background: var(--news-accent-soft);
  border: 1px solid #cbd5ff;
  border-radius: 18px;
  color: #2046df;
  font-size: 16px;
  line-height: 36px;
  padding-inline: 22px;
}

.headline h1 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.4;
  margin: 24px 0 12px;
}

.headline h1 a,
.featured-card h2 a,
.other-card h3 a { transition: color 160ms ease-out; }
.headline h1 a:hover,
.featured-card h2 a:hover,
.other-card h3 a:hover { color: var(--news-accent); }

.headline-copy p {
  color: #4e525b;
  display: -webkit-box;
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  max-width: 64ch;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.headline-copy time { color: #8a8e97; font-size: 14px; margin-top: 20px; }

.news-media {
  align-items: center;
  background: #eef0f5;
  color: #a0a5b1;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.news-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.news-media span { font-size: 13px; }
.headline-media { aspect-ratio: 16 / 9; border-radius: 20px; }

.featured-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 40px;
}
.featured-card { min-width: 0; }
.featured-media { aspect-ratio: 16 / 9; border-radius: 12px; }
.featured-card h2 {
  display: -webkit-box;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  margin: 18px 0 8px;
  min-height: 52px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.featured-card p,
.other-card p {
  color: var(--news-muted);
  display: -webkit-box;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.featured-card time { color: #969aa3; display: block; font-size: 13px; margin-top: 12px; }

.other-news {
  border-top: 1px solid var(--news-border);
  margin-top: 60px;
  padding-top: 60px;
}
.other-news > h2 { font-size: 40px; font-weight: 500; line-height: 1.25; margin: 0 0 8px; }
.other-grid { column-gap: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.other-card {
  border-bottom: 1px solid var(--news-border);
  display: grid;
  gap: 20px;
  grid-template-columns: 252px minmax(0, 1fr);
  padding: 40px 0;
}
.other-media { aspect-ratio: 16 / 9; border-radius: 12px; }
.other-copy { display: flex; flex-direction: column; min-width: 0; }
.other-card h3 {
  display: -webkit-box;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  margin: 0 0 10px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.other-card time {
  color: #969aa3;
  font-size: 13px;
  margin-top: auto;
  padding-top: 12px;
  text-align: right;
}
.news-empty { color: var(--news-muted); grid-column: 1 / -1; margin: 48px 0; }

.pagination { align-items: center; display: flex; gap: 8px; justify-content: flex-end; margin-top: 32px; }
.pagination span { color: var(--news-muted); font-size: 14px; margin-right: 8px; }
.pagination a {
  align-items: center;
  border: 1px solid var(--news-border);
  border-radius: 6px;
  display: inline-flex;
  font-size: 14px;
  height: 36px;
  justify-content: center;
  min-width: 36px;
}
.pagination a:hover,
.pagination a[aria-current="page"] { background: var(--news-accent-soft); border-color: #bdc9ff; color: #3647e8; }

.article { max-width: 960px; padding: 80px 0 120px; }
.article-back { color: #888c95; display: inline-flex; font-size: 15px; margin-bottom: 24px; }
.article-back:hover { color: var(--news-text); }
.article-header { border-bottom: 1px solid #d8dae2; margin: 0; padding: 0 0 28px; }
.article-title { font-size: 34px; font-weight: 500; line-height: 1.4; margin: 0; }
.article-date { color: #888c95; display: block; font-size: 15px; margin-top: 16px; text-align: left; }
.article-body { color: #33363d; font-size: 16px; line-height: 1.625; padding-top: 32px; }
.article-body h2 { font-size: 24px; font-weight: 500; line-height: 1.4; margin: 40px 0 16px; }
.article-body h3 { font-size: 20px; font-weight: 500; line-height: 1.45; margin: 32px 0 12px; }
.article-body p { margin: 0 0 20px; }
.article-body img { border-radius: 12px; height: auto; margin: 24px 0 40px; width: 100%; }
.article-body a { color: #315edb; text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote {
  background: var(--news-surface);
  border: 1px solid var(--news-border);
  border-radius: 8px;
  color: #555a65;
  margin: 24px 0;
  padding: 18px 20px;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body ul,
.article-body ol { margin: 20px 0; padding-left: 24px; }
.article-body li + li { margin-top: 8px; }

.headline h1,
.featured-card h2,
.other-news > h2,
.other-card h3,
.article-title { text-wrap: balance; }

.headline-copy p,
.featured-card p,
.other-card p,
.article-body p { text-wrap: pretty; }

.site-footer { background: var(--news-surface); border: 0; padding: 50px 0 28px; text-align: left; }
.footer-main { align-items: flex-start; display: flex; justify-content: space-between; min-height: 190px; }
.footer-links { display: flex; gap: 100px; }
.footer-links > div { display: flex; flex-direction: column; }
.footer-links strong,
.footer-links a { color: #686c75; font-size: 14px; line-height: 2.3; }
.footer-links strong { color: var(--news-text); font-weight: 500; margin-bottom: 4px; }
.footer-links a:hover { color: var(--news-text); }
.footer-bottom {
  border-top: 1px solid #e2e4e9;
  color: #6c7079;
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  padding-top: 24px;
}

@media (max-width: 1180px) {
  .headline { gap: 48px; grid-template-columns: minmax(0, 1fr) minmax(420px, 1.1fr); }
  .main-nav { gap: 24px; }
  .other-card { grid-template-columns: 210px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .header-inner { gap: 24px; height: 72px; overflow: hidden; }
  .main-nav { flex: 1; justify-content: flex-start; overflow-x: auto; padding: 12px 4px; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-cta { display: none !important; }
  .news-index { padding-top: 56px; }
  .headline { gap: 32px; grid-template-columns: 1fr; }
  .headline-media { grid-row: 1; }
  .featured-grid,
  .other-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .other-card { display: block; }
  .other-copy { margin-top: 16px; }
  .footer-links { gap: 48px; }
}

@media (max-width: 640px) {
  .site-shell { width: calc(100% - 32px); }
  .brand img { height: auto; width: 96px; }
  .main-nav { font-size: 13px; gap: 20px; }
  .main-nav a:first-child { display: none; }
  .news-index { padding: 32px 0 80px; }
  .news-kicker { font-size: 14px; line-height: 32px; padding-inline: 16px; }
  .headline h1,
  .other-news > h2,
  .article-title { font-size: 30px; }
  .featured-grid,
  .other-grid { grid-template-columns: 1fr; }
  .featured-card h2 { min-height: 0; }
  .other-news { margin-top: 48px; padding-top: 40px; }
  .other-card { padding: 32px 0; }
  .pagination { flex-wrap: wrap; justify-content: flex-start; }
  .pagination span { flex-basis: 100%; margin-bottom: 4px; }
  .article { padding: 48px 0 80px; }
  .article-header { padding-bottom: 28px; }
  .article-date { margin-top: 18px; text-align: left; }
  .footer-main,
  .footer-bottom { flex-direction: column; gap: 36px; }
  .footer-links { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .footer-bottom { gap: 10px; }
}
