/* 小红书作品集：独立样式，与官网常驻流体背景共存。 */
/* 避免官网 body 的 overflow-x:hidden 让分类栏失去视口吸附；仅作用于新页。 */
body:has(.xhs-page) { overflow-x: clip; }
body:has(.xhs-page) nav { background: rgba(10,8,21,.88); backdrop-filter: blur(20px); }
.xhs-page { --xhs-muted: #c5bfcc; width: min(1200px, 92%); margin: 0 auto; padding: 124px 0 70px; }
.xhs-page [hidden] { display: none !important; }
.xhs-page button, .xhs-page a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.xhs-page button { font: inherit; cursor: pointer; color: inherit; }
.xhs-page a { text-decoration: none; }
.xhs-page :is(button,a,summary):focus-visible, .team-card-link:focus-visible { outline: 3px solid #ff9bc4; outline-offset: 5px; }
.xhs-back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--xhs-muted); font-size: 14px; transition: color .2s; }
.xhs-back:hover { color: #fff; }
.xhs-back svg, .xhs-primary svg { width: 19px; height: 19px; flex-shrink: 0; }
.xhs-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 36px; padding: 55px 0 90px; }
.xhs-kicker { color: #ff87b4; font: 600 11px/1.5 var(--font-body); letter-spacing: .16em; margin-bottom: 18px; }
.xhs-hero h1 { font: 700 clamp(44px, 6vw, 78px)/1.13 var(--font-heading); letter-spacing: -.04em; }
.xhs-intro { color: var(--xhs-muted); font-size: 17px; line-height: 1.85; margin: 28px 0; max-width: 480px; }
.xhs-hero-meta { display: flex; flex-wrap: wrap; gap: 16px 24px; color: #fff; font-size: 13px; margin-bottom: 30px; }
.xhs-hero-meta span + span { border-left: 1px solid var(--border-glass); padding-left: 24px; }
.xhs-primary { display: inline-flex; min-height: 48px; padding: 13px 24px; align-items: center; justify-content: center; gap: 16px; color: #fff; background: #d70a5c; border: 1px solid #ff4b92; border-radius: 999px; font-size: 15px; font-weight: 600; transition: background .2s, box-shadow .2s; }
.xhs-primary:hover { background: #bc084f; box-shadow: 0 0 28px #ff2e7e30; }
.xhs-hero-art { position: relative; min-width: 0; height: 440px; isolation: isolate; }
.xhs-hero-art img { position: absolute; width: 39%; height: 325px; object-fit: contain; background: #12101b; border: 1px solid #ffffff20; border-radius: 12px; box-shadow: 0 22px 50px #0007; }
.xhs-hero-art img:nth-child(1) { left: 0; top: 62px; transform: rotate(-9deg); z-index: 1; }
.xhs-hero-art img:nth-child(2) { left: 31%; top: 18px; transform: rotate(3deg); z-index: 3; }
.xhs-hero-art img:nth-child(3) { right: 0; top: 82px; transform: rotate(11deg); z-index: 2; }
.xhs-art-caption { position: absolute; bottom: 0; right: 0; color: #d9cfdf; letter-spacing: .06em; font-size: 12px; }
.xhs-filter-bar { position: sticky; top: 100px; z-index: 20; display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; background: rgba(16,12,27,.94); backdrop-filter: blur(20px); border: 1px solid var(--border-glass); border-radius: 16px; scroll-margin-top: 108px; }
.xhs-filter { min-height: 44px; padding: 10px 22px; border: 1px solid transparent; border-radius: 9px; background: transparent; font-size: 14px !important; font-weight: 600 !important; color: #d2cbd9 !important; transition: background .2s, color .2s; }
.xhs-filter:hover { background: #ffffff0d; }
.xhs-filter[aria-pressed="true"] { background: #be0a53; color: #fff !important; border-color: #ff4b9266; }
.xhs-results { color: #bcb3c6; font-size: 12px; padding: 16px 2px 0; }
.xhs-section { padding: 65px 0; border-bottom: 1px solid #ffffff1c; }
.xhs-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.xhs-section-head .xhs-kicker { margin-bottom: 10px; }
.xhs-section-head h2 { font: 700 clamp(25px, 3vw, 36px)/1.3 var(--font-heading); }
.xhs-section-intro { max-width: 470px; color: var(--xhs-muted); font-size: 15px; line-height: 1.8; }
.xhs-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px 22px; }
.xhs-card { min-width: 0; margin: 0; }
.xhs-image-button { display: block; position: relative; width: 100%; border: 1px solid #ffffff26; border-radius: 12px; padding: 8px; background: #12101d; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.xhs-image-button:hover { border-color: #ff73ab; box-shadow: 0 8px 28px #0005; }
.xhs-image-wrap { display: flex; width: 100%; aspect-ratio: 3 / 4; align-items: center; justify-content: center; background: #171520; border-radius: 6px; overflow: hidden; }
.xhs-image-wrap img { display: block; width: 100%; height: 100%; object-fit: contain; }
.xhs-zoom-hint { display: grid; place-items: center; position: absolute; right: 18px; bottom: 18px; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: #100c20c9; border: 1px solid #ffffff40; }
.xhs-zoom-hint svg { width: 17px; height: 17px; }
.xhs-card figcaption { padding: 15px 2px 0; }
.xhs-card-label { display: block; color: #ffa0c4; font-size: 12px; line-height: 1.6; margin-bottom: 5px; }
.xhs-card-title { font-size: 15px; font-weight: 500; line-height: 1.6; color: #eee9f2; }
.xhs-gallery-covers { grid-template-columns: repeat(4,minmax(0,1fr)); }
.xhs-gallery-covers .xhs-image-wrap { aspect-ratio: 9 / 16; }
.xhs-case-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 52px; align-items: start; }
.xhs-case-copy { padding: 30px; border: 1px solid var(--border-glass); border-radius: 16px; background: #151021e8; }
.xhs-case-copy h3 { font: 700 clamp(22px, 2.2vw, 28px)/1.5 var(--font-heading); margin-bottom: 20px; }
.xhs-note-lead { color: var(--xhs-muted); line-height: 1.9; font-size: 16px; }
.xhs-note-details { margin-top: 28px; border-top: 1px solid var(--border-glass); border-bottom: 1px solid var(--border-glass); }
.xhs-note-details summary { cursor: pointer; min-height: 52px; padding: 16px 0; color: #ffa0c4; font-size: 14px; }
.xhs-note-body { padding: 6px 0 16px; font-size: 15px; line-height: 1.95; color: #ded7e4; overflow-wrap: anywhere; }
.xhs-note-body p + p { margin-top: 18px; }
.xhs-case-disclaimer { color: #afa5bb; font-size: 12px; line-height: 1.8; margin-top: 20px; }
.xhs-gallery-story { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 18px; }
.xhs-gallery-story .xhs-card:first-child { grid-column: 1/-1; }
.xhs-gallery-story .xhs-card:first-child .xhs-image-wrap { aspect-ratio: auto; height: min(540px, 65vw); }
.xhs-contact { padding: 80px 0 20px; text-align: center; }
.xhs-contact h2 { font: 700 clamp(27px,4vw,44px)/1.35 var(--font-heading); }
.xhs-contact > p:not(.xhs-kicker) { color: var(--xhs-muted); font-size: 16px; line-height: 1.8; margin: 20px 0 26px; }
.xhs-contact .xhs-back { display: flex; width: max-content; margin: 16px auto 0; }
.team-card-link { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.team-card-cta { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; min-height: 44px; color: #ff9bc4; font-size: 13px; font-weight: 600; }
.team-card-cta svg { width: 17px; height: 17px; }
.team-card-link:hover .team-card-cta { color: #fff; }
.xhs-dialog { position: fixed; inset: 0; margin: auto; width: min(1120px,94vw); height: 92vh; height: 92dvh; max-height: 92dvh; padding: 0; background: #100d18; color: #fff; border: 1px solid #ffffff40; border-radius: 16px; box-shadow: 0 24px 90px #0008; }
.xhs-dialog:not([open]) { display: none; }
.xhs-dialog[open] { display: flex; flex-direction: column; }
.xhs-dialog::backdrop { background: #040309e8; backdrop-filter: blur(10px); }
.xhs-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-shrink: 0; padding: 12px 18px; border-bottom: 1px solid #ffffff20; }
.xhs-dialog-bar p { font-size: 14px; line-height: 1.5; }
.xhs-dialog-close { display: flex; align-items: center; gap: 6px; min-width: 76px; min-height: 44px; padding: 10px; border: 1px solid #ffffff35; border-radius: 8px; background: #ffffff09; }
.xhs-dialog-close svg { width: 18px; height: 18px; }
.xhs-dialog-stage { position: relative; flex: 1; min-height: 0; min-width: 0; overflow: auto; padding: 18px; overscroll-behavior: contain; }
.xhs-dialog-stage > img { display: block; width: 100%; height: 100%; object-fit: contain; margin: auto; }
.xhs-dialog.is-zoomed .xhs-dialog-stage > img { width: max(100%, 1000px); max-width: none; height: auto; object-fit: initial; }
.xhs-dialog-controls { flex-shrink: 0; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid #ffffff20; }
.xhs-dialog-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 9px 14px; border: 1px solid #ffffff30; background: #ffffff09; border-radius: 8px; font-size: 13px; }
.xhs-dialog-controls button:hover, .xhs-dialog-close:hover { background: #ffffff18; }
.xhs-dialog-controls svg { width: 18px; height: 18px; }
.xhs-dialog-controls p { min-width: 58px; text-align: center; font-size: 13px; color: #d7cde1; }
.xhs-dialog-controls [data-xhs-zoom][aria-pressed="true"] { border-color: #ff87b4; color: #ffb4d2; }
.xhs-image-error { position: absolute; bottom: 20px; left: 20px; right: 20px; background: #2d1622; border: 1px solid #fc7298; border-radius: 8px; padding: 12px; font-size: 14px; }
@media (max-width: 1000px) {
  .xhs-hero { gap: 24px; }
  .xhs-hero-art { height: 340px; }
  .xhs-hero-art img { height: 245px; }
  .xhs-section-head { align-items: flex-start; }
  .xhs-section-intro { max-width: 46%; }
  .xhs-case-layout { gap: 28px; }
  .xhs-filter { padding: 10px 17px; }
}
@media (max-width: 760px) {
  .xhs-page { padding-top: 104px; }
  .xhs-hero { grid-template-columns: 1fr; padding-top: 30px; padding-bottom: 40px; }
  .xhs-hero h1 { font-size: clamp(44px, 10vw, 68px); }
  .xhs-intro { font-size: 16px; max-width: 100%; margin: 22px 0; }
  .xhs-hero-art { width: min(480px,96%); margin: 0 auto; height: 340px; }
  .xhs-hero-art img { height: 250px; }
  .xhs-hero-art img:nth-child(1) { top: 44px; }
  .xhs-hero-art img:nth-child(3) { top: 62px; }
  .xhs-filter-bar { top: 88px; gap: 5px; padding: 7px; scroll-margin-top: 96px; }
  .xhs-filter { padding: 9px 12px; flex: 1 0 auto; }
  .xhs-section { padding: 42px 0; }
  .xhs-section-head { display: block; margin-bottom: 24px; }
  .xhs-section-intro { max-width: none; margin-top: 16px; font-size: 16px; }
  .xhs-gallery, .xhs-gallery-covers { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px 12px; }
  .xhs-image-button { padding: 4px; border-radius: 9px; }
  .xhs-card-title { font-size: 14px; }
  .xhs-zoom-hint { right: 10px; bottom: 10px; width: 29px; height: 29px; }
  .xhs-zoom-hint svg { width: 15px; height: 15px; }
  .xhs-case-layout { grid-template-columns: 1fr; }
  .xhs-case-copy { padding: 24px; }
  .xhs-case-copy h3 { font-size: 24px; }
  .xhs-note-body { font-size: 16px; }
  .xhs-gallery-story .xhs-card:first-child .xhs-image-wrap { height: min(540px, 110vw); }
  .xhs-contact { padding-top: 55px; }
  .xhs-dialog { width: 96vw; height: 96vh; height: 96dvh; max-height: 96dvh; border-radius: 12px; }
  .xhs-dialog-bar { padding: 8px 10px; }
  .xhs-dialog-bar p { font-size: 12px; }
  .xhs-dialog-stage { padding: 8px; }
  .xhs-dialog-controls { gap: 5px; padding: 8px 6px max(8px, env(safe-area-inset-bottom)); }
  .xhs-dialog-controls button { padding: 8px; font-size: 12px; }
  .xhs-dialog-controls p { min-width: 40px; font-size: 12px; }
  .xhs-dialog-controls svg { width: 14px; height: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .xhs-page *, .team-card-link { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .xhs-hero-art img { transform: none !important; }
}
