/* 基础重置与变量 */

:root {
    --card-bg: rgba(20, 22, 28, 0.66);
    --card-border: rgba(255, 255, 255, 0.12);
    --text: #e9edf1;
    --muted: #bcc3ca;
    --primary: #5b8cff;
    --primary-strong: #3f6df0;
    --danger: #ff5d5d;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --radius: 16px;
}

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

html,
body {
    height: 100%;
}
a{
    text-decoration: none;
}
li{
     list-style: none;
}
body {
    margin: 0;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.5;
    background-color: #0d0f14;
    /* 叠加渐变提高对比度，底层为背景图 */
    background-image: linear-gradient(180deg, rgba(7, 10, 16, 0.55), rgba(7, 10, 16, 0.35)), url('../images/loginbg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    width: 100%;
    overflow-x: hidden;
}

/*翻页样式*/
#pageinfo { text-align: center;margin-bottom: 10px; margin-top: 26px;}
.digg {padding-top: 30px;}
.digg li{ 
    min-width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .05);
    color: #dfe6ee;
    border-radius: 8px;
    cursor: pointer;


    line-height: 36px;display:inline-block; margin:0 4px; font-size:14px; 

}
.digg li:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .25); }
.digg .page-item a{ border-radius: 8px;display: inline-block;border: none;padding: 0px;width: 36px;height: 36px;line-height: 36px;display: inline-block;overflow: inherit;color: #fff;}
 
.digg .page-item a:active {background-color: #cc4a4a;color:#fff;}
.digg li.active {display: inline-block; width: 36px;height: 36px;line-height: 36px;background-color: #cc4a4a;color: #fff;text-decoration: none;}
/*.digg li:first-child{ width: 70px;}
.digg li:last-child{ width: 70px;}*/


.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.brand__logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff8a8a, #ffd18a 40%, #8ad1ff);
    flex: 0 0 32px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand__title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .2px;
}

h1 {
    margin: 8px 0 20px;
    font-size: 24px;
    font-weight: 700;
}

form {
    margin-top: 12px;
}

.field {
    margin-bottom: 16px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
}

.input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    outline: none;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.input::placeholder {
    color: #9aa3ad;
}

.input:focus {
    border-color: rgba(91, 140, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.input-group {
    position: relative;
}

.toggle-pass {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    height: 28px;
    padding: 0 8px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.toggle-pass:hover {
    color: var(--text);
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    font-weight: 600;
    letter-spacing: .5px;
    cursor: pointer;
    transition: transform .05s ease, filter .2s ease, box-shadow .2s ease;
    box-shadow: 0 8px 18px rgba(63, 109, 240, 0.35);
}

.submit-btn:hover {
    filter: brightness(1.05);
}

.submit-btn:active {
    transform: translateY(1px);
}

.message {
    min-height: 20px;
    margin: 6px 2px 0;
    font-size: 13px;
    color: var(--danger);
}

.footer-note {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

@media (max-width: 520px) {
    .login-card {
        padding: 22px;
        border-radius: 14px;
    }
    h1 {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}


/* -------------------- 首页覆盖与通用容器 -------------------- */

.home-page {
    background-image: none;
    background-color: #0b0d12;
}

.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 16px;
}


/* -------------------- 顶部导航 -------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #b52b2b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.nav {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    display: inline-flex;
    align-items: center;
    height: 40px;
}

.logo img {
    height: 36px;
    width: auto;
    display: block;
}

.menu {
    display: flex;
    align-items: center;
    gap: 18px;
}

.menu a {
    color: #fff;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 500;
}

.menu a:hover,
.menu a.active {
    background: rgba(255, 255, 255, 0.12);
}

.menu .btn-sign {
    padding: 8px 12px;
    background: rgba(0, 0, 0, .2);
    border: 1px solid rgba(255, 255, 255, .25);
}


/* 登录注册按钮特殊样式 */

.menu .btn-login {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.menu .btn-login:hover {
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .5);
    transform: translateY(-1px);
}

.menu .btn-sign {
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: none;
    border-radius: 20px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(238, 90, 36, 0.3);
    transition: all 0.2s ease;
}

.menu .btn-sign:hover {
    background: linear-gradient(135deg, #ff5252, #d63031);
    box-shadow: 0 6px 16px rgba(238, 90, 36, 0.4);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 25px;
    height: 40px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    margin: 7px 0;
    border-radius: 2px;
}


/* -------------------- 轮播 -------------------- */

.hero-slider {
    margin-top: 36px;
}

.slider-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.slider-track {
    display: flex;
    transition: transform .6s ease;
    will-change: transform;
}

.slide {
    flex: 0 0 100%;
    height: 420px;
    background: #111;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, .45);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.arrow:hover {
    background: rgba(0, 0, 0, .6);
}

.arrow.prev {
    left: 10px;
}

.arrow.next {
    right: 10px;
}

.dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, .5);
}

.dots button.active {
    background: #fff;
}


/* -------------------- 搜索栏 -------------------- */

.search-section {
    margin: 18px auto;
    width: 800px;
}

.search-bar {
    display: flex;
    gap: 8px;
}

.search-bar select,
.search-bar input {
    height: 46px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    color: #e9edf1;
    outline: none;
}

.search-bar select {
    background: rgba(255, 255, 255, .06);
    padding: 0 12px;
    min-width: 200px;
}

.search-bar input {
    flex: 1;
    padding: 0 14px;
    background: rgba(255, 255, 255, .06);
}

.search-btn {
    height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: #e45151;
    cursor: pointer;
}

.search-btn img {
    width: 20px;
    height: 20px;
}

.search-btn:hover {
    filter: brightness(1.05);
}


/* -------------------- 分类网格 -------------------- */

.category-section {
    padding: 16px 0 40px;
}

.category-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card a {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
}

.category-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    filter: saturate(1.05);
}

.category-card .label {
    position: absolute;
    left: 12px;
    bottom: 10px;
    color: #fff;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .6);
}

.category-card a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .55));
    opacity: .9;
}

.category-card a:hover img {
    transform: scale(1.02);
    transition: transform .3s ease;
}


/* -------------------- 响应式 -------------------- */

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .menu {
        display: none;
    }
    .nav-toggle {
        display: inline-block;
    }
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .slide {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    .slide {
        height: 220px;
    }
}


/* -------------------- 搜索栏（强化版） -------------------- */

.search-bar {
    display: flex;
    justify-content: center;
    gap: 0;
}

.search-type {
    position: relative;
    min-width: 100px;
}

.type-toggle {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    background: #24272e;
    color: #e9edf1;
    border: 1px solid rgba(255, 255, 255, .18);
    border-right: none;
    border-radius: 12px 0 0 12px;
    cursor: pointer;
}

.type-toggle .caret {
    opacity: .8;
}

.search-bar input {
    height: 52px;
    padding: 0 16px;
    color: #e9edf1;
    background: #24272e;
    border: 1px solid rgba(255, 255, 255, .18);
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.search-bar input::placeholder {
    color: #9aa3ad;
}

.search-btn {
    height: 52px;
    width: 72px;
    border-radius: 0 12px 12px 0;
    background: #cc4a4a;
    border: 0;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 18px;
    cursor: pointer;
}

.search-btn:hover {
    filter: brightness(1.05);
}

.type-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    display: none;
    background: #1c1f25;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    z-index: 20;
}

.search-type[data-open="true"] .type-menu {
    display: block;
}

.type-menu li {
    padding: 12px 16px;
    cursor: pointer;
    color: #dfe6ee;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    list-style: none;
}

.type-menu li:last-child {
    border-bottom: none;
}

.type-menu li:hover {
    background: rgba(255, 255, 255, .06);
}

.type-menu li.active {
    background: rgba(255, 255, 255, .1);
}

@media (max-width: 768px) {
    .search-bar {
        grid-template-columns: 140px 1fr 60px;
    }
    .search-btn {
        width: 60px;
    }
}


/* -------------------- 导航下拉菜单（更新） -------------------- */

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .08);
    border-radius: 8px;
    overflow: hidden;
    transition: background-color 0.2s ease;
}

