/* 妖精动漫网 - 梦幻韩漫风格：暖色系 + 杂志式布局 */
@import url('https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&family=Noto+Sans+SC:wght@300;400;500;600&display=swap');

:root {
  --cream: #fef9f3;
  --peach: #ffecd2;
  --lavender: #e8d5f2;
  --mint: #d4ede6;
  --coral: #f4a6a6;
  --deep-rose: #c77d7d;
  --text-dark: #3d3d3d;
  --text-soft: #6b6b6b;
  --shadow: rgba(199, 125, 125, 0.15);
}

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

body {
  font-family: 'Noto Sans SC', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.8;
}

/* 顶部条带 */
.top-banner {
  background: linear-gradient(90deg, var(--lavender) 0%, var(--peach) 50%, var(--mint) 100%);
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* 头部 - 杂志风 */
.site-header {
  background: #fff;
  box-shadow: 0 2px 20px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 1.6rem;
  color: var(--deep-rose);
  text-decoration: none;
  font-weight: 600;
}

.logo:hover {
  color: var(--coral);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.nav-menu a {
  color: var(--text-dark);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.95rem;
  transition: all 0.25s;
}

.nav-menu a:hover {
  background: var(--peach);
  color: var(--deep-rose);
}

/* 主内容 - 杂志式 */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* 大标题区 */
.hero-banner {
  text-align: center;
  padding: 2.5rem 1rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--peach) 0%, var(--lavender) 100%);
  border-radius: 16px;
}

.hero-banner img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1rem 0;
  box-shadow: 0 8px 30px var(--shadow);
}

.hero-banner h1 {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* 介绍区块 - 左侧装饰线 */
.intro-block {
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  border-left: 4px solid var(--coral);
  background: #fff;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 4px 15px var(--shadow);
}

.intro-block h2 {
  font-size: 1.2rem;
  color: var(--deep-rose);
  margin-bottom: 1rem;
}

.intro-block p {
  color: var(--text-soft);
  margin-bottom: 1rem;
}

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

/* 杂志卡片网格 - 交错式 */
.magazine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.mag-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.mag-card:nth-child(odd) {
  border-top: 4px solid var(--coral);
}

.mag-card:nth-child(even) {
  border-top: 4px solid var(--lavender);
}

.mag-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px var(--shadow);
}

.mag-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.mag-card .card-body {
  padding: 1.2rem;
}

.mag-card .card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.mag-card .card-body h3 a {
  color: var(--text-dark);
  text-decoration: none;
}

.mag-card .card-body h3 a:hover {
  color: var(--deep-rose);
}

.mag-card .card-body p {
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* 列表页 - 横向杂志条目 */
.mag-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.mag-item {
  display: flex;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  transition: all 0.3s;
}

.mag-item:hover {
  box-shadow: 0 8px 25px var(--shadow);
}

.mag-item img {
  width: 140px;
  height: 110px;
  object-fit: cover;
  flex-shrink: 0;
}

.mag-item .item-body {
  flex: 1;
  padding: 1.2rem;
}

.mag-item .item-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.mag-item .item-body h3 a {
  color: var(--text-dark);
  text-decoration: none;
}

.mag-item .item-body h3 a:hover {
  color: var(--deep-rose);
}

.mag-item .item-body p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* 内容页 */
.article-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.article-wrap .page-head {
  text-align: center;
  margin-bottom: 2rem;
}

.article-wrap .page-head h1 {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.article-meta {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.article-body {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.5rem 0;
}

.article-body h2 {
  font-size: 1.25rem;
  color: var(--deep-rose);
  margin: 1.8rem 0 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--peach);
}

.article-body h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.6rem;
}

.article-body p {
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.article-body ul, .article-body ol {
  margin: 1rem 0 1rem 1.5rem;
  color: var(--text-soft);
}

/* 分页/返回 */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, var(--peach), var(--lavender));
  border-radius: 24px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.nav-links a:hover {
  transform: scale(1.05);
  color: var(--deep-rose);
}

/* 页脚 */
.site-footer {
  margin-top: 3rem;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, var(--lavender) 0%, var(--peach) 100%);
  text-align: center;
  border-radius: 16px 16px 0 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.site-footer p {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: var(--deep-rose);
  text-decoration: none;
}

/* 页面标题 */
.section-title {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.section-intro {
  text-align: center;
  color: var(--text-soft);
  margin-bottom: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* 响应式 */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
  }

  .nav-menu {
    justify-content: center;
  }

  .mag-item {
    flex-direction: column;
  }

  .mag-item img {
    width: 100%;
    height: 180px;
  }

  .magazine-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  main {
    padding: 1rem;
  }

  .article-body {
    padding: 1.5rem;
  }
}
