/* 全局样式 */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #1a1f2e;
    --bg-card: #242938;
    --bg-card-hover: #2d3348;
    --text-primary: #ffffff;
    --text-secondary: #8b92a7;
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-green: #10b981;
    --border-color: #2d3348;
    --sidebar-width: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Placeholder opacity for inputs (used on auth modals / register page) */
    --placeholder-opacity: 0.45;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 
                 'Microsoft YaHei', sans-serif;
    background: #0a0a0f;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 主页大型光晕背景 */
.main-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 25s ease-in-out infinite;
}

.glow-orb-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.8) 0%, rgba(88, 86, 214, 0.5) 30%, rgba(74, 58, 168, 0.3) 60%, transparent 80%);
    top: -250px;
    left: 8%;
    animation-delay: 0s;
}

.glow-orb-2 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.7) 0%, rgba(124, 58, 237, 0.5) 30%, rgba(88, 86, 214, 0.3) 60%, transparent 80%);
    top: 15%;
    right: -150px;
    animation-delay: -8s;
}

.glow-orb-3 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.6) 0%, rgba(67, 56, 202, 0.4) 30%, rgba(88, 86, 214, 0.2) 60%, transparent 80%);
    bottom: -180px;
    left: 28%;
    animation-delay: -16s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    33% {
        transform: translate(20px, -20px) scale(1.05);
        opacity: 0.7;
    }
    66% {
        transform: translate(-15px, 15px) scale(0.95);
        opacity: 0.5;
    }
}

/* 左侧导航栏 */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.sidebar:hover {
    width: 200px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    margin-bottom: 40px;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
}

.logo .logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    min-width: 40px;
}

.logo span {
    opacity: 0;
    white-space: nowrap;
    transition: var(--transition);
}

.sidebar:hover .logo span,
.sidebar:hover .nav-item span {
    opacity: 1;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.nav-item i {
    font-size: 20px;
    min-width: 20px;
    text-align: center;
}

.nav-item span {
    opacity: 0;
    white-space: nowrap;
    transition: var(--transition);
    font-size: 14px;
}

.nav-item:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
}

.nav-item.active-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* 主内容区 */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: transparent;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

