/* 第六版：男娘日记 · 兴趣文化分享站
   设计语言：
   - 顶部透明导航叠在渐变背景之上
   - 大面积中心 Hero + 下方分段色块
   - 以卡片和时间线为主要视觉元素
*/

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

html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f9fafb;
  color: #111827;
  line-height: 1.8;
}

a {
  color: #0f766e;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hero-wrap {
  background: linear-gradient(180deg, #fdf2f8 0, #ffffff 45%, #f9fafb 100%);
  padding-bottom: 2.5rem;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.2rem 1.3rem 2.1rem;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}

.brand {
  color: #111827;
}

.brand-title {
  font-size: 1.32rem;
  font-weight: 700;
}

.brand-sub {
  font-size: 0.8rem;
  color: #6b7280;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: #374151;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav-links a:hover {
  border-color: rgba(148, 163, 184, 0.6);
}

.nav-links a.active {
  background: #111827;
  color: #f9fafb;
}

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 1.6rem;
  align-items: center;
}

.hero-title {
  font-size: 1.9rem;
  color: #111827;
  margin-bottom: 0.5rem;
}

.hero-lead {
  font-size: 0.95rem;
  color: #374151;
  margin-bottom: 0.8rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.hero-tag {
  font-size: 0.78rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  color: #6b21a8;
  background: #fdf2ff;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.btn-primary {
  display: inline-block;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  background: #ec4899;
  color: #fff7fb;
  font-size: 0.92rem;
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.4);
}

.btn-primary:hover {
  background: #db2777;
}

.hero-cta small {
  font-size: 0.8rem;
  color: #6b7280;
}

.hero-visual {
  background: #ffffff;
  border-radius: 1.1rem;
  padding: 0.8rem;
  border: 1px solid #e5e7eb;
}

.hero-visual img {
  width: 100%;
  border-radius: 0.8rem;
  margin-bottom: 0.6rem;
}

.hero-visual p {
  font-size: 0.78rem;
  color: #4b5563;
}

.hero-visual strong {
  display: block;
  color: #111827;
  margin-bottom: 0.2rem;
}

/* 主体区域：纵向分块 */
.page-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.3rem 2.4rem;
  background: #f9fafb;
}

.section {
  margin-top: 1.8rem;
}

.section-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #111827;
}

.section-intro {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 0.9rem;
}

.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 1.4rem;
}

.text-block p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  text-indent: 2em;
  color: #374151;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  font-size: 0.8rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #065f46;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.card {
  background: #ffffff;
  border-radius: 0.85rem;
  border: 1px solid #e5e7eb;
  padding: 0.8rem 0.9rem;
}

.card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.card p {
  font-size: 0.86rem;
  color: #4b5563;
}

.timeline {
  border-left: 2px solid #e5e7eb;
  padding-left: 1rem;
}

.timeline-item {
  margin-bottom: 0.9rem;
}

.timeline-label {
  font-size: 0.78rem;
  color: #6b7280;
  margin-bottom: 0.1rem;
}

.timeline-title {
  font-size: 0.95rem;
  color: #111827;
}

.timeline-desc {
  font-size: 0.86rem;
  color: #4b5563;
}

.footer {
  margin-top: 2rem;
  padding-top: 0.8rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.78rem;
  color: #6b7280;
}

/* 列表页通用 */
.list-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.6rem 1.3rem 2.3rem;
  background: #f9fafb;
}

.list-header {
  margin-bottom: 1rem;
}

.list-header h1 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
  color: #111827;
}

.list-header p {
  font-size: 0.9rem;
  color: #4b5563;
}

.article-list {
  list-style: none;
}

.article-item {
  padding: 0.7rem 0;
  border-bottom: 1px solid #e5e7eb;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 0.9rem;
}

.article-thumb img {
  width: 100%;
  height: 85px;
  object-fit: cover;
  border-radius: 0.7rem;
}

.article-meta {
  font-size: 0.78rem;
  color: #6b7280;
  margin-bottom: 0.1rem;
}

.article-title {
  font-size: 0.98rem;
  margin-bottom: 0.12rem;
}

.article-title a {
  color: #111827;
}

.article-title a:hover {
  color: #0f766e;
}

.article-desc {
  font-size: 0.86rem;
  color: #4b5563;
}

/* 文章页通用 */
.article-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.6rem 1.3rem 2.3rem;
  background: #f9fafb;
}

.article-page {
  background: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  padding: 1.1rem 1.2rem 1.4rem;
}

.article-page h1 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.article-meta-line {
  font-size: 0.8rem;
  color: #78716c;
  margin-bottom: 0.7rem;
}

.article-cover {
  margin-bottom: 0.9rem;
}

.article-cover img {
  width: 100%;
  border-radius: 0.7rem;
}

.article-body p {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  text-indent: 2em;
  color: #374151;
}

.article-body h2 {
  font-size: 1.05rem;
  margin: 0.8rem 0 0.4rem;
  border-left: 3px solid #0f766e;
  padding-left: 0.45rem;
}

/* 响应式 */
@media (max-width: 960px) {
  .hero-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid-two {
    grid-template-columns: minmax(0, 1fr);
  }
  .card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  html {
    font-size: 15px;
  }
  .hero-inner {
    padding: 1rem 1rem 1.8rem;
  }
  .page-main,
  .list-main,
  .article-shell {
    padding: 1.2rem 1rem 2.1rem;
  }
  .shell-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .nav-links {
    justify-content: flex-start;
  }
  .card-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .article-item {
    grid-template-columns: minmax(0, 1fr);
  }
  .article-thumb img {
    height: 150px;
  }
}

