@font-face {
    font-family: 'UKIJ Es';
    src: url('ALKATIP.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #0a0e17;
    background: linear-gradient(135deg, #0a0e17 0%, #1a2037 100%);
    min-height: 100vh;
    color: #ffffff;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiIHZpZXdCb3g9IjAgMCA1IDUiPjxwYXRoIGQ9Ik0gNSAwIEwgMCA1IEwgNSA1IEwgMCAwIFoiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzAwYThmZiIgc3Ryb2tlLXdpZHRoPSIwLjUiLz48L3N2Zz4=');
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

/* 登录页面样式 */
.page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.container {
    width: 100%;
    max-width: 500px;
    background: rgba(26, 32, 55, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 功能页面布局 */
.function-page {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* 移动端菜单按钮 */
.menu-toggle-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    background: rgba(26, 32, 55, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.menu-toggle-btn:hover {
    background: rgba(0, 168, 255, 0.2);
    border-color: #00a8ff;
}

/* 右下角菜单按钮（移动端右手操作） */
.menu-toggle-btn-bottom {
    top: auto;
    left: auto;
    bottom: 15px;
    right: 15px;
}

.menu-icon {
    display: block;
}

/* 遮罩层 */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* 左侧菜单栏 */
.sidebar {
    width: 250px;
    background: rgba(26, 32, 55, 0.9);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 999;
    transition: transform 0.3s ease-in-out;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-sidebar-btn {
    display: none;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.3s;
}

.close-sidebar-btn:hover {
    color: #00a8ff;
}

.sidebar-header h2 {
    color: #ffffff;
    font-size: 20px;
    background: linear-gradient(to right, #ffffff, #00a8ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

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

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

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #b8b8b8;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(0, 168, 255, 0.1);
    color: #00a8ff;
}

.nav-item.active {
    background: rgba(0, 168, 255, 0.2);
    color: #00a8ff;
    border-left-color: #00a8ff;
}

.nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    stroke: currentColor;
}

.nav-text {
    font-size: 16px;
    font-weight: 500;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer .user-info {
    margin-bottom: 15px;
    padding: 0;
    border: none;
}

.sidebar-footer .user-info p {
    color: #b8b8b8;
    font-size: 14px;
    margin-bottom: 10px;
}

/* 右侧内容区域 */
.content-area {
    flex: 1;
    margin-left: 250px;
    padding: 30px;
    overflow-y: auto;
}

.content-page {
    display: none;
    max-width: 800px;
}

.content-page.active {
    display: block;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    color: #ffffff;
    font-size: 28px;
    background: linear-gradient(to right, #ffffff, #00a8ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
}

.page-content {
    background: rgba(26, 32, 55, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 统计数据容器样式 */
.stats-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
}

/* 图表容器样式 */
.chart-container {
    height: 400px;
    position: relative;
    width: 100%;
    max-width: 100%;
}

/* 响应式图表容器 */
@media (max-width: 768px) {
    .chart-container {
        height: 300px;
    }
}

/* 异常登录区域 */
.locked-ips-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 85, 85, 0.08);
    border: 1px solid rgba(255, 85, 85, 0.2);
    border-radius: 12px;
}

.locked-ips-section .section-title {
    color: #ff5555;
    font-size: 16px;
    margin: 0 0 15px 0;
}

.stats-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .stats-row {
        flex-wrap: wrap;
    }
    
    .stats-row:first-child {
        flex-direction: row;
    }
    
    .stats-row:first-child .stats-item {
        flex: 1 1 calc(50% - 10px);
    }
    
    .stats-row:last-child {
        flex-direction: row;
    }
    
    .stats-row:last-child .stats-item {
        flex: 1 1 calc(33.333% - 13.333px);
    }
}

@media (max-width: 480px) {
    .stats-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .stats-row .stats-item {
        width: 100%;
        margin-bottom: 0;
        padding: 10px;
    }
    
    .stats-row .stats-item .stats-number {
        font-size: 24px;
    }
    
    .stats-row .stats-item .stats-label {
        font-size: 12px;
    }
}

.stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.1);
    min-height: 100px;
}

.stats-number {
    font-size: 36px;
    font-weight: bold;
    background: linear-gradient(to right, #ffffff, #00a8ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
    line-height: 1.2;
}

.stats-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.2;
}

.stats-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
    height: 17px;
}

h1 {
    color: #ffffff;
    margin-bottom: 30px;
    text-align: center;
    font-size: 28px;
    background: linear-gradient(to right, #ffffff, #00a8ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #b8b8b8;
    font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(10, 14, 23, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    color: #ffffff;
}

/* 密码输入框包装器 */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
    padding-right: 50px;
}

.password-input-wrapper input[type="password"]::-ms-reveal,
.password-input-wrapper input[type="password"]::-webkit-input-auto-fill-button {
    display: none;
}

/* 密码显示/隐藏按钮 */
.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8b8b8;
    font-size: 18px;
    transition: all 0.3s;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: #00a8ff;
    transform: translateY(-50%) scale(1.1);
}

.password-toggle-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.eye-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="number"]::placeholder {
    color: #666;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: #00a8ff;
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.1);
}

.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    margin-bottom: 20px;
}

.btn.full-width {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #00a8ff 0%, #0066ff 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(108, 117, 125, 0.8);
    color: white;
    width: auto;
    padding: 8px 20px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(90, 98, 104, 0.9);
}

/* 退款管理模式切换 */
.refund-mode-switch {
    display: flex;
    gap: 20px;
    align-items: center;
}

.refund-mode-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #b8b8b8;
    cursor: pointer;
}

.refund-mode-option input {
    accent-color: #00a8ff;
    cursor: pointer;
    margin: 0;
}

.refund-mode-option span {
    user-select: none;
}

/* 表单操作区样式 */
.token-refresh-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 520px;
    margin: 0 auto;
}

