/* BelugaGlobal — en.baijing.cn
   Palette follows baijing.cn: primary #35AFFD, accent #FF8D00 */

:root {
  --brand: #35affd;
  --brand-dark: #1b8fd8;
  --brand-soft: #eaf6ff;
  --accent: #ff8d00;
  --ink: #1b1f24;
  --body: #4a5560;
  --muted: #8b95a1;
  --line: #e8ecf1;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .12);
  --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--body);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: #cfd6de;
  font-size: 12.5px;
  height: 36px;
  display: flex;
  align-items: center;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.tb-left { display: flex; gap: 20px; align-items: center; }
.tb-left span:nth-child(2) { color: var(--accent); }
.tb-right { display: flex; gap: 16px; align-items: center; }
.tb-right a:hover { color: #fff; }
.tag-en {
  background: var(--brand);
  color: #fff;
  padding: 1px 7px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .04em;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand img { height: 30px; width: auto; }

.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a {
  position: relative;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--body);
  border-radius: 8px;
  transition: color .18s, background .18s;
}
.nav a:hover { color: var(--brand); background: var(--brand-soft); }
.nav a.active { color: var(--brand); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -19px;
  height: 2.5px;
  background: var(--brand);
  border-radius: 2px;
}

.search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--muted);
  transition: border-color .18s, background .18s;
}
.search:focus-within { border-color: var(--brand); background: #fff; }
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  width: 190px;
}
.burger { display: none; }

/* ---------- Hero carousel ---------- */
.hero { padding: 28px 0 8px; }
.hero-grid { display: grid; grid-template-columns: 1.62fr 1fr; gap: 20px; }

.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9.3;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.slide.on { opacity: 1; pointer-events: auto; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 16, 24, .88) 0%, rgba(10, 16, 24, .45) 38%, rgba(10, 16, 24, 0) 68%);
}
.slide-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 30px 30px;
  z-index: 2;
  color: #fff;
}
.slide-body h2 {
  color: #fff;
  font-size: 27px;
  margin: 12px 0 8px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .3);
}
.slide-body p {
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: 14.5px;
  max-width: 62ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slide-meta { margin-top: 12px; font-size: 12.5px; color: rgba(255, 255, 255, .62); }

.chip {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 5px;
}
.chip.ghost { background: var(--brand-soft); color: var(--brand-dark); }
.chip.accent { background: var(--accent); }

.dots {
  position: absolute;
  right: 26px;
  bottom: 30px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, .45);
  transition: width .25s, background .25s;
}
.dots button.on { width: 26px; border-radius: 5px; background: #fff; }

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(16, 24, 40, .38);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .2s, background .2s;
}
.carousel:hover .arrow { opacity: 1; }
.arrow:hover { background: var(--brand); }
.arrow.prev { left: 16px; }
.arrow.next { right: 16px; }

