:root {
  --bg-main: #eef6ff;
  --bg-soft: #f9fcff;
  --ink-main: #11243d;
  --ink-soft: #4f6484;
  --line: rgba(35, 86, 156, 0.17);
  --line-strong: rgba(34, 94, 175, 0.3);
  --panel: rgba(255, 255, 255, 0.82);
  --panel-solid: #ffffff;
  --shadow-soft: 0 18px 42px rgba(19, 45, 79, 0.12);
  --shadow-card: 0 10px 25px rgba(12, 43, 85, 0.08);
  --accent: #1f6feb;
  --accent-soft: #67d1ff;
  --accent-ink: #0843a2;
  --ai: #1269ff;
  --tech: #0fba9a;
  --world: #7c4dff;
  --font-ui: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Syne", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--ink-main);
  font-family: var(--font-ui);
  background:
    radial-gradient(circle at 18% 8%, rgba(143, 217, 255, 0.48), transparent 38%),
    radial-gradient(circle at 83% 14%, rgba(96, 164, 255, 0.24), transparent 34%),
    linear-gradient(180deg, #f6fbff 0%, #ecf5ff 36%, #f2f9ff 100%);
  line-height: 1.5;
}

.texture-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(125deg, rgba(255, 255, 255, 0.28) 0 1px, rgba(255, 255, 255, 0) 1px 13px),
    radial-gradient(circle at 62% 72%, rgba(83, 149, 245, 0.15), transparent 48%);
  mix-blend-mode: soft-light;
}

.site-header {
  width: min(1180px, calc(100% - 1.6rem));
  margin: 1rem auto 0;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  text-decoration: none;
  color: var(--ink-main);
}

