/* 朵蜜影像 / editorial gallery — 源码保持展开，便于维护 */
:root {
  --ink: #25253e;
  --muted: #66647d;
  --purple: #47366d;
  --pink: #e76d99;
  --peach: #ffbca6;
  --paper: #fffaf9;
  --line: #ece5ee;
  --soft: #f6edf5;
  --radius: 22px;
  --max: 1200px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.8;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: #bb3c77;
}
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #e76d99;
  outline-offset: 3px;
}
.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: 10px;
  top: -100px;
  z-index: 50;
  background: #fff;
  padding: 9px 16px;
}
.skip-link:focus {
  top: 8px;
}
.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255,250,249,.97);
}
.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  background: linear-gradient(140deg,#fa8bac,#a175da);
  border-radius: 15px 15px 15px 5px;
  display: grid;
  place-items:center;
  color:white;
  font-size:24px;
}
.brand strong {
  display:block;
  font-size: 20px;
  letter-spacing: 1px;
  line-height: 1.15;
}
.brand small {
  display:block;
  color: var(--muted);
  font-size:11px;
  letter-spacing: .8px;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.nav a {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  padding: 7px 0;
}
.nav a.active {
  color: #bd4881;
  border-bottom: 2px solid #e76d99;
}
.hero {
  overflow: hidden;
  background: radial-gradient(circle at 15% 80%,#efd8ed 0, transparent 41%),linear-gradient(115deg,#fff1ed 0%, #f4e7f4 65%, #e6dcef 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  min-height: 540px;
  gap: 34px;
  align-items: center;
  padding-block: 58px;
}
.eyebrow {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 3px;
  color: #b14d89;
}
h1,h2,h3,p {
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.23;
  letter-spacing: -.8px;
  margin: 20px 0;
}
h1 span {
  color: #d7548a;
}
.hero-lede {
  font-size: 16px;
  color: #52506c;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9b9d0;
  border-radius: 100px;
  padding: 10px 23px;
  font-weight: 800;
  background: #fff8ff;
}
.btn-primary {
  background:#a94783;
  border-color:#a94783;
  color: #fff;
}
.btn-primary:hover {
  background:#85366c;
  color:#fff;
}
.hero-tags {
  color: #6a5274;
  font-size: 13px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.hero-tags span {
  background:rgba(255,255,255,.65);
  border:1px solid #e7d8e5;
  padding:4px 12px;
  border-radius:30px;
}
.hero-media {
  position: relative;
  min-width: 0;
}
.hero-media img {
  width:100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: 48% 48% 18px 18px / 42% 42% 18px 18px;
  box-shadow: 20px 28px 0 #d7bde0;
}
.hero-note {
  position:absolute;
  bottom: 22px;
  left: -22px;
  background: #fffaf9;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 14px 36px #69526936;
  font-size: 13px;
  font-weight:700;
}
.section {
  padding-block: 66px;
}
.section-head {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom: 25px;
}
.section-head h2 {
  font-size: clamp(24px,3vw,36px);
  line-height:1.25;
  margin:0;
}
.section-head p {
  color:var(--muted);
  margin: 6px 0 0;
}
.section-head a {
  color:#a94783;
  font-weight:700;
  white-space:nowrap;
}
.magazine {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap:18px;
}
.feature {
  background:#fff;
  border:1px solid var(--line);
  overflow:hidden;
  border-radius:var(--radius);
  display:grid;
  grid-template-rows:auto 1fr;
}
.feature img {
  width:100%;
  height:305px;
  object-fit:cover;
}
.feature-body {
  padding:24px;
}
.feature h3 {
  margin:8px 0 6px;
  font-size:24px;
  line-height:1.35;
}
.feature p {
  color:var(--muted);
  margin:0 0 12px;
}
.kicker {
  color:#c35083;
  font-size:12px;
  letter-spacing:1px;
  font-weight:800;
}
.aside-stack {
  display:grid;
  gap:18px;
}
.aside-card {
  display:grid;
  grid-template-columns: 42% 1fr;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:white;
  overflow:hidden;
  min-height:165px;
}
.aside-card img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.aside-card .aside-text {
  padding:18px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.aside-card h3 {
  margin:6px 0;
  line-height:1.35;
  font-size:18px;
}
.aside-card p {
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.65;
}
.theme-strip {
  background:#302c4e;
  color:#fff;
  padding:27px 0;
}
.theme-inner {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.theme-inner a {
  border-right: 1px solid #ffffff2d;
  padding:10px 17px;
  display:flex;
  align-items:center;
  gap:14px;
}
.theme-inner a:last-child {
  border:0;
}
.theme-inner b {
  display:block;
  font-size:16px;
}
.theme-inner small {
  color:#d7d0e7;
  font-size:12px;
}
.theme-symbol {
  font-size:27px;
}
.editorial {
  display:grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap:20px;
}
.story-card {
  min-width:0;
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
}
.story-card img {
  width:100%;
  height:158px;
  object-fit:cover;
}
.story-card .card-copy {
  padding:15px 16px 18px;
}
.story-card h3 {
  margin:6px 0;
  line-height:1.45;
  font-size:17px;
}
.story-card p {
  margin:0;
  color:var(--muted);
  line-height:1.6;
  font-size:13px;
}
.principles {
  background:linear-gradient(130deg,#fff2f0,#f2e8f9);
}
.principles-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.principle {
  background:#ffffffcc;
  border:1px solid white;
  border-radius:18px;
  padding:26px;
}
.principle strong {
  display:block;
  font-size:20px;
}
.principle p {
  color:var(--muted);
  margin:7px 0 0;
}
.footer {
  background:#26233c;
  color:#e8e1ef;
  margin-top:0;
  padding:45px 0 28px;
}
.footer-inner {
  display:flex;
  gap:30px;
  justify-content:space-between;
  flex-wrap:wrap;
}
.footer p {
  max-width:650px;
  font-size:13px;
  color:#c7bed2;
}
.footer nav {
  display:flex;
  gap:15px;
  flex-wrap:wrap;
}
.footer-bottom {
  margin-top:26px;
  padding-top:18px;
  font-size:12px;
  color:#aca3bd;
  border-top:1px solid #ffffff24;
}
.breadcrumb {
  font-size:13px;
  color:#80768b;
  padding-top:22px;
}
.article-hero {
  padding:34px 0 28px;
}
.article-hero h1 {
  font-size:clamp(30px,4vw,50px);
  max-width:850px;
}
.article-summary {
  max-width:750px;
  font-size:17px;
  color:var(--muted);
}
.article-layout {
  display:grid;
  grid-template-columns: minmax(0, 1fr) 275px;
  align-items:start;
  gap:38px;
  padding-bottom:75px;
}
.article-body {
  min-width:0;
  background:#fff;
  border:1px solid var(--line);
  padding: clamp(22px,4vw,50px);
  border-radius:20px;
}
.article-body .lead {
  font-size:18px;
  color:#4e466b;
}
.article-body h2 {
  font-size:25px;
  margin:36px 0 12px;
  line-height:1.4;
}
.article-body p {
  margin: 0 0 18px;
  color:#514c60;
}
.article-cover {
  height:360px;
  object-fit:cover;
  width:100%;
  border-radius:18px;
  margin-bottom:26px;
}
.toc {
  background:#f9f1f8;
  padding:24px;
  border-radius:20px;
  position:sticky;
  top:25px;
}
.toc h2 {
  font-size:18px;
  margin:0 0 12px;
}
.toc a {
  display:block;
  padding:9px 0;
  border-bottom:1px solid #eadcea;
  font-size:14px;
}
.related {
  padding-top:30px;
  border-top:1px solid var(--line);
  margin-top:36px;
}
.related h2 {
  margin-top:0;
}
@media (max-width: 1000px) {
  .header-inner {
    flex-direction:column;
    align-items:stretch;
    gap:7px;
    padding:16px 0 8px;
  }
  .nav {
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:8px;
    scrollbar-width:thin;
  }
  .nav a {
    flex-shrink:0;
  }
  .hero-grid {
    min-height:0;
  }
  .editorial {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 700px) {
  .container {
    width:min(var(--max),calc(100% - 28px));
  }
  .hero-grid {
    grid-template-columns:1fr;
    padding:36px 0 50px;
    gap:25px;
  }
  .hero-media img {
    height:300px;
    box-shadow:10px 13px 0 #d7bde0;
  }
  .hero-note {
    left:6px;
    bottom:12px;
  }
  h1 {
    font-size:36px;
  }
  .magazine {
    grid-template-columns:1fr;
  }
  .theme-inner {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .theme-inner a:nth-child(2) {
    border:0;
  }
  .principles-grid {
    grid-template-columns:1fr;
  }
  .article-layout {
    grid-template-columns:1fr;
  }
  .toc {
    position:static;
  }
  .section {
    padding-block:44px;
  }
}
@media (max-width: 400px) {
  h1 {
    font-size:31px;
  }
  .editorial {
    grid-template-columns:1fr;
  }
  .aside-card {
    grid-template-columns:39% 1fr;
  }
  .aside-card .aside-text {
    padding:11px;
  }
  .aside-card h3 {
    font-size:15px;
  }
  .theme-inner a {
    padding:8px 5px;
    gap:8px;
  }
  .theme-symbol {
    font-size:22px;
  }
  .theme-inner b {
    font-size:13px;
  }
  .section-head {
    align-items:start;
  }
  .section-head a {
    font-size:13px;
  }
  .article-cover {
    height:230px;
  }
}

/* 维护版：响应式补充，避免视觉卡片过窄与文本挤压 */
.section--compact {
  padding-top: 12px;
}
.nav {
  min-width: 0;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}
.story-card,
.feature,
.aside-card {
  min-width: 0;
  box-shadow: 0 8px 28px rgba(68, 42, 87, 0.04);
}
.story-card h3 a,
.aside-card h3 a {
  text-wrap: pretty;
}
@media (max-width: 1000px) {
  .header-inner {
    gap: 12px;
  }
  .nav {
    width: 100%;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 700px) {
  .hero-grid {
    padding-top: 28px;
  }
  .hero-media img {
    border-radius: 20px;
  }
  .section-head {
    flex-wrap: wrap;
  }
  .aside-card img {
    min-height: 160px;
  }
}
@media (max-width: 520px) {
  .editorial {
    grid-template-columns: 1fr;
  }
  .story-card img {
    height: 210px;
  }
  .hero-note {
    max-width: calc(100% - 18px);
  }
  .brand small {
    font-size: 10px;
  }
  .aside-card {
    grid-template-columns: 38% minmax(0, 1fr);
  }
  .aside-card .aside-text {
    padding: 12px;
  }
  .aside-card p {
    display: none;
  }
}
@media (max-width: 360px) {
  .theme-inner {
    grid-template-columns: 1fr;
  }
  .theme-inner a,
  .theme-inner a:nth-child(2) {
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
}
