/* Model directory and profiles · photography-led, inspired by PMD's layout. */
body.models-page,body.model-detail-page {background:#fff}
.model-categories,.model-profile-tabs,.model-profile-pagination {position:static;top:auto;left:auto;right:auto;z-index:auto;height:auto;mix-blend-mode:normal;color:var(--black)}
.model-directory-head,.model-categories,.model-directory,.model-directory-empty,
.model-profile-intro,.model-photo-section,.model-card-section,.model-profile-pagination {max-width:1600px;margin-left:auto;margin-right:auto}
.model-directory-head {padding:calc(var(--nav-height) + 64px) var(--gutter) 0}
.model-directory-head .kicker {font-size:10px;letter-spacing:.2em;color:var(--gray);margin-bottom:22px}
.model-directory-title {display:flex;align-items:baseline;gap:24px}
.model-directory-title::after {content:'';flex:1;height:1px;background:#b59c77;align-self:center}
.model-directory-title h1 {font-family:var(--serif);font-weight:400;font-size:clamp(34px,3.8vw,58px);line-height:1.35;letter-spacing:.02em}
.model-directory-title h1,.model-categories a,.model-profile-tags span {max-width:100%;min-width:0;overflow-wrap:anywhere}
.model-directory-title h1 em {font-weight:400;font-size:.78em;margin-left:14px;color:#74644d}
.model-directory-title>span {font-size:12px;color:var(--gray);white-space:nowrap;order:3}
.model-categories {display:flex;justify-content:flex-start;flex-wrap:wrap;gap:6px 24px;padding:24px var(--gutter) 32px}
.model-categories a {font-size:13px;line-height:1.5;min-height:44px;padding:11px 0;color:#77746d;border-bottom:1px solid transparent}
.model-categories a.on {color:var(--black);border-color:#9c805a}
.model-categories a:hover {color:var(--black)}
.model-directory {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 24px;padding:0 var(--gutter) 88px}
.model-tile {display:block;position:relative;min-width:0;color:#fff}
.model-tile-photo {position:relative;aspect-ratio:3/4;overflow:hidden;background:#eae7e1}
.model-tile-photo>img {display:block;width:100%;height:100%;object-fit:cover;object-position:center 30%;filter:grayscale(1);transition:filter .35s,transform .6s}
.model-tile-photo::after {content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(transparent 45%,rgba(0,0,0,.68));transition:background .25s}
/* ---------- 资料浮层（桌面悬停 / 手机首击显示，版式参考 starmodelagencymyanmar） ---------- */
.mt-open {position:absolute;top:16px;right:16px;z-index:3;font-size:11px;letter-spacing:.18em;color:#fff;opacity:0;transform:translateY(-6px);transition:opacity .3s,transform .3s;pointer-events:none;text-shadow:0 1px 8px rgba(0,0,0,.5)}
.mt-overlay {position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;justify-content:flex-end;gap:18px;padding:24px 20px;opacity:0;transform:translateY(8px);transition:opacity .3s ease,transform .3s ease;background:linear-gradient(180deg,rgba(10,10,12,.55) 0%,rgba(10,10,12,.28) 35%,rgba(10,10,12,.88) 100%);pointer-events:none}
.model-tile.is-active .mt-overlay {opacity:1;transform:none}
.model-tile.is-active .mt-open {opacity:1;transform:none}
.mt-head {min-width:0}
.mt-badge {display:inline-block;padding:4px 12px;border-radius:999px;background:#c8a15a;color:#1a1a1a;font-size:10px;font-weight:500;letter-spacing:.2em;margin-bottom:10px}
.mt-overlay h2 {font-family:var(--serif);font-weight:400;font-size:clamp(22px,2vw,30px);line-height:1.15;letter-spacing:.02em;color:#fff;overflow-wrap:anywhere}
.mt-en {font-size:11px;letter-spacing:.14em;color:rgba(255,255,255,.75);margin-top:5px}
.mt-stats {display:flex;flex-direction:column;gap:7px;min-width:0}
.mt-row {display:flex;flex-wrap:wrap;gap:4px 16px}
.mt-item {display:inline-flex;align-items:baseline;gap:5px;min-width:0}
.mt-k {font-size:12px;letter-spacing:.1em;color:rgba(255,255,255,.55);white-space:nowrap}
.mt-en {font-style:normal;font-size:9px;letter-spacing:.14em;color:rgba(255,255,255,.5);margin-left:5px}
.mt-v {font-size:12px;font-weight:500;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.model-tile-empty .model-tile-photo>img {object-fit:contain;filter:none}
.model-directory-empty {padding:64px var(--gutter) 96px;text-align:center}
.model-empty-mark {display:block;font-family:var(--serif);font-size:70px;color:#c7c0b3;line-height:1.1;margin-bottom:24px}
.model-directory-empty h2 {font-size:25px;font-family:var(--serif);font-weight:400}
.model-directory-empty p {font-size:13px;color:var(--gray);margin-top:12px}
.model-directory-empty>a {display:inline-flex;align-items:center;justify-content:center;gap:24px;font-size:13px;min-height:46px;padding:10px 22px;margin-top:28px;border:1px solid var(--line)}
.model-profile-hero {position:relative;margin-top:var(--nav-height);background:#22221f;color:white}
.model-profile-visual {position:relative}
.model-profile-photo {height:calc(100svh - var(--nav-height));min-height:640px;max-height:980px;position:relative}
.model-profile-photo>img {display:block;width:100%;height:100%;object-fit:cover;object-position:center top;cursor:zoom-in}
.model-profile-photo::after {content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(0,0,0,.38),transparent 60%),linear-gradient(0deg,rgba(0,0,0,.65),transparent 70%)}
.model-profile-back {position:absolute;left:var(--gutter);top:24px;z-index:2;display:inline-flex;align-items:center;min-height:44px;font-size:12px;letter-spacing:.06em;color:white;border-bottom:1px solid rgba(255,255,255,.4)}
.model-profile-name {position:absolute;top:40%;left:30%;right:7%;transform:translateY(-35%);text-align:center;pointer-events:none}
.model-profile-name .kicker {font-size:10px;letter-spacing:.2em;opacity:.82;margin-bottom:18px}
.model-profile-name h1 {font-family:var(--serif);font-size:clamp(48px,6.5vw,104px);font-weight:400;line-height:1.1;letter-spacing:.02em;overflow-wrap:anywhere;text-wrap:balance}
.model-profile-en {margin-top:18px;font-size:clamp(16px,1.5vw,24px);font-family:var(--serif);letter-spacing:.08em;overflow-wrap:anywhere}
.model-profile-city {font-size:12px;letter-spacing:.12em;margin-top:20px;overflow-wrap:anywhere}
.model-profile-measurements {position:absolute;left:var(--gutter);bottom:36px;width:290px;max-width:28%;margin:0;padding:0;display:grid;gap:9px;font-size:13px;line-height:1.5;pointer-events:none}
.model-profile-measurements>div {display:flex;gap:12px;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.2);padding-bottom:7px;min-width:0}
.model-profile-measurements>div:empty {border-bottom:0;padding-bottom:0}
.model-profile-measurements dt {font-weight:400;flex-shrink:0;font-size:12px}
.model-profile-measurements dt span {font-size:9px;letter-spacing:.06em;margin-left:6px;opacity:.68}
.model-profile-measurements dd {margin:0;text-align:right;overflow-wrap:anywhere}
.model-profile-no-photo .model-profile-photo>img {object-fit:contain;cursor:default}
.model-profile-intro {padding:30px var(--gutter) 0}
.model-profile-tags {display:flex;flex-wrap:wrap;gap:10px}
.model-profile-tags span {font-size:12px;padding:6px 12px;border:1px solid var(--line);color:#71695b}
.model-profile-bio {max-width:750px;font-size:14px;line-height:2;color:#65625b;margin:24px 0;overflow-wrap:anywhere}
.model-profile-tabs {display:flex;justify-content:flex-start;flex-wrap:wrap;gap:12px 36px;border-bottom:1px solid var(--line);padding:20px 0}
.model-profile-tabs a {display:flex;align-items:center;gap:14px;min-height:44px;font-size:14px}
.model-profile-tabs a span {font-size:10px;letter-spacing:.1em;color:var(--gray)}
.model-photo-section {padding:52px 0 72px;scroll-margin-top:28px}
.model-section-title {display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:28px;padding:0 var(--gutter)}
.model-section-title h2 {font-size:30px;font-family:var(--serif);font-weight:400}.model-section-title h2 em {font-size:.7em;color:var(--gray);margin-left:14px}
.model-section-title>span {font-size:10px;letter-spacing:.12em;color:var(--gray);white-space:nowrap}
/* ---------- 图片墙：通栏 2 列、8px 间距、3:4 裁切盒（版式参考 animacreatives） ---------- */
.model-photo-grid {display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:start}
.model-photo {position:relative;margin:0;min-width:0;aspect-ratio:3/4;overflow:hidden;background:#eeece6;cursor:zoom-in}
.model-photo img {position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center 30%;cursor:zoom-in}
/* ---------- 模特卡：一行一列，宽度自适应页面（手机竖屏 / 横屏 / 桌面统一单列） ---------- */
.model-card-section {padding:52px 0 72px;scroll-margin-top:28px}
.model-card-grid {display:grid;grid-template-columns:1fr;gap:10px;align-items:start}
.model-card {position:relative;margin:0 auto;width:100%;max-width:1200px;min-width:0;background:#eeece6;cursor:zoom-in;overflow:hidden}
.model-card img {display:block;width:100%;height:auto;cursor:zoom-in}
/* 横屏手机（屏幕矮）：整张卡按视口高度定高、宽度按原图比例收缩并居中，
   避免一屏只能看半张卡，也不会出现竖版卡占满宽度后两侧一大片空白。
   必须用 height 而非 max-height——父框若只是限高，img 仍按自然高度撑开，object-fit 就不起作用，
   结果是把卡裁掉一截而不是完整缩小。dvh 优先（避开手机浏览器工具栏抖动），不支持则回退 vh。 */
@media (orientation:landscape) and (max-height:560px) {
  .model-card-grid {justify-items:center}
  .model-card {height:calc(100vh - 150px);height:calc(100dvh - 150px);width:auto;max-width:100%}
  .model-card img {width:auto;height:100%;max-width:100%;object-fit:contain}
}
body.model-detail-page .model-film-section {max-width:1600px;padding:20px var(--gutter) 72px;scroll-margin-top:28px}
.model-profile-pagination {display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:28px;padding:32px var(--gutter) 72px;border-top:1px solid var(--line);align-items:center}
.model-profile-pagination>a {display:block;min-height:44px;padding:10px 0;min-width:0}
.model-profile-pagination>a>span {display:block;font-size:11px;color:var(--gray);margin-bottom:8px}
.model-profile-pagination b {font-family:var(--serif);font-size:24px;font-weight:400;line-height:1.4;overflow-wrap:anywhere}
.model-profile-pagination .model-profile-all {font-size:12px;display:flex;align-items:center;gap:16px}
.model-profile-pagination .model-profile-all span {display:inline;margin:0}
.model-profile-next {text-align:right}
@media (hover:hover) and (pointer:fine) {
  .model-tile:hover .model-tile-photo>img,.model-tile:focus-visible .model-tile-photo>img {filter:grayscale(0);transform:scale(1.025)}
  .model-tile:hover .mt-overlay,.model-tile:focus-visible .mt-overlay {opacity:1;transform:none}
  .model-tile:hover .mt-open,.model-tile:focus-visible .mt-open {opacity:1;transform:none}
}
@media (hover:none) {
  .model-tile-photo>img {filter:none}
}
@media (max-width:1024px) {
  .model-directory {grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 20px}
  .model-profile-measurements {width:240px;max-width:32%}
  .model-profile-name {left:34%;right:4%}
  .model-profile-measurements dt span {display:block;margin-left:0;margin-top:3px}
}
@media (max-width:768px) {
  .model-directory-head {padding-top:calc(var(--nav-height) + 40px)}
  .model-directory-title {gap:16px;flex-wrap:wrap}.model-directory-title::after {min-width:30px}.model-directory-title>span {width:100%}
  .model-directory-title h1 {font-size:36px}.model-directory-title h1 em {font-size:24px}
  .model-directory {grid-template-columns:repeat(2,minmax(0,1fr));padding-bottom:56px}
  .model-categories {gap:4px 20px;padding-bottom:28px}
  .model-profile-photo {height:72svh;min-height:460px;max-height:740px}
  .model-profile-name {left:var(--gutter);right:var(--gutter);top:auto;bottom:70px;transform:none}
  .model-profile-name h1 {font-size:clamp(40px,8vw,66px)}
  .model-profile-photo::after {background:linear-gradient(0deg,rgba(0,0,0,.68),transparent 70%)}
  .model-profile-measurements {position:relative;left:auto;bottom:auto;width:auto;max-width:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 18px;padding:28px var(--gutter);background:#f1eee7;color:var(--black)}
  .model-profile-measurements>div {display:block;border:0;padding:0}.model-profile-measurements dd {text-align:left;margin-top:8px;font-size:16px}
  .model-profile-measurements dt {font-size:11px;color:#797265}.model-profile-measurements dt span {font-size:8px;opacity:1}
  .model-profile-intro {padding-top:24px}.model-profile-tags {gap:8px}
  .model-photo-section {padding-top:40px;padding-bottom:48px}
  .model-card-section {padding-top:40px;padding-bottom:48px}
  .model-profile-pagination {gap:20px;padding-bottom:48px}
}
@media (max-width:600px) {
  .model-directory-title h1 {font-size:32px}.model-directory-title h1 em {font-size:22px;margin-left:8px}
  .model-directory-head .kicker {font-size:9px}.model-directory-title>span {font-size:11px}
  .model-categories {gap:4px 18px;padding-top:20px;padding-bottom:24px}.model-categories a {font-size:12px}
  .model-directory {gap:26px 14px}
  .model-tile-photo>img {filter:none}
  .mt-overlay {padding:16px 12px;gap:14px}
  .mt-overlay h2 {font-size:22px}
  .mt-stats {gap:8px}
  .mt-row {gap:6px 6px}
  .mt-item {display:block;flex:1 1 auto}
  .mt-k {display:block;margin-bottom:2px;font-size:9px}
  .mt-en {display:block;font-size:8px;letter-spacing:.1em;margin:1px 0 0}
  .mt-v {display:block;font-size:11px;line-height:1.4}
  .mt-open {font-size:10px;top:12px;right:12px}
  .model-profile-photo {height:70svh;min-height:460px;max-height:680px}
  .model-profile-back {top:16px;font-size:11px}.model-profile-name {bottom:60px}
  .model-profile-name .kicker {font-size:8px;margin-bottom:14px}.model-profile-name h1 {font-size:clamp(38px,10vw,60px)}
  .model-profile-en {margin-top:12px;font-size:18px}.model-profile-city {margin-top:14px;font-size:11px}
  .model-profile-measurements {grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 14px;padding-top:26px;padding-bottom:26px}
  .model-profile-measurements dt span {display:inline;margin-left:5px}.model-profile-measurements dd {margin-top:7px}
  .model-profile-intro {padding-top:22px}.model-profile-tags span {font-size:11px;padding:5px 10px}
  .model-profile-bio {font-size:13px;margin-top:20px}.model-profile-tabs {gap:8px 24px;padding:14px 0}.model-profile-tabs a {font-size:13px;gap:10px}.model-profile-tabs a span {font-size:9px}
  .model-photo-grid {gap:8px}.model-section-title h2 {font-size:26px}.model-section-title h2 em {margin-left:10px}
  .model-section-title>span {font-size:9px}.model-section-title {margin-bottom:20px}
  .model-profile-pagination {grid-template-columns:1fr 1fr;gap:12px 24px;padding-top:24px}.model-profile-pagination .model-profile-all {grid-column:1/-1;grid-row:2;justify-content:center;border-top:1px solid var(--line);padding-top:20px;margin-top:10px}
  .model-profile-pagination b {font-size:20px}
}
@media (max-width:359px) {
  .model-directory {grid-template-columns:1fr}.mt-overlay h2 {font-size:28px}
  .mt-stats {grid-template-columns:1fr 1fr}
}
@media (prefers-reduced-motion:reduce) {.model-tile-photo>img{transition:none}}

/* 说明：全屏幻灯片（.mp-slideshow / .mps-*）已抽为公共组件，样式统一维护在
   assets/css/interface.css 末尾「公共全屏幻灯片」段，供 model.php 与 work.php 共用。 */

/* Desktop: the name and measurements share one left-aligned information column. */
@media (min-width:769px) {
  .model-profile-hero {--model-info-width:290px;display:grid;grid-template-columns:minmax(0,var(--model-info-width)) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto;min-height:clamp(640px,calc(100svh - var(--nav-height)),980px);padding:100px var(--gutter) 36px}
  .model-profile-visual {display:contents}
  .model-profile-photo {position:absolute;inset:0;width:100%;height:100%;min-height:0;max-height:none}
  .model-profile-name {position:relative;grid-column:1;grid-row:2;top:auto;left:auto;right:auto;bottom:auto;transform:none;text-align:left;margin-bottom:22px;z-index:1}
  .model-profile-name .kicker {margin-bottom:12px}
  .model-profile-name h1 {font-size:clamp(38px,4.2vw,64px)}
  .model-profile-en {font-size:18px;margin-top:10px}
  .model-profile-city {margin-top:12px}
  .model-profile-measurements {position:relative;grid-column:1;grid-row:3;left:auto;bottom:auto;width:auto;max-width:none;z-index:1}
}
@media (min-width:769px) and (max-width:1024px) {
  .model-profile-hero {--model-info-width:240px}
}

/* ================= 暗色调层（模特页，复刻 starmodelagencymyanmar） ================= */
body.models-page,body.model-detail-page {background:#0a0a0a}
.model-directory-title::after {background:#3a352c}
.model-directory-title h1 em {color:#9b8a6c}
.model-directory-title>span {color:#a5a5a5}
.model-categories a {color:#8f8b83}
.model-categories a.on {border-color:#d8c5a0;color:var(--ink)}
.model-empty-mark {color:#4a4a4a}
.model-directory-empty h2 {color:var(--ink)}
.model-directory-empty p {color:#a5a5a5}
.model-tile-photo {background:#161616}
.mt-badge {background:#d8c5a0;color:#0a0a0a}
.mt-overlay {background:linear-gradient(180deg,rgba(10,10,12,.62) 0%,rgba(10,10,12,.3) 35%,rgba(10,10,12,.93) 100%)}
.model-tile.is-active .mt-open,.model-tile:hover .mt-open {color:#e8dfcb}
.model-profile-hero {background:#0b0b0b}
.model-profile-photo::after {background:linear-gradient(90deg,rgba(0,0,0,.5),transparent 60%),linear-gradient(0deg,rgba(0,0,0,.8),transparent 72%)}
.model-profile-back {color:rgba(242,239,233,.9)}
.model-profile-tabs {border-bottom-color:#262626}
.model-photo {background:#161616}
body.model-detail-page .model-film-section {background:transparent}
.model-profile-pagination {border-top-color:#262626}
body .model-profile-measurements {background:#141414;color:var(--ink)}
body .model-profile-measurements dt {color:#9b968b}
body .model-profile-measurements>div {border-bottom-color:rgba(255,255,255,.14)}
body .model-profile-measurements>div:empty {border-bottom:0}

/* ---------- 模特名称：粗宋（Noto Serif SC 700；缺字体时回退系统宋体加粗） ---------- */
.mt-overlay h2,.model-profile-name h1 {font-family:'Noto Serif SC','Songti SC','STSong','SimSun',Georgia,serif;font-weight:700}

/* ---------- 内页细节：名称 70%、城市 50%、返回链接上移 10px ---------- */
.model-profile-name h1 {color:rgba(255,255,255,.7)}
.model-profile-city {color:rgba(255,255,255,.5)}
.model-profile-back {top:14px}
@media (max-width:600px){.model-profile-back {top:6px}}

/* ---------- 内页：尺寸表底色 30% 透明 + 行高收紧 10%（1.5→1.35），英文名 70% ---------- */
@media (min-width:769px){body .model-profile-measurements {background:rgba(20,20,20,.3);line-height:1.35}}
.model-profile-en {color:rgba(255,255,255,.7)}

/* 幻灯片过渡与缩放样式见 interface.css「公共全屏幻灯片」段（model.php / work.php 共用） */
