:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #f1f5f9;
  --card: #ffffff;
  --line: #e2e8f0;
  --red: #e11d48;
  --red-dark: #be123c;
  --blue: #2563eb;
  --dark: #111827;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  padding-bottom: 42px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(225, 29, 72, 0.08), transparent 24rem),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 12px;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 16%, rgba(37, 99, 235, 0.38), transparent 20rem),
    linear-gradient(135deg, #0f172a 0%, #171923 52%, #3b0d17 100%);
  box-shadow: var(--shadow);
}

.hero::after {
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 280px;
  height: 280px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.topbar,
.brand,
.search-row,
.section-head,
.card-meta,
.detail-meta {
  display: flex;
  align-items: center;
}

.topbar {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  gap: 10px;
  color: inherit;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
}

.nav-pill,
.tag,
.read-time {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.nav-pill {
  color: #fecdd3;
  background: rgba(255, 255, 255, 0.1);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  padding: 24px 0 4px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.hero .eyebrow {
  color: #fb7185;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12em;
  margin-bottom: 10px;
  font-size: clamp(34px, 9vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.hero-desc {
  max-width: 40em;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.75;
}

.search-card {
  width: min(100%, 620px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.search-card label {
  display: block;
  margin: 0 0 8px 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.search-row {
  gap: 10px;
}

.search-row input {
  min-width: 0;
  flex: 1;
  border: 0;
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.search-row button,
.ghost-button,
.back-button {
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 16px 34px rgba(225, 29, 72, 0.24);
  font-weight: 900;
}

main {
  padding: 18px 0 42px;
}

.spotlight-section,
.feed-section,
.info-panel,
.article-detail,
.recommend-section {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.04);
}

.spotlight-section,
.feed-section {
  padding: 16px;
}

.section-head {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-head.compact {
  margin-bottom: 12px;
}

.section-head h2,
.recommend-head h2 {
  margin: 0;
  font-size: clamp(24px, 6vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.ghost-button {
  flex: 0 0 auto;
  background: var(--dark);
  box-shadow: none;
}

.spotlight-grid {
  display: grid;
  gap: 12px;
}

.spotlight-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.spotlight-cover {
  min-height: 174px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.12), rgba(225, 29, 72, 0.16)),
    linear-gradient(135deg, #cbd5e1, #f1f5f9);
  background-position: center;
  background-size: cover;
}

.spotlight-body {
  padding: 16px;
}

.tag {
  color: var(--red-dark);
  background: rgba(225, 29, 72, 0.1);
}

.read-time {
  color: var(--muted);
  background: var(--soft);
}

.spotlight-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.spotlight-card p,
.article-card p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.7;
  -webkit-box-orient: vertical;
}

.spotlight-card p {
  margin-bottom: 16px;
  font-size: 14px;
  -webkit-line-clamp: 3;
}

.spotlight-card button,
.article-card button {
  border: 0;
  padding: 0;
  color: var(--red);
  background: transparent;
  font-weight: 900;
}

.news-layout {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.article-list {
  display: grid;
  gap: 10px;
}

.article-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.article-card:hover {
  border-color: rgba(225, 29, 72, 0.28);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.card-body {
  min-width: 0;
}

.card-meta {
  gap: 8px;
  margin-bottom: 10px;
}

.article-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.03em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-card p {
  margin-bottom: 12px;
  font-size: 13px;
  -webkit-line-clamp: 2;
}

.info-panel {
  margin-top: 10px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(225, 29, 72, 0.04)),
    #fff;
}

.info-panel h3 {
  margin-bottom: 14px;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.info-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-panel button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  width: 100%;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  line-height: 1.55;
}

.info-panel button span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.state-box,
.load-more-status {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 16px;
  color: var(--muted);
  background: #fff;
  text-align: center;
  font-size: 13px;
}

.state-box {
  display: none;
}

.state-box.visible,
.load-more-status {
  display: block;
}

.load-more-status {
  margin-top: 12px;
}

.hidden {
  display: none !important;
}

.detail-view {
  overflow: hidden;
}

.back-button {
  margin-bottom: 14px;
  background: var(--dark);
  box-shadow: none;
}

.article-detail,
.recommend-section {
  padding: 20px 18px;
}

.article-detail h1 {
  margin-bottom: 16px;
  font-size: clamp(30px, 8vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-meta {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.article-content {
  color: #1f2937;
  font-size: 16px;
  line-height: 1.92;
}

.article-content p {
  margin-bottom: 16px;
}

.article-content img {
  display: block;
  height: auto;
  max-width: 100%;
  border-radius: 14px;
}

.recommend-section {
  margin-top: 16px;
}

.recommend-head {
  margin-bottom: 12px;
}

.site-footer {
  display: flex;
  justify-content: center;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  font-size: 12px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--red);
}

@media (min-width: 720px) {
  .site-shell {
    padding: 20px;
  }

  .hero {
    padding: 24px;
  }

  .hero-content {
    padding-top: 32px;
  }

  .spotlight-section,
  .feed-section,
  .info-panel,
  .article-detail,
  .recommend-section {
    border-radius: 28px;
  }

  .spotlight-section,
  .feed-section,
  .article-detail,
  .recommend-section {
    padding: 24px;
  }

  .spotlight-grid {
    grid-template-columns: 1.35fr 1fr;
  }

  .spotlight-card:first-child {
    grid-row: span 2;
  }

  .spotlight-card:first-child .spotlight-cover {
    min-height: 320px;
  }

  .spotlight-card:not(:first-child) {
    grid-template-columns: 148px 1fr;
  }

  .spotlight-card:not(:first-child) .spotlight-cover {
    min-height: 100%;
  }

  .spotlight-card:first-child h3 {
    font-size: 30px;
  }

  .info-panel {
    padding: 22px;
  }
}

@media (min-width: 1040px) {
  .news-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }

  .info-panel {
    position: sticky;
    top: 20px;
  }
}
