:root {
  --sl-sea: #0B6E8F;
  --sl-sea-dark: #074C64;
  --sl-aqua: #3DB8C5;
  --sl-ink: #14303A;
  --sl-muted: #6A8088;
  --sl-line: #D2E4EA;
  --sl-bg: #F2F8FA;
  --sl-white: #FFFFFF;
  --sl-wrap: 1140px;
  --sl-sans: "Nunito Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --sl-display: "Trebuchet MS", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sl-sans);
  color: var(--sl-ink);
  background: var(--sl-bg);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: color .2s, background .2s, border-color .2s, transform .2s; }
a:hover { color: var(--sl-sea-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  font-family: var(--sl-display);
}

.sl-wrap {
  width: min(100% - 32px, var(--sl-wrap));
  margin-inline: auto;
}

/* Header */
.sl-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sl-line);
}

.sl-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}

.sl-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(56vw, 340px);
}

.sl-logo img { height: 42px; width: auto; }

.sl-logo-mark {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50% 50% 50% 12px;
  background: linear-gradient(160deg, var(--sl-aqua), var(--sl-sea));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.sl-logo-wave {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 8px;
  height: 14px;
  background:
    radial-gradient(circle at 10px 0, transparent 8px, rgba(255,255,255,0.35) 9px) repeat-x;
  background-size: 20px 14px;
  opacity: 0.9;
}

.sl-logo-cn {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.sl-logo-mark-sm {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.sl-logo-text { min-width: 0; }
.sl-logo-text strong {
  display: block;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sl-logo-text em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--sl-muted);
  margin-top: 2px;
}

.sl-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sl-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.sl-nav > ul > li { position: relative; }

.sl-nav > ul > li > a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 999px;
}

.sl-nav > ul > li.is-active > a,
.sl-nav > ul > li > a:hover {
  color: var(--sl-sea-dark);
  background: #E4F3F7;
}

.sl-subnav {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 160px;
  padding: 8px 0;
  background: var(--sl-white);
  border: 1px solid var(--sl-line);
  box-shadow: 0 12px 28px rgba(20, 48, 58, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: .2s;
  z-index: 20;
  border-radius: 12px;
}

.sl-nav > ul > li:hover > .sl-subnav {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.sl-subnav a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
}

.sl-subnav a:hover,
.sl-subnav .is-active a {
  background: #E4F3F7;
  color: var(--sl-sea-dark);
}

.sl-search {
  display: flex;
  border: 1px solid var(--sl-line);
  border-radius: 999px;
  overflow: hidden;
  background: #F7FBFC;
}

.sl-search input {
  width: 130px;
  border: 0;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  background: transparent;
  outline: none;
}

.sl-search button {
  border: 0;
  background: var(--sl-sea);
  color: #fff;
  padding: 8px 14px;
  font-size: 12px;
  cursor: pointer;
}

.sl-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--sl-line);
  background: var(--sl-white);
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 12px;
}

.sl-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--sl-ink);
  transition: .2s;
}

.sl-nav-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 40, 52, 0.4);
  z-index: 90;
}

body.nav-open .sl-nav-mask { display: block; }

/* Wave hero */
.sl-wave {
  position: relative;
  padding: 56px 0 72px;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(61, 184, 197, 0.28), transparent 50%),
    linear-gradient(160deg, #065A76 0%, var(--sl-sea) 45%, #0A8A9E 100%);
  color: #EAF8FB;
  overflow: hidden;
}

.sl-wave-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.sl-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: #9DE4EC;
  font-weight: 700;
}

.sl-wave h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  margin-bottom: 14px;
}

.sl-wave-desc {
  margin: 0 0 24px;
  max-width: 34em;
  color: #C7E8EF;
  font-size: 16px;
}

.sl-wave-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid transparent;
}

.sl-btn-primary {
  background: #fff;
  color: var(--sl-sea-dark);
}

.sl-btn-primary:hover {
  background: #E4F7FA;
  color: var(--sl-sea-dark);
}

.sl-btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}

.sl-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.sl-wave-shape {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 56px;
  background:
    radial-gradient(120px 36px at 10% 0, transparent 58%, var(--sl-bg) 60%),
    radial-gradient(140px 40px at 35% 0, transparent 58%, var(--sl-bg) 60%),
    radial-gradient(120px 36px at 60% 0, transparent 58%, var(--sl-bg) 60%),
    radial-gradient(150px 42px at 85% 0, transparent 58%, var(--sl-bg) 60%),
    linear-gradient(var(--sl-bg), var(--sl-bg));
  background-repeat: no-repeat;
  background-size: 30% 100%, 30% 100%, 30% 100%, 30% 100%, 100% 24px;
  background-position: 0 0, 25% 0, 55% 0, 85% 0, 0 100%;
}

