

/* ===== extracted from model.php ===== */

body { padding-top: 60px; }
    .model-detail { max-width: 1000px; margin: 0 auto; padding: 32px 20px; }
    /* .breadcrumb 统一定义在 css/style.css（R36 教训：避免重复源；样式已扩展为暗色卡片 + 当前页暗金高亮） */

    /* === Hero 区（仿 CosIndex） — 规则与 css/style.css 同步 === */
    .model-hero { display: flex; gap: 40px; margin-bottom: 40px; align-items: flex-start; flex-wrap: wrap; }
    .model-hero-left { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
    .model-cover { width: 280px; height: 360px; border-radius: 16px; overflow: hidden; flex-shrink: 0; position: relative; z-index: 0; background: var(--bg3); border: 1px solid var(--line2); box-shadow: 0 14px 44px rgba(200,169,110,.18), inset 0 0 0 1px rgba(200,169,110,.06); }
    .model-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .model-profile { flex: 1; min-width: 0; padding: 4px 0; position: relative; z-index: 1; }
    .model-name { font-family: var(--serif); font-size: 36px; font-weight: 400; color: #fff; margin: 0; letter-spacing: .02em; line-height: 1.15; }
    .section-label {
      font-family: var(--serif); font-size: 18px; color: var(--accent);
      font-weight: 600; letter-spacing: .02em; line-height: 1.35;
      margin: 4px 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line2);
    }
    .section-label::before { content: '\25A0'; font-family: var(--sans); font-size: 10px; margin-right: 10px; opacity: .75; vertical-align: 2px; }

    /* 相关作品 — 超链接按钮 */
    .link-section { margin-top: 32px; }
    .link-btn {
        display: inline-flex; align-items: center; gap: 8px;
        background: linear-gradient(135deg, rgba(200,169,110,.12) 0%, rgba(200,169,110,.06) 100%);
        border: 1px solid var(--accent);
        color: var(--accent);
        padding: 14px 36px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        letter-spacing: .08em;
        transition: all .3s;
    }
    .link-btn:hover { background: rgba(255,214,0,.15); box-shadow: 0 4px 20px rgba(255,214,0,.2); transform: translateY(-1px); }
    .link-btn::before { content: '\2192'; font-weight: 700; }

    /* 版权声明 */
    .copyright-section {
      margin-top: 40px; padding: 14px 18px;
      background: rgba(255,255,255,.03); border-left: 3px solid var(--accent);
      border-radius: 0 6px 6px 0; font-size: 12px; line-height: 1.8;
      color: var(--text3);
    }
    .copyright-link {
      color: var(--accent); text-decoration: none;
      word-break: break-all; transition: color .2s;
    }
    .copyright-link:hover { color: #fff; text-decoration: underline; }

    /* 相关模特 - 使用flex避免grid拉伸问题 */
    .related-section { margin-top: 48px; }
    .related-title { font-family: var(--serif); font-size: 20px; font-weight: 400; color: #fff; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
    /* 排序切换按钮 */
    .related-order-tabs { display:flex; gap:6px; }
    .ro-tab {
      background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1);
      color: var(--text3); font-size:12px; padding:5px 14px; border-radius:20px;
      cursor:pointer; transition:all .2s; font-family:inherit;
    }
    .ro-tab:hover { border-color:rgba(255,214,0,.3); color:var(--text2); }
    .ro-tab.active { background: linear-gradient(135deg,rgba(255,214,0,.18),rgba(255,214,0,.08)); border-color:var(--accent); color:var(--accent); }
    .related-grid { display: flex; flex-wrap: wrap; gap: 14px; }
    .related-grid a { display: flex; flex-direction: column; width: calc(25% - 11px); min-width: 160px; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: border-color .2s; text-decoration: none; flex-shrink: 0; }
    .related-grid a:hover { border-color: var(--accent2); box-shadow: 0 8px 26px rgba(200,169,110,.14); }
    .related-grid a > div:first-child { aspect-ratio: 3/4; overflow: hidden; background: var(--bg3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .related-grid a > div:first-child img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .5s ease; filter: grayscale(45%) brightness(.5); }
    .related-grid a:hover > div:first-child img { filter: grayscale(0%) brightness(1); }
    .related-grid a > div:last-child { padding: 10px 10px; flex-shrink: 0; text-align: center; }
    .related-grid a > div:last-child div { font-size: 13px; color: var(--text); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    @media (max-width: 768px) {
      .model-hero { flex-direction: column; gap: 24px; align-items: center; }
      .model-hero-left { width: 200px; align-items: center; }
      .model-cover { width: 200px; height: 260px; border-radius: 12px; }
      .model-name { font-size: 28px; text-align: center; }
      .profile-detail-section { padding: 22px 20px; }
      .related-grid a { width: calc(33.333% - 10px); }
    }
    @media (max-width: 480px) {
      .related-grid a { width: calc(50% - 7px); min-width: 130px; }
      .related-grid a > div:first-child { aspect-ratio: 1/1; }
    }

    /* 作品列表 */
    .works-section { margin-top: 48px; }
    .section-title-bar {
      display:flex; align-items:center; gap:12px;
      margin-bottom:20px; padding-bottom:14px;
      border-bottom: 1px solid var(--line);
    }
    .section-title-text { font-family:var(--serif); font-size:20px; font-weight:400; color:#fff; margin:0; }
    .section-title-count {
      display:inline-flex; align-items:center; justify-content:center;
      background:rgba(255,214,0,.12); color:var(--accent);
      font-size:11px; font-weight:600; letter-spacing:.08em;
      padding:2px 10px; border-radius:10px;
    }
    .works-grid { display:flex; flex-wrap:wrap; gap:16px; }
    .work-card {
      display:flex; flex-direction:column;
      width:calc(25% - 12px); min-width:180px;
      background:var(--bg2);
      border:1px solid var(--line);
      border-radius:8px; overflow:hidden;
      text-decoration:none;
      transition:border-color .2s, transform .25s;
      flex-shrink:0;
    }
    .work-card:hover { border-color:var(--accent2); transform:translateY(-3px); box-shadow:0 12px 36px rgba(0,0,0,.5), 0 0 22px rgba(200,169,110,.14); }
    .work-cover { aspect-ratio:3/4; overflow:hidden; background:var(--bg3); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
    .work-cover img { width:100%; height:100%; object-fit:cover; display:block; transition:filter .5s ease, transform .6s ease; filter:grayscale(30%) brightness(.65); }
    .work-card:hover .work-cover img { filter:grayscale(0%) brightness(1); transform:scale(1.05); }
    .work-info { padding:12px 14px; flex-shrink:0; }
    .work-title { font-size:13px; font-weight:600; color:#e8e8e8; line-height:1.4; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-bottom:4px; }
    .work-desc { font-size:11px; color:var(--text3); line-height:1.5; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

    @media (max-width:768px) {
      .work-card { width:calc(33.333% - 11px); min-width:150px; }
    }
    @media (max-width:480px) {
      .work-card { width:calc(50% - 8px); min-width:130px; }
      .work-cover { aspect-ratio:1/1; }
    }

    /* 图片广告 — 固定高度 banner，不因原图比例变化 */
    .ad-banner-row { margin-top: 32px; }
    .ad-banner-fixed {
      display: block; width: 100%; height: 120px; border-radius: 10px; overflow: hidden;
      background: var(--bg2); border: 1px solid var(--line);
      transition: border-color .3s, box-shadow .3s; position: relative;
    }
    .ad-banner-fixed:hover { border-color: var(--accent2); box-shadow: 0 6px 24px rgba(200,169,110,.18); }
    .ad-banner-fixed img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .ad-banner-static { cursor: default; }
    .ad-banner-static:hover { border-color: var(--line); box-shadow: none; }
    @media (max-width: 768px) {
      .ad-banner-row { margin-top: 24px; }
      .ad-banner-fixed { height: 96px; border-radius: 8px; }
    }
    @media (max-width: 480px) {
      .ad-banner-fixed { height: 80px; }
    }