.dropdown-wrapper:hover {
    background: rgba(255, 255, 255, .12);
}

.dropdown-main-link {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    font-weight: 500;
    flex: 1;
    transition: background-color 0.2s ease;
}

.dropdown-toggle {
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 8px;
    cursor: pointer;
    border-left: 1px solid rgba(255, 255, 255, .15);
    transition: background-color 0.2s ease;
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, .1);
}

.nav-caret {
    font-size: 12px;
    opacity: 0.8;
    transition: transform 0.2s ease;
}

.nav-dropdown[data-open="true"] .nav-caret {
    transform: rotate(180deg);
}


/* 移动端下拉菜单样式调整 */

@media (max-width: 768px) {
    .dropdown-wrapper {
        background: transparent;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .06);
        padding: 0;
    }
    .dropdown-main-link {
        padding: 16px 0;
        flex: 1;
    }
    .dropdown-toggle {
        padding: 16px 12px;
        border-left: 1px solid rgba(255, 255, 255, .06);
    }
    .dropdown-wrapper:hover {
        background: transparent;
    }
}


/* -------------------- 导航下拉菜单 -------------------- */

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 500;
}

.dropdown-trigger:hover,
.nav-dropdown[data-open="true"] .dropdown-trigger {
    background: rgba(255, 255, 255, 0.12);
}

.nav-caret {
    font-size: 12px;
    opacity: 0.8;
    transition: transform 0.2s ease;
}

.nav-dropdown[data-open="true"] .nav-caret {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 600px;
    background: #1a1d23;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.nav-dropdown[data-open="true"] .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: 16px 0;
}

.dropdown-col {
    display: flex;
    flex-direction: column;
    padding: 0 8px;
    border-right: 1px solid rgba(255, 255, 255, .06);
}

.dropdown-col:last-child {
    border-right: none;
}

.category-link {
    color: #dfe6ee;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    transition: background-color 0.15s ease;
}

.category-link:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}


/* 移动端导航下拉适配 */

@media (max-width: 768px) {
    .dropdown-menu {
        min-width: 320px;
        left: -100px;
    }
    .dropdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dropdown-menu {
        min-width: 280px;
        left: -120px;
    }
    .dropdown-grid {
        grid-template-columns: 1fr;
    }
}


/* -------------------- 面包屑导航 -------------------- */

