/* ==========================================================================
   720云全景 · 前台样式
   ========================================================================== */

:root {
    --bg: #070b11;
    --bg-soft: #0c1219;
    --panel: #111a24;
    --panel-2: #16202c;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .14);
    --text: #e8eef6;
    --text-sub: #8b9aad;
    --text-dim: #5f6d80;
    --accent: #22d3c5;
    --accent-dark: #17a99e;
    --accent-soft: rgba(34, 211, 197, .12);
    --blue: #5b8def;
    --danger: #ff6b5e;
    --radius: 14px;
    --shadow: 0 18px 40px rgba(0, 0, 0, .42);
    --container: 1240px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    background-image:
        radial-gradient(900px 500px at 12% -8%, rgba(34, 211, 197, .10), transparent 62%),
        radial-gradient(800px 460px at 92% 4%, rgba(91, 141, 239, .10), transparent 60%);
    background-repeat: no-repeat;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* --------------------------------------------------------------------------
   顶栏
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: blur(14px);
    background: rgba(7, 11, 17, .78);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16.5px;
    font-weight: 650;
    letter-spacing: .4px;
    white-space: nowrap;
}
.brand .mark {
    width: 32px; height: 32px;
    border-radius: 9px;
    background: linear-gradient(140deg, var(--accent), #22b8d3);
    color: #04231f;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800;
    box-shadow: 0 6px 18px rgba(34, 211, 197, .28);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
    padding: 8px 15px;
    border-radius: 9px;
    color: var(--text-sub);
    font-size: 14px;
    transition: .18s;
    white-space: nowrap;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a.active { color: var(--accent); background: var(--accent-soft); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 18px;
    border-radius: 9px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, .05);
    color: var(--text);
    font-size: 13.5px;
    cursor: pointer;
    transition: .18s;
    white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); }
.btn-primary {
    background: linear-gradient(135deg, #25dccd, var(--accent));
    border-color: transparent;
    color: #04231f;
    font-weight: 600;
}
.btn-primary:hover { filter: brightness(1.07); background: linear-gradient(135deg, #25dccd, var(--accent)); }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 46px; padding: 0 26px; font-size: 15px; border-radius: 11px; }
.btn-ghost { background: transparent; }
.btn-danger { color: #ffb0a8; border-color: rgba(255, 107, 94, .38); }
.btn-danger:hover { background: rgba(255, 107, 94, .13); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* 用户头像下拉 */
.user-menu { position: relative; }
.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
    transition: .18s;
}
.user-chip:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .08); }
.user-chip .avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--accent), #2b9fd8);
    color: #04231f;
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.user-chip .avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-chip .name { font-size: 13px; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 168px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 11px;
    box-shadow: var(--shadow);
    padding: 6px;
    display: none;
    z-index: 80;
}
.dropdown.show { display: block; }
.dropdown a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--text-sub);
    transition: .15s;
}
.dropdown a:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.dropdown a.split { border-top: 1px solid var(--line); margin-top: 5px; padding-top: 12px; border-radius: 0 0 8px 8px; }
.dropdown a.danger { color: #ff9d94; }

/* --------------------------------------------------------------------------
   首页 Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding: 78px 0 62px;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto -10%;
    height: 620px;
    background:
        radial-gradient(closest-side, rgba(34, 211, 197, .16), transparent 72%),
        radial-gradient(closest-side at 74% 22%, rgba(91, 141, 239, .16), transparent 70%);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; text-align: center; }

.hero h1 {
    margin: 0 0 16px;
    font-size: 46px;
    line-height: 1.22;
    font-weight: 700;
    letter-spacing: -.5px;
}
.hero h1 .grad {
    background: linear-gradient(100deg, #25dccd 10%, #5b8def 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p.lead {
    max-width: 640px;
    margin: 0 auto 30px;
    color: var(--text-sub);
    font-size: 15.5px;
    line-height: 1.85;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
    display: flex;
    gap: 46px;
    justify-content: center;
    margin-top: 52px;
    flex-wrap: wrap;
}
.hero-stats .item { text-align: center; }
.hero-stats .num {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.5px;
    background: linear-gradient(120deg, #fff, #9fd8d2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-stats .lbl { font-size: 12.5px; color: var(--text-dim); letter-spacing: 1.6px; margin-top: 2px; }

/* --------------------------------------------------------------------------
   区块标题
   -------------------------------------------------------------------------- */
.section { padding: 46px 0; }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}
.section-head h2 {
    margin: 0;
    font-size: 23px;
    font-weight: 650;
    letter-spacing: -.2px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-head h2::before {
    content: "";
    width: 4px; height: 19px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--accent), var(--blue));
}
.section-head .desc { color: var(--text-dim); font-size: 13px; margin-top: 5px; }