/* 顶部导航栏 */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* 新版顶部导航栏 - HYPER3D风格 */
.top-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: rgba(10, 10, 15, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.header-left-new {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

.header-logo .logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.trial-badge {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.header-right-new {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.header-icon-btn i {
    font-size: 16px;
}

.btn-label {
    font-weight: 500;
}

.points-badge-new {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.user-menu-new {
    position: relative;
}

.user-avatar-new {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-avatar-new:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
}

.user-avatar-new i {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.language-selector-new {
    position: relative;
}

.lang-btn-new {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-btn-new:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.lang-btn-new i {
    font-size: 12px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 语言选择器 */
.language-selector {
    position: relative;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.lang-btn:hover {
    background: var(--bg-card);
}

/* 用户信息 */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.points-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.user-avatar:hover {
    background: var(--bg-card-hover);
    transform: scale(1.05);
}

.user-avatar i {
    font-size: 24px;
    color: var(--accent-blue);
}

/* 用户下拉菜单 */
.user-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    min-width: 280px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-dropdown-avatar i {
    font-size: 28px;
    color: var(--accent-blue);
}

.user-dropdown-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow: hidden;
}

.user-dropdown-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-email {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.dropdown-item:hover i {
    color: var(--accent-blue);
    transform: translateX(2px);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* 按钮样式 */
.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 12px 28px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* 危险操作按钮（批量删除等） */
.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
}

/* 禁用态统一 */
button:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-block {
    width: 100%;
}

/* 通知消息 */
.notifications {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 500px;
    width: 90%;
}

.notification {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-green);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-error {
    background: #ef4444;
}

.notification-warning {
    background: #f59e0b;
}

.close-notification {
    margin-left: auto;
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.close-notification:hover {
    opacity: 1;
}

/* 页面内容 */
.page-content {
    padding: 40px;
    max-width: 1600px;
    margin: 0 auto;
}

/* 标签页 */
.tabs {
    display: flex;
    gap: 40px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 40px;
}

.tab {
    padding: 12px 0;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    font-size: 16px;
    font-weight: 500;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-blue);
}

/* 上传区域 */
.upload-area {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.upload-area:hover::before,
.upload-area.drag-over::before {
    opacity: 1;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--accent-blue);
    background: var(--bg-card);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.upload-area:hover .upload-icon {
    transform: scale(1.05);
}

.upload-icon i {
    font-size: 40px;
    color: var(--accent-blue);
    transition: var(--transition);
}

.upload-area:hover .upload-icon i {
    transform: scale(1.1);
}

.upload-text {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.upload-hint {
    color: var(--text-secondary);
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* 选项卡内容 */
.browse-hint {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.browse-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.model-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.model-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-blue);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2);
}

.model-card-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.model-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.model-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.model-card-info {
    padding: 12px;
}

.model-card-title {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.model-card-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal.hide {
    opacity: 1;
    visibility: visible;
    animation: modalBackdropFadeOut 0.3s ease-out forwards;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlide 0.3s ease;
    pointer-events: auto;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}

/* 表单 */
form {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 下拉选项样式 */
.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 12px 16px;
}

.form-group select option:hover,
.form-group select option:checked {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.verification-group {
    display: flex;
    gap: 12px;
}

.verification-group input {
    flex: 1;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--accent-blue);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* 状态标签 */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.status-processing {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
}

.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.status-failed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* 表格 */
.table-container {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--bg-card);
}

th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

td {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

tr:hover td {
    background: var(--bg-card);
}

/* 响应式 */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .sidebar:hover {
        width: 60px;
    }
    
    .logo span,
    .nav-item span {
        display: none;
    }
    
    .main-content {
        margin-left: 60px;
    }
    
    .page-content {
        padding: 20px;
    }
    
    .top-header {
        padding: 15px 20px;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3d4454;
}

/* 表单控件 */
.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--bg-card);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

/* form-control 的下拉选项样式 */
select.form-control option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 12px 16px;
}

select.form-control option:hover,
select.form-control option:checked {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-range {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.form-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.form-range::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 统计卡片 */
.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.stat-card:hover {
    background: var(--bg-tertiary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 卡片页脚 */
.card-footer {
    padding: 20px 24px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 16px 16px;
}

/* ===== Toast 通知系统样式 ===== */
.toast-notification {
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.toast-notification:hover {
    transform: translateX(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3) !important;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-content i {
    font-size: 20px;
    opacity: 0.9;
}

.toast-content span {
    flex: 1;
    line-height: 1.5;
}

/* Toast 动画 */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* 支持多个通知堆叠显示 */
.toast-notification:nth-child(n+2) {
    margin-top: 10px;
}

/* 空状态占位符 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 40px;
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.empty-state-icon i {
    font-size: 48px;
    color: var(--text-secondary);
    opacity: 0.6;
}

.empty-state-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.empty-state-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 400px;
}

.empty-state-btn {
    padding: 12px 28px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.empty-state-btn:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.empty-state-btn i {
    font-size: 16px;
}

/* 分类标签切换动画 */
.category-tab {
    position: relative;
    overflow: hidden;
}

.category-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-tab:active::before {
    opacity: 1;
}

/* Gallery Section 切换动画 */
.gallery-section {
    animation: sectionFadeIn 0.4s ease;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 现代化登录/注册弹窗样式 ===== */
.modern-auth-modal {
    max-width: 420px;
    width: 420px;
    padding: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    position: fixed;
    right: 20px;
    top: 20px;
    max-height: calc(100vh - 40px);
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal-close-modern {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: rgba(255, 255, 255, 0.5);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close-modern:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: rotate(90deg);
}

/* 认证头部 */
.auth-header {
    text-align: center;
    padding: 48px 40px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    padding: 12px;
}

.auth-logo .logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.auth-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* 认证表单 */
.auth-form {
    padding: 32px 40px 40px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
}

/* 自定义滚动条样式 */
.auth-form::-webkit-scrollbar {
    width: 6px;
}

.auth-form::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.auth-form::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.auth-form::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.form-group-modern {
    margin-bottom: 20px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.form-label-modern {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.label-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.form-input-modern {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.2s ease;
    -webkit-text-fill-color: #ffffff;
}

.form-input-modern::placeholder {
    color: rgba(255, 255, 255, 0.4);
    /* make placeholder dimmer */
    opacity: var(--placeholder-opacity, 0.45);
}

.form-input-modern:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    color: #ffffff;
}

/* 确保自动填充时的样式 */
.form-input-modern:-webkit-autofill,
.form-input-modern:-webkit-autofill:hover,
.form-input-modern:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.08) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.verification-group-modern {
    display: flex;
    gap: 10px;
}

.verification-group-modern .form-input-modern {
    flex: 1;
}

.btn-send-code {
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-send-code:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.btn-send-code:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-footer-links {
    text-align: right;
    margin-bottom: 24px;
}

.link-forgot {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-forgot:hover {
    color: #667eea;
}

.btn-primary-modern {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.5);
}

.btn-primary-modern:active {
    transform: translateY(0);
}

/* 分隔线 */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 28px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    position: relative;
    display: inline-block;
    padding: 0 16px;
    background: #1a1f2e;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    font-weight: 500;
}

/* 第三方登录按钮 */
.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-google {
    background: white;
    color: #1f1f1f;
}

.btn-google:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-github {
    background: #24292e;
    color: white;
    border-color: #444d56;
}

.btn-github:hover {
    background: #2f363d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-social i {
    font-size: 18px;
}

/* 登录/注册切换 */
.auth-switch {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.auth-switch a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    margin-left: 6px;
    transition: color 0.2s ease;
}

.auth-switch a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* 复选框组 */
.checkbox-group-modern {
    margin-bottom: 24px;
}

.checkbox-label-modern {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label-modern input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.checkbox-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.checkbox-text a {
    color: #667eea;
    text-decoration: none;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 640px) {
    .modern-auth-modal {
        width: calc(100% - 40px);
        max-width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
    
    .auth-header {
        padding: 32px 24px 24px;
    }
    
    .auth-form {
        padding: 24px;
    }
    
    .verification-group-modern {
        flex-direction: column;
    }
    
    .btn-send-code {
        width: 100%;
    }
}

/* 弹窗动画优化 - 从右侧滑入 */
.modal.show .modern-auth-modal {
    animation: modalSlideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.hide .modern-auth-modal {
    animation: modalSlideOutRight 0.3s cubic-bezier(0.4, 0, 1, 1);
}

@keyframes modalSlideInRight {
    from {
        opacity: 0;
        transform: translateX(calc(100% + 20px));
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes modalSlideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(calc(100% + 20px));
    }
}

@keyframes modalBackdropFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