.token-refresh-step {
    padding: 18px 20px;
    background: rgba(10, 14, 23, 0.4);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.token-refresh-step .btn {
    min-width: 100px;
}

.token-refresh-btn-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.token-refresh-btn-row .btn {
    flex: 1;
}

.token-refresh-step-inline .token-refresh-input-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.token-refresh-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #e0e0e0;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.token-refresh-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.token-refresh-input:focus {
    border-color: rgba(0, 168, 255, 0.5);
}

.token-refresh-step .result-area {
    margin-top: 4px;
}

.error-message {
    margin-top: 15px;
    padding: 12px;
    background: rgba(200, 51, 51, 0.2);
    color: #ff6b6b;
    border-radius: 8px;
    display: none;
    text-align: center;
    border: 1px solid rgba(200, 51, 51, 0.3);
}

.error-message.show {
    display: block;
}

.result-area {
    margin-top: 30px;
    padding: 20px;
    background: rgba(10, 14, 23, 0.6);
    border-radius: 8px;
    min-height: 100px;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-area.show {
    display: block;
}

.result-area.success {
    background: rgba(20, 87, 36, 0.2);
    color: #6bcf7f;
    border: 1px solid rgba(20, 87, 36, 0.3);
}

.result-area.error {
    background: rgba(114, 28, 36, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(114, 28, 36, 0.3);
}

.result-area pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin: 0;
    color: inherit;
}

.loading {
    text-align: center;
    color: #00a8ff;
    font-weight: 500;
}

/* 任务状态列表样式 */
.voice-list-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 问答日志样式 */
.qa-log-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qa-log-list-container {
    width: 100%;
    margin-top: 8px;
}

.qa-log-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qa-log-card {
    /* 去掉内层小卡片的背景和边框，仅保留间距，减少左右边距让文字区域更宽 */
    padding: 12px 8px;
    border: none;
    background: transparent;
    box-shadow: none;
}

.qa-log-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    gap: 8px;
    flex-wrap: wrap;
}

.qa-log-time {
    font-family: 'Courier New', monospace;
}

.qa-log-openid {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 168, 255, 0.15);
    border: 1px solid rgba(0, 168, 255, 0.4);
    font-size: 12px;
    color: #00a8ff;
}

.qa-log-item {
    display: flex;
    align-items: flex-start;
    margin-top: 8px;
}

.qa-log-label {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}

