/* 51吃瓜网 - 杂志刊物风格（SEO优化） */
:root {
  --navy: #1e293b;
  --navy-dark: #0f172a;
  --gold: #d4a853;
  --gold-light: #e8c97a;
  --cream: #f8f6f1;
  --gray: #64748b;
  --text: #334155;
  --border: #e2e8f0;
}

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

body {
  font-family: "Noto Serif SC", "PingFang SC", "Microsoft YaHei", serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* 顶栏 */
header[role="banner"] {
  background: var(--navy);
  color: #fff;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.site-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
}

nav[role="navigation"] {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

nav[role="navigation"] a {
  padding: 10px 18px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  transition: all 0.2s;
}

nav[role="navigation"] a:hover {
  color: var(--gold);
  background: rgba(212,168,83,0.1);
}

/* 主内容 */
main[role="main"] {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* 杂志特色区 - 头条 */
.lead-section {
  margin-bottom: 40px;
}

.lead-article {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border-left: 4px solid var(--gold);
}

.lead-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.lead-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lead-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lead-body h1 {
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.35;
}

.lead-body p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* 介绍区 */
.intro-editorial {
  background: #fff;
  padding: 36px 40px;
  margin-bottom: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border-top: 3px solid var(--gold);
}

.intro-editorial h2 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.intro-editorial p {
  color: var(--text);
  margin-bottom: 16px;
  text-align: justify;
}

.intro-editorial p:last-child { margin-bottom: 0; }

/* 区块标题 */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}

.section-head h2 {
  font-size: 1.2rem;
  color: var(--navy);
  font-weight: 700;
}

.section-head span {
  font-size: 12px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 文章网格 - 杂志式 */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.article-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.article-card .thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.article-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card .body {
  padding: 20px;
}

.article-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card h3:hover { color: var(--gold); }

.article-card .meta {
  font-size: 12px;
  color: var(--gray);
}

/* 内容页 */
.breadcrumb {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--gold); text-decoration: underline; }
.breadcrumb a:hover { color: var(--navy); }

article {
  background: #fff;
  padding: 40px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

article h1 {
  font-size: 1.7rem;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.4;
}

.article-meta {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

article h2 {
  font-size: 1.25rem;
  color: var(--navy);
  margin: 28px 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
}

article p {
  margin-bottom: 16px;
  color: var(--text);
  text-align: justify;
}

article .intro {
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 500;
}

.article-img {
  margin: 24px 0;
  overflow: hidden;
}

.article-img img { width: 100%; }

/* 列表页 */
.list-hero {
  height: 280px;
  position: relative;
  margin-bottom: 32px;
  overflow: hidden;
}

.list-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 28px;
  background: linear-gradient(transparent, rgba(30,41,59,0.95));
  color: #fff;
}

.list-hero-caption h1 { font-size: 1.5rem; margin-bottom: 8px; }
.list-hero-caption p { font-size: 14px; opacity: 0.9; }

/* 页脚 */
footer[role="contentinfo"] {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  padding: 32px 24px;
  margin-top: 48px;
  text-align: center;
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

footer nav a {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
}

footer nav a:hover { color: var(--gold); }
footer p { font-size: 12px; color: rgba(255,255,255,0.5); }

/* 响应式 */
@media (max-width: 900px) {
  .lead-article { grid-template-columns: 1fr; }
  .lead-img { aspect-ratio: 16/9; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .header-inner { flex-direction: column; align-items: stretch; padding: 16px 0; }
  nav[role="navigation"] { justify-content: center; }
  .article-grid { grid-template-columns: 1fr; gap: 20px; }
  main[role="main"] { padding: 24px 16px; }
  .intro-editorial { padding: 24px; }
  article { padding: 24px; }
  .list-hero { height: 200px; }
}
