/* ========== 反馈中心 · 暗黑主题 ========== */
/* 设计语言：深渊映照，冷刃无声 */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --bg-input: #0e0e16;
    --bg-navbar: #0d0d14;

    --text-primary: #e8e8ec;
    --text-secondary: #8888a0;
    --text-muted: #555570;

    --accent: #e94560;
    --accent-hover: #ff5a75;
    --accent-soft: rgba(233, 69, 96, 0.15);

    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;

    --border: #1e1e2e;
    --border-light: #2a2a3a;

    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;

    --shadow: 0 2px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);

    --font-body: 'KaiTi', '楷体', 'STKaiti', serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --font-ui: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;

    --transition: 0.2s ease;
}

/* ========== 全局重置 ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

/* ========== 滚动条 ========== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ========== 导航栏 ========== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-navbar);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 1px;
}

.brand-icon {
    color: var(--accent);
    font-size: 22px;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    font-size: 14px;
    font-family: var(--font-ui);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: var(--accent-soft);
}

.admin-link {
    color: var(--accent) !important;
}

.nav-user {
    display: flex;
    align-items: center;
}

.login-btn {
    padding: 8px 20px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font-ui);
    transition: all var(--transition);
}

.login-btn:hover {
    background: var(--accent-hover);
    color: white;
}

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--border-light);
    padding: 4px 12px 4px 4px;
    border-radius: 20px;
    cursor: pointer;
    color: var(--text-primary);
    transition: all var(--transition);
}

.user-btn:hover {
    border-color: var(--accent);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    font-family: var(--font-ui);
}

.user-name {
    font-size: 13px;
    font-family: var(--font-ui);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-badge {
    background: var(--accent);
    color: white;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    font-family: var(--font-ui);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.user-dropdown.show {
    display: block;
    animation: fadeIn 0.15s ease;
}

.dropdown-info {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.dropdown-email {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    font-family: var(--font-ui);
    transition: background var(--transition);
}

.dropdown-item:hover {
    background: var(--accent-soft);
}

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

/* ========== 主内容区 ========== */
.main-content {
    min-height: calc(100vh - 56px - 48px);
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

.page-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* ========== 首页 ========== */
.page-header {
    margin-bottom: 24px;
}

.page-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.page-title-row .page-title {
    margin-bottom: 0;
}

/* 搜索栏 */
.search-bar {
    margin-bottom: 12px;
}

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

.search-input {
    flex: 1;
    padding: 10px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-ui);
    outline: none;
    transition: border-color var(--transition);
}

.search-input:focus {
    border-color: var(--accent);
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 6px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-ui);
    cursor: pointer;
    outline: none;
}

.filter-select:focus {
    border-color: var(--accent);
}

.filter-summary {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: var(--font-ui);
}

/* 反馈列表 */
.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feedback-card {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
}

.feedback-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.feedback-card.pinned {
    border-left: 3px solid var(--accent);
}

.card-left {
    padding: 16px 8px;
    display: flex;
    align-items: flex-start;
}

.vote-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vote-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.vote-btn:hover, .vote-btn.voted {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.vote-icon {
    font-size: 12px;
}

.vote-count {
    font-size: 14px;
    font-weight: bold;
    font-family: var(--font-mono);
}

.card-body {
    flex: 1;
    padding: 12px 16px 12px 0;
    min-width: 0;
}

.card-meta-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.feedback-number {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.severity-tag, .category-tag, .status-tag, .pin-tag, .feature-tag, .version-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-family: var(--font-ui);
}

.severity-tag {
    color: white;
}

.category-tag {
    background: var(--accent-soft);
    color: var(--accent);
}

.status-tag {
    font-weight: bold;
}

.pin-tag {
    background: rgba(233,69,96,0.2);
    color: var(--accent);
}

.feature-tag {
    background: rgba(241,196,15,0.15);
    color: #f1c40f;
}

.version-tag {
    background: rgba(52,152,219,0.15);
    color: var(--info);
    font-family: var(--font-mono);
}

.card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
    color: var(--text-primary);
    line-height: 1.4;
}

.card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-ui);
}

.meta-user {
    color: var(--text-secondary);
}

.meta-stats {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

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

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 32px;
}

.page-btn {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: all var(--transition);
}

.page-btn:hover, .page-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.page-dots {
    padding: 8px 6px;
    color: var(--text-muted);
}

/* ========== 认证页面 ========== */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 56px);
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-icon {
    font-size: 36px;
    color: var(--accent);
    display: block;
    margin-bottom: 12px;
}

.auth-header h1 {
    font-size: 24px;
    margin-bottom: 6px;
}

.auth-header p {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: var(--font-ui);
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    padding: 10px;
    background: var(--bg-input);
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: all var(--transition);
}