.qa-log-question .qa-log-label {
    background: rgba(0, 168, 255, 0.9);
}

.qa-log-answer .qa-log-label {
    background: rgba(76, 175, 80, 0.9);
}

.qa-log-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #e0e0e0;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
    font-family: 'UKIJ Es', sans-serif;
}

/* 维吾尔语文本：右对齐，从右到左排版 */
.qa-log-text-rtl {
    text-align: right;
    direction: rtl;
}

/* 非维吾尔语文本：左对齐，从左到右排版 */
.qa-log-text-ltr {
    text-align: left;
    direction: ltr;
}

.qa-log-content-cell {
    max-width: 700px;
    min-width: 300px;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.6;
    font-family: 'UKIJ Es', sans-serif;
    vertical-align: top;
}

.qa-log-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 6px;
}

.qa-log-pagination .btn {
    min-height: 42px;
    min-width: 100px;
    flex-shrink: 0;
    padding: 10px 22px;
}

.qa-log-page-info {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.qa-log-page-jump {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.qa-log-page-input {
    width: 56px;
    padding: 6px 8px;
    font-size: 14px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
    -moz-appearance: textfield;
}

.qa-log-page-input::-webkit-outer-spin-button,
.qa-log-page-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qa-log-page-input:focus {
    outline: none;
    border-color: rgba(0, 168, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    pointer-events: none; /* 避免遮挡页码输入框等可点击元素 */
}

.excel-table-container {
    width: 100%;
    margin-top: 8px;
    border-radius: 14px;
    overflow: hidden;
    overflow-x: auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.excel-table-container::-webkit-scrollbar {
    height: 6px;
}

.excel-table-container::-webkit-scrollbar-track {
    background: transparent;
}

.excel-table-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.excel-table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.excel-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    border-radius: 14px;
}

.excel-table thead {
    background: rgba(0, 168, 255, 0.1);
}

.excel-table thead tr:first-child th:first-child {
    border-top-left-radius: 14px;
}

.excel-table thead tr:first-child th:last-child {
    border-top-right-radius: 14px;
}

.excel-table th {
    padding: 12px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 600;
    background: rgba(0, 168, 255, 0.15);
}

.excel-table td {
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.02);
}

.excel-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 14px;
}

.excel-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 14px;
}

.excel-table tbody tr:hover {
    background: rgba(0, 168, 255, 0.05);
}

.excel-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.excel-table tbody tr:nth-child(even):hover {
    background: rgba(0, 168, 255, 0.08);
}

/* 文章列表封面预览图 */
.article-cover-preview {
    display: block;
    max-width: 80px;
    max-height: 50px;
    object-fit: cover;
    border-radius: 4px;
    cursor: default;
}

/* 文章编辑弹窗：封面上传与预览并排，预览在右侧 */
.article-cover-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.article-cover-upload {
    flex-shrink: 0;
}
.article-cover-preview-wrap {
    flex-shrink: 0;
}
.article-cover-preview-wrap .article-cover-preview {
    width: 80px;
    height: 80px;
    max-width: 80px;
    max-height: 80px;
    min-width: 80px;
    min-height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

/* 通知管理表格：内容列加宽，减少换行、降低行高，标题和内容使用 UKIJ Es 字体 */
.notification-table .notification-table-body-th,
.notification-table .notification-body-cell {
    min-width: 420px;
    max-width: 52%;
    word-break: break-all;
}
.notification-table .notification-title-cell,
.notification-table .notification-body-cell {
    font-family: 'UKIJ Es', sans-serif;
}

/* 通知编辑弹窗：标题和内容输入框使用 UKIJ Es 字体 */
#notificationTitle,
#notificationBody {
    font-family: 'UKIJ Es', sans-serif;
}