/* --------------------------------------------------------------------------
   作品卡片
   -------------------------------------------------------------------------- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 20px;
}
.work-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    transition: transform .28s cubic-bezier(.2, .8, .3, 1), box-shadow .28s, border-color .28s;
    display: block;
}
.work-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 197, .34);
    box-shadow: 0 22px 46px rgba(0, 0, 0, .5), 0 0 0 1px rgba(34, 211, 197, .12);
}
.work-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0e1620;
}
.work-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2, .8, .3, 1);
}
.work-card:hover .work-thumb img { transform: scale(1.06); }
.work-thumb::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 62%;
    background: linear-gradient(to top, rgba(7, 11, 17, .92), transparent);
}
.work-badge {
    position: absolute;
    left: 11px; top: 11px;
    display: flex; gap: 6px;
    z-index: 2;
}
.tag {
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 11.5px;
    line-height: 18px;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #dbe6f2;
}
.tag-accent { background: rgba(34, 211, 197, .9); color: #04231f; border-color: transparent; font-weight: 600; }

.work-play {
    position: absolute;
    right: 12px; bottom: 12px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(34, 211, 197, .94);
    color: #04231f;
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
    opacity: 0;
    transform: scale(.8);
    transition: .28s;
    font-size: 15px;
}
.work-card:hover .work-play { opacity: 1; transform: scale(1); }

.work-info { padding: 15px 16px 16px; }
.work-info h3 {
    margin: 0 0 7px;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.work-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12.5px;
    color: var(--text-dim);
}
.work-meta .author { display: flex; align-items: center; gap: 6px; min-width: 0; }
.work-meta .author i { font-size: 13px; }
.work-meta .stat { display: flex; gap: 12px; white-space: nowrap; }

/* 空状态 */
.empty {
    text-align: center;
    padding: 66px 20px;
    color: var(--text-dim);
    font-size: 14px;
}
.empty .ico {
    font-size: 44px;
    margin-bottom: 12px;
    opacity: .35;
}

/* --------------------------------------------------------------------------
   筛选栏
   -------------------------------------------------------------------------- */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 14px 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.filter-bar .cates { display: flex; gap: 7px; flex-wrap: wrap; flex: 1; }
.filter-bar .cates a {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-sub);
    border: 1px solid var(--line);
    transition: .18s;
    white-space: nowrap;
}
.filter-bar .cates a:hover { color: var(--text); border-color: var(--line-strong); }
.filter-bar .cates a.active {
    background: var(--accent-soft);
    border-color: rgba(34, 211, 197, .45);
    color: var(--accent);
}
.search-box {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
    border-radius: 9px;
    overflow: hidden;
    height: 38px;
}
.search-box input {
    width: 190px;
    height: 100%;
    padding: 0 13px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 13.5px;
    outline: none;
}
.search-box input::placeholder { color: var(--text-dim); }
.search-box button {
    height: 100%;
    padding: 0 15px;
    border: none;
    background: transparent;
    color: var(--text-sub);
    cursor: pointer;
    font-size: 15px;
    transition: .15s;
}
.search-box button:hover { color: var(--accent); }

/* 分页 */
.pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 38px;
    flex-wrap: wrap;
}
.pager a, .pager span {
    min-width: 38px;
    height: 38px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text-sub);
    font-size: 13.5px;
    transition: .18s;
}
.pager a:hover { border-color: var(--line-strong); color: var(--text); }
.pager .current { background: var(--accent); border-color: transparent; color: #04231f; font-weight: 600; }
.pager .disabled { opacity: .35; cursor: not-allowed; }

/* --------------------------------------------------------------------------
   表单 / 卡片面板
   -------------------------------------------------------------------------- */
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}
.panel + .panel { margin-top: 18px; }
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.panel-head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 620;
    display: flex;
    align-items: center;
    gap: 9px;
}
.panel-head h2::before {
    content: "";
    width: 3px; height: 16px;
    border-radius: 2px;
    background: var(--accent);
}
.panel-head .sub { color: var(--text-dim); font-size: 12.5px; }

