/* ============================================================
 *  良缘 · 设计系统
 *  三套中国风主题，靠 [data-theme] 切换，全部是 CSS 变量
 *    zhusha  朱砂鎏金  —— 宫廷喜庆，适合严肃婚恋
 *    shuimo  水墨青瓷  —— 留白雅致，高级安静
 *    xingshi 醒狮潮   —— 深色潮流，年轻有冲击
 * ============================================================ */

/* ---------- 主题 A：朱砂鎏金 ---------- */
:root {
  --bg:          #FBF5EA;
  --bg-deep:     #2A0F13;
  --surface:     #FFFFFF;
  --surface-2:   #F6EDDD;
  --text:        #2A1A16;
  --text-soft:   #6B564B;
  --text-dim:    #9C8A7D;
  --primary:     #9E2A2B;
  --primary-deep:#7A1C1E;
  --primary-soft:#C8564F;
  --accent:      #C8A45C;
  --accent-soft: #E4CE9A;
  --jade:        #2F5D50;
  --border:      #E3D5BC;
  --border-strong:#C9B48C;
  --ring:        rgba(158,42,43,.28);
  --shadow-sm:   0 1px 2px rgba(60,30,20,.06), 0 2px 8px rgba(60,30,20,.05);
  --shadow-md:   0 4px 12px rgba(60,30,20,.08), 0 12px 32px rgba(60,30,20,.07);
  --shadow-lg:   0 12px 28px rgba(60,30,20,.12), 0 32px 64px rgba(60,30,20,.10);
  --radius:      14px;
  --radius-lg:   22px;
  --deco:        rgba(158,42,43,.10);
  --deco-strong: rgba(158,42,43,.18);
  --font-title:  "Songti SC","STSong","SimSun","Source Han Serif SC","Noto Serif SC",serif;
  --font-body:   "PingFang SC","Microsoft YaHei","Hiragino Sans GB","Source Han Sans SC",sans-serif;
  --grain: .35;
  --hero-overlay: linear-gradient(180deg, rgba(251,245,234,0) 0%, rgba(251,245,234,.85) 62%, var(--bg) 100%);
}

/* ---------- 主题 B：水墨青瓷 ---------- */
[data-theme="shuimo"] {
  --bg:          #F4F1E8;
  --bg-deep:     #17211E;
  --surface:     #FFFFFF;
  --surface-2:   #EDEAE0;
  --text:        #1A1A1A;
  --text-soft:   #55605C;
  --text-dim:    #8A9490;
  --primary:     #2E4A43;
  --primary-deep:#1F3630;
  --primary-soft:#6E9C8F;
  --accent:      #B3462F;
  --accent-soft: #D98C74;
  --jade:        #6E9C8F;
  --border:      #DEDACE;
  --border-strong:#BFC0B4;
  --ring:        rgba(46,74,67,.25);
  --shadow-sm:   0 1px 2px rgba(30,40,36,.05);
  --shadow-md:   0 4px 14px rgba(30,40,36,.06), 0 10px 30px rgba(30,40,36,.05);
  --shadow-lg:   0 14px 40px rgba(30,40,36,.10);
  --radius:      10px;
  --radius-lg:   16px;
  --deco:        rgba(46,74,67,.09);
  --deco-strong: rgba(46,74,67,.16);
  --grain: .5;
}

/* ---------- 主题 C：醒狮潮 ---------- */
[data-theme="xingshi"] {
  --bg:          #14100E;
  --bg-deep:     #0B0908;
  --surface:     #1F1917;
  --surface-2:   #2A2220;
  --text:        #F5EDE6;
  --text-soft:   #B8A99F;
  --text-dim:    #7D7069;
  --primary:     #E8452C;
  --primary-deep:#B62F1B;
  --primary-soft:#F4705A;
  --accent:      #F2B33D;
  --accent-soft: #F7CE7C;
  --jade:        #23A0A0;
  --border:      #352C29;
  --border-strong:#4A3D38;
  --ring:        rgba(232,69,44,.35);
  --shadow-sm:   0 1px 3px rgba(0,0,0,.4);
  --shadow-md:   0 6px 20px rgba(0,0,0,.5);
  --shadow-lg:   0 18px 50px rgba(0,0,0,.6);
  --radius:      16px;
  --radius-lg:   26px;
  --deco:        rgba(242,179,61,.10);
  --deco-strong: rgba(242,179,61,.20);
  --grain: .18;
  --hero-overlay: linear-gradient(180deg, rgba(20,16,14,0) 0%, rgba(20,16,14,.7) 60%, var(--bg) 100%);
}