.breadcrumb {
    padding: 20px 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb a {
    color: #9aa3ad;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #e9edf1;
}

.breadcrumb .separator {
    color: #666;
    margin: 0 4px;
}

.breadcrumb .current {
    color: #e9edf1;
    font-weight: 500;
}


/* -------------------- 模型列表 -------------------- */

.models-section {
    padding: 0 0 40px;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.model-card {
    background: #1a1d23;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
}

.model-card:hover {
    border-color: rgba(255, 255, 255, .15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .3);
}

.model-preview {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.model-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.model-formats {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.format {
    background: rgba(0, 0, 0, .7);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}

.model-info {
    padding: 12px;
}

.model-title {
    margin: 0 0 0px;
    font-size: 14px;
    font-weight: 600;
    color: #e9edf1;
    line-height: 1.3;
}

.model-desc {
    margin: 0;
    font-size: 12px;
    color: #9aa3ad;
    line-height: 1.4;
}


/* -------------------- 分页组件 -------------------- */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px 0;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .05);
    color: #dfe6ee;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .25);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn.active {
    background: #cc4a4a;
    border-color: #cc4a4a;
    color: #fff;
}

.page-ellipsis {
    color: #9aa3ad;
    padding: 0 4px;
}

.page-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    font-size: 14px;
    color: #dfe6ee;
}

.page-input {
    width: 60px;
    height: 32px;
    padding: 0 8px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 6px;
    color: #e9edf1;
    text-align: center;
}

.page-go {
    height: 32px;
    padding: 0 12px;
    background: #666;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
}

.page-go:hover {
    background: #777;
}


/* -------------------- 响应式适配 -------------------- */

@media (max-width: 1200px) {
    .models-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .models-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .models-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    .page-jump {
        margin-left: 0;
        margin-top: 12px;
    }
}

@media (max-width: 400px) {
    .models-grid {
        grid-template-columns: 1fr;
    }
}


/* -------------------- 用户信息导航 -------------------- */

.auth-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .2);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-name {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    position: relative;
}

.user-menu-toggle {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, .7);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.user-menu-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: #1a1d23;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 100;
}

.user-dropdown[data-open="true"] .user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-item {
    display: block;
    padding: 10px 16px;
    color: #dfe6ee;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    transition: background-color 0.15s ease;
}

.user-menu-item:last-child {
    border-bottom: none;
}

.user-menu-item:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}


/* -------------------- 我的页面 -------------------- */

.my-page-content {
    padding: 40px 0 40px;
}

.my-section {
    margin-bottom: 30px;
    background-color: #272727;
    border-radius: 20px;
    padding: 25px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #e9edf1;
}

.view-more-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #bcc3ca;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.view-more-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e9edf1;
}

.view-more-btn:active {
    transform: translateY(1px);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-text {
    color: #9aa3ad;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}


/* -------------------- 响应式适配 -------------------- */

@media (max-width: 768px) {
    .user-info {
        gap: 6px;
    }
    .user-name {
        font-size: 13px;
        max-width: 80px;
    }
    .user-avatar {
        width: 28px;
        height: 28px;
    }
    .auth-section {
        gap: 8px;
    }
    .user-menu {
        right: -20px;
    }
}


/* -------------------- 历史记录卡片（网格布局） -------------------- */

.history-content {
    position: relative;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.history-card {
    background: #1a1d23;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
}

.history-card:hover {
    border-color: rgba(255, 255, 255, .15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .3);
}

.history-preview {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.history-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.unreal-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, .8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.unreal-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.history-info {
    padding: 12px;
}

.history-title {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #e9edf1;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* -------------------- 历史记录分页 -------------------- */

.history-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 16px 0;
}

.history-pagination .page-btn {
    min-width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .05);
    color: #dfe6ee;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.2s ease;
}

.history-pagination .page-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .25);
}

.history-pagination .page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.history-pagination .page-btn.active {
    background: #cc4a4a;
    border-color: #cc4a4a;
    color: #fff;
}


/* -------------------- 响应式适配 -------------------- */

@media (max-width: 1200px) {
    .history-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .history-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    .container {
        width: 95%;
        padding: 0;
    }
}

@media (max-width: 600px) {
    .history-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .history-pagination {
        gap: 6px;
    }
    .history-pagination .page-btn {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }
}


/* 移除旧的水平滚动样式 */

.history-scroll {
    display: none;
}

.history-list {
    display: none;
}


/* -------------------- 模型详情页 -------------------- */

.model-detail-page {
    padding: 40px 0 40px;
    max-width: 80%;
}

.model-detail-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    padding: 20px 0 40px;
}


/* -------------------- 左侧轮播区域 -------------------- */

.model-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-carousel {
    position: relative;
    background: #1a1d23;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.carousel-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, .6);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, .8);
}

.carousel-prev {
    left: 16px;
}

.carousel-next {
    right: 16px;
}


/* -------------------- 缩略图列表 -------------------- */