.field { margin-bottom: 18px; }
.field > label {
    display: block;
    font-size: 13.5px;
    color: var(--text-sub);
    margin-bottom: 8px;
}
.field > label .req { color: var(--danger); margin-left: 3px; }
.input, .textarea, .select {
    width: 100%;
    padding: 0 13px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: .18s;
    font-family: inherit;
}
.textarea { height: auto; padding: 11px 13px; resize: vertical; line-height: 1.7; }
.input:focus, .textarea:focus, .select:focus {
    border-color: rgba(34, 211, 197, .55);
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 0 0 3px rgba(34, 211, 197, .1);
}
.input::placeholder, .textarea::placeholder { color: var(--text-dim); }
.select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b9aad' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 34px;
    cursor: pointer;
}
.select option { background: var(--panel-2); color: var(--text); }
.field-tip { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; line-height: 1.7; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.checkbox-line { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-sub); cursor: pointer; }
.checkbox-line input { width: 16px; height: 16px; accent-color: var(--accent); }

/* 配额进度 */
.quota-card {
    background: linear-gradient(135deg, rgba(34, 211, 197, .09), rgba(91, 141, 239, .07));
    border: 1px solid rgba(34, 211, 197, .22);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 18px;
}
.quota-card .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13.5px;
    margin-bottom: 8px;
}
.quota-card .row .k { color: var(--text-sub); }
.quota-card .row .v { font-weight: 600; }
.quota-card .row .v em { font-style: normal; color: var(--text-dim); font-weight: 400; }
.progress {
    height: 7px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .09);
    overflow: hidden;
    margin: 5px 0 12px;
}
.progress i {
    display: block; height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, #22d3c5, #5b8def);
    transition: width .45s;
}
.progress.warn i { background: linear-gradient(90deg, #ffc857, #f59e0b); }
.progress.danger i { background: linear-gradient(90deg, #ff8f7f, #ff5b4a); }

/* --------------------------------------------------------------------------
   提示条 / 徽标
   -------------------------------------------------------------------------- */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.75;
    border: 1px solid;
    margin-bottom: 16px;
}
.alert-info { background: rgba(91, 141, 239, .1); border-color: rgba(91, 141, 239, .3); color: #b8cdfa; }
.alert-warn { background: rgba(255, 200, 87, .09); border-color: rgba(255, 200, 87, .3); color: #f5d98f; }
.alert-danger { background: rgba(255, 107, 94, .09); border-color: rgba(255, 107, 94, .3); color: #ffb3aa; }
.alert-success { background: rgba(34, 211, 197, .09); border-color: rgba(34, 211, 197, .3); color: #9fe9e0; }

.badge {
    display: inline-block;
    padding: 1px 9px;
    border-radius: 20px;
    font-size: 12px;
    line-height: 19px;
    white-space: nowrap;
}
.badge-green  { background: rgba(34, 211, 197, .16); color: #5ce4d8; }
.badge-blue   { background: rgba(91, 141, 239, .16); color: #9dbcfa; }
.badge-orange { background: rgba(255, 200, 87, .16); color: #f3cf7e; }
.badge-red    { background: rgba(255, 107, 94, .16); color: #ffaaa1; }
.badge-gray   { background: rgba(255, 255, 255, .08); color: #93a1b3; }

/* --------------------------------------------------------------------------
   登录 / 注册
   -------------------------------------------------------------------------- */
.auth-wrap {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 22px;
}
.auth-box {
    width: 100%;
    max-width: 410px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 36px 34px 28px;
    box-shadow: var(--shadow);
}
.auth-box h1 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 650;
}
.auth-box .sub { color: var(--text-dim); font-size: 13px; margin-bottom: 26px; }
.auth-tabs {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, .04);
    border-radius: 11px;
    padding: 4px;
    margin-bottom: 24px;
}
.auth-tabs a {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--text-sub);
    transition: .18s;
}
.auth-tabs a.active { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.auth-foot { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-dim); }
.auth-foot a { color: var(--accent); }

/* --------------------------------------------------------------------------
   作品详情 / 播放器
   -------------------------------------------------------------------------- */
.detail-hero {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #05080c;
}
.detail-hero .viewer { width: 100%; height: 560px; }
.detail-hero .overlay-tip {
    position: absolute;
    left: 16px; top: 16px;
    z-index: 20;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    pointer-events: none;
}

.detail-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 22px;
    margin-top: 24px;
    align-items: start;
}
@media (max-width: 980px) { .detail-body { grid-template-columns: 1fr; } }

.detail-title { margin: 0 0 10px; font-size: 25px; font-weight: 660; letter-spacing: -.2px; }
.detail-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 18px;
}
.detail-meta .item { display: flex; align-items: center; gap: 6px; }
.detail-desc { color: #b3c0d0; font-size: 14px; line-height: 1.95; }

.side-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 16px;
}
.side-card h3 {
    margin: 0 0 14px;
    font-size: 14.5px;
    font-weight: 600;
}
.side-card .author-line { display: flex; align-items: center; gap: 11px; }
.side-card .author-line .avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--accent), #2b9fd8);
    color: #04231f;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700;
    overflow: hidden;
}
.side-card .author-line .avatar img { width: 100%; height: 100%; object-fit: cover; }
.side-card .author-line b { display: block; font-size: 14px; }
.side-card .author-line span { font-size: 12.5px; color: var(--text-dim); }

.scene-nav { display: flex; flex-direction: column; gap: 8px; }
.scene-nav a {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 9px;
    border: 1px solid transparent;
    transition: .18s;
}
.scene-nav a:hover { background: rgba(255, 255, 255, .05); }
.scene-nav a.active { border-color: rgba(34, 211, 197, .45); background: var(--accent-soft); }
.scene-nav img {
    width: 60px; height: 34px;
    object-fit: cover;
    border-radius: 6px;
    background: #0e1620;
    flex: 0 0 60px;
}
.scene-nav .t { font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.play-page { position: fixed; inset: 0; background: #05080c; }
.play-page #viewer { width: 100%; height: 100%; }
.play-topbar {
    position: absolute;
    left: 0; right: 0; top: 0;
    z-index: 30;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: linear-gradient(to bottom, rgba(5, 8, 12, .8), transparent);
}
.play-topbar .title { font-size: 15px; font-weight: 600; }

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.site-footer {
    margin-top: 60px;
    border-top: 1px solid var(--line);
    padding: 34px 0 40px;
    color: var(--text-dim);
    font-size: 13px;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--accent); }

/* 加载 / 空 */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,.05) 25%, rgba(255,255,255,.09) 37%, rgba(255,255,255,.05) 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
    border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* --------------------------------------------------------------------------
   移动端
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
    .hero { padding: 52px 0 42px; }
    .hero h1 { font-size: 30px; }
    .hero p.lead { font-size: 14.5px; }
    .hero-stats { gap: 28px; margin-top: 36px; }
    .hero-stats .num { font-size: 24px; }
    .haeder-inner { height: 58px; }
    .nav { display: none; }
    .work-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .work-info { padding: 11px 12px 13px; }
    .work-info h3 { font-size: 14px; }
    .detail-hero .viewer { height: 320px; }
    .detail-title { font-size: 20px; }
    .filter-bar { padding: 11px 12px; }
    .search-box input { width: 130px; }
    .container { padding: 0 15px; }
}

/* --------------------------------------------------------------------------
   Toast / Dialog
   -------------------------------------------------------------------------- */
.pano-toast-box {
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}
.pano-toast {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 20px;
    border-radius: 11px;
    background: rgba(22, 32, 44, .96);
    border: 1px solid var(--line-strong);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
    font-size: 13.5px;
    color: var(--text);
    animation: toastIn .26s cubic-bezier(.2, .8, .3, 1);
    backdrop-filter: blur(10px);
    max-width: 86vw;
}
.pano-toast.out { animation: toastOut .24s forwards; }
.pano-toast .ico {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex: 0 0 7px;
    background: var(--accent);
}
.pano-toast-error .ico { background: var(--danger); }
.pano-toast-error { border-color: rgba(255, 107, 94, .38); }
.pano-toast-success .ico { background: var(--accent); }
.pano-toast-success { border-color: rgba(34, 211, 197, .34); }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-14px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
    to { opacity: 0; transform: translateY(-12px) scale(.96); }
}

.pano-mask {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(3, 6, 10, .68);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .2s;
}
.pano-mask.show { opacity: 1; }
.pano-dialog {
    width: 100%;
    max-width: 400px;
    background: var(--panel-2);
    border: 1px solid var(--line-strong);
    border-radius: 15px;
    padding: 24px 24px 18px;
    box-shadow: var(--shadow);
    transform: translateY(10px) scale(.97);
    transition: transform .22s cubic-bezier(.2, .8, .3, 1);
}
.pano-mask.show .pano-dialog { transform: translateY(0) scale(1); }
.pano-dialog h3 { margin: 0 0 10px; font-size: 16px; font-weight: 620; }
.pano-dialog p { margin: 0 0 20px; font-size: 13.5px; color: var(--text-sub); line-height: 1.8; }
.pano-dialog-foot { display: flex; justify-content: flex-end; gap: 10px; }

/* ==========================================================================
   场景编辑器 · 暗色主题适配（前台为深色底，覆盖 scene-editor.css 的浅色默认值）
   ========================================================================== */
.scene-empty {
    border-color: var(--line-strong);
    background: var(--bg-soft);
    color: var(--text-dim);
}
.scene-item {
    background: var(--panel);
    border-color: var(--line);
}
.scene-item:hover { border-color: rgba(34, 211, 197, .45); box-shadow: 0 4px 18px rgba(0, 0, 0, .3); }
.scene-thumb { background: #0a1017; }
.scene-title,
.scene-params input {
    background: var(--bg-soft);
    border-color: var(--line);
    color: var(--text);
}
.scene-title:focus,
.scene-params input:focus { border-color: var(--accent); }
.scene-params { color: var(--text-sub); }
.scene-meta { color: var(--text-dim); }
.scene-del { color: var(--text-dim); }
.scene-del:hover { background: rgba(255, 107, 94, .14); color: var(--danger); }

.scene-drop {
    border-color: var(--line-strong);
    background: var(--bg-soft);
    color: var(--text-sub);
}
.scene-drop:hover, .scene-drop.drag-over {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}
.scene-drop i { color: var(--text-dim); }
.scene-drop:hover i, .scene-drop.drag-over i { color: var(--accent); }

/* 上传中的占位卡片 */
.scene-item-uploading { border-color: rgba(34, 211, 197, .4); background: rgba(34, 211, 197, .05); }
.scene-item-uploading:hover { border-color: var(--accent); }
.scene-thumb-loading { background: linear-gradient(120deg, #10222a, #0d2b2a); }
.scene-up-pct { color: var(--accent); }
.scene-up-wave {
    background: linear-gradient(100deg,
        rgba(34, 211, 197, 0) 30%,
        rgba(34, 211, 197, .22) 50%,
        rgba(34, 211, 197, 0) 70%);
}
.scene-up-name {
    border-color: var(--line-strong);
    color: var(--text-sub);
    background: var(--bg-soft);
}
.scene-up-bar { background: rgba(255, 255, 255, .08); }
.scene-up-bar > i { background: linear-gradient(90deg, #17a99e, #22d3c5, #17a99e); background-size: 200% 100%; }
.scene-up-cancel:hover { background: rgba(255, 107, 94, .14); color: var(--danger); }

/* ==========================================================================
   通用表单增强
   ========================================================================== */
.field-inline { display: flex; gap: 10px; align-items: center; }
.field-inline .input { flex: 1; min-width: 0; }
.field-inline .btn { flex: 0 0 auto; white-space: nowrap; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--line-strong);
    color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn-outline:disabled,
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-outline:disabled:hover { border-color: var(--line-strong); color: var(--text); background: transparent; }

/* ==========================================================================
   作品留言
   ========================================================================== */
.cmt-form { margin-bottom: 18px; }
.cmt-form-body { display: flex; gap: 12px; }
.cmt-form-main { flex: 1; min-width: 0; }

.cmt-avatar {
    flex: 0 0 38px;
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-soft);
    border: 1px solid var(--line);
    color: var(--accent);
    font-size: 15px; font-weight: 620;
    overflow: hidden;
}
.cmt-avatar img { width: 100%; height: 100%; object-fit: cover; }

.cmt-form-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-top: 8px;
}
.cmt-counter { font-size: 12.5px; color: var(--text-dim); }
.cmt-counter em { font-style: normal; color: var(--accent); }

.cmt-locked {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 16px 18px;
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
    background: var(--bg-soft);
}
.cmt-lock-ico { font-size: 20px; }
.cmt-lock-text { flex: 1; min-width: 180px; }
.cmt-lock-text b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.cmt-lock-text span { font-size: 12.5px; color: var(--text-dim); line-height: 1.7; }

.cmt-list { display: flex; flex-direction: column; }
.cmt-item { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.cmt-item.is-reply { padding: 10px 0 10px 0; border-top: 0; }
.cmt-item.is-reply .cmt-avatar { flex: 0 0 30px; width: 30px; height: 30px; font-size: 13px; }
.cmt-main { flex: 1; min-width: 0; }

.cmt-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.cmt-head b { font-size: 13.5px; font-weight: 600; }
.cmt-time { font-size: 12px; color: var(--text-dim); margin-left: auto; }
.cmt-tag {
    font-size: 11px; padding: 1px 6px; border-radius: 5px;
    background: var(--accent-soft); color: var(--accent);
}
.cmt-mobile { font-size: 11.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }

.cmt-content { font-size: 13.5px; line-height: 1.85; color: var(--text); word-break: break-word; }
.cmt-at { color: var(--accent); margin-right: 4px; }

.cmt-actions { display: flex; align-items: center; gap: 16px; margin-top: 7px; }
.cmt-actions a { font-size: 12.5px; color: var(--text-dim); transition: .15s; }
.cmt-actions a:hover { color: var(--text); }
.cmt-actions a.danger:hover { color: var(--danger); }
.cmt-like { display: inline-flex; align-items: center; gap: 4px; }
.cmt-like i { font-style: normal; font-size: 14px; line-height: 1; }
.cmt-like.active, .cmt-like.active i { color: var(--danger); }

.cmt-replies {
    margin-top: 10px; padding: 4px 14px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--line);
    border-radius: 11px;
}
.cmt-more {
    display: inline-block; margin-top: 8px;
    font-size: 12.5px; color: var(--accent);
}
.cmt-more:hover { text-decoration: underline; }

.cmt-reply-form { margin-top: 10px; }
.cmt-reply-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

.cmt-foot { display: flex; justify-content: center; padding-top: 16px; }

.cmt-empty { text-align: center; padding: 42px 0; color: var(--text-dim); }
.cmt-empty-ico { font-size: 26px; margin-bottom: 8px; opacity: .7; }
.cmt-empty p { margin: 0; font-size: 13px; }

.cmt-skeleton { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.sk-avatar { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.06); animation: cmt-pulse 1.4s infinite; }
.sk-lines { flex: 1; display: flex; flex-direction: column; gap: 9px; padding-top: 6px; }
.sk-lines span { height: 11px; border-radius: 5px; background: rgba(255,255,255,.06); animation: cmt-pulse 1.4s infinite; }
.sk-lines span:last-child { width: 55%; }
@keyframes cmt-pulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* ==========================================================================
   注册审核（管理员人工审核）
   ========================================================================== */

/* 注册页顶部审核提示条 */
.audit-hint {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px 15px;
    margin-bottom: 22px;
    border-radius: 12px;
    border: 1px solid rgba(255, 200, 87, .28);
    background: rgba(255, 200, 87, .08);
}

.audit-hint-ico {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 200, 87, .9);
    color: #3a2c05;
    font-size: 13px;
    font-weight: 700;
    font-style: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.audit-hint b { color: #f5d98f; font-size: 13.5px; }
.audit-hint p { margin: 4px 0 0; color: var(--text-sub); font-size: 12.5px; line-height: 1.7; }
.audit-hint .audit-wx {
    color: var(--accent);
    padding: 1px 7px;
    border-radius: 6px;
    background: var(--accent-soft);
    font-family: ui-monospace, Menlo, Consolas, monospace;
}

/* 提示条里的微信号已有高亮底色，不再叠加虚线下划线 */
.audit-hint .wx-hover .wx-text {
    border-bottom: 0;
    padding-bottom: 0;
}

/* 待审核提示页 */
.auth-box-wide { max-width: 560px; width: 100%; }

.pending-head { text-align: center; margin-bottom: 22px; }
.pending-head h1 { font-size: 20px; margin: 0 0 6px; letter-spacing: .3px; }
.pending-head .sub { color: var(--text-dim); font-size: 13px; margin: 0; }
.pending-head .sub b { color: var(--accent); }

.pending-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    border-radius: 50%;
    font-size: 26px;
    color: #04231f;
    background: linear-gradient(140deg, var(--accent), #22b8d3);
    box-shadow: 0 12px 28px rgba(34, 211, 197, .28);
}

.pending-card {
    margin-top: 18px;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.pending-card-title {
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 14px;
    padding-left: 10px;
    border-left: 3px solid var(--accent);
    line-height: 1.2;
}

.pending-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    background: var(--panel-2);
    border: 1px solid var(--line);
}

.pending-label { flex: 0 0 auto; font-size: 12.5px; color: var(--text-dim); }

.pending-value {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .5px;
    color: var(--accent);
    font-family: ui-monospace, Menlo, Consolas, monospace;
    word-break: break-all;
}

.pending-value.pending-empty {
    font-weight: 400;
    font-size: 12.5px;
    color: var(--text-sub);
    font-family: inherit;
    letter-spacing: 0;
}

/* 悬停提示：移到微信号上查看二维码 */
.pending-hover-tip {
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
}

.pending-qr {
    margin-top: 14px;
    text-align: center;
}

.pending-qr img {
    width: 176px;
    height: 176px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    padding: 6px;
    display: block;
    margin: 0 auto 8px;
}

.pending-qr span { font-size: 12px; color: var(--text-dim); }

.pending-tip {
    margin-top: 14px;
    font-size: 12.5px;
    line-height: 1.75;
    color: var(--text-sub);
}
.pending-tip b { color: var(--accent); }

.pending-steps {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.pending-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 13px 8px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    text-align: center;
}

.pending-step b {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pending-step span { font-size: 12px; color: var(--text-sub); line-height: 1.5; }

.pending-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.pending-actions .btn { flex: 1; height: 42px; }

@media (max-width: 560px) {
    .pending-steps { flex-direction: column; }
    .pending-step { flex-direction: row; justify-content: flex-start; padding: 11px 14px; }
    .pending-actions { flex-direction: column; }
}

/* ==========================================================================
   管理员微信号 · 鼠标经过弹出二维码
   ========================================================================== */

.wx-hover {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.wx-hover .wx-text {
    border-bottom: 1px dashed rgba(34, 211, 197, .45);
    padding-bottom: 1px;
}

.wx-hover:hover .wx-text { color: #6ee7dd; }

/* 提示小字 */
.wx-hover-hint {
    display: block;
    margin-top: 5px;
    font-size: 11.5px;
    color: var(--text-dim);
}

/* 气泡浮层：默认向上弹出 */
.wx-hover-pop {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 13px);
    z-index: 80;
    padding: 7px 7px 6px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(6px) scale(.96);
    transform-origin: bottom center;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

/* 底部小三角 */
.wx-hover-pop::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    width: 9px;
    height: 9px;
    margin: -5px 0 0 -5px;
    background: #fff;
    transform: rotate(45deg);
}

/* 上方空间不足时由脚本加 .pop-down，改为向下弹出 */
.wx-hover.pop-down .wx-hover-pop {
    top: calc(100% + 13px);
    bottom: auto;
    transform-origin: top center;
    transform: translateX(-50%) translateY(-6px) scale(.96);
}

.wx-hover.pop-down .wx-hover-pop::after {
    top: auto;
    bottom: 100%;
    margin: -5px 0 0 -5px;
}

.wx-hover-pop img {
    display: block;
    width: 168px;
    height: 168px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.wx-hover-pop em {
    display: block;
    margin-top: 6px;
    font-style: normal;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    color: #5b6472;
}

/* 显示状态：桌面 hover / 触屏点击加的 .open */
.wx-hover.pop-down:hover .wx-hover-pop,
.wx-hover.pop-down.open .wx-hover-pop,
.wx-hover:hover .wx-hover-pop,
.wx-hover.open .wx-hover-pop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}