/* Chips */
.sl-chips {
  margin-top: -8px;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.sl-chips-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scrollbar-width: thin;
}

.sl-chips-track a {
  flex: 0 0 auto;
  padding: 10px 18px;
  background: var(--sl-white);
  border: 1px solid var(--sl-line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(11, 110, 143, 0.06);
}

.sl-chips-track a:hover {
  border-color: var(--sl-sea);
  color: var(--sl-sea-dark);
  background: #EAF6F9;
}

.sl-home-body { padding-bottom: 56px; }

.sl-section-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.sl-section-hd h2 {
  font-size: 22px;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--sl-aqua);
}

.sl-section-hd a {
  font-size: 13px;
  color: var(--sl-sea);
}

.sl-block { margin-bottom: 40px; }

/* Magazine */
.sl-magazine {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 24px;
  margin-bottom: 40px;
  align-items: start;
}

.sl-feature {
  display: block;
  background: var(--sl-white);
  border: 1px solid var(--sl-line);
  border-radius: 18px;
  overflow: hidden;
}

.sl-feature img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #DCEEF3;
}

.sl-feature > div { padding: 18px 20px 22px; }

.sl-feature em {
  display: inline-block;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.12em;
  background: var(--sl-sea);
  color: #fff;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
  font-weight: 700;
}

.sl-feature h3 { font-size: 22px; margin-bottom: 8px; }
.sl-feature p { margin: 0 0 10px; font-size: 14px; color: var(--sl-muted); }
.sl-feature time { font-size: 12px; color: var(--sl-muted); }
.sl-feature:hover { border-color: var(--sl-sea); }

.sl-mag-side {
  background: var(--sl-white);
  border: 1px solid var(--sl-line);
  border-radius: 18px;
  padding: 18px;
}

.sl-stack li + li { border-top: 1px dashed var(--sl-line); }

.sl-stack a {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 12px 0;
  align-items: start;
}

.sl-stack time {
  font-size: 12px;
  font-weight: 700;
  color: var(--sl-sea);
  padding-top: 3px;
}

.sl-stack h3 { font-size: 15px; font-weight: 600; }

/* Horizontal scroll cards */
.sl-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 280px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.sl-scroll-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  min-height: 170px;
  background: linear-gradient(160deg, #FFFFFF, #EAF6F9);
  border: 1px solid var(--sl-line);
  border-radius: 16px;
}

.sl-scroll-label {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--sl-sea);
  background: #D7EFF4;
  padding: 3px 8px;
  border-radius: 999px;
}

.sl-scroll-card h3 { font-size: 16px; }
.sl-scroll-card p { margin: 0; font-size: 13px; color: var(--sl-muted); flex: 1; }
.sl-scroll-card time { font-size: 12px; color: var(--sl-muted); }
.sl-scroll-card:hover { border-color: var(--sl-sea); transform: translateY(-2px); }

/* Observe list */
.sl-observe {
  background: var(--sl-white);
  border: 1px solid var(--sl-line);
  border-radius: 18px;
  overflow: hidden;
}

.sl-observe a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--sl-line);
  align-items: baseline;
}

.sl-observe a:last-child { border-bottom: 0; }
.sl-observe a:hover { background: #F4FBFC; }
.sl-observe h3 { font-size: 17px; margin-bottom: 6px; }
.sl-observe p { margin: 0; font-size: 13px; color: var(--sl-muted); }
.sl-observe time {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--sl-sea);
  font-weight: 700;
}

/* Interior */
.sl-crumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--sl-muted);
  background: #E4F0F4;
  border-bottom: 1px solid var(--sl-line);
}

.sl-crumb span { margin: 0 6px; opacity: 0.5; }

.sl-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  padding: 32px 0 56px;
  align-items: start;
}

.sl-panel {
  background: var(--sl-white);
  border: 1px solid var(--sl-line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 18px;
}

.sl-list-panel { padding: 26px; }

.sl-page-title {
  font-size: 26px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--sl-aqua);
}

.sl-empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--sl-muted);
}

.sl-article-list li + li { border-top: 1px solid var(--sl-line); }

.sl-article-list a {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 18px 0;
  align-items: start;
}

.sl-article-list a:not(:has(img)) { grid-template-columns: 1fr; }
.sl-article-list img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #DCEEF3;
}
.sl-article-list h2 { font-size: 18px; margin-bottom: 8px; }
.sl-article-list p { margin: 0 0 10px; font-size: 14px; color: var(--sl-muted); }

.sl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: var(--sl-muted);
}

.sl-meta.center { justify-content: center; margin: 12px 0 24px; }

