:root {
  --sw-ocean: #063A4A;
  --sw-ocean-deep: #042832;
  --sw-aqua: #1AA6B7;
  --sw-foam: #E8F7FA;
  --sw-ink: #123038;
  --sw-muted: #5A727A;
  --sw-line: #D4E6EA;
  --sw-bg: #EAF4F6;
  --sw-white: #FFFFFF;
  --sw-radius: 18px;
  --sw-shadow: 0 14px 32px rgba(6, 58, 74, 0.1);
  --sw-wrap: 1140px;
  --sw-font: "Source Han Sans SC", "PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --sw-display: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sw-font);
  color: var(--sw-ink);
  background: var(--sw-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; }

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

/* Frosted header over ocean feel */
.sw-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(232, 247, 250, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 166, 183, 0.25);
}
.sw-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}
.sw-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.sw-logo img { height: 42px; width: auto; }
.sw-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--sw-aqua), var(--sw-ocean));
  color: #E8F7FA;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(6, 58, 74, 0.22);
}
.sw-logo-mark-sm { width: 32px; height: 32px; }
.sw-logo-text { display: flex; flex-direction: column; gap: 2px; }
.sw-logo-text strong {
  font-size: 20px;
  color: var(--sw-ocean);
  letter-spacing: 0.03em;
}
.sw-logo-text em {
  font-style: normal;
  font-size: 12px;
  color: var(--sw-muted);
}
.sw-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sw-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
}
.sw-nav > ul > li { position: relative; }
.sw-nav > ul > li > a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--sw-ink);
  border-radius: 999px;
}
.sw-nav > ul > li.is-active > a,
.sw-nav > ul > li > a:hover {
  background: rgba(26, 166, 183, 0.14);
  color: var(--sw-ocean);
}
.sw-subnav {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 150px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--sw-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
  z-index: 20;
  overflow: hidden;
}
.sw-nav > ul > li:hover > .sw-subnav {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.sw-subnav a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--sw-line);
}
.sw-subnav a:hover { background: var(--sw-foam); color: var(--sw-ocean); }
.sw-search {
  display: flex;
  background: #fff;
  border: 1px solid var(--sw-line);
  border-radius: 999px;
  overflow: hidden;
}
.sw-search input {
  border: 0;
  padding: 8px 12px;
  width: 140px;
  outline: none;
  font-size: 13px;
  background: transparent;
}
.sw-search button {
  border: 0;
  background: var(--sw-aqua);
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
}
.sw-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--sw-line);
  background: #fff;
  border-radius: 12px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.sw-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--sw-ocean);
}
.sw-nav-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 40, 50, 0.45);
  z-index: 90;
}
body.nav-open .sw-nav-mask { display: block; }

/* Ocean hero with waves */
.sw-ocean {
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 50vw, 480px);
  color: #fff;
  background:
    radial-gradient(ellipse 50% 40% at 70% 30%, rgba(26, 166, 183, 0.35), transparent 60%),
    linear-gradient(180deg, #0A5A6C 0%, var(--sw-ocean) 55%, var(--sw-ocean-deep) 100%);
}
.sw-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.sw-bubbles span {
  position: absolute;
  bottom: -40px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  animation: sw-float 8s linear infinite;
}
.sw-bubbles span:nth-child(1) { left: 12%; animation-duration: 7s; }
.sw-bubbles span:nth-child(2) { left: 28%; width: 10px; height: 10px; animation-duration: 9s; animation-delay: 1s; }
.sw-bubbles span:nth-child(3) { left: 55%; width: 18px; height: 18px; animation-duration: 8s; animation-delay: 0.5s; }
.sw-bubbles span:nth-child(4) { left: 72%; animation-duration: 10s; animation-delay: 1.5s; }
.sw-bubbles span:nth-child(5) { left: 88%; width: 12px; height: 12px; animation-duration: 6.5s; animation-delay: 0.8s; }

@keyframes sw-float {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  15% { opacity: 0.7; }
  100% { transform: translateY(-420px) scale(1.2); opacity: 0; }
}