.thumbnail-list {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.thumb-nav {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.thumb-nav:hover {
    background: rgba(255, 255, 255, .15);
}

.thumb-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.thumbnail-viewport {
    flex: 1;
    overflow: hidden;
}

.thumbnail-track {
    display: flex;
    gap: 8px;
    transition: transform 0.3s ease;
}

.thumbnail {
    flex: 0 0 80px;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.thumbnail:hover {
    border-color: rgba(255, 255, 255, .3);
}

.thumbnail.active {
    border-color: #cc4a4a;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* -------------------- 右侧详情区域 -------------------- */

.model-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.model-header h1 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
    color: #e9edf1;
    line-height: 1.3;
}

.model-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: #9aa3ad;
}

.model-meta strong {
    color: #dfe6ee;
}

.model-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: #1a1d23;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
}

.price-section {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.price-label {
    color: #9aa3ad;
}

.price-value {
    font-weight: 600;
    font-size: 18px;
}

.price-value.free {
    color: #4ade80;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.btn-download {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-download.primary {
    background: linear-gradient(135deg, #cc4a4a, #b91c1c);
    color: #fff;
    box-shadow: 0 4px 12px rgba(204, 74, 74, 0.3);
}

.btn-download.primary:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-1px);
}

.btn-collect {
    flex: 0 0 100px;
    height: 44px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    color: #dfe6ee;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-collect:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .3);
}

.model-stats {
    font-size: 14px;
    color: #9aa3ad;
}

.model-stats strong {
    color: #dfe6ee;
}

.model-description,
.model-specs {
    padding: 20px;
    background: #1a1d23;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
}

.model-description h3,
.model-specs h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #e9edf1;
}

.model-description p {
    margin: 0;
    line-height: 1.6;
    color: #bcc3ca;
}

.specs-grid {
    display: grid;
    gap: 12px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spec-label {
    color: #9aa3ad;
    min-width: 80px;
}

.spec-value {
    color: #dfe6ee;
    font-weight: 500;
}


/* -------------------- 响应式适配 -------------------- */

@media (max-width: 1200px) {
    .model-detail-layout {
        grid-template-columns: 1fr 350px;
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .model-detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .thumbnail {
        flex: 0 0 70px;
        width: 70px;
        height: 52px;
    }
}

@media (max-width: 600px) {
    .model-detail-layout {
        padding: 16px 0 32px;
    }
    .model-header h1 {
        font-size: 20px;
    }
    .action-buttons button {
        min-height: 50px;
    }
    .btn-collect {
        flex: 1;
    }
    .thumbnail {
        flex: 0 0 60px;
        width: 60px;
        height: 45px;
    }
}


/* -------------------- 移动端导航优化 -------------------- */

@media (max-width: 768px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 1001;
    }
    .nav {
        height: 56px;
        padding: 0 12px;
    }
    .logo img {
        height: 32px;
    }
    .menu {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: #b52b2b;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
        max-height: calc(100vh);
        overflow-y: auto;
    }
    .menu.mobile-open {
        display: flex;
    }
    .menu a {
        padding: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        font-size: 16px;
        display: block;
        width: 100%;
    }
    .menu a:last-child {
        border-bottom: none;
    }
    .nav-dropdown {
        width: 100%;
    }
    .dropdown-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0, 0, 0, .2);
        border: none;
        border-radius: 0;
        box-shadow: none;
        margin-top: 8px;
        min-width: auto;
    }
    .dropdown-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 8px 0;
    }
    .dropdown-col {
        padding: 0;
        border-right: none;
    }
    .category-link {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, .05);
    }
    .auth-section {
        flex-direction: column;
        gap: 12px;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, .1);
        margin-top: 16px;
    }
    .btn-login,
    .btn-sign {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }
    .user-info {
        padding: 16px 0;
        border-top: 1px solid rgba(255, 255, 255, .1);
        margin-top: 16px;
    }
    .user-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0, 0, 0, .2);
        border: none;
        box-shadow: none;
        margin-top: 12px;
    }
    .nav-toggle {
        display: inline-block;
    }
}


/* -------------------- 移动端搜索栏优化 -------------------- */

@media (max-width: 768px) {
    .search-section {
        margin: 16px 0 4px;
    }
    .search-bar {
        grid-template-columns: 120px 1fr 56px;
        gap: 0;
    }
    .type-toggle {
        height: 48px;
        padding: 0 12px;
        font-size: 14px;
    }
    .search-bar input {
        height: 48px;
        padding: 0 12px;
        font-size: 16px;
        /* 防止iOS缩放 */
    }
    .search-btn {
        height: 48px;
        width: 56px;
        font-size: 16px;
    }
    .type-menu {
        left: 0;
        right: auto;
        min-width: 140px;
    }
}


/* -------------------- 移动端模型网格优化 -------------------- */

@media (max-width: 768px) {
    .models-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .model-card {
        border-radius: 8px;
    }
    .model-info {
        padding: 10px;
    }
    .model-title {
        font-size: 13px;
        line-height: 1.2;
    }
    .model-desc {
        font-size: 11px;
    }
    .format {
        font-size: 9px;
        padding: 2px 4px;
    }
}

@media (max-width: 480px) {
    .models-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .model-card {
        max-width: 100%;
    }
}


/* -------------------- 移动端历史记录优化 -------------------- */

@media (max-width: 768px) {
    .history-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .history-card {
        border-radius: 8px;
    }
    .history-info {
        padding: 10px;
    }
    .history-title {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .history-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}


/* -------------------- 移动端分页优化 -------------------- */

@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 24px;
    }
    .page-btn {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .page-jump {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 12px;
    }
    .history-pagination {
        gap: 6px;
    }
    .history-pagination .page-btn {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }
}