.sl-detail { padding: 32px 28px; }
.sl-detail > h1 {
  font-size: clamp(24px, 3vw, 34px);
  max-width: 18em;
}

.sl-richtext {
  font-size: 16px;
  line-height: 1.9;
  color: #1E3C46;
}
.sl-richtext p { margin: 0 0 1.1em; }
.sl-richtext img { margin: 1em auto; border-radius: 12px; }
.sl-richtext a { color: var(--sl-sea-dark); text-decoration: underline; text-underline-offset: 3px; }

.sl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.sl-tags a {
  padding: 4px 10px;
  border: 1px solid var(--sl-line);
  font-size: 12px;
  background: #E4F3F7;
  border-radius: 999px;
}

.sl-tags a:hover {
  border-color: var(--sl-sea);
  color: var(--sl-sea-dark);
}

.sl-pagerow {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--sl-line);
  font-size: 14px;
}

.sl-pagination { margin-top: 24px; }

.sl-page {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.sl-page a,
.sl-page .dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--sl-line);
  font-size: 13px;
  background: var(--sl-white);
  border-radius: 999px;
}

.sl-page .active a,
.sl-page a:hover {
  background: var(--sl-sea);
  border-color: var(--sl-sea);
  color: #fff;
}

.sl-side .sl-panel { margin-bottom: 16px; }
.sl-panel-hd {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sl-line);
}
.sl-panel-hd h3 { font-size: 15px; }

.sl-rank { counter-reset: sl-rank; }
.sl-rank li {
  counter-increment: sl-rank;
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--sl-line);
  font-size: 13px;
}
.sl-rank li::before {
  content: counter(sl-rank, decimal-leading-zero);
  color: var(--sl-sea);
  font-weight: 700;
  flex-shrink: 0;
}

.sl-side-list li + li { border-top: 1px solid var(--sl-line); }
.sl-side-list a { display: block; padding: 10px 0; font-size: 13px; }
.sl-ad { font-size: 14px; color: var(--sl-muted); }

/* Footer */
.sl-footer {
  background: #063647;
  color: #C5DEE6;
  padding: 44px 0 24px;
}

.sl-footer a { color: #EAF8FB; }
.sl-footer a:hover { color: #8FDEE8; }

.sl-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.sl-foot-brand h3 {
  font-size: 18px;
  color: #8FDEE8;
  margin: 0 0 8px;
}

.sl-footer h4 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8FDEE8;
  margin-bottom: 12px;
}

.sl-footer p { margin: 0 0 8px; font-size: 14px; }
.sl-foot-links { display: flex; flex-direction: column; gap: 8px; }
.sl-foot-links a { font-size: 14px; }

.sl-friendlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(143, 222, 232, 0.2);
  font-size: 13px;
}

.sl-friendlinks span { color: #8FDEE8; }

.sl-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(143, 222, 232, 0.2);
  font-size: 12px;
  color: #7FA0AA;
}

@media (max-width: 980px) {
  .sl-magazine { grid-template-columns: 1fr; }
  .sl-layout { grid-template-columns: 1fr; }
  .sl-footer-grid { grid-template-columns: 1fr 1fr; }
  .sl-observe a { flex-direction: column; gap: 8px; }
}

@media (max-width: 768px) {
  .sl-nav-toggle { display: flex; }

  .sl-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 320px);
    height: 100vh;
    background: var(--sl-white);
    border-left: 1px solid var(--sl-line);
    flex-direction: column;
    align-items: stretch;
    padding: 72px 20px 28px;
    gap: 18px;
    z-index: 110;
    transform: translateX(104%);
    transition: transform .28s ease;
    overflow-y: auto;
  }

  .sl-nav.is-open { transform: none; }

  .sl-nav > ul {
    flex-direction: column;
    align-items: stretch;
  }

  .sl-nav > ul > li > a {
    border-radius: 0;
    border-bottom: 1px solid var(--sl-line);
    padding: 14px 4px;
  }

  .sl-subnav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    display: none;
    background: transparent;
    padding: 0 0 8px 12px;
    border-radius: 0;
  }

  .sl-nav > ul > li.is-open > .sl-subnav { display: block; }

  .sl-search { width: 100%; border-radius: 12px; }
  .sl-search input { flex: 1; width: auto; }

  body.nav-open .sl-nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  body.nav-open .sl-nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .sl-nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .sl-article-list a { grid-template-columns: 1fr; }
  .sl-detail { padding: 22px 16px; }
  .sl-footer-grid { grid-template-columns: 1fr; }
  .sl-wave { padding: 44px 0 64px; }
}

@media (max-width: 480px) {
  .sl-wave-actions { flex-direction: column; }
  .sl-btn { width: 100%; }
  .sl-logo-text strong { font-size: 14px; }
}
