:root {
    --bg: #ECE5DD;
    --red: #AE0002;
    --ink: #161311;
    --paper: #fffaf4;
    --muted: #746b63;
    --line: rgba(22, 19, 17, .13);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .8), transparent 32%),
        radial-gradient(circle at 84% 8%, rgba(174, 0, 2, .08), transparent 30%),
        var(--bg);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.preview-shell {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 28px 0 44px;
}
.stands-back {
    margin-bottom: 18px;
}
.topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}
.menu-button {
    display: inline-grid;
    grid-template-rows: repeat(3, 2px);
    gap: 4px;
    align-content: center;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: rgba(255, 250, 244, .78);
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(22, 19, 17, .06);
}
.menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: var(--ink);
}
.kicker {
    margin: 0 0 10px;
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
}
h1 {
    margin: 0;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: clamp(25px, 4vw, 36px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0;
}
.layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 18px;
    margin-top: 24px;
}
.drawer {
    position: sticky;
    top: 18px;
    align-self: start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 250, 244, .78);
    box-shadow: 0 18px 38px rgba(22, 19, 17, .08);
    backdrop-filter: blur(16px);
}
.drawer-head { padding: 6px 4px 14px; }
.drawer-head p {
    margin: 0 0 6px;
    color: var(--red);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
}
.drawer-head h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -.04em;
}
.stand-list { display: grid; gap: 8px; }
.stand-list-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    min-height: 60px;
    padding: 8px;
    border: 1px solid rgba(174, 0, 2, .22);
    border-radius: 14px;
    background: rgba(174, 0, 2, .06);
}
.list-avatar,
.avatar {
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--red);
}
.list-avatar { width: 46px; height: 46px; }
.list-avatar img,
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.stand-list-item strong {
    display: block;
    overflow: hidden;
    color: var(--red);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stand-list-item small {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(236, 229, 221, .96), rgba(255, 250, 244, .92));
    box-shadow: 0 22px 46px rgba(22, 19, 17, .1);
}
.cover {
    height: 210px;
    overflow: hidden;
    background: #d8cabc;
}
.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-main {
    display: grid;
    justify-items: center;
    padding: 0 24px 24px;
    text-align: center;
}
.avatar {
    width: 118px;
    height: 118px;
    margin-top: -63px;
    border: 4px solid var(--paper);
    box-shadow: 0 12px 28px rgba(22, 19, 17, .18);
}
.badge {
    margin: 10px 0 8px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--paper);
    background: var(--red);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}
.profile-main h2 {
    margin: 14px 0 0;
    font-size: clamp(25px, 4vw, 36px);
    line-height: 1.15;
}
.bio {
    max-width: 660px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}
.link-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: min(300px, 100%);
    margin-top: 18px;
}
.platform-link {
    display: grid;
    min-height: 50px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 250, 244, .8);
    box-shadow: 0 8px 18px rgba(22, 19, 17, .05);
}
.platform-link img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 3px 6px rgba(22, 19, 17, .12));
}
.platform-link.is-weibo { color: #d71920; }
.platform-link.is-douyin { color: #161311; }
.platform-link.is-xiaohongshu { color: #ff2442; }
.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 250, 244, .56);
}
.tabs a {
    display: grid;
    min-height: 54px;
    place-items: center;
    border-bottom: 3px solid transparent;
    color: rgba(22, 19, 17, .62);
    font-size: 13px;
    font-weight: 900;
}
.tabs svg { width: 26px; height: 26px; fill: currentColor; }
.tabs a.is-active {
    border-color: var(--red);
    color: var(--red);
}
.panel { display: none; padding: 24px; }
.panel.is-active { display: block; }
.panel[data-panel="photos"] { padding: 0; }
.section-head { display: none; }
.section-head p {
    margin: 0 0 5px;
    color: var(--red);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
}
.section-head h3 { margin: 0; font-size: 24px; }
.section-head span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    background: var(--ink);
}
.photo-tile {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    background: #d4c8bd;
}
.photo-open {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: transparent;
}
.photo-open img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-list { display: grid; gap: 12px; }
.video-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 250, 244, .78);
}
.video-cover {
    display: grid;
    width: 100%;
    padding: 0;
    place-items: center;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    color: var(--paper);
    background: linear-gradient(135deg, #161311, #3c2e28 55%, #AE0002);
    aspect-ratio: 16 / 9;
    cursor: pointer;
    font-size: 26px;
    font-weight: 900;
}
.video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-copy h4 {
    margin: 2px 0 6px;
    font-size: 16px;
    line-height: 1.45;
}
.video-copy p {
    overflow: hidden;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.video-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.video-actions a,
.video-actions button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid rgba(174, 0, 2, .25);
    border-radius: 999px;
    color: var(--red);
    background: rgba(255, 250, 244, .9);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}
.video-actions button {
    color: var(--paper);
    background: var(--red);
}
.empty-panel {
    padding: 42px 22px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}
.empty-page {
    margin-top: 24px;
    border: 1px dashed var(--line);
    border-radius: 22px;
    background: rgba(255, 250, 244, .54);
}
.photo-dialog,
.player-dialog {
    position: relative;
    width: min(860px, calc(100vw - 24px));
    max-width: none;
    max-height: calc(100vh - 24px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 22px;
    color: var(--ink);
    background: var(--paper);
    box-shadow: 0 30px 80px rgba(15, 6, 4, .46);
}
.photo-dialog:not([open]),
.player-dialog:not([open]) { display: none; }
.photo-dialog::backdrop,
.player-dialog::backdrop { background: rgba(15, 12, 10, .72); backdrop-filter: blur(7px); }
.dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}
.dialog-head h2 { margin: 0; font-size: 17px; line-height: 1.4; }
.dialog-head-spacer {
    flex: 1 1 auto;
    min-width: 0;
}
.dialog-head button {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}
.photo-dialog img {
    display: block;
    width: 100%;
    max-height: calc(100vh - 101px);
    object-fit: contain;
    background: var(--ink);
}
.dialog-link {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-size: 13px;
    font-weight: 900;
}
.player-frame {
    width: 100%;
    background: #000;
    aspect-ratio: 16 / 9;
}
.player-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
@media (max-width: 800px) {
    .preview-shell { width: min(100% - 16px, 1180px); padding-top: 14px; }
    .topbar { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding-bottom: 16px; }
    .topbar h1 { font-size: 28px; letter-spacing: 0; }
    .layout { grid-template-columns: 1fr; }
    .drawer {
        position: fixed;
        top: 78px;
        bottom: 18px;
        left: 14px;
        z-index: 20;
        width: min(315px, calc(100vw - 28px));
        overflow: auto;
        transform: translateX(calc(-100% - 24px));
        transition: transform .22s ease;
    }
    .drawer.is-open { transform: translateX(0); }
    .link-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cover { height: 160px; }
    .panel { padding: 18px; }
    .panel[data-panel="photos"] { padding: 0; }
    .video-card { grid-template-columns: 1fr; }
}
@media (max-width: 470px) {
    h1 { font-size: 26px; }
    .profile-main { padding-right: 14px; padding-left: 14px; }
    .avatar { width: 96px; height: 96px; margin-top: -52px; }
    .photo-grid { gap: 0; }
    .section-head h3 { font-size: 22px; }
}