/* -------------------- 移动端模型详情页优化 -------------------- */

@media (max-width: 900px) {
    .model-detail-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .model-detail-page {
        padding: 20px 0;
        max-width: 95%;
    }
    .main-carousel {
        aspect-ratio: 4/3;
    }
    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    .carousel-prev {
        left: 12px;
    }
    .carousel-next {
        right: 12px;
    }
    .thumbnail {
        flex: 0 0 60px;
        width: 60px;
        height: 45px;
    }
    .thumb-nav {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .model-detail-page {
        max-width: 100%;
        padding: 16px 0;
    }
    .model-header h1 {
        font-size: 18px;
        line-height: 1.2;
    }
    .model-meta {
        font-size: 13px;
    }
    .model-actions {
        padding: 16px;
    }
    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }
    .btn-collect {
        flex: 1;
    }
    .model-description,
    .model-specs {
        padding: 16px;
    }
    .model-description h3,
    .model-specs h3 {
        font-size: 16px;
    }
    .main-carousel {
        aspect-ratio: 3/2;
    }
    .thumbnail {
        flex: 0 0 50px;
        width: 50px;
        height: 38px;
    }
    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    .carousel-prev {
        left: 8px;
    }
    .carousel-next {
        right: 8px;
    }
}


/* -------------------- 移动端首页优化 -------------------- */

@media (max-width: 768px) {
    .hero-slider {
        margin-top: 12px;
    }
    .slide {
        height: 240px;
    }
    .arrow {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    .arrow.prev {
        left: 8px;
    }
    .arrow.next {
        right: 8px;
    }
    .dots button {
        width: 6px;
        height: 6px;
    }
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    .category-card img {
        height: 120px;
    }
    .category-card .label {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .slide {
        height: 200px;
    }
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .category-card img {
        height: 100px;
    }
    .category-card .label {
        font-size: 13px;
        left: 8px;
        bottom: 8px;
    }
}


/* -------------------- 移动端我的页面优化 -------------------- */

@media (max-width: 768px) {
    .my-page-content {
        padding: 16px 0 32px;
    }
    .my-section {
        margin-bottom: 40px;
    }
    .section-title {
        font-size: 16px;
    }
    .empty-state {
        padding: 60px 20px;
    }
    .empty-icon svg {
        width: 60px;
        height: 60px;
    }
    .empty-text {
        font-size: 14px;
    }
}


/* -------------------- 移动端面包屑优化 -------------------- */

@media (max-width: 768px) {
    .breadcrumb {
        padding: 16px 0 12px;
        font-size: 13px;
        flex-wrap: wrap;
    }
    .breadcrumb a,
    .breadcrumb .current {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}


/* -------------------- 触摸优化 -------------------- */

@media (hover: none) and (pointer: coarse) {
    .model-card:hover,
    .history-card:hover,
    .category-card a:hover {
        transform: none;
        border-color: initial;
        box-shadow: initial;
    }
    .model-card:active,
    .history-card:active,
    .category-card a:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    .btn-download:hover,
    .btn-collect:hover,
    .search-btn:hover {
        transform: none;
        filter: none;
    }
    .btn-download:active,
    .btn-collect:active,
    .search-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}


/* Drawer backdrop for mobile nav */

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 1000;
}

body.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
}


/* -------------------- 优化后的移动端抽屉导航 -------------------- */

@media (max-width: 768px) {
    .menu {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        height: 100vh;
        width: min(86vw, 360px);
        padding: 20px 16px 28px;
        background: #1a1d23;
        box-shadow: -8px 0 24px rgba(0, 0, 0, .45);
        border-left: 1px solid rgba(255, 255, 255, .06);
        transform: translateX(100%);
        transition: transform .25s ease;
    }
    .menu.mobile-open {
        transform: translateX(0);
    }
    .dropdown-trigger {
        border-bottom: 1px solid rgba(255, 255, 255, .06);
    }
    .category-link {
        border-bottom: 1px solid rgba(255, 255, 255, .04);
    }
}


/* -------------------- 首页视觉微调（移动端） -------------------- */

@media (max-width: 768px) {
    .hero-slider .slider-viewport {
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
        background: #0f1217;
    }
    .slider-track {
        will-change: transform;
    }
    .dots {
        bottom: 12px;
        gap: 10px;
    }
    .dots button {
        width: 7px;
        height: 7px;
        opacity: .9;
    }
    .dots button.active {
        transform: scale(1.2);
    }
    .search-section {
        margin: 0 auto;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .search-bar {
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, .10);
        background: rgba(28, 31, 37, .65);
        overflow: hidden;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .30);
    }
    .search-bar .type-toggle,
    .search-bar input,
    .search-bar .search-btn {
        border: 0 !important;
    }
    .type-toggle {
        color: #e9edf1;
    }
    .search-bar input {
        color: #e9edf1;
    }
    .search-btn {
        background: #e45151 !important;
    }
}


/* -------------------- 分类卡片细节（移动端） -------------------- */

@media (max-width: 768px) {
    .category-card a::after {
        opacity: .75;
    }
    .category-card a {
        transition: transform .15s ease;
    }
    .category-card a:active {
        transform: scale(.98);
    }
    .menu .btn-login {
        margin-bottom: 20px;
    }
}


