/* SESESPWANG.CN — Emotion Spectrum editorial design */
:root {
  --ink: #241b32;
  --muted: #746a7b;
  --plum: #351d42;
  --violet: #70417c;
  --pink: #c85083;
  --rose: #f4d4de;
  --cream: #fff9f7;
  --line: #eadde7;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font: 16px/1.78 system-ui,-apple-system,"Microsoft YaHei","PingFang SC",sans-serif;
}

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

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

a:focus-visible,button:focus-visible,input:focus-visible {
  outline: 3px solid #ef9ac5;
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 44px),var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 15px;
  top: -70px;
  z-index: 20;
  background: #fff;
  padding: 8px;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  background: #281631;
  color: #fff;
  position: relative;
  z-index: 5;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .04em;
}

.brand-icon {
  width: 37px;
  height: 37px;
  border-radius: 12px 12px 12px 3px;
  background: linear-gradient(135deg,#ffafc8,#ba4484);
  display: grid;
  place-items: center;
  font-size: 19px;
}

.brand small {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 400;
  color: #e4b8d2;
  letter-spacing: .12em;
}

.nav-list {
  display: flex;
  gap: 25px;
  padding: 0;
  margin: 0;
  list-style: none;
  align-items: center;
}

.nav-list a {
  font-size: 14px;
  color: #f7dfea;
  white-space: nowrap;
}

.nav-list a:hover,.nav-list a[aria-current=page] {
  color: #fff;
  border-bottom: 2px solid #f1a6c3;
  padding-bottom: 6px;
}

.nav-toggle {
  display: none;
  border: 1px solid #86617d;
  background: none;
  color: #fff;
  padding: 7px 11px;
  border-radius: 9px;
}

.hero {
  background: #17172c;
  color: #fff;
  min-height: 530px;
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("images/city-emotions.webp") center 43% / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg,rgba(21,13,37,.9) 0%,rgba(28,16,44,.76) 40%,rgba(30,13,42,.05) 100%),linear-gradient(0deg,rgba(26,12,43,.65),transparent 65%);
}

.hero-content {
  padding-block: 95px 85px;
}

.eyebrow {
  color: #f7afcb;
  font-size: 12px;
  letter-spacing: .22em;
  font-weight: 700;
}

h1,h2,h3,p {
  overflow-wrap: anywhere;
}

h1,h2,h3 {
  line-height: 1.32;
}

h1 {
  font-size: clamp(36px,4.5vw,66px);
  max-width: 760px;
  letter-spacing: -.02em;
  margin: 16px 0 20px;
}

h1 em {
  font-style: normal;
  color: #f0a6cd;
}

.hero p {
  color: #f5e2ed;
  max-width: 610px;
  line-height: 1.9;
  margin-bottom: 30px;
}

.btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 11px 24px;
  border-radius: 999px;
  background: linear-gradient(100deg,#da669d,#a251b5);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 24px #37162c33;
}

.btn--light {
  background: #fff;
  color: #51294e;
  box-shadow: none;
}

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

.spectrum-wrap {
  position: relative;
  margin-top: -40px;
  z-index: 2;
}

.spectrum {
  background: #fff;
  padding: 26px 35px;
  box-shadow: 0 17px 42px #32143b18;
  border: 1px solid #f2dfeb;
  border-radius: 23px;
}

.spectrum-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 15px;
}

.spectrum h2 {
  margin: 0;
  font-size: 21px;
}

.spectrum-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.stages {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 7px;
  position: relative;
}

.stage {
  text-align: center;
  padding: 7px 3px;
}

.stage .dot {
  margin: auto auto 7px;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--tone);
  font-size: 17px;
}

.stage b {
  display: block;
  font-size: 14px;
}

.stage span {
  font-size: 11px;
  color: var(--muted);
}

.section {
  padding-block: 72px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 25px;
  gap: 18px;
}

.section-head h2 {
  font-size: clamp(25px,3vw,35px);
  margin: 3px 0 0;
}

.section-head p {
  max-width: 550px;
  color: var(--muted);
  margin: 0;
}

.more {
  color: #9b386d;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 20px;
}

.feature-main {
  min-height: 485px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: end;
  background: #34213c;
  color: #fff;
}