/* 文章管理表格：标题列宽度适中，自动换行显示不截断，标题和标签使用 UKIJ Es 字体 */
.article-table .article-table-title-th,
.article-table .article-table-title-cell {
    min-width: 200px;
    max-width: 28%;
    word-break: break-all;
    white-space: normal;
}
.article-table .article-table-title-cell,
.article-table .article-table-tag-cell {
    font-family: 'UKIJ Es', sans-serif;
}
/* 文章列表标题按对齐方式显示（与编辑时一致） */
.article-table .article-table-title-cell.article-title-left {
    text-align: left;
    direction: ltr;
}
.article-table .article-table-title-cell.article-title-rtl {
    text-align: right;
    direction: rtl;
}
/* 文章列表标签列按对齐方式显示 */
.article-table .article-table-tag-cell.article-title-left {
    text-align: left;
    direction: ltr;
}
.article-table .article-table-tag-cell.article-title-rtl {
    text-align: right;
    direction: rtl;
}

.feedback-table .feedback-table-content-th,

.feedback-table .feedback-content-cell {
    min-width: 200px;
    max-width: 52%;
    font-family: 'UKIJ Es', sans-serif;
}

.feedback-image-link {
    max-width: 80px;
    max-height: 80px;
    border-radius: 6px;
    cursor: pointer;
    object-fit: cover;
    transition: transform 0.2s;
}
.feedback-image-link:hover {
    transform: scale(1.1);
}

/* 图片预览弹窗 */
.image-preview-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
}
.image-preview-modal .image-preview-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-preview-modal .image-preview-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}
.image-preview-modal .modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}
.image-preview-modal .modal-close:hover {
    color: #00a8ff;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #b8b8b8;
    font-size: 16px;
}

/* 状态徽章样式 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-badge.status-normal {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.3);
}

.status-badge.status-abnormal {
    color: #f44336;
    background: rgba(244, 67, 54, 0.15);
    border-color: rgba(244, 67, 54, 0.3);
}

.status-badge.status-warning {
    color: #ff9800;
    background: rgba(255, 152, 0, 0.15);
    border-color: rgba(255, 152, 0, 0.3);
}

/* 音频播放器样式 */
.audio-cell {
    text-align: center;
    vertical-align: middle;
    padding: 10px 12px;
}

.audio-play-btn {
    width: 36px;
    height: 36px;
    background: rgba(0, 168, 255, 0.2);
    border: 1px solid rgba(0, 168, 255, 0.4);
    border-radius: 50%;
    color: #00a8ff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
    margin: 0 auto;
}

.audio-play-btn:hover {
    background: rgba(0, 168, 255, 0.3);
    border-color: #00a8ff;
    transform: scale(1.1);
}

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

/* 音频图标通用样式 */
.audio-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    stroke: #00a8ff;
    stroke-width: 1.5;
}

/* 加载动画 */
.loading-spinner {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .menu-toggle-btn {
        display: flex;
    }
    
    /* 当侧边栏打开时隐藏所有菜单按钮 */
    .function-page:has(.sidebar.open) .menu-toggle-btn {
        display: none;
    }
    
    .close-sidebar-btn {
        display: block;
    }
    
    .stats-container {
        flex-direction: row;
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .stats-number {
        font-size: 28px;
    }
    
    .stats-label {
        font-size: 12px;
    }
    
    .sidebar {
        width: 250px;
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .content-area {
        margin-left: 0;
        padding: 20px;
        padding-top: 70px;
    }
    
    .nav-text {
        font-size: 14px;
    }
    
    .excel-table {
        font-size: 12px;
    }
    
    .excel-table th,
    .excel-table td {
        padding: 8px;
    }

    .qa-log-card {
        padding: 14px 12px;
    }

    .qa-log-text {
        font-size: 13px;
    }
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    align-items: flex-start;
    justify-content: center;
}

.modal-content {
    background-color: rgba(26, 32, 55, 0.95);
    margin: auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-content-wide {
    max-width: 900px;
}

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

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

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover,
.modal-close:focus {
    color: #ffffff;
}

.modal-body {
    padding: 24px;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-weight: 500;
    font-size: 14px;
}

.modal-body .form-group input,
.modal-body .form-group textarea,
.modal-body .form-group select {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    transition: border-color 0.2s, background-color 0.2s;
}

.modal-body .form-group select {
    cursor: pointer;
    appearance: auto;
}

.modal-body .form-group select option {
    background: #1a2037;
    color: #fff;
}

.modal-body .form-group input:focus,
.modal-body .form-group textarea:focus {
    outline: none;
    border-color: #00a8ff;
    background: rgba(255, 255, 255, 0.08);
}

.modal-body .form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.modal-body .form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.modal-body .form-row .form-group {
    flex: 1;
    min-width: 200px;
}

.article-editor-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.article-editor-toolbar .btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* 文章编辑弹窗：标题、标签输入框使用 UKIJ Es 字体 */
#articleTitle,
#articleTag {
    font-family: 'UKIJ Es', sans-serif;
}

.article-content-editor {
    min-height: 200px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.6;
    overflow-y: auto;
    outline: none;
    font-family: 'UKIJ Es', sans-serif;
}

.article-content-editor:empty::before {
    content: attr(data-placeholder);
    color: #888;
}

.article-content-editor p {
    margin: 0 0 10px 0;
}

.article-content-editor img {
    max-width: 100%;
    height: auto;
}

.article-content-editor video {
    max-width: 100%;
}

/* 文章标题/正文字数统计 */
.article-char-count {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #888;
}
.article-char-count.over-limit {
    color: #e74c3c;
}

.modal-body .form-group small {
    display: block;
    margin-top: 4px;
    color: #999;
    font-size: 12px;
}

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

.modal-footer .btn {
    min-width: 80px;
}

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

.page-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 20px;
    /* 高度由标题和按钮内容自然撑开，不再强制 48px */
}

.page-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.page-header > .btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 20px;
    font-size: 15px;
    line-height: 1.4;
}

