:root {
  color-scheme: light;
  --bg: #f7f9f8;
  --surface: #ffffff;
  --ink: #142126;
  --muted: #5f6f73;
  --line: #dce5e3;
  --teal: #2b8c83;
  --coral: #e65f43;
  --gold: #f2c94c;
  --shadow: 0 24px 60px rgba(20, 33, 38, 0.12);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101719;
  --surface: #172326;
  --ink: #f5f8f7;
  --muted: #afbebf;
  --line: #2d4144;
  --teal: #66c4b8;
  --coral: #ff8067;
  --gold: #f8d86a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(43, 140, 131, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(43, 140, 131, 0.08) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 10px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(220, 229, 227, 0.72);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  width: 42px;
  justify-self: start;
  line-height: 0;
}

.brand-logo {
  width: 100%;
  border-radius: 8px;
}

.nav {
  justify-self: center;
  gap: 36px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 850;
}

.nav a {
  position: relative;
  padding: 8px 0;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--coral);
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
  scroll-margin-top: 70px;
}

.hero {
  display: grid;
  min-height: auto;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  padding-top: 78px;
  padding-bottom: 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 24px;
  font-size: clamp(42px, 4.6vw, 58px);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-line {
  white-space: nowrap;
}

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

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.hero-text,
.intro-copy p,
.activity-subtitle {
  color: var(--muted);
  line-height: 1.8;
}

.hero-text {
  max-width: 580px;
  font-size: 18px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 22px;
  font-weight: 800;
}

.button.primary {
  background: var(--ink);
  color: var(--bg);
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
}

.hero-visual {
  margin: 0;
}

.hero-visual img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-visual .profile-cover {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
}

.profile-visual figcaption {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.profile-visual .avatar {
  width: 68px;
  height: 68px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(20, 33, 38, 0.18);
  object-fit: cover;
}

.profile-visual strong,
.profile-visual span {
  display: block;
}

.profile-visual strong {
  margin-bottom: 6px;
  font-size: 22px;
}

.profile-visual span {
  color: var(--muted);
  font-size: 14px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 7vw, 90px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.stat-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.stat-grid strong,
.stat-grid span {
  display: block;
}

.stat-grid strong {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 24px;
}

.stat-grid span {
  color: var(--muted);
  font-size: 13px;
}

.tag-list span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 9px 12px;
  color: var(--muted);
  font-size: 14px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.text-link {
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

.heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
}

.text-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.text-button:hover {
  border-color: color-mix(in srgb, var(--teal) 54%, var(--line));
  color: var(--teal);
}

.sync-status {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

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

.post-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  overflow: hidden;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.loading-card {
  color: var(--muted);
  font-weight: 800;
}

.post-card:hover,
.post-card:focus-visible {
  border-color: color-mix(in srgb, var(--teal) 55%, var(--line));
  box-shadow: 0 18px 42px rgba(20, 33, 38, 0.12);
  transform: translateY(-3px);
}

.post-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--teal) 35%, transparent);
  outline-offset: 3px;
}

.post-card img {
  width: calc(100% + 36px);
  height: 190px;
  margin: -18px -18px 18px;
  object-fit: cover;
}

.post-card p {
  color: var(--muted);
  line-height: 1.75;
}

.post-card .post-date {
  margin-bottom: 12px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
}

.post-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
}

.post-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: color-mix(in srgb, var(--ink) 68%, var(--muted));
  font-size: 13px;
  font-weight: 800;
}

.post-stats span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.76;
}

.post-stats span::after {
  content: attr(data-label);
  color: var(--muted);
  font-weight: 600;
}

.post-stats span:nth-child(2)::before {
  background: var(--coral);
}

.post-stats span:nth-child(3)::before {
  background: var(--gold);
}

.feature-post {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(43, 140, 131, 0.14), transparent 58%),
    var(--surface);
}