/* -------------------- 课程列表页侧边栏布局（修复版） -------------------- */

.page-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    padding: 20px 20px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: fit-content;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    position: sticky;
    top: 80px;
}

.main-content {
    min-width: 0;
    /* 防止网格溢出 */
}


/* 自定义滚动条 */

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .05);
    border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .2);
    border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, .3);
}


/* -------------------- 发布按钮区域（优化版） -------------------- */

.publish-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.publish-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border: 2px solid #dc2626;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 13px;
}

.publish-btn:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    border-color: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.publish-icon {
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
}

.publish-text {
    font-size: 13px;
}


/* -------------------- 筛选区域（优化版） -------------------- */

.filter-section {
    background: #1a1d23;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    padding: 16px;
}

.filter-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #e9edf1;
}

.category-filters {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 280px;
    overflow-y: auto;
}

.category-filters::-webkit-scrollbar {
    width: 3px;
}

.category-filters::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .03);
}

.category-filters::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .15);
    border-radius: 2px;
}
.category-filters .active a{ 
    background: rgba(220, 38, 38, 0.15);
    border-color: #dc2626;
    color: #dc2626;
    font-weight: 500;
}

.sort-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 6px;
    color: #bcc3ca;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .15);
    color: #e9edf1;
}

.filter-btn.active {
    background: rgba(220, 38, 38, 0.15);
    border-color: #dc2626;
    color: #dc2626;
    font-weight: 500;
}

.filter-icon {
    font-size: 12px;
    line-height: 1;
    min-width: 12px;
}


/* -------------------- 主内容区域调整 -------------------- */

.models-section {
    padding: 0;
    margin-bottom: 20px;
}


/* -------------------- 响应式侧边栏（修复版） -------------------- */

@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 220px 1fr;
        gap: 20px;
    }
    .sidebar {
        gap: 14px;
        max-height: calc(100vh - 120px);
    }
    .filter-section {
        padding: 14px;
    }
    .category-filters {
        max-height: 240px;
    }
}

@media (max-width: 768px) {
    .page-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .sidebar {
        position: static;
        max-height: none;
        order: 2;
        flex-direction: row;
        gap: 16px;
        overflow-x: auto;
        padding: 16px 0;
    }
    .publish-section {
        flex-direction: row;
        gap: 8px;
        min-width: 280px;
    }
    .filter-section {
        min-width: 180px;
        padding: 12px;
    }
    .filter-title {
        font-size: 13px;
        margin-bottom: 10px;
    }
    .category-filters {
        max-height: 200px;
        gap: 3px;
    }
    .sort-options {
        gap: 3px;
    }
    .filter-btn {
        padding: 6px 8px;
        font-size: 12px;
    }
    .publish-btn {
        padding: 10px 12px;
        min-width: 120px;
    }
    .main-content {
        order: 1;
    }
}

@media (max-width: 480px) {
    .sidebar {
        flex-direction: column;
        gap: 12px;
    }
    .publish-section {
        flex-direction: column;
        gap: 6px;
        min-width: auto;
    }
    .filter-section {
        min-width: auto;
    }
}


/* -------------------- 下载弹窗样式 -------------------- */

/* 加载动画 */

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #1a1d23;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}


/* 弹窗头部 */

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #e9edf1;
}

.modal-close {
    background: transparent;
    border: none;
    color: #bcc3ca;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e9edf1;
}


/* 弹窗内容 */

.modal-content {
    padding: 16px 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}


/* 下载信息区域 */

.download-info {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-size: 14px;
    color: #bcc3ca;
}

.info-value {
    font-size: 14px;
    color: #e9edf1;
    font-weight: 500;
}


/* 文件列表 */

.file-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #0f1116;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
}

.file-item.selected {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.3);
}


/* 自定义复选框 */

.file-checkbox {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.file-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: transparent;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.file-checkbox input[type="checkbox"]:checked+.checkbox-custom {
    background: #dc2626;
    border-color: #dc2626;
}

.file-checkbox input[type="checkbox"]:checked+.checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.file-checkbox:hover .checkbox-custom {
    border-color: rgba(255, 255, 255, 0.4);
}


/* 文件预览图 */

.file-preview {
    flex-shrink: 0;
}

.file-thumbnail {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* 文件信息 */

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 14px;
    font-weight: 500;
    color: #e9edf1;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-format {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(220, 38, 38, 0.2);
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.file-size {
    font-size: 12px;
    color: #bcc3ca;
}


/* 选择信息 */

.selection-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
}

#selectionCount {
    color: #e9edf1;
    font-weight: 500;
}

.selection-limit {
    color: #bcc3ca;
}


/* 弹窗底部 */

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #bcc3ca;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
/* 下载按钮处于下载状态时的特殊样式 */

.btn-primary:disabled[data-downloading="true"] {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border-color: #22c55e;
    color: white;
    cursor: progress;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: #e9edf1;
}

.btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border: 1px solid #dc2626;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    border-color: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-primary:disabled {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* 响应式弹窗 */

