/*
Theme Name: Starlight Content
Theme URI: https://xuwendi.cn
Author: Starlight Dramas
Description: A lightweight Apple-inspired content theme for mini drama SEO guides.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: starlight-content
*/

:root {
  --ink: #111827;
  --muted: #64748b;
  --line: rgba(15, 23, 42, .11);
  --glass: rgba(255, 255, 255, .74);
  --blue: #2563eb;
  --cyan: #06b6d4;
  --green: #14b8a6;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 18%, rgba(96, 165, 250, .20), transparent 32rem),
    radial-gradient(circle at 80% 8%, rgba(45, 212, 191, .18), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 45%, #eef6ff 100%);
  letter-spacing: 0;
}

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

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 16px;
  z-index: 10;
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 26px;
  background: var(--glass);
  box-shadow: 0 18px 50px rgba(31, 41, 55, .10);
  backdrop-filter: blur(22px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
}

.mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #111827, #2563eb 55%, #06b6d4);
  box-shadow: 0 10px 24px rgba(37, 99, 235, .25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: #475569;
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  color: white;
  font-weight: 700;
  background: #111827;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .18);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: 40px;
  align-items: center;
  padding: 88px 0 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #475569;
  background: rgba(255, 255, 255, .66);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
  font-size: 14px;
  font-weight: 650;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(20, 184, 166, .12);
}

h1 {
  margin: 24px 0 18px;
  max-width: 780px;
  font-size: clamp(46px, 7vw, 84px);
  line-height: .98;
  font-weight: 820;
}

.shine {
  display: block;
  color: transparent;
  background: linear-gradient(100deg, #0f172a 10%, #2563eb 48%, #06b6d4 88%);
  -webkit-background-clip: text;
  background-clip: text;
}

.lead {
  max-width: 660px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 750;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .75);
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, #111827, #1d4ed8);
  border-color: transparent;
  box-shadow: 0 18px 42px rgba(37, 99, 235, .24);
}

.hero-panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 34px;
  background: rgba(255, 255, 255, .66);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .12);
  backdrop-filter: blur(18px);
}

.hero-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.mini-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-list a {
  display: block;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fbff;
  color: #334155;
  font-weight: 650;
}

section { padding: 58px 0; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.section-head p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.post-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 30px;
  background: rgba(255, 255, 255, .70);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .10);
  backdrop-filter: blur(18px);
}

.post-card:nth-child(4n+1) .thumb { background: linear-gradient(135deg, #dbeafe, #60a5fa 42%, #0f172a); }
.post-card:nth-child(4n+2) .thumb { background: linear-gradient(135deg, #fff7ed, #fb7185 46%, #7c2d12); }
.post-card:nth-child(4n+3) .thumb { background: linear-gradient(135deg, #ecfeff, #2dd4bf 44%, #164e63); }
.post-card:nth-child(4n+4) .thumb { background: linear-gradient(135deg, #f8fafc, #a78bfa 44%, #312e81); }

.thumb {
  position: relative;
  height: 150px;
  border-radius: 22px;
  overflow: hidden;
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, .52)),
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, .88), transparent 80px);
}

.post-card h3 {
  margin: 18px 4px 10px;
  font-size: 22px;
  line-height: 1.24;
}

.post-card p {
  margin: 0 4px 20px;
  color: var(--muted);
  line-height: 1.65;
}

.read-more {
  margin: auto 4px 0;
  color: #1d4ed8;
  font-weight: 750;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: var(--ad-height, 96px);
  margin: var(--ad-margin, 0);
  border: 1px dashed rgba(100, 116, 139, .28);
  border-radius: 22px;
  color: rgba(71, 85, 105, .74);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(239, 246, 255, .62)),
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(148, 163, 184, .08) 14px 15px);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ad-slot small {
  display: block;
  margin-top: 6px;
  color: rgba(100, 116, 139, .62);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.ad-leaderboard {
  --ad-height: 110px;
  --ad-margin: 0 0 38px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .64);
}

.category-card b {
  display: block;
  font-size: 18px;
  margin-bottom: 10px;
}

.category-card span {
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  padding: 34px 0 52px;
  color: #64748b;
  text-align: center;
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.article {
  max-width: 820px;
  margin: 64px auto;
  padding: 34px;
  border-radius: 30px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .10);
}

.article h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.article p,
.article li {
  color: #334155;
  font-size: 18px;
  line-height: 1.85;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 58px; }
  .post-grid, .category-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head p { margin-top: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
  h1 { font-size: 48px; }
}