.feature-main img,.feature-side img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  inset: 0;
}

.feature-main::after,.feature-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,#170c28f0,transparent 86%);
}

.feature-text {
  position: relative;
  z-index: 1;
  padding: 34px;
  max-width: 620px;
}

.feature-text h3 {
  font-size: 30px;
  margin: 10px 0;
}

.feature-text p {
  color: #f2e5ef;
}

.feature-side-grid {
  display: grid;
  grid-template-rows: repeat(3,1fr);
  gap: 15px;
}

.feature-side {
  min-height: 145px;
  position: relative;
  display: flex;
  align-items: end;
  border-radius: 17px;
  overflow: hidden;
  background: #302642;
  color: #fff;
}

.feature-side h3 {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 18px;
  font-size: 19px;
  text-shadow: 0 2px 10px #000;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 16px;
}

.cat-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  min-height: 245px;
  display: flex;
  align-items: end;
  color: #fff;
  background: #34243b;
}

.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.cat-card:hover img {
  transform: scale(1.045);
}

.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,#1b102ff0,transparent 83%);
}

.cat-card div {
  position: relative;
  z-index: 1;
  padding: 18px;
}

.cat-card h3 {
  margin: 0 0 5px;
  font-size: 19px;
}

.cat-card p {
  margin: 0;
  font-size: 12px;
  color: #f5dfeb;
  line-height: 1.5;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 23px;
}

.article-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow .2s;
}

.article-card:hover {
  box-shadow: 0 12px 25px #441c3d12;
}

.article-card img {
  width: 100%;
  aspect-ratio: 1.65;
  object-fit: cover;
}

.article-info {
  padding: 20px;
}

.kicker {
  display: inline-block;
  background: #f8e7f0;
  color: #a03970;
  border-radius: 40px;
  font-size: 11px;
  padding: 3px 10px;
}

.article-card h3 {
  font-size: 19px;
  line-height: 1.5;
  margin: 11px 0 8px;
}

.article-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
}

.meta {
  font-size: 12px;
  color: #8e8191;
}

.article-card .more {
  display: inline-block;
  margin-top: 9px;
}

.note-panel {
  background: linear-gradient(105deg,#432443,#693b70 63%,#874d74);
  color: #fff;
  border-radius: 25px;
  margin-block: 75px;
  padding: 45px 55px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 35px;
}

.note-panel h2 {
  font-size: 31px;
  margin: 0 0 15px;
}

.note-panel p {
  color: #fae4f4;
}

.note-list {
  padding-left: 20px;
  line-height: 2.2;
  color: #fee9f6;
}

.page-hero {
  background: #321d3e;
  color: #fff;
  padding: 62px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 10%,#bb628655,transparent 44%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  font-size: clamp(29px,4vw,48px);
  margin: 12px 0;
}

.page-hero p {
  color: #f3dce9;
  max-width: 750px;
}

.breadcrumb {
  font-size: 13px;
  color: #e7c3d7;
  margin-bottom: 15px;
}

.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.content-shell {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 36px;
  padding-block: 45px 85px;
}

.prose {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(22px,4vw,48px);
}

.prose .lead {
  color: #6e566f;
  font-size: 18px;
  line-height: 2;
  border-left: 4px solid var(--pink);
  padding-left: 17px;
}

.prose h2 {
  font-size: 24px;
  margin-top: 40px;
  border-bottom: 1px solid #f0e3e9;
  padding-bottom: 13px;
}

.prose h3 {
  font-size: 18px;
  margin-top: 28px;
}

.prose p {
  margin: 14px 0;
  line-height: 2.06;
}

.prose figure {
  margin: 27px 0;
}

.prose figure img {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 1.6;
  object-fit: cover;
}

.prose figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}

.sidebar {
  align-self: start;
  position: sticky;
  top: 20px;
}

.side-box {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 19px;
  margin-bottom: 20px;
}

.side-box h2 {
  font-size: 19px;
  margin: 0 0 15px;
}

.side-box a {
  display: block;
  border-top: 1px solid #f0e7ed;
  padding: 12px 0;
  font-size: 14px;
}

.side-box a:hover {
  color: #a63d78;
}