/* side picks */
.hero-side { display: grid; grid-template-rows: repeat(3, 1fr); gap: 12px; }
.pick {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.pick:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.pick img { width: 104px; height: 100%; min-height: 70px; object-fit: cover; border-radius: 7px; }
.pick h4 {
  font-size: 14.5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pick .m { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- Sections ---------- */
.section { padding: 44px 0; }
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.sec-title { font-size: 21px; font-weight: 700; color: var(--ink); position: relative; padding-left: 13px; }
.sec-title::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 18px;
  background: var(--brand);
  border-radius: 2px;
}
.sec-more { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.sec-more:hover { color: var(--brand); }

.layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }

/* tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--body);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .16s;
}
.tabs button:hover { border-color: var(--brand); color: var(--brand); }
.tabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

/* article cards */
.cards { display: grid; gap: 18px; }
.card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: #d2e9fb; box-shadow: var(--shadow); transform: translateY(-2px); }
.card:hover h3 { color: var(--brand); }
.card img { width: 220px; height: 134px; object-fit: cover; border-radius: 9px; }
.card-body { display: flex; flex-direction: column; min-width: 0; }
.card h3 { font-size: 17.5px; margin: 8px 0 8px; transition: color .18s; }
.card p {
  margin: 0;
  font-size: 14px;
  color: var(--body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  margin-top: auto;
  padding-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  gap: 14px;
}

/* sidebar widgets */
.aside { display: grid; gap: 20px; position: sticky; top: 88px; }
.widget { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.widget-head {
  padding: 13px 18px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 9px;
}
.widget-head .ic { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.widget-body { padding: 16px 18px; }

.flash li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.flash li:last-child { border-bottom: 0; padding-bottom: 0; }
.flash .t { color: var(--brand); font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.flash li:hover .x { color: var(--brand); }

.rank li { display: flex; gap: 12px; padding: 9px 0; font-size: 13.5px; align-items: flex-start; }
.rank .n {
  flex: none;
  width: 19px; height: 19px;
  border-radius: 4px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.rank li:nth-child(-n+3) .n { background: var(--accent); color: #fff; }
.rank li:hover { color: var(--brand); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 8px; text-align: center; }
.stat .n { font-size: 21px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.stat .l { font-size: 12px; color: var(--muted); margin-top: 2px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  font-size: 12.5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--body);
  transition: all .16s;
}
.tag-cloud a:hover { background: var(--brand); color: #fff; }

/* ---------- Events (long poster) ---------- */
.events { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.event-wrap { display: grid; grid-template-columns: 420px 1fr; gap: 44px; align-items: center; }
.event-poster {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
  line-height: 0;
}
.event-poster img { width: 100%; height: auto; }
.event-info h2 { font-size: 32px; margin: 14px 0 6px; }
.event-info .sub { color: var(--accent); font-weight: 700; font-size: 15px; }
.event-info .desc { margin: 16px 0 24px; font-size: 15px; max-width: 54ch; }
.event-stats { display: flex; gap: 40px; margin-bottom: 28px; flex-wrap: wrap; }
.event-stats .n { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.event-stats .l { font-size: 12.5px; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 26px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transition: background .18s, transform .18s, box-shadow .18s;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(53, 175, 253, .32); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); margin-left: 12px; }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); background: #fff; box-shadow: none; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #9aa5b1; padding: 48px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.footer h4 { color: #fff; font-size: 14.5px; margin-bottom: 14px; }
.footer li { margin-bottom: 9px; font-size: 13.5px; }
.footer a:hover { color: var(--brand); }
.footer .desc { margin-top: 16px; font-size: 13.5px; line-height: 1.7; max-width: 42ch; }
.footer .logo-f { height: 30px; background: #fff; padding: 6px 11px; border-radius: 7px; width: auto; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 18px 0 22px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #6b7580;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
  .pick { grid-template-columns: 84px 1fr; }
  .pick img { width: 84px; }
  .layout { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: repeat(2, 1fr); }
  .event-wrap { grid-template-columns: 320px 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .topbar .tb-left span:nth-child(2) { display: none; }
  .header .container { height: 60px; gap: 12px; }
  .search { display: none; }
  .burger {
    display: grid;
    place-items: center;
    margin-left: auto;
    width: 38px; height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    color: var(--ink);
  }
  .nav {
    position: absolute;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 14px;
    gap: 2px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a.active::after { display: none; }
  .hero-side { grid-template-columns: 1fr; }
  .aside { grid-template-columns: 1fr; }
  .slide-body { padding: 18px 18px 22px; }
  .slide-body h2 { font-size: 19px; }
  .slide-body p { display: none; }
  .dots { bottom: 22px; right: 18px; }
  .arrow { display: none; }
  .card { grid-template-columns: 1fr; gap: 12px; }
  .card img { width: 100%; height: 190px; }
  .event-wrap { grid-template-columns: 1fr; }
  .event-info h2 { font-size: 25px; }
  .event-stats { gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