/* ============================================================
 *  基础
 * ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* 宣纸颗粒 */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
[data-theme="xingshi"] body::before { mix-blend-mode: overlay; }
body > * { position: relative; z-index: 1; }

h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 600; line-height: 1.35; margin: 0; letter-spacing: .02em; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-soft); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--primary); color: #fff; }

/* 卷轴式滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; border: 2px solid var(--surface-2); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============================================================
 *  中国风装饰件
 * ============================================================ */
/* 回纹分隔线：用 mask 上色，所以能跟随主题 */
.fret {
  height: 13px; width: 100%;
  background-color: var(--border-strong);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='13'%3E%3Cpath d='M0 12.5h44' stroke='%23000' stroke-width='1.2' fill='none'/%3E%3Cpath d='M6 12.5V5.5h9v4H9v-1.6h3.4' stroke='%23000' stroke-width='1.2' fill='none'/%3E%3Cpath d='M26 12.5V5.5h9v4h-6v-1.6h3.4' stroke='%23000' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='13'%3E%3Cpath d='M0 12.5h44' stroke='%23000' stroke-width='1.2' fill='none'/%3E%3Cpath d='M6 12.5V5.5h9v4H9v-1.6h3.4' stroke='%23000' stroke-width='1.2' fill='none'/%3E%3Cpath d='M26 12.5V5.5h9v4h-6v-1.6h3.4' stroke='%23000' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
  -webkit-mask-size: 44px 13px; mask-size: 44px 13px;
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
}
.fret--accent { background-color: var(--accent); }

/* 窗棂底纹 */
.lattice {
  background-image:
    linear-gradient(var(--deco) 1px, transparent 1px),
    linear-gradient(90deg, var(--deco) 1px, transparent 1px);
  background-size: 34px 34px, 34px 34px;
}

/* 竖排标题 */
.vertical {
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--font-title); letter-spacing: .28em;
}

/* 印章 */
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; flex: none;
  background: var(--accent); color: #fff;
  border-radius: 5px; font-family: var(--font-title); font-weight: 700;
  font-size: 15px; line-height: 1.05; letter-spacing: 0; text-align: center;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
  transform: rotate(-2deg);
}
.seal--red { background: var(--primary); }

/* 团扇相框（照片容器） */
.fan {
  position: relative; border-radius: 50% 50% 46% 46% / 42% 42% 58% 58%;
  overflow: hidden; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
}
.fan::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit; box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5px var(--border-strong);
}

