:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-hover: #334155;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 新的卡片样式 */
.new-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
}

.new-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
}

.new-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.new-card-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.new-card-body {
    padding: 0.5rem 0;
    max-height: 500px;
    overflow-y: auto;
}

.new-card-body > div {
    transition: all 0.2s ease;
    background: transparent;
    border-radius: 0.5rem;
    margin: 0.25rem 0.5rem;
}

.new-card-body > div:hover {
    background: rgba(51, 65, 85, 0.6) !important;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.divide-y > * + * {
    border-top: 1px solid rgba(30, 41, 59, 0.5);
}

/* 选手列表项 */
.contestant-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
}

.contestant-item:hover {
    background: rgba(51, 65, 85, 0.3);
}

.contestant-item.active {
    background: rgba(99, 102, 241, 0.1);
    border-left: 3px solid #6366f1;
}

.contestant-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.contestant-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

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

.contestant-number {
    font-size: 0.75rem;
    color: #6366f1;
    font-weight: 600;
}

.contestant-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    margin-top: 0.125rem;
}

.contestant-dept {
    font-size: 0.75rem;
    color: #64748b;
}

.contestant-active-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.contestant-score-info {
    text-align: right;
}

.contestant-score-count {
    font-size: 0.75rem;
    color: #64748b;
}

.contestant-score {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6366f1;
    margin-top: 0.125rem;
}

/* 当前选手预览 */
.current-contestant-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
}

.current-contestant-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.current-contestant-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.current-contestant-label {
    font-size: 0.75rem;
    color: #64748b;
}

.current-contestant-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
}

.current-contestant-detail {
    font-size: 0.875rem;
    color: #64748b;
}

.current-round-info {
    text-align: right;
    margin-left: auto;
}

.current-round-label {
    font-size: 0.75rem;
    color: #64748b;
}

.current-round-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

/* 显示模式网格 */
.display-mode-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .display-mode-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
    }
}

.display-mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #94a3b8;
    font-size: 0.75rem;
}

.display-mode-btn:hover {
    background: rgba(51, 65, 85, 0.5);
    color: white;
}

.display-mode-btn.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    color: white;
}

.display-mode-btn.waiting.active {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
}

.display-mode-btn.scoring.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
}

.display-mode-btn.result.active {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}

.display-mode-btn.final.active {
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
}

.display-mode-btn.contestant-final.active {
    background: rgba(6, 182, 212, 0.2);
    border-color: #06b6d4;
}

/* 轮次选择器 */
.round-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.round-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    color: #94a3b8;
}

.round-btn:hover {
    background: rgba(51, 65, 85, 0.5);
    color: white;
}

.round-btn.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    color: white;
}

.round-btn.inactive {
    opacity: 0.6;
}

.round-dot {
    font-size: 0.625rem;
}

.active-dot {
    color: #10b981;
}

.inactive-dot {
    color: #64748b;
}

/* 控制操作按钮 */
.control-actions {
    display: flex;
    gap: 0.75rem;
}

.lock-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
    color: #10b981;
}

.lock-btn:hover {
    background: rgba(16, 185, 129, 0.2);
}

.lock-btn.locked {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.lock-btn.unlocked {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.reset-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ef4444;
}

.reset-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* 评分进度卡片 */
.score-progress-card {
    padding: 1.25rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
}

.score-progress-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
}

.score-progress-bar-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.score-progress-bar {
    flex: 1;
    height: 0.5rem;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 9999px;
    overflow: hidden;
}

.score-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 9999px;
    transition: width 0.5s ease;
}

.score-progress-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    min-width: 3rem;
    text-align: right;
}

.judge-scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
}

.judge-score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 0.5rem;
}

.judge-score-item.submitted {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.judge-score-item.pending {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(51, 65, 85, 0.5);
}

.judge-number {
    font-size: 0.75rem;
    color: #64748b;
}

.judge-score-value {
    font-size: 1rem;
    font-weight: 600;
}

.submitted-value {
    color: #10b981;
}

.pending-value {
    color: #64748b;
}

/* 主题预览 */
.theme-preview-item {
    cursor: pointer;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.theme-preview-item:hover {
    border-color: rgba(99, 102, 241, 0.5);
}

.theme-preview-item.selected {
    border-color: #6366f1;
}

.theme-preview-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.theme-preview-label {
    text-align: center;
    padding: 0.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
    background: rgba(30, 41, 59, 0.5);
}

/* 导航栏 */
.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-logo {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
}

.navbar-title {
    font-weight: bold;
    font-size: 1.125rem;
    color: var(--text);
}

.navbar-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.navbar-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.navbar-link:hover {
    color: var(--text);
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--surface-hover);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover:not(:disabled) {
    background: #d97706;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* 卡片 */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.2s;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
}

.card-description {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* 表单 */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text);
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* 徽章 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    white-space: nowrap;
}

.badge-primary {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-secondary {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

/* 模态框 */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text);
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Toast 提示 */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    min-width: 250px;
}

.toast-success {
    border-color: var(--success);
}

.toast-error {
    border-color: var(--danger);
}

.toast svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.toast-success svg {
    color: var(--success);
}

.toast-error svg {
    color: var(--danger);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.empty-state svg {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    opacity: 0.3;
}

/* 加载状态 */
.loading {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* 头像 */
.avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--surface-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

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

.avatar svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-muted);
}

.avatar-lg {
    width: 5rem;
    height: 5rem;
}

.avatar-lg svg {
    width: 2.5rem;
    height: 2.5rem;
}

/* 网格布局 */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Flex 工具类 */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

/* 间距工具类 */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }

/* 文本工具类 */
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 宽度工具类 */
.w-full { width: 100%; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }

/* 隐藏工具类 */
.hidden { display: none; }

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 响应式 */
@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .navbar {
        padding: 0.75rem 1rem;
    }
    
    .navbar-links {
        width: 100%;
        justify-content: center;
    }
    
    .modal-content {
        margin: 0.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Hero 区域 */
.hero {
    text-align: center;
    padding: 4rem 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* 分隔线 */
.divider {
    height: 1px;
    background: var(--border);
    margin: 1.5rem 0;
}

/* 列表项 */
.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.list-item:hover {
    background: var(--surface-hover);
}

/* 标签页 */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
}

/* 可滚动菜单栏 */
.scrollable-menu {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
}

.scrollable-menu::-webkit-scrollbar {
    display: none;
}

.scrollable-menu:active {
    cursor: grabbing;
}

.scrollable-menu .tab,
.scrollable-menu .settings-tab {
    flex-shrink: 0;
}

.tab {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

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

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.settings-tab {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.settings-tab:hover {
    color: var(--text);
}

.settings-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* 进度条 */
.progress {
    width: 100%;
    height: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 9999px;
    transition: width 0.8s ease;
}

/* 数字键盘 */
.numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-width: 320px;
    margin: 0 auto;
}

.numpad-btn {
    padding: 1.25rem;
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

.numpad-btn:hover {
    background: var(--surface-hover);
}

.numpad-btn:active {
    transform: scale(0.95);
}

.numpad-btn.clear {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

.numpad-btn.submit {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    border: none;
}

/* 评分显示 */
.score-display {
    font-size: 4rem;
    font-weight: 800;
    text-align: center;
    padding: 2rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.score-display.submitted {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

/* 主题背景 */
.theme-dark-blue {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
}

.theme-dark-purple {
    background: linear-gradient(135deg, #0f172a 0%, #581c87 50%, #0f172a 100%);
}

.theme-dark-red {
    background: linear-gradient(135deg, #0f172a 0%, #7f1d1d 50%, #0f172a 100%);
}

.theme-dark-gold {
    background: linear-gradient(135deg, #0f172a 0%, #78350f 50%, #0f172a 100%);
}

.theme-dark-green {
    background: linear-gradient(135deg, #0f172a 0%, #064e3b 50%, #0f172a 100%);
}

/* 背景图片 */
.bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* 背景粒子效果 */
.bg-particles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.03;
    }
    50% {
        transform: translateY(-20px);
        opacity: 0.06;
    }
}

/* 排名项 */
.rank-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.rank-item:nth-child(1) {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1));
    border-color: rgba(251, 191, 36, 0.3);
}

.rank-item:nth-child(2) {
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.2), rgba(100, 116, 139, 0.1));
    border-color: rgba(148, 163, 184, 0.3);
}

.rank-item:nth-child(3) {
    background: linear-gradient(90deg, rgba(251, 146, 60, 0.2), rgba(234, 88, 12, 0.1));
    border-color: rgba(251, 146, 60, 0.3);
}

.rank-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 2rem;
    text-align: center;
}

.rank-medal {
    font-size: 2rem;
}

.rank-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
}

/* 评分网格 */
.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
}

.score-item {
    text-align: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
}

/* 轮次得分标签 */
.round-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
}

.round-name {
    color: var(--text-muted);
}

.round-value {
    color: var(--text);
    font-weight: 600;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border);
}

/* 隐藏滚动条但保持滚动功能 */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* 选择框样式 */
select.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* 复选框样式 */
input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

/* 单选框样式 */
input[type="radio"] {
    width: 1rem;
    height: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

input[type="radio"]:checked {
    background: var(--primary);
    border-color: var(--primary);
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

/* Range 滑块样式 */
input[type="range"] {
    width: 100%;
    height: 0.5rem;
    background: var(--surface);
    border-radius: 9999px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

input[type="range"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