@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 85vh;
    }
    .modal-header {
        padding: 20px 16px 12px;
    }
    .modal-title {
        font-size: 16px;
    }
    .modal-content {
        padding: 12px 16px;
    }
    .modal-footer {
        padding: 12px 16px 20px;
        flex-direction: column;
    }
    .btn-secondary,
    .btn-primary {
        width: 100%;
        padding: 12px;
    }
    .file-item {
        padding: 10px;
        gap: 10px;
    }
    .file-thumbnail {
        width: 40px;
        height: 40px;
    }
    .file-name {
        font-size: 13px;
    }
    .file-details {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .modal-container {
        width: 98%;
        margin: 10px;
    }
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .file-checkbox {
        align-self: flex-end;
    }
    .file-preview {
        align-self: center;
    }
    .file-info {
        width: 100%;
        text-align: center;
    }
}


/* -------------------- 我的页面侧边栏样式 -------------------- */

.my-page-content .page-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

.my-page-content .sidebar {
    background: #1a1d23;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    height: fit-content;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    position: sticky;
    top: 80px;
}

.my-page-content .sidebar::-webkit-scrollbar {
    width: 4px;
}

.my-page-content .sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.my-page-content .sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}


/* 用户资料区域 */

.user-profile {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(220, 38, 38, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    color: #e9edf1;
}


/* 侧边导航 */

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* 上传按钮样式 */

.upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.upload-btn:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.upload-btn i {
    font-size: 16px;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #bcc3ca;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.sidebar-nav .nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e9edf1;
}

.sidebar-nav .nav-item.active {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.nav-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.nav-text {
    flex: 1;
}

.section-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #e9edf1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    font-size: 18px;
    color: #dc2626;
}


/* 响应式侧边栏 */

@media (max-width: 1024px) {
    .my-page-content .page-layout {
        grid-template-columns: 240px 1fr;
        gap: 20px;
        padding: 20px;
    }
    .my-page-content .sidebar {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .my-page-content .page-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    .my-page-content .sidebar {
        order: 2;
        position: static;
        max-height: none;
        padding: 16px;
    }
    .user-profile {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
        margin-bottom: 20px;
        padding-bottom: 16px;
    }
    .profile-avatar {
        width: 60px;
        height: 60px;
        margin: 0;
    }
    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    .sidebar-nav .nav-item {
        flex: 1;
        min-width: calc(50% - 4px);
        justify-content: center;
        padding: 10px 8px;
        font-size: 13px;
    }
    .nav-icon {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .sidebar-nav .nav-item {
        min-width: 100%;
    }
}


/* -------------------- 我的页面主要内容区域 -------------------- */

.my-page-content .main-content {
    min-width: 0;
    background: #1a1d23;
    border-radius: 12px;
    overflow: hidden;
}

#contentFrame {
    width: 100%;
    height: calc(100vh - 160px);
    min-height: 600px;
    border: none;
    background: transparent;
}


/* -------------------- 我的页面iframe样式 -------------------- */

#contentFrame {
    width: 100%;
    height: calc(100vh - 120px);
    /* 减去header和一些padding的高度 */
    border: none;
    border-radius: 12px;
    background: #1a1d23;
    min-height: 600px;
}


/* 我的页面主内容区域 */

.my-page-content .main-content {
    background: #1a1d23;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}


/* 默认欢迎内容 */

.welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    text-align: center;
    color: #bcc3ca;
    padding: 40px;
}

.welcome-content h2 {
    font-size: 24px;
    color: #e9edf1;
    margin-bottom: 16px;
}

.welcome-content p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 400px;
}


/* 响应式调整 */

@media (max-width: 1024px) {
    #contentFrame {
        height: calc(100vh - 100px);
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    #contentFrame {
        height: calc(100vh - 80px);
        min-height: 400px;
        border-radius: 8px;
    }
    .welcome-content {
        height: 300px;
        padding: 20px;
    }
    .welcome-content h2 {
        font-size: 20px;
    }
    .welcome-content p {
        font-size: 14px;
    }
}


/* -------------------- 响应式适配 -------------------- */


/* -------------------- 列表页面样式 -------------------- */

.list-page {
    background: #0f1117;
    color: #e9edf1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    padding: 0;
}

.list-container {
    padding: 20px;
    max-width: 100%;
}

.list-header {
    display: flex;
    align-items: center;
    justify-content: between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.list-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #e9edf1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.list-title i {
    font-size: 18px;
    color: #dc2626;
}

.list-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #bcc3ca;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e9edf1;
}

.list-content {
    min-height: 400px;
}


/* 空状态样式 */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.empty-icon i {
    font-size: 32px;
    color: #dc2626;
}

.empty-text {
    font-size: 18px;
    font-weight: 600;
    color: #e9edf1;
    margin-bottom: 8px;
}

.empty-desc {
    font-size: 14px;
    color: #bcc3ca;
}


/* 模型网格样式 */

.list-page .models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.list-page .model-card {
    background: #1a1d23;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.list-page .model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(220, 38, 38, 0.3);
}

.list-page .model-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.list-page .model-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.list-page .model-card:hover .model-image img {
    transform: scale(1.05);
}

.list-page .model-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.list-page .model-card:hover .model-overlay {
    opacity: 1;
}

.list-page .overlay-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.list-page .overlay-btn:hover {
    background: rgba(220, 38, 38, 0.8);
    border-color: #dc2626;
    transform: scale(1.1);
}

.list-page .model-info {
    padding: 16px;
}

.list-page .model-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #e9edf1;
    line-height: 1.4;
}