.feature-post h3 {
  max-width: 560px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.activities {
  border-top: 1px solid var(--line);
}

.page-title,
.detail-title {
  max-width: 820px;
  font-size: clamp(36px, 6vw, 64px);
}

.archive-page {
  padding-top: 64px;
}

.archive-meta {
  margin: -12px 0 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.archive-grid .post-card:first-child {
  grid-column: auto;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
  color: var(--muted);
  font-weight: 850;
}

.pager-button {
  display: inline-flex;
  min-width: 90px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.pager-button:not(.is-disabled):hover {
  border-color: color-mix(in srgb, var(--teal) 54%, var(--line));
  color: var(--teal);
}

.pager-button.is-disabled {
  pointer-events: none;
  opacity: 0.42;
}

.detail-page {
  max-width: 860px;
  padding-top: 48px;
}

.detail-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: clamp(20px, 5vw, 46px);
  box-shadow: 0 18px 44px rgba(20, 33, 38, 0.08);
}

.detail-back {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.detail-title {
  margin-bottom: 20px;
  line-height: 1.12;
}

.detail-content {
  display: grid;
  gap: 14px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.detail-content p {
  margin-bottom: 0;
}

.detail-gallery {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.detail-gallery img {
  width: 100%;
  max-height: 760px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: color-mix(in srgb, var(--bg) 82%, var(--surface));
}

.detail-video {
  width: 100%;
  max-height: 760px;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000000;
}

.activity-board {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.activity-lane {
  display: grid;
  gap: 14px;
}

.activity-kicker {
  margin: 0;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.activity-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
  box-shadow: 0 16px 40px rgba(20, 33, 38, 0.06);
}

.activity-card.is-upcoming:first-of-type {
  grid-template-columns: 210px 1fr;
  background:
    linear-gradient(135deg, rgba(43, 140, 131, 0.12), transparent 62%),
    var(--surface);
}

.activity-card img {
  width: 100%;
  height: 100%;
  min-height: 218px;
  border-radius: 6px;
  object-fit: cover;
  object-position: top center;
}

.activity-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.activity-meta span:first-child {
  color: var(--teal);
}

.activity-card h3 {
  margin-bottom: 10px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.25;
}

.activity-subtitle,
.activity-speaker {
  margin-bottom: 10px;
}

.activity-subtitle {
  color: var(--muted);
}

.activity-speaker {
  color: var(--ink);
  font-weight: 850;
}

.activity-points {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  list-style: none;
}

.activity-points li {
  position: relative;
  padding-left: 14px;
}

.activity-points li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.footer {
  justify-content: space-between;
  gap: 16px;
  padding: 30px clamp(20px, 5vw, 72px);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 820px) {
  .site-header {
    position: sticky;
    grid-template-columns: 48px 1fr 48px;
    gap: 10px;
    padding: 10px 18px;
  }

  .nav {
    justify-self: center;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    padding: 4px;
    font-size: 16px;
    box-shadow: 0 10px 26px rgba(20, 33, 38, 0.08);
  }

  .nav a {
    border-radius: 999px;
    padding: 8px 14px;
  }

  .nav a::after {
    display: none;
  }

  .nav a:hover {
    background: color-mix(in srgb, var(--teal) 10%, transparent);
  }

  .section {
    width: min(100% - 32px, 680px);
    padding: 64px 0;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .hero-line {
    white-space: normal;
  }

  .hero-text {
    font-size: 16px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }

  .activity-board {
    grid-template-columns: 1fr;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .heading-actions {
    justify-content: space-between;
    margin-top: 12px;
    width: 100%;
  }

  .sync-status {
    white-space: normal;
  }

  .feature-post {
    grid-column: auto;
  }

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

  .activity-card,
  .activity-card.is-upcoming:first-of-type {
    grid-template-columns: 124px 1fr;
  }

  .activity-card img {
    min-height: 178px;
  }
}

@media (max-width: 480px) {
  .brand {
    width: 38px;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    align-items: stretch;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .activity-card,
  .activity-card.is-upcoming:first-of-type {
    grid-template-columns: 1fr;
  }

  .activity-card img {
    max-height: 520px;
  }

  .page-title,
  .detail-title {
    font-size: clamp(32px, 10vw, 42px);
  }

  .detail-page {
    width: min(100% - 24px, 680px);
    padding-top: 28px;
  }

  .detail-card {
    padding: 18px;
  }

  .detail-content {
    font-size: 17px;
    line-height: 1.78;
  }

  .detail-gallery img {
    max-height: none;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