.sw-ocean-inner {
  position: relative;
  z-index: 2;
  padding: 72px 0 110px;
  max-width: 720px;
  animation: sw-rise 0.75s ease both;
}
.sw-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: rgba(232, 247, 250, 0.75);
}
.sw-ocean h1 {
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.2;
  margin-bottom: 14px;
  max-width: 12em;
}
.sw-ocean-desc {
  margin: 0 0 24px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 34em;
}
.sw-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}
.sw-btn-foam {
  background: var(--sw-foam);
  color: var(--sw-ocean);
}
.sw-btn-foam:hover { transform: translateY(-1px); background: #fff; }
.sw-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}
.sw-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.sw-waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 90px;
  z-index: 2;
}
.sw-wave {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  height: 100%;
  fill: var(--sw-bg);
}
.sw-wave-a {
  opacity: 0.55;
  animation: sw-wave 12s linear infinite;
}
.sw-wave-b {
  opacity: 1;
  animation: sw-wave 8s linear infinite reverse;
}
@keyframes sw-wave {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes sw-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.sw-home-body { padding: 36px 0 56px; }

.sw-section-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.sw-section-hd.light { color: #fff; }
.sw-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--sw-aqua);
}
.sw-section-hd.light .sw-eyebrow { color: rgba(232, 247, 250, 0.7); }
.sw-section-hd h2 {
  font-size: 26px;
  color: var(--sw-ocean);
}
.sw-section-hd.light h2 { color: #fff; }
.sw-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--sw-aqua);
}
.sw-more:hover { text-decoration: underline; }

/* Bubble cards for industry */
.sw-block { margin-bottom: 36px; }
.sw-bubbles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sw-bubble-card {
  background: var(--sw-white);
  border: 1px solid var(--sw-line);
  border-radius: 24px 24px 24px 8px;
  padding: 20px;
  box-shadow: var(--sw-shadow);
  transition: transform 0.2s ease, border-color 0.2s;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sw-bubble-card:nth-child(even) {
  border-radius: 24px 8px 24px 24px;
}
.sw-bubble-card:hover {
  transform: translateY(-4px);
  border-color: var(--sw-aqua);
}
.sw-bubble-date {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--sw-aqua), var(--sw-ocean));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}
.sw-bubble-date strong { font-size: 18px; }
.sw-bubble-date em { font-style: normal; font-size: 10px; opacity: 0.85; }
.sw-bubble-card h3 { font-size: 16px; color: var(--sw-ocean); }
.sw-bubble-card p { margin: 0; flex: 1; font-size: 14px; color: var(--sw-muted); }

/* Tide dual panels with wave edge */
.sw-tide { margin-bottom: 36px; }
.sw-tide-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.sw-tide-panel {
  background: var(--sw-white);
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius);
  padding: 20px;
  box-shadow: var(--sw-shadow);
  position: relative;
  overflow: hidden;
}
.sw-tide-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--sw-aqua), transparent);
}
.sw-tide-alt::before {
  background: linear-gradient(90deg, var(--sw-ocean), var(--sw-aqua));
}
.sw-tide-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--sw-line);
}
.sw-tide-hd h2 { font-size: 20px; color: var(--sw-ocean); }
.sw-tide-hd a { font-size: 13px; color: var(--sw-aqua); }
.sw-tide-panel li + li { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--sw-line); }
.sw-tide-panel a {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
}
.sw-tide-panel time {
  font-size: 12px;
  font-weight: 700;
  color: var(--sw-aqua);
  padding-top: 2px;
}
.sw-tide-panel h3 { font-size: 15px; margin-bottom: 4px; }
.sw-tide-panel p { margin: 0; font-size: 13px; color: var(--sw-muted); }
.sw-tide-panel a:hover h3 { color: var(--sw-aqua); }

/* Drift picks band */
.sw-drift {
  background: linear-gradient(135deg, var(--sw-ocean-deep), #0A5A6C 50%, var(--sw-aqua));
  color: #fff;
  border-radius: 24px;
  padding: 26px 22px 28px;
  animation: sw-rise 0.7s 0.1s ease both;
}
.sw-drift-list { display: flex; flex-direction: column; gap: 0; }
.sw-drift-list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}
.sw-drift-list a:last-child { border-bottom: 0; }
.sw-drift-list span {
  flex-shrink: 0;
  font-size: 12px;
  color: rgba(232, 247, 250, 0.7);
  min-width: 88px;
}
.sw-drift-list h3 { font-size: 16px; font-weight: 600; }
.sw-drift-list a:hover h3 { color: var(--sw-foam); }