.list-page .model-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    color: #bcc3ca;
}

.list-page .model-downloads {
    display: flex;
    align-items: center;
    gap: 4px;
}

.list-page .model-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.list-page .tag {
    padding: 4px 8px;
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}


/* 响应式设计 */

@media (max-width: 768px) {
    .list-container {
        padding: 16px;
    }
    .list-page .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    .list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .list-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .list-page .models-grid {
        grid-template-columns: 1fr;
    }
}


/* -------------------- 我的作品 Tabs 与状态徽标 -------------------- */

.works-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 16px;
}

.tab-btn {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #bcc3ca;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e9edf1;
}

.tab-btn.active {
    background: rgba(220, 38, 38, 0.15);
    border-color: #dc2626;
    color: #dc2626;
}


/* 审核状态徽标 */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.status-all {
    background: rgba(255, 255, 255, 0.06);
    color: #bcc3ca;
}

.status-published {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
}

.status-review {
    background: rgba(234, 179, 8, 0.18);
    color: #fbbf24;
}

.status-rejected {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
}


/* 卡片内状态位于信息栏顶部右侧 */

.model-info .status-badge {
    float: right;
}


/* -------------------- 发布模型页面 -------------------- */

.publish-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin: 24px auto 12px;
}

.publish-steps .step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #2a2e35;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    color: #bcc3ca;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2) inset;
}

.publish-steps .step::after {
    content: '';
    position: absolute;
    right: -28px;
    top: 50%;
    width: 28px;
    height: 2px;
    background: rgba(255, 255, 255, .12);
    transform: translateY(-50%);
}

.publish-steps .step:last-child::after {
    display: none;
}

.publish-steps .step .step-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #e9edf1;
    font-size: 14px;
}

.publish-steps .step .step-text {
    font-size: 14px;
    font-weight: 600;
}

.publish-steps .step.active {
    background: #dc4d4d;
    color: #fff;
    border-color: #dc4d4d;
}

.publish-steps .step.active .step-icon {
    background: rgba(0, 0, 0, .15);
}

.publish-section-wrapper {
    margin-top: 16px;
}

.upload-section {
    background: #1a1d23;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.upload-section .section-title {
    font-size: 18px;
    color: #e9edf1;
    margin: 0 0 6px;
}

.upload-section .section-desc {
    font-size: 13px;
    color: #9aa3ad;
    margin: 0 0 12px;
}


/* 预览图画廊上传 */

.gallery-uploader {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-drop {
    display: block;
    width: 100%;
    border: 1px dashed rgba(255, 255, 255, .18);
    border-radius: 10px;
    padding: 18px;
    background: rgba(255, 255, 255, .03);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.gallery-drop:hover {
    border-color: rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .05);
}

.drop-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bcc3ca;
}

.drop-icon {
    font-size: 18px;
    color: #dc4d4d;
}

.gallery-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
}

.gallery-item {
    position: relative;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    overflow: hidden;
    background: #0f1116;
}

.gallery-item.dragging {
    opacity: .6;
}

.gallery-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

.gallery-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    border: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 14px;
}

@media (max-width: 900px) {
    .gallery-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-list {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* 文件上传 */

.file-uploader {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-drop {
    display: block;
    width: 100%;
    border: 1px dashed rgba(255, 255, 255, .18);
    border-radius: 10px;
    padding: 18px;
    background: rgba(255, 255, 255, .03);
    cursor: pointer;
}

.file-drop:hover {
    border-color: rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .05);
}

.file-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #0f1116;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 8px;
    padding: 10px 12px;
}

.file-name {
    color: #e9edf1;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.file-size {
    color: #9aa3ad;
    font-size: 12px;
}

.file-remove {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .18);
    color: #bcc3ca;
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
}

.file-remove:hover {
    background: rgba(255, 255, 255, .06);
    color: #e9edf1;
}

.actions {
    display: flex;
    justify-content: center;
    padding: 8px 0 20px;
}


/* 步骤2 表单样式 */

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.form-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    color: #e9edf1;
    font-size: 14px;
}

.required {
    color: #dc4d4d;
    margin-right: 4px;
}

.input,
.textarea,
select.input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: #e9edf1;
    outline: none;
}

.input:focus,
.textarea:focus,
select.input:focus {
    border-color: rgba(91, 140, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.15);
}

.textarea {
    resize: vertical;
    min-height: 140px;
}

.helper-text {
    font-size: 12px;
    color: #9aa3ad;
}

.actions-split {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

@media (max-width: 600px) {
    .actions-split {
        flex-direction: column;
    }
}


/* 下拉选择可读性增强 */

select.input {
    background: #24272e;
    color: #e9edf1;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 36px;
}

select.input option {
    background: #1a1d23;
    color: #e9edf1;
}

select.input optgroup {
    background: #1a1d23;
    color: #e9edf1;
}


/* 隐藏旧版IE箭头（兼容性处理，无影响现代浏览器） */

select.input::-ms-expand {
    display: none;
}


/* 审核中样式 */

.review-pending {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0 12px;
    gap: 12px;
}

.review-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    display: grid;
    place-items: center;
    font-size: 32px;
    color: #e9edf1;
}

.review-text {
    color: #e9edf1;
    font-size: 16px;
    font-weight: 600;
}