.tab-btn.active {
    background: var(--accent);
    color: white;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-ui);
}

/* ========== 表单 ========== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-family: var(--font-ui);
}

.required {
    color: var(--danger);
}

.form-input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-ui);
    outline: none;
    transition: border-color var(--transition);
}

.form-input:focus {
    border-color: var(--accent);
}

.form-input:disabled {
    opacity: 0.5;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

.form-check {
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    font-family: var(--font-ui);
}

.form-check label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    accent-color: var(--accent);
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

.form-row .form-group {
    margin-bottom: 16px;
}

.form-row-2 .form-group { flex: 1; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.form-row-3 .form-group { margin-bottom: 16px; }

.form-container {
    max-width: 800px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* ========== 按钮 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
}

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

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

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

.btn-danger:hover {
    background: #c0392b;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 12px;
    padding: 0;
    cursor: pointer;
    font-family: var(--font-ui);
}

.btn-link:hover {
    color: var(--accent-hover);
}

.btn-icon {
    font-size: 16px;
}

/* ========== 上传区域 ========== */
.upload-area {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}

.upload-area:hover, .upload-area.drag-over {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.upload-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.upload-placeholder p {
    font-size: 14px;
    color: var(--text-secondary);
    font-family: var(--font-ui);
}

.upload-hint {
    font-size: 12px !important;
    color: var(--text-muted) !important;
}

.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.preview-item img, .preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-item .preview-type {
    position: absolute;
    bottom: 2px;
    left: 2px;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
    font-family: var(--font-ui);
}

/* ========== 查重提示 ========== */
.duplicate-hint {
    background: rgba(243,156,18,0.1);
    border: 1px solid rgba(243,156,18,0.3);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
}

.hint-header {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    font-family: var(--font-ui);
}

.hint-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hint-item {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: var(--font-ui);
}

.hint-item a {
    color: var(--accent);
}

.hint-actions {
    margin-top: 8px;
}

/* ========== 详情页 ========== */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
}

.detail-main {
    min-width: 0;
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-header {
    margin-bottom: 16px;
}

.detail-number {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.detail-title {
    font-size: 22px;
    margin-bottom: 12px;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-status {
    font-size: 14px;
}

.detail-author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-secondary);
    font-family: var(--font-ui);
}

.author-name {
    color: var(--text-primary);
}

.author-views {
    margin-left: auto;
}

.detail-section {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.detail-section h3 {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-family: var(--font-ui);
}

.detail-description {
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}

.repro-steps {
    background: var(--bg-input);
    padding: 16px;
    border-radius: var(--radius);
    border-left: 3px solid var(--info);
}

/* 状态时间线 */
.status-timeline {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.status-timeline h3 {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-family: var(--font-ui);
}

.timeline {
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 16px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -20px;
    top: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
}

.timeline-content {
    font-size: 13px;
    font-family: var(--font-ui);
}

.timeline-status {
    font-weight: bold;
    color: var(--text-primary);
}

.timeline-comment {
    color: var(--text-secondary);
    margin-left: 8px;
}

.timeline-time {
    color: var(--text-muted);
    margin-left: 8px;
    font-size: 12px;
}

/* 附件 */
.attachment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.att-image {
    cursor: pointer;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 4/3;
    transition: all var(--transition);
}

.att-image:hover {
    border-color: var(--accent);
    transform: scale(1.02);
}

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

.att-video {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.att-video video {
    width: 100%;
    max-height: 300px;
}

.att-name {
    display: block;
    padding: 4px 8px;
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-input);
    font-family: var(--font-ui);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 标签 */
.tag-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag-item {
    padding: 3px 10px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 12px;
    font-size: 12px;
    font-family: var(--font-ui);
}

/* 关联 */
.relation-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.relation-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: var(--font-ui);
}

.relation-type {
    padding: 2px 6px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 4px;
    font-size: 11px;
}

.relation-number {
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.relation-title {
    flex: 1;
    color: var(--text-primary);
}

/* 评论 */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-item {
    padding: 12px;
    background: var(--bg-input);
    border-radius: var(--radius);
    border-left: 3px solid transparent;
}

.comment-item.admin-comment {
    border-left-color: var(--accent);
    background: rgba(233,69,96,0.05);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.comment-author {
    font-size: 13px;
    font-weight: bold;
    font-family: var(--font-ui);
}

.admin-reply-badge {
    background: var(--accent);
    color: white;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: normal;
}

.comment-time {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-ui);
}

.comment-delete {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
}

.comment-delete:hover {
    color: var(--danger);
}

.comment-body {
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.comment-form {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-form .btn {
    align-self: flex-end;
}

.login-prompt {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: var(--text-muted);
    font-family: var(--font-ui);
}

/* 侧边栏 */
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.sidebar-card h4 {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-family: var(--font-ui);
}

/* 投票大按钮 */
.vote-area-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.vote-btn-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 20px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-secondary);
}

.vote-btn-big:hover, .vote-btn-big.voted {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.vote-icon-big {
    font-size: 20px;
}

.vote-count-big {
    font-size: 24px;
    font-weight: bold;
    font-family: var(--font-mono);
}

.vote-label {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-ui);
}

/* 管理员操作 */
.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 信息列表 */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-family: var(--font-ui);
}

.info-item .info-label {
    color: var(--text-muted);
}

.info-item .info-value {
    color: var(--text-primary);
    text-align: right;
}

.detail-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-family: var(--font-ui);
}

.detail-info-row .info-label {
    color: var(--text-muted);
}

.detail-info-row .info-value {
    color: var(--text-secondary);
}

/* ========== 灯箱 ========== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-inner {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-inner img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    z-index: 1001;
}

/* ========== 管理面板 ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-family: var(--font-ui);
}

.stat-pending .stat-value { color: var(--warning); }
.stat-processing .stat-value { color: var(--info); }
.stat-fixed .stat-value { color: var(--success); }
.stat-users .stat-value { color: #9b59b6; }

.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.chart-card h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-family: var(--font-ui);
}

.chart-container {
    min-height: 150px;
}

.empty-chart {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: 40px;
    font-family: var(--font-ui);
}

/* 柱状图 */
.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bar-label {
    width: 50px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
    font-family: var(--font-ui);
}

.bar-track {
    flex: 1;
    height: 20px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.bar-value {
    width: 30px;
    font-size: 13px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* 趋势图 */
.trend-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 120px;
    padding-top: 10px;
}

.trend-bar {
    flex: 1;
    display: flex;
    align-items: flex-end;
    min-width: 4px;
}

.trend-fill {
    width: 100%;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
    min-height: 2px;
    transition: height 0.4s ease;
}

/* 管理标签页 */
.admin-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.admin-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: all var(--transition);
}

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

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

/* 管理表格 */
.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-family: var(--font-ui);
}

.admin-table th, .admin-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    color: var(--text-muted);
    font-weight: normal;
    font-size: 12px;
}