/* 通知管理页、API密钥页：标题与内容之间留更大间距 */
#notificationPage .page-header,
#apiKeyPage .page-header {
    margin-bottom: 32px;
}

/* 文章管理页：新增文章按钮与底部内容间距增加 20px */
#articlePage .page-header {
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .page-header h1 {
        font-size: 20px;
    }
}

/* API密钥管理 */
.apikey-cell {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    word-break: break-all;
    max-width: 220px;
}

.status-active {
    color: #28a745;
    font-weight: bold;
}

.status-disabled {
    color: #dc3545;
    font-weight: bold;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
    border: 1px solid #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* 文章编辑器：图片/视频占位符 */
.media-placeholder {
    display: inline-block;
    background: rgba(0, 168, 255, 0.1);
    border: 1px dashed rgba(0, 168, 255, 0.4);
    border-radius: 4px;
    padding: 2px 8px;
    margin: 2px 0;
    font-size: 13px;
    color: #00a8ff;
    font-family: 'Courier New', monospace;
    user-select: all;
    cursor: pointer;
    white-space: nowrap;
}

.media-placeholder:hover {
    background: rgba(0, 168, 255, 0.2);
    border-color: #00a8ff;
}

.media-placeholder[data-type="image"]::before {
    content: '🖼️ ';
}

.media-placeholder[data-type="video"]::before {
    content: '🎬 ';
}

/* 文章内容预览弹窗 */
.content-preview-modal .modal-content {
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.content-preview-body {
    flex: 1;
    overflow-y: auto;
    max-height: 70vh;
}

.content-preview-area {
    padding: 16px;
    color: #e0e0e0;
    font-size: 15px;
    line-height: 1.8;
    font-family: 'UKIJ Es', sans-serif;
}

.content-preview-area img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 8px 0;
}

.content-preview-area video {
    max-width: 100%;
    border-radius: 6px;
    margin: 8px 0;
}

.content-preview-area hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 16px 0;
}

/* 服务管理页面样式 */
.service-management-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: rgba(10, 14, 23, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.service-card:hover {
    border-color: rgba(0, 168, 255, 0.3);
    background: rgba(10, 14, 23, 0.6);
}

.service-info h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 8px;
}

.service-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.5;
}

.service-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.service-status {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    min-width: 60px;
    text-align: center;
}

.service-status.running {
    color: #4caf50;
}

.service-status.stopped {
    color: #f44336;
}

/* 开关样式 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #00a8ff 0%, #0066ff 100%);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 1px rgba(0, 168, 255, 0.5);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.service-note {
    padding: 16px;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.service-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.service-actions .btn {
    min-width: 120px;
}

.service-note p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .service-card {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

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