/* Inner */
.sw-crumb {
  background: #fff;
  border-bottom: 1px solid var(--sw-line);
  padding: 12px 0;
  font-size: 13px;
  color: var(--sw-muted);
}
.sw-crumb a:hover { color: var(--sw-aqua); }
.sw-crumb span { margin: 0 6px; color: #A8BDC3; }
.sw-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  padding: 28px 0 48px;
}
.sw-panel {
  background: #fff;
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius);
  padding: 18px;
  margin-bottom: 16px;
}
.sw-panel-hd {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sw-aqua);
}
.sw-panel-hd h3 { font-size: 16px; color: var(--sw-ocean); }
.sw-page-title {
  font-size: 26px;
  color: var(--sw-ocean);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sw-line);
}
.sw-article-list li + li { border-top: 1px solid var(--sw-line); }
.sw-article-list a {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 16px 0;
}
.sw-article-list img {
  width: 140px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
  background: #D8EBEE;
}
.sw-article-list a:not(:has(img)) { grid-template-columns: 1fr; }
.sw-article-list h2 { font-size: 18px; margin-bottom: 8px; }
.sw-article-list p { margin: 0 0 8px; color: var(--sw-muted); font-size: 14px; }
.sw-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--sw-muted);
}
.sw-meta.center { justify-content: center; margin: 12px 0 20px; }
.sw-empty { padding: 40px 0; text-align: center; color: var(--sw-muted); }
.sw-detail > h1 {
  font-size: clamp(24px, 3vw, 32px);
  text-align: center;
  color: var(--sw-ocean);
}
.sw-richtext { font-size: 16px; line-height: 1.85; }
.sw-richtext p { margin: 0 0 1em; }
.sw-richtext img { margin: 12px auto; border-radius: 12px; }
.sw-pagerow {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--sw-line);
  font-size: 14px;
}
.sw-pagerow a:hover { color: var(--sw-aqua); }
.sw-rank { counter-reset: rank; }
.sw-rank li {
  counter-increment: rank;
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--sw-line);
  font-size: 14px;
}
.sw-rank li::before {
  content: counter(rank);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sw-foam);
  color: var(--sw-ocean);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.sw-rank li:nth-child(-n+3)::before {
  background: var(--sw-aqua);
  color: #fff;
}
.sw-side-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--sw-line);
  font-size: 14px;
}
.sw-side-list a:hover, .sw-rank a:hover { color: var(--sw-aqua); }
.sw-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sw-tags a {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--sw-foam);
  color: var(--sw-ocean);
  border-radius: 999px;
}
.sw-tags a:hover { background: var(--sw-aqua); color: #fff; }
.sw-ad { font-size: 14px; color: var(--sw-muted); }
.sw-pagination { margin-top: 20px; }
.sw-page {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.sw-page a, .sw-page .dots {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--sw-line);
  background: #fff;
  border-radius: 999px;
  font-size: 14px;
}
.sw-page .active a,
.sw-page a:hover {
  background: var(--sw-ocean);
  border-color: var(--sw-ocean);
  color: #fff;
}

/* Footer */
.sw-footer {
  position: relative;
  background: var(--sw-ocean-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 24px;
  margin-top: 24px;
}
.sw-wave-top {
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 42px;
  color: var(--sw-ocean-deep);
  pointer-events: none;
}
.sw-wave-top svg { width: 100%; height: 100%; display: block; }
.sw-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}
.sw-foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #fff;
}
.sw-foot-brand h3 { font-size: 18px; }
.sw-footer h4 { color: #fff; margin-bottom: 12px; font-size: 15px; }
.sw-footer p { margin: 0 0 8px; font-size: 14px; }
.sw-foot-links li { margin-bottom: 8px; }
.sw-foot-links a:hover { color: #7FD4DF; }
.sw-friendlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}
.sw-friendlinks a:hover { color: #7FD4DF; }
.sw-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}
.sw-copy a { color: rgba(255, 255, 255, 0.65); }

@media (max-width: 980px) {
  .sw-bubbles-grid { grid-template-columns: 1fr 1fr; }
  .sw-tide-row { grid-template-columns: 1fr; }
  .sw-layout { grid-template-columns: 1fr; }
  .sw-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sw-nav-toggle { display: inline-flex; }
  .sw-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(82vw, 320px);
    height: 100vh;
    background: #fff;
    z-index: 110;
    padding: 72px 20px 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.12);
  }
  .sw-nav.is-open { transform: none; }
  .sw-nav > ul { flex-direction: column; align-items: stretch; width: 100%; }
  .sw-nav > ul > li > a {
    border-radius: 0;
    border-bottom: 1px solid var(--sw-line);
  }
  .sw-subnav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    background: var(--sw-foam);
  }
  .sw-nav > ul > li.is-open > .sw-subnav { display: block; }
  .sw-search { width: 100%; margin-top: 12px; }
  .sw-search input { width: 100%; }
  .sw-bubbles-grid { grid-template-columns: 1fr; }
  .sw-ocean-inner { padding: 52px 0 100px; }
  .sw-article-list a { grid-template-columns: 1fr; }
  .sw-article-list img { width: 100%; height: 160px; }
  .sw-drift-list a { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .sw-ocean-inner, .sw-drift { animation: none; }
  .sw-wave-a, .sw-wave-b, .sw-bubbles span { animation: none; }
}