/* 章节标题（左侧竖线 + 小印章） */
.section-title { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.section-title h2 { font-size: 26px; }
.section-title .bar { width: 5px; height: 30px; background: var(--primary); border-radius: 3px; }
.section-sub { color: var(--text-soft); font-size: 14px; margin: 0 0 26px; padding-left: 19px; }

/* ============================================================
 *  布局
 * ============================================================ */
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(880px, 100% - 40px); margin-inline: auto; }
.section { padding: 64px 0; }
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.row { display: flex; gap: 12px; align-items: center; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

/* ============================================================
 *  顶栏
 * ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 26px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-title); font-size: 22px; color: var(--text); font-weight: 600; }
.brand:hover { color: var(--text); }
.brand__mark {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--primary); color: #fff; display: grid; place-items: center;
  font-size: 17px; font-family: var(--font-title);
  box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent);
}
.brand__slogan { font-size: 11px; color: var(--text-dim); letter-spacing: .16em; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__link {
  padding: 8px 16px; border-radius: 99px; color: var(--text-soft);
  font-size: 15px; transition: .18s; position: relative;
}
.nav__link:hover { background: var(--surface-2); color: var(--text); }
.nav__link.is-active { color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, transparent); font-weight: 600; }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 16px; height: 2px; background: var(--primary); border-radius: 2px;
}
.nav__toggle { display: none; }

/* ============================================================
 *  按钮
 * ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 22px; border-radius: 99px; border: 1px solid transparent;
  background: var(--surface-2); color: var(--text); cursor: pointer;
  font-size: 15px; font-weight: 500; transition: .18s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-deep); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--accent { background: var(--accent); color: #3A2A0C; }
[data-theme="xingshi"] .btn--accent { color: #241703; }
.btn--sm { padding: 6px 14px; font-size: 13px; }
.btn--lg { padding: 13px 34px; font-size: 16px; }
.btn--danger { background: transparent; border-color: color-mix(in srgb, var(--primary) 40%, transparent); color: var(--primary); }
.btn--danger:hover { background: var(--primary); color: #fff; }

/* ============================================================
 *  表单
 * ============================================================ */
.field { margin-bottom: 18px; }
.field > label { display: block; font-size: 13px; color: var(--text-soft); margin-bottom: 7px; font-weight: 500; }
.field > label .req { color: var(--primary); margin-left: 3px; }
.input, .select, .textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  transition: .16s; outline: none;
}
.textarea { min-height: 108px; resize: vertical; line-height: 1.7; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.input::placeholder, .textarea::placeholder { color: var(--text-dim); }
.select { appearance: none; cursor: pointer; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%239C8A7D' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.hint { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.err { font-size: 13px; color: var(--primary); margin-top: 8px; }

/* 开关 */
.switch { position: relative; width: 42px; height: 24px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__track { position: absolute; inset: 0; background: var(--border-strong); border-radius: 99px; transition: .2s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + .switch__track { background: var(--primary); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }

/* 标签输入 */
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 9px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); min-height: 46px; }
.tags:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.tags input { border: none; outline: none; background: transparent; flex: 1; min-width: 110px; padding: 4px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px;
  background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); font-size: 13px; }
.tag button { border: none; background: none; cursor: pointer; color: inherit; opacity: .6; padding: 0; line-height: 1; font-size: 15px; }
.tag button:hover { opacity: 1; }

/* ============================================================
 *  资料卡片
 * ============================================================ */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: .22s; position: relative; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card__photo { position: relative; aspect-ratio: 4/5; background: var(--surface-2); overflow: hidden; }
.card__photo img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.card:hover .card__photo img { transform: scale(1.04); }
.card__photo.is-locked img { filter: blur(6px) saturate(.75); transform: scale(1.06); }
.card__lock {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 10px; text-align: center;
  background: linear-gradient(180deg, transparent 34%, color-mix(in srgb, var(--bg-deep) 66%, transparent)); color: #fff; padding: 20px;
}
.card__lock svg { opacity: .9; }
.card__lock span { font-size: 13px; letter-spacing: .05em; }
.card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 4px 11px; border-radius: 99px; font-size: 12px;
  background: color-mix(in srgb, var(--bg-deep) 60%, transparent); color: #fff; backdrop-filter: blur(6px);
}
.card__badge--hot { background: var(--primary); }
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card__name { display: flex; align-items: baseline; gap: 9px; }
.card__name h3 { font-size: 19px; }
.card__meta { font-size: 13px; color: var(--text-soft); display: flex; gap: 9px; flex-wrap: wrap; }
.card__meta .dot { color: var(--border-strong); }
.card__job { font-size: 13px; color: var(--text-soft); }
.card__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.card__tags .tag { font-size: 12px; padding: 3px 9px; }

/* 空状态 */
.empty { text-align: center; padding: 70px 20px; color: var(--text-dim); }
.empty__icon { margin: 0 auto 16px; opacity: .35; }

/* ============================================================
 *  页脚
 * ============================================================ */
.footer { margin-top: 70px; padding: 44px 0 30px; border-top: 1px solid var(--border); background: var(--surface-2); color: var(--text-soft); font-size: 13px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; margin-bottom: 28px; }
.footer h4 { font-size: 15px; margin-bottom: 12px; color: var(--text); }
.footer a { color: var(--text-soft); display: block; padding: 3px 0; }
.footer a:hover { color: var(--primary); }
.footer__bottom { border-top: 1px solid var(--border); padding-top: 18px; text-align: center; color: var(--text-dim); font-size: 12px; }

/* ============================================================
 *  主题切换器
 * ============================================================ */
