/* 黑票 Ratings —— 浅色优雅主题（依据详情页设计稿 Web1.3） */
:root {
    --page-bg: #ffffff;
    --white: #ffffff;
    --ink: #1d1d1f;
    --ink-soft: #55575e;
    --ink-faint: #8b8d94;
    --line: #e3e3e6;
    --dark-bg: #1d2328;
    --gold: #caa028;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--page-bg);
    color: var(--ink);
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
main { min-height: 60vh; }

/* ============ 顶栏 ============ */
.topbar {
    position: sticky; top: 0; z-index: 100;
    background: var(--white);
}
body.scrolled .topbar { box-shadow: 0 4px 14px rgba(0,0,0,.14); }
.topbar-inner {
    max-width: 1500px; margin: 0 auto;
    display: flex; align-items: center; gap: 28px;
    height: 66px; padding: 0 24px;
}
.brand {
    font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive;
    font-size: 31px; font-weight: 700; color: #111; line-height: 1;
}
.brand-link { display: inline-flex; align-items: center; margin-right: 56px; flex-shrink: 0; }
.brand-logo { height: 50px; width: auto; display: block; }
.search {
    flex: 1; max-width: 340px;
    display: flex; align-items: center;
    background: #f0f0f1; border-radius: 20px; padding: 4px 5px 4px 18px;
}
.search input {
    flex: 1; border: 0; background: transparent; outline: none;
    font-size: 14px; color: var(--ink); min-width: 0;
}
.search button {
    border: 0; font-size: 14px; cursor: pointer;
    color: var(--ink); padding: 6px 20px;
    background: #fff; border-radius: 18px;
    box-shadow: 0 1px 5px rgba(0,0,0,.1);
    transition: box-shadow .15s;
}
.search button:hover { box-shadow: 0 2px 8px rgba(0,0,0,.16); }
/* 小屏专用搜索栏：默认隐藏，小屏显示在顶栏与活动区之间 */
.search.search-mobile { display: none; }
.topnav { display: flex; gap: 38px; margin-left: 30px; }
.topnav a {
    font-size: 16px; color: var(--ink); padding: 4px 2px; position: relative;
}
.topnav a::after {
    content: ""; position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px;
    border-radius: 50%; background: var(--ink); transform: translateX(-50%);
    opacity: 0;
}
.topnav a.active::after { opacity: 1; }
.topuser { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.join-btn {
    background: var(--ink); color: #fff;
    border-radius: 20px; padding: 8px 26px;
    font-size: 14px; font-weight: 600; line-height: 1.4;
}
.join-btn:hover { background: #000; }
.user-icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
}
.user-avatar-img {
    width: 36px; height: 36px; border-radius: 50%;
    object-fit: cover; display: block;
}
/* 用户中心下拉菜单 */
.user-menu { position: relative; }
.user-menu-toggle { border: 0; background: none; padding: 0; cursor: pointer; }
.user-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
    min-width: 132px; padding: 6px 0;
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 8px 26px rgba(0,0,0,.12);
}
.user-dropdown a, .user-dropdown button {
    display: block; width: 100%; padding: 9px 16px;
    border: 0; background: none; cursor: pointer;
    font-size: 14px; color: var(--ink); text-align: left; white-space: nowrap;
    text-decoration: none;
}
.user-dropdown a:hover, .user-dropdown button:hover { background: #f4f4f5; }
.user-dropdown form { margin: 0; }
/* 顶栏信封（通知）按钮 */
.mail-btn {
    position: relative; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    color: #333;
}
.mail-btn:hover { color: #000; }
.mail-btn.has-unread { color: var(--gold); }
.mail-badge {
    position: absolute; top: -4px; right: -6px; min-width: 16px; height: 16px;
    padding: 0 4px; border-radius: 8px;
    background: #d0342c; color: #fff; font-size: 11px; line-height: 16px;
    text-align: center; font-weight: 600;
}
.text-btn { border: 0; background: none; color: var(--ink-faint); font-size: 13px; cursor: pointer; }
.inline-form { display: inline; }

/* ============ 上传页 / 通知页 ============ */
.upload-tip { font-size: 13.5px; color: var(--ink-faint); margin: -6px 0 16px; line-height: 1.7; }
.notify-list { display: flex; flex-direction: column; gap: 12px; }
.notify-item {
    background: var(--card-bg, #fff); border: 1px solid var(--line);
    border-radius: 10px; padding: 16px 20px;
}
.notify-item.unread { border-color: var(--gold); }
.notify-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.notify-top strong { font-size: 15px; color: var(--ink); }
.notify-top span { font-size: 12.5px; color: var(--ink-faint); flex: none; }
.notify-item p { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); line-height: 1.7; }

/* ============ 通用页容器（与顶栏同宽，左右对齐 Logo / 用户图标） ============ */
.page { max-width: 1500px; margin: 26px auto 0; padding: 0 24px; }
.article-page { margin-top: 60px; }
.article-activity-box {
    position: relative;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 14px 16px; margin-bottom: 16px;
    border: 1px solid var(--line); border-radius: 10px;
}
.article-expiry {
    position: absolute; left: 50%; transform: translateX(-50%);
    font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap;
}
.article-prizes { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.article-prize { font-size: 14px; color: var(--ink); }
.article-prize strong { font-weight: 700; }
.prize-icon { width: 20px; height: 20px; margin-right: 6px; vertical-align: -4px; color: var(--ink); }
@media (max-width: 900px) {
    .article-expiry { position: static; transform: none; }
}
.act-cta {
    flex: none; display: inline-flex; align-items: center; margin-left: auto;
    background: var(--ink); color: #fff;
    border-radius: 20px; padding: 8px 26px;
    font-size: 14px; font-weight: 600; white-space: nowrap;
    transition: background .15s;
}
.act-cta:hover { background: #000; }
.article-body { font-size: 16px; line-height: 1.9; color: var(--ink-soft); }
.article-body h1, .article-body h2, .article-body h3 { color: var(--ink); margin: 1.2em 0 .5em; }
.article-body p { margin: .6em 0; }
.article-body ul, .article-body ol { padding-left: 1.6em; margin: .6em 0; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; }
.article-body a { color: var(--gold); }
.article-body blockquote { border-left: 3px solid var(--line); margin: .8em 0; padding: .2em 1em; color: var(--ink-faint); }
.article-body table { border-collapse: collapse; margin: .8em 0; }
.article-body table td, .article-body table th { border: 1px solid var(--line); padding: 6px 10px; }
.article-products { margin-top: 44px; }
.article-works-title {
    font-size: 20px; font-weight: 700; color: var(--ink);
    margin: 48px 0 20px; padding-left: 12px; border-left: 4px solid var(--ink);
}

/* ============ 首页活动区（左长条 + 右两方块） ============ */
.promo {
    display: flex; align-items: stretch; gap: 22px;
    padding: 34px 4px; margin-bottom: 30px;
}
.promo-left { flex: 1; min-width: 0; display: flex; }
.promo-right { flex: 1; min-width: 0; display: flex; gap: 22px; }
.activity { flex: 1; min-width: 0; display: block; }
.act-cover {
    position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-size: 56px; border-radius: 15px;
    background: linear-gradient(145deg, #26262c, #4a4d56);
}
/* 左侧长条位：高度严格跟随右侧方块（绝对定位填充，图片原始高度不再撑高容器） */
.promo-left .activity { position: relative; }
.promo-left .act-cover { position: absolute; inset: 0; aspect-ratio: auto; }
.act-cover img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .45s ease;
}
.activity:hover .act-cover img { transform: scale(1.08); }
.activity:hover .act-cover { box-shadow: 0 12px 28px rgba(0,0,0,.22); }
.act-cover { transition: box-shadow .3s ease; }
.act-name {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 12px 16px;
    color: #fff; font-size: 20px; font-weight: 700; text-align: left;
    background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.act-countdown { display: block; font-size: 13px; font-weight: 700; color: #fff; margin-top: 2px; }
.act-countdown.act-ended { color: rgba(255,255,255,.7); }
.act-badge {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    padding: 3px 10px;
    font-size: 12px; font-weight: 600; line-height: 1.4;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
/* 未配置长条活动时：右侧两个方块保持原尺寸靠右 */
.promo--no-feature .promo-right { flex: 0 0 auto; margin-left: auto; }
.promo--no-feature .activity { flex: 0 0 300px; }

/* ============ 主页菜单 ============ */
.home-menu { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 0 40px; }
.home-chip {
    padding: 9px 28px;
    background: #fff; color: var(--ink);
    border: 1px solid var(--ink); border-radius: 20px;
    font-size: 15px;
    transition: background .15s, color .15s;
}
.home-chip:hover, .home-chip.active {
    background: var(--ink); color: #fff;
}
/* 首页榜单面板 */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* 分页（直角，与全站风格一致） */
.pager {
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: 8px; margin: 34px 0 8px;
}
.pager a, .pager span {
    min-width: 36px; text-align: center;
    padding: 6px 12px; font-size: 14px;
    border: 1px solid var(--line); color: var(--ink-soft);
}
.pager a:hover { border-color: var(--ink); color: var(--ink); }
.pager .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty-line { color: var(--ink-faint); text-align: center; padding: 40px 0; }
.alert {
    max-width: 1500px; margin: 16px auto 0; background: #fdecec; color: #a02020;
    padding: 10px 16px; font-size: 14px;
}

/* ============ 商品网格（首页/商品库） ============ */
.band-section { margin-bottom: 40px; }
.band-title {
    font-size: 20px; font-weight: 700; margin-bottom: 16px;
    padding-left: 12px; border-left: 4px solid var(--ink);
}
.page-h { font-size: 26px; font-weight: 700; margin: 8px 0 20px; }
.line-hint { color: var(--ink-faint); font-size: 14px; margin-bottom: 14px; }

.product-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 20px;
    align-items: start; grid-auto-flow: dense;
}
.product-card { background: transparent; display: block; }
/* 2:1 横图卡片：横跨两个网格位 */
.product-card.card-wide { grid-column: span 2; }
/* 1:2 竖图卡片：跨两行，与同排 1:1 卡片行高对齐，避免中间留出空缺 */
.product-card.card-tall { grid-row: span 2; }
.card-cover {
    position: relative; aspect-ratio: 1 / 1; overflow: hidden;
    background: #e7e7e9; border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    transition: box-shadow .2s ease;
}
.product-card:hover .card-cover {
    box-shadow: 0 14px 30px rgba(0,0,0,.22);
}
/* 收藏爱心按钮（卡片） */
.fav-btn {
    position: absolute; top: 8px; right: 8px; z-index: 5;
    width: 34px; height: 34px; border-radius: 50%;
    border: 0; background: rgba(0,0,0,.35);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0; transition: opacity .15s;
    padding: 0;
}
.product-card:hover .fav-btn { opacity: 1; }
.fav-btn svg { fill: none; stroke: #fff; stroke-width: 2; transition: fill .15s; }
.fav-btn.fav-on { opacity: 1; background: rgba(0,0,0,.45); }
.fav-btn.fav-on svg { fill: #e74c3c; stroke: #e74c3c; }
.fav-btn.fav-loading { pointer-events: none; opacity: .5; }
/* 详情页爱心（常驻显示） */
.fav-btn.fav-detail {
    position: static; opacity: 1; background: none;
    width: 40px; height: 40px;
}
.fav-btn.fav-detail svg { fill: none; stroke: var(--ink-faint); stroke-width: 2; transition: stroke .15s; }
.fav-btn.fav-detail:hover svg { stroke: var(--ink); }
.fav-btn.fav-detail.fav-on svg { fill: #e74c3c; stroke: #e74c3c; }
/* 作者区：作品区上方的作者信息条 */
.author-bar {
    display: flex; align-items: center; gap: 14px;
    background: #fff; border: 1px solid var(--line);
    border-radius: 12px; padding: 12px 16px; margin-bottom: 18px;
}
.author-avatar {
    flex: none; width: 46px; height: 46px; border-radius: 50%;
    background: #2b2b2b; color: #fff; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { flex: none; font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; }
.author-name:hover { color: var(--gold); }
.author-bio {
    flex: 1; min-width: 0; margin: 0;
    font-size: 13.5px; color: var(--ink-faint);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.author-likes { flex: none; display: flex; align-items: baseline; gap: 4px; font-size: 13px; color: var(--ink-faint); }
.author-likes strong { font-size: 16px; color: var(--ink); }
.author-btns { flex: none; display: flex; gap: 8px; }
.ab-btn {
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); background: #fff; color: var(--ink);
    border-radius: 18px; padding: 6px 16px; font-size: 13px; cursor: pointer;
    text-decoration: none; transition: background .15s, border-color .15s;
}
.ab-btn:hover { background: #f4f4f5; border-color: #bbb; }
.ab-btn.following { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 640px) {
    .author-bar { flex-wrap: wrap; }
    .author-bio { flex-basis: 100%; order: 5; white-space: normal; }
}
/* 封面大图：页面居中展示，限高 700px 并保持原始比例 */
.hero-poster-wrap {
    display: flex;
    justify-content: center;
}
.hero-poster-img {
    max-height: 700px;
    max-width: 100%;
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; }

/* 品类筛选 */
.genre-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.genre-chip {
    padding: 6px 18px; font-size: 13.5px;
    background: var(--white); border: 1px solid var(--line); color: var(--ink-soft);
}
.genre-chip:hover { border-color: var(--ink); color: var(--ink); }
.genre-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.laurel {
    flex-shrink: 0; text-align: center; color: #e9e4d4; width: 92px;
}
.laurel span { display: block; font-size: 9.5px; letter-spacing: .5px; margin-top: -6px; line-height: 1.3; }

/* ============ 详情页：展示双板块（左 3/4 六宫格方图 + 右 1/4 模特图 1:2） ============ */
.showcase { display: flex; align-items: stretch; gap: 12px; margin-top: 22px; }
.showcase-grid {
    flex: 3; min-width: 0;
    display: grid; grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr 1fr; gap: 10px;
}
.sq-cell {
    position: relative; aspect-ratio: 1 / 1;
    background: #0e1114; border-radius: 4px; overflow: hidden;
}
.sq-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cell-empty {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #5a6066; font-size: 13px; letter-spacing: 1px;
}
/* 右侧 1:2 图框：高度随左六宫格拉伸，宽度约为其 1/3，天然接近 1:2 */
.showcase-figure {
    flex: 1; min-width: 0; position: relative;
    background: #0e1114; border-radius: 4px; overflow: hidden;
}
/* 图片绝对定位、宽度撑满容器，高度按宽度等比缩放（以宽度为限制），垂直居中，超高部分裁剪 */
.showcase-figure .fig-img {
    position: absolute; top: 50%; left: 0;
    width: 100%; height: auto;
    transform: translateY(-50%);
    display: block;
}
.fig-group {
    position: absolute;
    display: flex; flex-direction: column; gap: 10px; z-index: 2;
}
/* 站立/姿势：左上角，与上、左边框等距 */
.fig-modes { top: 12px; left: 12px; }
/* 身高 1/2/3：右下角，与下、右边框等距 */
.fig-heights { bottom: 12px; right: 12px; }
.fig-round {
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.55);
    background: rgba(10,12,15,.42); color: #fff;
    font-size: 14px; letter-spacing: 1px; cursor: pointer;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s, border-color .15s;
}
.fig-heights .fig-round { width: 38px; height: 38px; font-size: 15px; }
/* 站立/姿势图标：等比缩放于圆钮内，深色图标反白显示 */
.fig-round img {
    width: 64%; height: 64%; object-fit: contain; display: block;
    filter: brightness(0) invert(1);
}
.fig-round.active img { filter: none; }
.fig-round:hover { border-color: #fff; }
.fig-round.active {
    background: var(--gold); border-color: var(--gold); color: #1b1400; font-weight: 700;
}
.play-btn {
    position: absolute; inset: 0; margin: auto;
    width: 66px; height: 66px; border-radius: 50%;
    background: rgba(255,255,255,.82);
    display: flex; align-items: center; justify-content: center;
}
.play-btn svg { margin-left: 4px; }
.play-btn:hover { background: #fff; }
.video-bar {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; gap: 10px;
    padding: 8px 14px; color: #d8dade; font-size: 12px;
    background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.p-track { flex: 1; height: 3px; background: rgba(255,255,255,.3); }
.p-track i { display: block; width: 42%; height: 100%; background: #fff; }
.p-icon { cursor: default; }

/* ============ 专业等级金葱绶带 ============ */
.rank-band {
    height: 92px; display: flex; align-items: center; justify-content: flex-end;
    padding-right: 56px; overflow: hidden;
}
.rank-band span {
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif;
    font-size: 56px; font-weight: 800; font-style: italic;
    color: #fff; letter-spacing: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,.45);
}
/* 出类拔萃：纯色底 */
.rank-lvl-4 {
    background-color: #a9801c;
}
/* 空前绝后：纯色底 */
.rank-band.rank-lvl-5 {
    background-color: #7d0e18;
}
/* 中规中矩：纯色底 */
.rank-band.rank-lvl-3 {
    background-color: #878b92;
}
/* 有失水准：纯色底 */
.rank-band.rank-lvl-2 {
    background-color: #2d2f34;
}

/* ============ 设计师 + 标语 ============ */
.info-card {
    background: transparent;
    padding: 0;
    margin-top: 18px;
}
/* EXIF 区：单独一行，左侧信息、右侧赞/下载按钮（与作者区同样的卡片边框） */
.exif-row {
    display: flex; align-items: center; gap: 24px;
    background: #fff; border: 1px solid var(--line);
    border-radius: 12px; padding: 12px 16px; margin-bottom: 18px;
}
.exif-list { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; }
.exif-item { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.exif-item dt { flex-shrink: 0; font-weight: 700; font-size: 14px; }
.exif-item dd { color: var(--ink-soft); font-size: 14px; }
.exif-empty { color: var(--ink-faint); font-size: 14px; }
.exif-row .fav-col { flex: none; border: 0; padding: 0; }
/* 介绍区：左二分之一简介、右二分之一标签（与作者区同样的卡片边框） */
.intro-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px 40px;
    background: #fff; border: 1px solid var(--line);
    border-radius: 12px; padding: 16px;
}
.intro-col dt { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.intro-col dd { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--ink-soft); word-break: break-word; }
@media (max-width: 760px) {
    .intro-row { grid-template-columns: 1fr; }
    .exif-row { flex-wrap: wrap; }
}
.info-col { flex: 1; }
.info-row {
    display: flex; align-items: baseline; gap: 18px;
    padding: 10px 0; border-bottom: 1px solid var(--line);
}
.info-row dt { flex-shrink: 0; width: 84px; font-weight: 700; font-size: 15px; }
.info-row dd { font-size: 15px; color: var(--ink-soft); }
.info-row dd .person-link {
    border-bottom: 1px dashed #b9bcc4;
    transition: color .15s, border-color .15s;
}
.info-row dd .person-link:hover { color: var(--ink); border-color: var(--ink); }
/* 公价展示：信息行中间 1/3 栏，每条 = 地区 | 原币价格 | 折合人民币，每页 4 行翻页 */
.price-col {
    flex: 1;
    border-left: 1px solid var(--line); padding-left: 30px;
    display: flex; flex-direction: column;
}
.price-grid {
    display: grid; grid-template-columns: 1fr; align-content: start;
    flex: 1;
}
.price-row {
    display: flex; align-items: center; gap: 12px;
    height: 46px; box-sizing: border-box;
    border-bottom: 1px solid var(--line);
}
.price-row .price-region { font-weight: 700; font-size: 15px; flex-shrink: 0; white-space: nowrap; }
.price-row .price-val { font-size: 15px; color: var(--ink-soft); white-space: nowrap; flex: 1; }
.price-row .price-cny { font-size: 15px; font-weight: 700; color: var(--accent, #caa028); white-space: nowrap; }
.price-col .price-none { padding: 10px 0; font-size: 15px; color: var(--ink-soft); }
/* 停售开关开启时：公价区整块替换为居中加大粗体的「已停售」 */
.price-col .price-off-sale {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 800; color: var(--ink-soft);
}
.price-pager {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    padding-top: 10px;
    margin-top: auto; /* 始终贴 price-col 底部，不随公价行数变化 */
}
.price-page-btn {
    width: 26px; height: 26px; border-radius: 50%;
    border: 1px solid var(--line); background: none; cursor: pointer;
    font-size: 15px; line-height: 1; color: var(--ink-soft);
    display: flex; align-items: center; justify-content: center;
    transition: border-color .15s, color .15s;
}
.price-page-btn:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.price-page-btn:disabled { opacity: .35; cursor: default; }
.price-page-info { font-size: 13px; color: var(--ink-soft); }
.tagline-col {
    flex: 1; display: flex; align-items: center; justify-content: center;
    border-left: 1px solid var(--line); padding-left: 30px;
}
/* 收藏栏：信息行右 1/3，收藏/下载按钮居中 */
.fav-col {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 14px;
    border-left: 1px solid var(--line); padding-left: 30px;
}
/* 下载封面按钮（详情页，与爱心同风格） */
.dl-btn {
    width: 40px; height: 40px; border: 0; background: none; cursor: pointer; padding: 0;
    display: flex; align-items: center; justify-content: center;
}
.dl-btn svg { fill: none; stroke: var(--ink-faint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .15s; }
.dl-btn:hover svg { stroke: var(--ink); }
.dl-btn.dl-loading { pointer-events: none; opacity: .5; }
/* 简介：置于物品信息栏右侧栏（替代原获奖信息位置） */
.info-synopsis {
    margin: 0; font-size: 15px; line-height: 1.75; color: var(--ink-soft); text-align: left;
}

/* ============ 大众爆米花 ============ */
.popcorn-card {
    background: var(--white); margin-top: 16px;
    display: flex; gap: 30px; padding: 26px 34px;
}
.pop-summary {
    flex-shrink: 0; width: 210px;
    border-right: 1px solid var(--line); padding-right: 30px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 6px;
}
.pop-ticket { height: 44px; width: auto; }
.pop-none { font-size: 22px; font-weight: 700; color: var(--ink-faint); line-height: 1.4; padding: 8px 0; }
.pop-label { font-size: 30px; font-weight: 800; color: var(--gold); line-height: 1.3; }
.pop-sub { font-size: 13px; color: var(--ink-faint); }
.pop-action { flex: 1; }
.pop-hint { color: var(--ink-soft); font-size: 14.5px; }
.pop-hint a { color: #b8881e; border-bottom: 1px solid #e4c87a; }

/* 推荐/不推荐投票 */
.vote-picker { display: flex; gap: 10px; margin-bottom: 12px; }
.vote-opt { position: relative; cursor: pointer; }
.vote-opt input { position: absolute; opacity: 0; pointer-events: none; }
.vote-opt span {
    display: inline-block; padding: 7px 22px; font-size: 14.5px;
    border: 1px solid var(--line); color: var(--ink-soft);
    transition: border-color .15s, color .15s, background .15s;
}
.vote-opt span:hover { border-color: var(--gold); color: var(--gold); }
.vote-opt input:checked + span {
    background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 700;
}
.rate-form textarea {
    width: 100%; border: 1px solid var(--line);
    padding: 10px 12px; font-size: 14px; font-family: inherit; resize: vertical;
    outline: none;
}
.rate-form textarea:focus { border-color: var(--gold); }
.btn-dark {
    margin-top: 10px; background: var(--ink); color: #fff; border: 0;
    padding: 9px 26px; font-size: 14.5px; cursor: pointer;
}
.btn-dark:hover { background: #000; }

/* 评测 */
.comments { background: var(--white); margin-top: 16px; padding: 24px 34px 30px; }
.comments h2 { font-size: 18px; margin-bottom: 16px; }
.comment-item {
    padding: 13px 0; border-bottom: 1px solid var(--line);
}
.comment-item:last-child { border-bottom: 0; }
.comment-head { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.comment-score { font-weight: 600; }
.comment-ticket { height: 15px; width: auto; vertical-align: -2px; }
.comment-score.rec-up { color: var(--gold); }
.comment-score.rec-down { color: var(--ink-faint); }
.comment-time { margin-left: auto; color: var(--ink-faint); font-size: 12.5px; }
.comment-item p { color: var(--ink-soft); font-size: 14px; margin-top: 4px; }

/* ============ 登录/注册 ============ */
.auth-box {
    max-width: 380px; margin: 60px auto; background: var(--white);
    padding: 36px 34px;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.auth-box h1 { font-size: 22px; text-align: center; margin-bottom: 22px; }
.auth-form { display: flex; flex-direction: column; gap: 7px; }
.auth-form label { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; }
.auth-form .remember-row {
    display: flex; align-items: center; gap: 7px;
    margin-top: 12px; cursor: pointer; user-select: none;
}
.auth-form .remember-row input { width: 15px; height: 15px; cursor: pointer; accent-color: var(--ink); }
.auth-form .remember-row span { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.auth-form .captcha-row { display: flex; align-items: center; gap: 10px; }
.auth-form .captcha-row .field { flex: 1; min-width: 0; }
.captcha-img {
    height: 42px; width: 122px; flex: none;
    border: 1px solid var(--line); border-radius: 4px;
    cursor: pointer; background: #f2f3f5; display: block;
}
.field {
    border: 1px solid var(--line); padding: 10px 12px;
    font-size: 14px; outline: none;
}
.field:focus { border-color: var(--ink); }
.auth-form .btn-dark { margin-top: 20px; padding: 11px; }
.auth-alt { text-align: center; margin-top: 16px; font-size: 14px; color: var(--ink-faint); }
.auth-alt a { color: #b8881e; }
.form-err { color: #b02030; font-size: 13px; margin-bottom: 12px; }
.code-row { display: flex; gap: 8px; }
.code-row .field { flex: 1; min-width: 0; }
.code-btn { white-space: nowrap; padding: 0 14px !important; margin-top: 0 !important; font-size: 13px; cursor: pointer; }
.code-btn:disabled { opacity: .55; cursor: not-allowed; }
.code-msg { font-size: 13px; color: var(--ink-faint); margin: 0; min-height: 1em; }

/* ============ 用户中心 ============ */
.uc-card {
    display: flex; align-items: center; gap: 18px;
    background: var(--card-bg, #fff); border: 1px solid var(--line);
    border-radius: 12px; padding: 22px 24px;
}
.uc-avatar {
    width: 64px; height: 64px; border-radius: 50%; flex: none;
    background: var(--ink); display: flex; align-items: center; justify-content: center;
    overflow: hidden; line-height: 0;
}
.uc-avatar svg { display: block; flex: none; }
.uc-avatar-editable { cursor: pointer; position: relative; }
.uc-avatar-editable:hover .uc-avatar-cam { opacity: 1; }
.uc-avatar-cam {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 24px; height: 24px; border-radius: 50%;
    background: #333; display: flex; align-items: center; justify-content: center;
    line-height: 0;
    opacity: .75; transition: opacity .15s;
}
.uc-avatar-cam svg { display: block; flex: none; }
.uc-avatar-img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.uc-info h1 { font-size: 22px; margin: 0 0 6px; color: var(--ink); }
.uc-info p { margin: 2px 0; font-size: 13.5px; color: var(--ink-faint); }
.uc-name-row { display: flex; align-items: center; gap: 8px; }
.uc-edit-icon {
    background: transparent; border: 0; color: var(--ink-faint);
    cursor: pointer; padding: 2px; border-radius: 4px;
    display: inline-flex; align-items: center;
}
.uc-edit-icon:hover { background: #f4f4f6; color: var(--ink); }
/* 就地编辑：输入框 + 圆形勾/叉按钮同一水平线 */
.uc-inline-edit {
    display: inline-flex; align-items: center; gap: 8px;
    flex-wrap: wrap;
}
.uc-inline-edit .uc-nick-input { width: 180px; height: 32px; }
.uc-inline-edit .uc-msg { font-size: 12.5px; }
.uc-icon-btn {
    width: 30px; height: 30px; flex: none;
    border-radius: 50%; border: 1px solid var(--line);
    background: #fff; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0; line-height: 1;
}
/* 保存：黑底白符号；取消：灰底黑符号 */
.uc-icon-btn.uc-ico-ok { background: var(--ink); border-color: var(--ink); color: #fff; }
.uc-icon-btn.uc-ico-ok:hover { background: #000; border-color: #000; color: #fff; }
.uc-icon-btn.uc-ico-cancel { background: #e8e8ec; border-color: #e8e8ec; color: var(--ink); }
.uc-icon-btn.uc-ico-cancel:hover { background: #dcdce1; border-color: #dcdce1; color: var(--ink); }
/* 主页头部：自我介绍位于昵称/ID/加入时间右侧，退出按钮靠最右 */
.uc-bio {
    flex: 1 1 auto; min-width: 0; align-self: stretch;
    display: flex; align-items: center; gap: 8px;
    font-size: 13.5px; line-height: 1.7; color: var(--ink-faint);
    padding: 0 16px; border-left: 1px solid var(--line);
    overflow-wrap: anywhere;
}
.uc-bio-empty { color: #bbb; font-style: italic; }
.uc-bio-form {
    flex: 1 1 auto; min-width: 0;
    display: flex; flex-direction: column; gap: 8px;
}
.uc-bio-form textarea { width: 100%; resize: vertical; font-family: inherit; box-sizing: border-box; }
.uc-logout { flex: none; margin-left: auto; }
.uc-logout-btn {
    background: var(--ink); border: 0; color: #fff;
    border-radius: 20px; padding: 8px 26px;
    font-size: 14px; font-weight: 600; line-height: 1.4;
    font-family: inherit;
    -webkit-appearance: none; appearance: none;
    cursor: pointer; white-space: nowrap;
}
.uc-logout-btn:hover { background: #000; }
@media (max-width: 900px) {
    .uc-card { flex-wrap: wrap; }
    .uc-bio { flex-basis: 100%; border-left: 0; padding: 10px 0 0; }
}
.uc-admin-link {
    margin-left: auto; padding: 8px 26px; text-decoration: none;
    font-size: 14px; font-weight: 600; line-height: 1.4;
    font-family: inherit; border-radius: 20px;
}
.uc-h { font-size: 18px; color: var(--ink); margin: 28px 0 14px; }
.uc-votes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.uc-vote {
    display: flex; gap: 14px; padding: 12px; text-decoration: none;
    background: var(--card-bg, #fff); border: 1px solid var(--line); border-radius: 10px;
    transition: box-shadow .15s;
}
.uc-vote:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.uc-cover { width: 60px; height: 84px; object-fit: cover; border-radius: 6px; flex: none; }
.uc-cover-none {
    display: flex; align-items: center; justify-content: center;
    background: #eee; color: #999; font-size: 12px;
}
.uc-vote-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.uc-vote-info strong { font-size: 15px; color: var(--ink); }
.uc-rec { font-size: 12.5px; font-weight: 600; }
.uc-rec.rec-up { color: var(--gold); }
.uc-rec.rec-down { color: #888; }
.uc-comment {
    margin: 0; font-size: 13.5px; color: var(--ink-soft);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.uc-time { font-size: 12px; color: var(--ink-faint); }
.uc-empty { color: var(--ink-faint); font-size: 14px; }
.uc-empty a { color: #b8881e; }
.uc-back {
    display: inline-block; margin: 10px 0 4px;
    font-size: 13.5px; color: var(--ink-faint); text-decoration: none;
}
.uc-back:hover { color: var(--ink); }
/* 安全设置：三块并排一行 */
.uc-sec-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px; align-items: start; margin-top: 14px;
}
.uc-sec-grid .uc-pw { max-width: none; margin-top: 0; height: 100%; }
@media (max-width: 900px) {
    .uc-sec-grid { grid-template-columns: 1fr; }
}
.uc-favs {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px; margin-bottom: 10px; grid-auto-flow: dense; align-items: start;
}
.uc-fav {
    position: relative; display: flex; flex-direction: column; gap: 5px;
    text-decoration: none;
}
.sub-queue { margin-left: 10px; font-size: 12.5px; font-weight: 400; color: var(--ink-faint); }
/* 我的关注：作者胶囊列表 */
.uc-follows { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.uc-follow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px 6px 6px; border: 1px solid var(--line);
    border-radius: 24px; background: #fff; text-decoration: none; color: var(--ink);
    transition: background .15s;
}
.uc-follow:hover { background: #f4f4f5; }
.uc-follow-avatar {
    flex: none; width: 30px; height: 30px; border-radius: 50%;
    background: #2b2b2b; display: flex; align-items: center; justify-content: center;
    overflow: hidden; line-height: 0;
}
.uc-follow-avatar svg { display: block; flex: none; }
.uc-follow-avatar img { width: 100%; height: 100%; object-fit: cover; }
.uc-follow-name { font-size: 13.5px; font-weight: 600; }
.sub-badge {
    position: absolute; left: 6px; top: 6px;
    background: rgba(0,0,0,.62); color: #fff;
    font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 10px;
}
/* 2:1 横图横跨两个网格位 */
.uc-fav.card-wide { grid-column: span 2; }
.uc-fav.card-wide img { object-fit: cover; }
.uc-fav img {
    width: 100%; height: auto; object-fit: cover;
    border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.1);
    transition: box-shadow .15s;
}
.uc-fav:hover img { box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.uc-fav-none {
    width: 100px; height: 140px; border-radius: 6px;
    background: #e7e7e9; display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.uc-actions { margin-left: auto; flex: none; display: flex; align-items: center; gap: 10px; }
.uc-actions .btn-dark { margin-top: 0; }
.uc-actions .uc-admin-link { margin-left: 0; }
.uc-edit-btn { padding: 9px 18px; cursor: pointer; }
.uc-tab-btn { padding: 9px 16px; cursor: pointer; }
/* 个人信息：头像 / 昵称 / 自我介绍三栏并排 */
.uc-info-grid {
    display: grid; grid-template-columns: 0.8fr 1fr 1fr;
    gap: 20px; align-items: start;
}
.uc-avatar-current {
    width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
    background: #f0f0f2; display: flex; align-items: center; justify-content: center;
    margin: 4px 0 10px;
}
.uc-avatar-current img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uc-avatar-empty { font-size: 13px; color: var(--ink-faint); }
.uc-avatar-pick {
    display: inline-flex; align-items: center; justify-content: center;
    align-self: flex-start; padding: 8px 18px; border-radius: 20px;
    border: 1px solid var(--line); font-size: 13.5px; cursor: pointer;
}
.uc-avatar-pick:hover { background: #f4f4f6; }
.uc-avatar-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.uc-avatar-pick { position: relative; }
.uc-avatar-name { min-height: 16px; margin: 4px 0 0; font-size: 12.5px; color: var(--ink-faint); overflow-wrap: anywhere; }
.uc-avatar-name.is-err { color: #d0342c; }
/* 头像裁剪弹窗 */
.avatar-crop-mask {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0, 0, 0, .7);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.avatar-crop-mask[hidden] { display: none; }
.avatar-crop-box {
    background: #fff; border-radius: 14px; padding: 22px 24px;
    width: 100%; max-width: 380px; box-sizing: border-box;
}
.avatar-crop-box h3 { font-size: 16px; margin: 0 0 4px; }
.avatar-crop-stage {
    position: relative; width: 300px; height: 300px; max-width: 100%;
    margin: 12px auto 0; background: #eee;
    overflow: hidden; cursor: grab; touch-action: none;
}
.avatar-crop-stage:active { cursor: grabbing; }
.avatar-crop-stage img {
    position: absolute; top: 0; left: 0;
    transform-origin: 0 0; user-select: none; pointer-events: none;
    max-width: none;
}
.avatar-crop-ring {
    position: absolute; inset: 0; border-radius: 50%;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, .5); pointer-events: none;
}
.avatar-crop-ctrl {
    display: flex; align-items: center; gap: 10px; margin: 14px 0 6px;
}
.avatar-crop-ctrl input[type="range"] { flex: 1; }
.avatar-crop-z {
    width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid var(--line); background: #fff; cursor: pointer;
    font-size: 18px; line-height: 1;
}
.avatar-crop-z:hover { background: #f4f4f6; }
.avatar-crop-actions {
    display: flex; align-items: center; gap: 10px; margin-top: 10px;
}
.avatar-crop-actions .avatar-crop-btn {
    flex: 1 1 0; min-width: 0; width: 0; height: 40px; margin: 0;
    line-height: 1; padding: 0; border-radius: 20px; font-size: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    box-sizing: border-box;
}
.avatar-crop-actions .btn-dark { padding: 0; }
.avatar-crop-actions .uc-avatar-pick { align-self: auto; padding: 0; }
.uc-info-grid .uc-pw { max-width: none; width: 100%; height: 100%; }
.uc-info-grid textarea.field { min-height: 150px; resize: vertical; font-family: inherit; }
@media (max-width: 900px) {
    .uc-info-grid { grid-template-columns: 1fr; }
}
.uc-pw {
    background: var(--card-bg, #fff); border: 1px solid var(--line);
    border-radius: 12px; padding: 20px 24px 24px; margin-top: 14px;
    max-width: 460px;
    display: flex; flex-direction: column; gap: 7px;
}
.uc-pw[hidden] { display: none; }
.uc-edit-section[hidden] { display: none; }
.uc-edit-section { display: flex; flex-direction: column; gap: 16px; }
#sec-section { flex-direction: row; flex-wrap: wrap; }
#sec-section .uc-pw { flex: 1; min-width: 320px; max-width: none; }
.uc-pw-h { font-size: 16px; color: var(--ink); margin: 0 0 2px; }
.uc-pw-tip { font-size: 12.5px; color: var(--ink-faint); margin: 0; }
.uc-pw label { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; }
.uc-pw .btn-dark[type="submit"] { margin-top: 16px; }
.uc-pw .form-err { margin: 4px 0 0; }
.uc-pw .form-err p { margin: 2px 0; }
.btn-danger {
    background: #c0392b; color: #fff; border: 0; border-radius: 6px;
    padding: 10px 20px; font-size: 14px; cursor: pointer; margin-top: 16px;
    transition: background .15s;
}
.btn-danger:hover { background: #a93226; }
.uc-delete { border-color: #e8c5c0; }

/* ============ 页脚 ============ */
.site-footer {
    margin-top: 50px; background: var(--page-bg);
    text-align: center; color: var(--ink-faint); font-size: 12.5px;
    padding: 26px 20px 30px; border-top: 1px solid #e8e8ea;
}
.footer-links { margin: 6px 0; display: flex; justify-content: center; gap: 10px; }
.footer-links a:hover { color: var(--ink); }

/* ============ 响应式 ============ */
@media (max-width: 1200px) {
    .promo--no-feature .activity { flex-basis: min(34vw, 300px); }
}

/* ============ 移动端底部功能栏（小屏显示） ============ */
.tabbar { display: none; }
.tab-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; height: 56px; font-size: 11px; color: var(--ink-faint);
    text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.tab-item svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tab-item.active { color: var(--ink); font-weight: 600; }

@media (max-width: 760px) {
    .topbar-inner { position: relative; justify-content: center; gap: 0; }
    .brand-link { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; }
    .topnav { display: none; }
    .topuser { position: absolute; right: 10px; top: 0; height: 100%; margin: 0; gap: 8px; }
    .topuser .join-btn, .topuser .user-menu { display: none; }
    /* 小屏搜索栏：顶栏之下、活动区之上；上留白大于下留白，贴近活动区 */
    .search.search-mobile {
        display: flex; flex: none; width: auto; max-width: none;
        margin: 30px 16px 0; padding: 6px 6px 6px 18px;
    }
    .page { margin-top: 4px; }
    .promo { padding-top: 20px; }
    /* 详情页不显示小屏搜索栏 */
    .page-detail .search.search-mobile { display: none; }
    /* 详情页顶栏与作品区之间加大间隔 */
    .page-detail .page { margin-top: 32px; }
    body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
    .tabbar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
        background: #fff; border-top: 0;
        box-shadow: 0 -2px 14px rgba(0,0,0,.10);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

@media (max-width: 760px) {
    .search { display: none; }
    .brand-link { margin-right: 0; }
    .topnav { margin-left: 0; }
    .promo { flex-direction: column; align-items: stretch; gap: 20px; }
    .promo-left, .promo-right { width: 100%; }
    .promo-left .act-cover { position: static; aspect-ratio: 2 / 1; }
    .promo--no-feature .promo-right { width: 100%; margin-left: 0; }
    .promo--no-feature .activity { flex: 1; flex-basis: auto; }
    .topnav { gap: 22px; }
    .showcase { flex-direction: column; gap: 12px; }
    .showcase-figure { aspect-ratio: 1 / 2; width: 100%; max-width: 280px; margin: 0 auto; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .info-card, .popcorn-card { flex-direction: column; }
    .price-col, .tagline-col, .fav-col, .pop-summary { border: 0; padding: 0; width: 100%; }
    .rank-band span { font-size: 34px; letter-spacing: 4px; }
}

/* ============ 上传页（左 3/4 拖拽上传 + 右 1/4 信息区） ============ */
.upl-head { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 16px; }
.upl-title { font-size: 24px; margin: 0; }
.upl-queue { font-size: 13px; color: var(--ink-faint); }
.upl-alert {
    background: #fff4e5; border: 1px solid #f0d9b5; color: #8a6d3b;
    padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px;
}
.upl-grid { display: grid; grid-template-columns: 3fr 1fr; gap: 20px; align-items: stretch; min-height: 640px; }
.upl-left { position: relative; display: flex; flex-direction: column; min-width: 0; }
.dropzone {
    position: relative; flex: 0 0 640px; height: 640px;
    border: 2px dashed #d9d9dd; border-radius: 14px; background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--gold); background: #fffdf7; }
.dropzone.is-disabled { cursor: not-allowed; opacity: .55; }
.dz-inner { text-align: center; color: var(--ink-faint); padding: 24px; }
.dz-inner svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dz-title { font-size: 16px; color: var(--ink); margin: 14px 0 6px; }
.dz-sub { font-size: 13px; margin: 0; }
.dz-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: #f6f6f7; }
.dz-remove {
    position: absolute; top: 12px; right: 12px; z-index: 3;
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%; padding: 0;
    border: 1px solid var(--line); background: rgba(255, 255, 255, .92); color: var(--ink);
    font-size: 20px; line-height: 1; cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.dz-remove:hover { background: #fff; }
.dz-remove:disabled { opacity: .5; cursor: not-allowed; }
.dz-preview[hidden], .dz-remove[hidden] { display: none; }
/* 进度条与状态叠放在上传框内部底部，使上传框底边与右侧提交按钮底边对齐 */
.upl-progress {
    position: absolute; left: 24px; right: 24px; bottom: 38px; z-index: 2;
    height: 8px; background: #ececee; border-radius: 4px; overflow: visible;
}
.upl-bar { height: 100%; width: 0; background: var(--gold); border-radius: 4px; transition: width .12s; }
.upl-pct { position: absolute; right: 0; top: -20px; font-size: 12px; color: var(--ink-faint); }
.upl-status {
    position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 2;
    max-width: calc(100% - 48px); font-size: 13px; color: var(--ink-faint);
    background: rgba(255, 255, 255, .88); border-radius: 9px; padding: 2px 10px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.upl-status:empty { display: none; }
.upl-status.is-err { color: #d0342c; }
.upl-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.upl-panel {
    background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
    min-width: 0; display: flex; flex-direction: column;
}
.upl-panel:nth-child(1), .upl-panel:nth-child(2) { flex: 1 1 0; min-height: 120px; }
.upl-panel h3 { font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tag-chip {
    display: inline-flex; align-items: center; gap: 4px;
    background: #f3f3f5; border-radius: 14px; padding: 4px 10px; font-size: 13px;
}
.tag-x { border: 0; background: none; color: var(--ink-faint); cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }
.tag-x:hover { color: var(--ink); }
.tag-input { width: 100%; min-width: 0; }
.upl-hint { font-size: 12px; color: var(--ink-faint); margin: 6px 0 0; }
.upl-textarea { display: block; width: 100%; max-width: 100%; flex: 1 1 auto; resize: vertical; min-height: 84px; font-family: inherit; font-size: 14px; }
.exif-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; min-width: 0; }
.exif-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ink-faint); min-width: 0; }
.exif-form input { width: 100%; min-width: 0; max-width: 100%; padding: 7px 9px; }
.upl-submit {
    width: 100%; margin-top: auto;
    background: var(--ink); color: #fff; border: 0;
    border-radius: 20px; padding: 8px 26px;
    font-size: 14px; font-weight: 600; cursor: pointer;
}
.upl-submit:hover:not(:disabled) { background: #000; }
.upl-submit:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 900px) {
    .upl-grid { grid-template-columns: 1fr; min-height: 0; }
    .dropzone { flex: 0 0 320px; height: 320px; }
    .upl-panel:nth-child(1), .upl-panel:nth-child(2) { min-height: 0; }
}
