:root {
  --bg: #f6f7fd;
  --surface: #ffffff;
  --text: #1b1e34;
  --muted: #646b88;
  --accent: #6366f1;
  --pink: #ec4899;
  --border: #e6e8f5;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  scroll-behavior: smooth;
}

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

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
}

.nav-star {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.nav-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 2px;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 24px 64px;
  background:
    radial-gradient(circle at 18% 22%, rgba(99, 102, 241, 0.16), transparent 44%),
    radial-gradient(circle at 82% 72%, rgba(236, 72, 153, 0.14), transparent 44%),
    linear-gradient(180deg, #eef0ff 0%, #f6f7fd 100%);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #d5d8fb;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.hero-desc {
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 22px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span {
  font-size: 12px;
  color: #4b5274;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  padding: 4px 11px;
  border-radius: 99px;
}

/* Sections */
.section {
  max-width: 1040px;
  margin: 44px auto;
  padding: 0 24px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 19px;
}

.section-note {
  font-size: 12px;
  color: var(--muted);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.acg-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.16s, box-shadow 0.16s;
}

.acg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(30, 34, 75, 0.09);
}

.card-cover {
  height: 138px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: #fff;
}

.cover-1 {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 55%, #a855f7 100%);
}

.cover-2 {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 60%, #312e81 100%);
}

.cover-3 {
  background: linear-gradient(135deg, #06b6d4 0%, #6366f1 60%, #8b5cf6 100%);
}

.cover-tag {
  font-size: 11px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(6px);
  padding: 3px 9px;
  border-radius: 99px;
}

.cover-score {
  font-size: 16px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 9px;
  border-radius: 8px;
}

.card-body {
  padding: 16px 18px 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.card-body p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #8890ad;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

/* OST */
.ost-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.ost-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.ost-item:last-child {
  border-bottom: none;
}

.ost-idx {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  width: 24px;
}

.ost-info {
  flex: 1;
}

.ost-title {
  font-weight: 600;
  font-size: 14px;
}

.ost-sub {
  font-size: 12px;
  color: var(--muted);
}

.ost-len {
  font-size: 12px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Notes */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.note-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.note-date {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

.note-card h3 {
  margin: 6px 0 8px;
  font-size: 15px;
}

.note-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* About */
.about-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.about-box h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.about-box p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  max-width: 1040px;
  margin: 48px auto 0;
  padding: 22px 24px 36px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