.side-box p {
  color: var(--muted);
  font-size: 13px;
}

.listing-intro {
  font-size: 15px;
  color: #746a7b;
  max-width: 760px;
}

.site-footer {
  margin-top: 80px;
  background: #27182e;
  color: #f7eaf1;
  padding: 48px 0 25px;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
}

.site-footer p,.site-footer small {
  color: #c8adbf;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-content: start;
}

.copyright {
  border-top: 1px solid #574254;
  margin-top: 26px;
  padding-top: 20px;
  font-size: 12px;
  color: #c8adbf;
}

@media (max-width:1050px) {
  .nav-list {
    gap: 14px;
  }

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

@media (max-width:800px) {
  .nav-toggle {
    display: block;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #2e1b38;
    padding: 18px 22px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-list.is-open {
    display: flex;
  }

  .header-inner {
    min-height: 78px;
  }

  .hero {
    min-height: 460px;
  }

  .hero-content {
    padding-block: 75px 85px;
  }

  .feature-grid,.content-shell,.footer-layout,.note-panel {
    grid-template-columns: 1fr;
  }

  .feature-main {
    min-height: 420px;
  }

  .feature-side-grid {
    grid-template-columns: repeat(3,1fr);
    grid-template-rows: auto;
  }

  .feature-side {
    min-height: 180px;
  }

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

  .sidebar {
    position: static;
  }

  .spectrum {
    padding: 23px;
  }

  .stages {
    grid-template-columns: repeat(3,1fr);
  }
}

@media (max-width:550px) {
  .container {
    width: min(calc(100% - 28px),var(--max));
  }

  .brand {
    font-size: 19px;
  }

  .hero {
    min-height: 475px;
  }

  .hero::after {
    background: linear-gradient(90deg,#1b102dd9,#20102da6);
  }

  h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 14px;
  }

  .spectrum-head {
    display: block;
  }

  .spectrum-head p {
    margin-top: 4px;
  }

  .section {
    padding-top: 54px;
  }

  .section-head {
    align-items: start;
  }

  .section-head h2 {
    font-size: 25px;
  }

  .feature-text {
    padding: 21px;
  }

  .feature-text h3 {
    font-size: 24px;
  }

  .feature-side-grid,.article-grid {
    grid-template-columns: 1fr;
  }

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

  .cat-card {
    min-height: 225px;
  }

  .note-panel {
    padding: 30px 25px;
  }

  .note-panel h2 {
    font-size: 26px;
  }

  .footer-links {
    gap: 10px 16px;
  }

  .page-hero {
    padding: 42px 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* Layout safeguards: prevent horizontal overflow and improve touch navigation. */
html {
  overflow-x: clip;
}

body {
  min-width: 320px;
}

.feature-grid,
.feature-side-grid,
.article-grid,
.card-grid,
.content-shell,
.footer-layout {
  min-width: 0;
}

.feature-grid > *,
.feature-side-grid > *,
.article-grid > *,
.card-grid > *,
.content-shell > * {
  min-width: 0;
}

.nav-toggle {
  cursor: pointer;
  font: inherit;
}

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

  .hero-content {
    padding-block: 64px 78px;
  }

  .feature-main {
    min-height: 380px;
  }

  .feature-side h3 {
    font-size: 17px;
  }

  .section-head {
    flex-wrap: wrap;
  }

  .article-info {
    padding: 18px;
  }
}

/* Layout safeguards: prevent horizontal overflow and improve touch navigation. */
html {
  overflow-x: clip;
}

body {
  min-width: 320px;
}

.feature-grid,
.feature-side-grid,
.article-grid,
.card-grid,
.content-shell,
.footer-layout {
  min-width: 0;
}

.feature-grid > *,
.feature-side-grid > *,
.article-grid > *,
.card-grid > *,
.content-shell > * {
  min-width: 0;
}

.nav-toggle {
  cursor: pointer;
  font: inherit;
}

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

  .hero-content {
    padding-block: 64px 78px;
  }

  .feature-main {
    min-height: 380px;
  }

  .feature-side h3 {
    font-size: 17px;
  }

  .section-head {
    flex-wrap: wrap;
  }

  .article-info {
    padding: 18px;
  }
}