.themebar {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.themebar__btn {
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--surface); cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow-md); color: var(--primary); transition: .2s;
}
.themebar__btn:hover { transform: rotate(30deg) scale(1.06); }
.themebar__panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 14px; width: 250px;
}
.themebar__panel h4 { font-size: 13px; color: var(--text-dim); font-weight: 500; margin-bottom: 10px; letter-spacing: .1em; }
.theme-opt { display: flex; gap: 11px; align-items: center; padding: 9px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; width: 100%; background: none; text-align: left; }
.theme-opt:hover { background: var(--surface-2); }
.theme-opt.is-active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, transparent); }
.theme-opt__sw { display: flex; border-radius: 6px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.theme-opt__sw i { width: 13px; height: 26px; display: block; }
.theme-opt__t { font-size: 14px; }
.theme-opt__d { font-size: 11px; color: var(--text-dim); }

/* ============================================================
 *  弹层 / 提示
 * ============================================================ */
.modal-mask { position: fixed; inset: 0; z-index: 100; background: color-mix(in srgb, var(--bg-deep) 55%, transparent); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; }
.modal { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: 88vh; overflow: auto; }
.modal__head { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal__body { padding: 24px; }
.modal__foot { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

.toast {
  position: fixed; left: 50%; top: 22px; transform: translateX(-50%); z-index: 200;
  background: var(--bg-deep); color: #fff; padding: 11px 22px; border-radius: 99px;
  box-shadow: var(--shadow-lg); font-size: 14px; animation: dropin .25s ease;
}
.toast--err { background: var(--primary); }
@keyframes dropin { from { opacity: 0; transform: translate(-50%, -12px); } }

/* ============================================================
 *  响应式
 * ============================================================ */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .wrap, .wrap--narrow { width: calc(100% - 32px); }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .nav__inner { height: 58px; gap: 12px; }
  .nav__links { position: fixed; left: 0; right: 0; bottom: 0; top: auto; background: var(--surface);
    border-top: 1px solid var(--border); padding: 8px 10px; justify-content: space-around; margin: 0; z-index: 60; }
  .nav__link { flex-direction: column; font-size: 12px; padding: 6px 10px; }
  .nav__link.is-active::after { display: none; }
  body { padding-bottom: 68px; }
  .footer__grid { grid-template-columns: 1fr; gap: 22px; }
  .themebar { right: 12px; bottom: 82px; }
  .themebar__panel { width: 210px; }
}
@media (max-width: 460px) {
  .cards { grid-template-columns: 1fr; }
}

/* ============================================================
 *  列表页 / 详情页 专用
 * ============================================================ */
.listhead { padding: 44px 0 18px; }

.filterbar {
  display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 22px; box-shadow: var(--shadow-sm);
}
.filterbar__f { display: flex; flex-direction: column; gap: 7px; min-width: 130px; }
.filterbar__f > label { font-size: 12px; color: var(--text-dim); letter-spacing: .08em; }
.filterbar .input, .filterbar .select { padding: 8px 12px; }

.skeleton {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); background: var(--surface-2);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .5; } }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 42px; flex-wrap: wrap; }

.gate {
  display: flex; align-items: center; gap: 16px; margin-top: 38px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 18px 22px; color: var(--text);
}
.gate > svg { color: var(--primary); flex: none; }

/* ---- 详情页 ---- */
.detail { display: grid; grid-template-columns: 380px 1fr; gap: 42px; align-items: start; padding-top: 40px; }
.detail__aside { position: sticky; top: 92px; }
.detail__photo { aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--border); position: relative; }
.detail__photo img { width: 100%; height: 100%; object-fit: cover; }
.detail__photo.is-locked img { filter: blur(22px) saturate(.6); }
.detail__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.detail__thumb { width: 66px; height: 82px; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: var(--surface-2); }
.detail__thumb.is-on { border-color: var(--primary); }
.detail__thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail__name { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.detail__name h1 { font-size: 34px; }
.detail__sub { color: var(--text-soft); margin-bottom: 24px; }

.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; background: var(--surface); margin-bottom: 26px; }
.kv__i { padding: 15px 20px; border-bottom: 1px solid var(--border); }
.kv__i:nth-child(odd) { border-right: 1px solid var(--border); }
.kv__k { font-size: 12px; color: var(--text-dim); margin-bottom: 3px; letter-spacing: .06em; }
.kv__v { font-size: 15px; font-weight: 500; }

.block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 20px; }
.block__t { font-family: var(--font-title); font-size: 17px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.block__t::before { content: ""; width: 4px; height: 17px; background: var(--accent); border-radius: 2px; }
.block p { margin: 0; color: var(--text-soft); line-height: 1.9; }
.block--locked { position: relative; overflow: hidden; }
.block--locked .blurred { filter: blur(7px); user-select: none; pointer-events: none; opacity: .65; }
.block__lock { position: absolute; inset: 0; display: grid; place-items: center; gap: 8px; text-align: center;
  background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(2px); }
.block__lock .btn { margin-top: 4px; }

@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; gap: 26px; }
  .detail__aside { position: static; }
  .kv { grid-template-columns: 1fr; }
  .kv__i:nth-child(odd) { border-right: none; }
}

