/* 第七版：男娘日记 · 获取与阅读向
   设计语言：
   - 顶部实色导航 + 右侧“状态条”
   - 首页主体为卡片栅格 + 信息分栏
   - 重点突出“在线看完整版 / 兑换码说明”两个入口
*/

*,
*::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: #0b1120;
  color: #e5e7eb;
  line-height: 1.8;
}

a {
  color: #38bdf8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.4rem 1.4rem 2.6rem;
}

/* 顶部导航 */
.topbar {
  background: #020617;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
  border: 1px solid #1f2937;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: radial-gradient(circle at 30% 20%, #f9a8d4 0, #be185d 40%, #312e81 100%);
}

.logo-text strong {
  font-size: 1.1rem;
  color: #f9fafb;
}

.logo-text span {
  display: block;
  font-size: 0.78rem;
  color: #9ca3af;
}

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

.nav a {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  color: #e5e7eb;
}

.nav a.active {
  background: #f97316;
  color: #0b1120;
}

.nav a:hover:not(.active) {
  background: #111827;
}

.status-pill {
  font-size: 0.78rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #022c22;
  color: #a7f3d0;
}

/* Hero 区：信息栅格 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 1.6rem;
  margin-bottom: 1.8rem;
}

.hero-main-title {
  font-size: 1.8rem;
  color: #f9fafb;
  margin-bottom: 0.5rem;
}

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

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

.hero-keyword {
  font-size: 0.78rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: #111827;
  color: #e5e7eb;
  border: 1px solid #1f2937;
}

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

.btn-main {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: #22c55e;
  color: #022c22;
  font-size: 0.92rem;
}

.btn-main:hover {
  background: #16a34a;
}

.btn-ghost {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #4b5563;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.btn-ghost:hover {
  background: #111827;
}

.hero-cta-note {
  font-size: 0.78rem;
  color: #9ca3af;
}

.hero-side {
  background: #020617;
  border-radius: 1rem;
  padding: 0.9rem;
  border: 1px solid #1f2937;
}

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

.hero-side h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: #e5e7eb;
}

.hero-side p {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* 主体卡片栅格 */
.section {
  margin-top: 1.6rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.section-head h2 {
  font-size: 1.15rem;
  color: #f9fafb;
}

.section-head span {
  font-size: 0.8rem;
  color: #9ca3af;
}

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

.card {
  background: #020617;
  border-radius: 0.9rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #1f2937;
}

.card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: #e5e7eb;
}

.card h3 a {
  color: inherit;
}

.card h3 a:hover {
  color: #38bdf8;
}

.card p {
  font-size: 0.82rem;
  color: #9ca3af;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.chip {
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #111827;
  color: #9ca3af;
}

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

/* 列表页 */
.list-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.4rem 1.4rem 2.4rem;
}

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

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

.list-header p {
  font-size: 0.9rem;
  color: #9ca3af;
}

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

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

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

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

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

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

.article-title a:hover {
  color: #38bdf8;
}

.article-desc {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* 文章页 */
.article-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.4rem 1.4rem 2.4rem;
}

.article-box {
  background: #020617;
  border-radius: 0.9rem;
  border: 1px solid #1f2937;
  padding: 1.1rem 1.2rem 1.4rem;
}

.article-box h1 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  color: #f9fafb;
}

.article-meta-line {
  font-size: 0.8rem;
  color: #6b7280;
  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: #e5e7eb;
}

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

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

@media (max-width: 720px) {
  html {
    font-size: 15px;
  }
  .shell,
  .list-shell,
  .article-wrap {
    padding: 1.1rem 1rem 2.2rem;
  }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .nav {
    width: 100%;
  }
  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .article-item {
    grid-template-columns: minmax(0, 1fr);
  }
  .article-thumb img {
    height: 150px;
  }
}