.admin-table tr:hover {
    background: var(--bg-card-hover);
}

.role-tag {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    background: var(--bg-input);
    color: var(--text-secondary);
}

.role-tag.role-admin {
    background: var(--accent-soft);
    color: var(--accent);
}

.ban-tag {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.ban-tag.banned {
    background: rgba(231,76,60,0.15);
    color: var(--danger);
}

.action-cell {
    display: flex;
    gap: 4px;
}

.export-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.export-card h3 {
    margin-bottom: 8px;
}

.export-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-family: var(--font-ui);
}

.admin-toolbar {
    margin-bottom: 12px;
}

.batch-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    font-family: var(--font-ui);
}

/* ========== 弹窗 ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 16px;
    font-family: var(--font-ui);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

/* ========== Toast提示 ========== */
.toast-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font-ui);
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow);
}

.toast.success {
    background: rgba(46,204,113,0.15);
    color: var(--success);
    border: 1px solid rgba(46,204,113,0.3);
}

.toast.error {
    background: rgba(231,76,60,0.15);
    color: var(--danger);
    border: 1px solid rgba(231,76,60,0.3);
}

.toast.info {
    background: rgba(52,152,219,0.15);
    color: var(--info);
    border: 1px solid rgba(52,152,219,0.3);
}

/* ========== 页脚 ========== */
.footer {
    border-top: 1px solid var(--border);
    padding: 12px 20px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-ui);
}

/* ========== 动画 ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

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

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .nav-inner {
        padding: 0 12px;
    }

    .nav-links {
        gap: 0;
    }

    .nav-link {
        padding: 8px 10px;
        font-size: 13px;
    }

    .page-container {
        padding: 16px 12px;
    }

    .page-title {
        font-size: 20px;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        order: -1;
    }

    .vote-area-vertical {
        flex-direction: row;
        gap: 12px;
    }

    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .feedback-card {
        flex-direction: column;
    }

    .card-left {
        padding: 12px 12px 0;
    }

    .card-body {
        padding: 8px 12px 12px;
    }

    .vote-area {
        flex-direction: row;
    }

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

    .charts-row {
        grid-template-columns: 1fr;
    }

    .admin-table {
        font-size: 12px;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select {
        flex: 1;
        min-width: 0;
    }

    .auth-card {
        padding: 24px;
    }

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

    .user-name {
        display: none;
    }
}

@media (max-width: 480px) {
    .page-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .search-form {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .attachment-grid {
        grid-template-columns: 1fr;
    }
}