.brand-dot {
  width: 0.86rem;
  height: 0.86rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #88deff 35%, #196bdf 100%);
  box-shadow: 0 0 0 5px rgba(141, 220, 255, 0.22);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sync-label {
  font-size: 0.76rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.refresh-btn {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #eef7ff);
  color: var(--accent-ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
}

.refresh-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(27, 90, 182, 0.16);
}

.refresh-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.layout {
  width: min(1180px, calc(100% - 1.6rem));
  margin: 1rem auto 0;
  padding-bottom: 2rem;
  display: grid;
  gap: 1rem;
}

.hero-panel {
  border: 1px solid rgba(40, 102, 182, 0.22);
  border-radius: 24px;
  padding: clamp(0.95rem, 2.5vw, 1.3rem);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(242, 250, 255, 0.95)),
    radial-gradient(circle at 15% 0%, rgba(105, 180, 255, 0.22), transparent 32%);
  box-shadow: var(--shadow-soft);
}

.hero-spotlight {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(37, 95, 179, 0.25);
  min-height: clamp(250px, 40vw, 410px);
  background: linear-gradient(130deg, #dcecff, #f7fbff);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition:
    opacity 0.45s ease,
    transform 5.6s ease;
}

.hero-spotlight:hover .hero-image {
  transform: scale(1.07);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(0.9rem, 2vw, 1.25rem);
  color: #f4f9ff;
  background:
    linear-gradient(180deg, rgba(7, 24, 53, 0.02), rgba(7, 24, 53, 0.82) 64%, rgba(6, 19, 39, 0.9) 100%),
    linear-gradient(120deg, rgba(14, 67, 149, 0.55), rgba(11, 56, 125, 0.12));
}

.hero-kicker {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #9ed5ff;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

h1 {
  margin: 0.5rem 0 0.25rem;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1.2;
}

.hero-mini {
  margin: 0;
  font-size: 0.8rem;
  color: #c6e6ff;
  font-weight: 600;
}

.hero-link {
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(185, 224, 255, 0.65);
  border-radius: 999px;
  text-decoration: none;
  color: #eef8ff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.38rem 0.76rem;
  background: rgba(11, 49, 106, 0.42);
}

.hero-link:hover {
  border-color: #ffffff;
}

.hero-dots {
  margin-top: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-dots span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(208, 232, 255, 0.45);
  border: 1px solid rgba(184, 226, 255, 0.45);
}

.hero-dots span.is-active {
  background: #7bd0ff;
  border-color: #bce8ff;
}

.hero-stats {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.stat-card {
  border: 1px solid rgba(35, 92, 175, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.7rem 0.8rem;
}

.stat-label {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.stat-card strong {
  font-size: 1.45rem;
  font-family: var(--font-display);
  color: var(--accent-ink);
}

.section-block {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  padding: clamp(0.95rem, 2.3vw, 1.35rem);
  box-shadow: var(--shadow-card);
}

.section-trends {
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.87), rgba(242, 248, 255, 0.9)),
    radial-gradient(circle at 5% 10%, rgba(99, 164, 255, 0.17), transparent 36%);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.3vw, 1.82rem);
}

.section-head p {
  margin: 0.32rem 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

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

.news-card {
  border: 1px solid rgba(39, 90, 169, 0.18);
  border-radius: 16px;
  padding: 0.55rem;
  background: var(--panel-solid);
  display: grid;
  gap: 0.52rem;
  min-height: 220px;
}

.news-cover-wrap {
  margin: -0.02rem -0.02rem 0;
  border-radius: 12px;
  overflow: hidden;
  min-height: 138px;
  border: 1px solid rgba(41, 98, 183, 0.14);
  background: linear-gradient(120deg, #e0edff, #f8fbff);
}

.news-cover {
  width: 100%;
  height: 138px;
  object-fit: cover;
  display: block;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.source-chip {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.46rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 96, 181, 0.2);
  color: #144b9b;
  background: rgba(35, 115, 222, 0.08);
}

.category-chip {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.44rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.category-chip.ai {
  color: #0e4eba;
  background: rgba(18, 105, 255, 0.1);
  border-color: rgba(18, 105, 255, 0.3);
}

.category-chip.tech {
  color: #047560;
  background: rgba(15, 186, 154, 0.1);
  border-color: rgba(15, 186, 154, 0.28);
}

.category-chip.world {
  color: #5f35cf;
  background: rgba(124, 77, 255, 0.1);
  border-color: rgba(124, 77, 255, 0.3);
}

.news-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.news-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.news-link {
  margin-top: auto;
  justify-self: start;
  color: var(--accent-ink);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 700;
}

.news-link:hover {
  text-decoration: underline;
}

.news-time {
  color: #5e6f8d;
  font-size: 0.72rem;
  font-weight: 600;
}

.trend-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trend-list li {
  margin: 0;
}

.trend-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  text-decoration: none;
  border: 1px solid rgba(36, 98, 184, 0.26);
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  background: rgba(255, 255, 255, 0.9);
  color: #104993;
  font-size: 0.8rem;
  font-weight: 600;
}

.trend-link:hover {
  border-color: var(--accent);
}

.trend-index {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(39, 116, 224, 0.13);
  font-size: 0.67rem;
  font-weight: 700;
}

.all-news-head {
  align-items: center;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-btn {
  border: 1px solid rgba(42, 102, 185, 0.25);
  border-radius: 999px;
  padding: 0.34rem 0.74rem;
  background: rgba(255, 255, 255, 0.86);
  color: #265790;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-btn.is-active {
  background: linear-gradient(130deg, #ebf5ff, #ffffff);
  border-color: rgba(24, 105, 214, 0.5);
  color: var(--accent-ink);
}

.news-list {
  margin-top: 0.82rem;
  display: grid;
  gap: 0.55rem;
}

.all-news-tools {
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.all-news-count {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.more-btn {
  border: 1px solid rgba(42, 102, 185, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #1d508e;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.38rem 0.8rem;
  cursor: pointer;
}

.more-btn:hover {
  border-color: var(--accent);
}

.more-btn[hidden] {
  display: none;
}

.news-row {
  border: 1px solid rgba(35, 92, 175, 0.17);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.55rem;
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 0.55rem;
}

.news-row-thumb {
  width: 88px;
  height: 58px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid rgba(42, 102, 185, 0.16);
  background: linear-gradient(120deg, #dfecff, #f7fbff);
}

.news-row-main {
  display: grid;
  gap: 0.34rem;
}

.news-row-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.news-row a {
  color: var(--ink-main);
  text-decoration: none;
  font-weight: 700;
}

.news-row a:hover {
  text-decoration: underline;
}

.news-row-meta {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.empty-state {
  border: 1px dashed rgba(49, 104, 182, 0.34);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  padding: 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-footer {
  width: min(1180px, calc(100% - 1.6rem));
  margin: 0 auto 1.2rem;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: #496585;
  font-size: 0.76rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.status-text {
  margin: 0;
  color: #1959b1;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header,
  .layout,
  .site-footer {
    width: calc(100% - 1rem);
  }

  .site-header {
    margin-top: 0.5rem;
    border-radius: 13px;
  }

  .header-tools {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: 1.5rem;
  }

  .hero-stats,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .all-news-head {
    align-items: flex-start;
  }

  .news-card {
    min-height: auto;
  }

  .news-row {
    grid-template-columns: 1fr;
  }

  .news-row-thumb {
    width: 100%;
    height: 150px;
  }

  .site-footer {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
