* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1890ff;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --error-color: #ff4d4f;
    --text-color: #333;
    --text-secondary: #666;
    --border-color: #e8e8e8;
    --bg-color: #f0f2f5;
    --white: #fff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --sidebar-bg: #001529;
    --sidebar-text: rgba(255, 255, 255, 0.65);
    --sidebar-text-hover: #fff;
    --sidebar-active: #1890ff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
        'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ================= 容器布局 ================= */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ================= 按钮样式 ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    background-color: var(--primary-color);
    color: var(--white);
}

.btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-success {
    background-color: var(--success-color);
}

.btn-warning {
    background-color: var(--warning-color);
}

.btn-danger {
    background-color: var(--error-color);
}

.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.btn-code {
    width: 20%;
}

.btn-secondary {
    background-color: var(--text-secondary);
}

.link {
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
}

.link:hover {
    text-decoration: underline;
}

.login-footer {
    margin-top: 20px;
    text-align: center;
    color: #666;
}

/* ================= 输入框样式 ================= */
.input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    width: 100%;
}

.input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.input-lg {
    padding: 12px 16px;
    font-size: 16px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group .input {
    flex: 1;
}

.input-group .btn {
    white-space: nowrap;
}

select.input {
    cursor: pointer;
    background-color: var(--white);
}


/* ================= 卡片样式 ================= */
.card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ================= 表格样式 ================= */
.table-container {
    overflow-x: auto;
    margin-top: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--white);
    position: relative;
}

.table-scroll-hint {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
    color: #999;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 5;
}

.table-scroll-hint::before {
    content: "↔️ ";
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.table th,
.table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.table th {
    background-color: #fafafa;
    font-weight: 600;
    color: var(--text-color);
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
}

/* 固定列宽 */
.table th:nth-child(1),
.table td:nth-child(1) {
    width: 40px;
    text-align: center;
}

.table th:nth-child(2),
.table td:nth-child(2) {
    width: 80px;
    text-align: center;
}

.table th:nth-child(3),
.table td:nth-child(3) {
    width: 80px;
    text-align: center;
}

.table th:nth-child(4),
.table td:nth-child(4) {
    min-width: 200px;
    max-width: 300px;
}

.table th:nth-child(5),
.table td:nth-child(5) {
    width: 100px;
}

.table th:nth-child(6),
.table td:nth-child(6) {
    width: 80px;
    text-align: center;
}

.table th:nth-child(7),
.table td:nth-child(7) {
    width: 80px;
    text-align: center;
}

.table th:nth-child(8),
.table td:nth-child(8) {
    width: 150px;
    text-align: center;
}

.table th:nth-child(9),
.table td:nth-child(9) {
    width: 150px;
    text-align: center;
}

/* 内容溢出处理 */
.table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 标题列允许换行 */
.table td:nth-child(4) {
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
}

/* 表格行悬停效果 */
.table tbody tr:hover {
    background-color: #f5f5f5;
}

/* ================= 图片样式 ================= */
.img-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.img-thumbnail:hover {
    transform: scale(1.1);
}

.img-placeholder {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 4px;
    font-size: 24px;
    color: #999;
}

/* ================= 操作按钮样式 ================= */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 4px 12px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.action-btn-view {
    background-color: var(--primary-color);
    color: white;
}

.action-btn-view:hover {
    background-color: #40a9ff;
    transform: translateY(-1px);
}

.action-btn-delete {
    background-color: var(--error-color);
    color: white;
}

.action-btn-delete:hover {
    background-color: #ff7875;
    transform: translateY(-1px);
}

/* ================= 分页样式 ================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: var(--white);
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
    min-width: 36px;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.page-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-ellipsis {
    padding: 6px 4px;
    color: var(--text-secondary);
}

.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-label {
    font-size: 14px;
    color: var(--text-color);
    white-space: nowrap;
}

.pagination-select {
    width: auto;
    min-width: 80px;
}

.pagination-input {
    text-align: center;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ================= 通知消息样式 ================= */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: var(--white);
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s;
    box-shadow: var(--shadow);
    max-width: 400px;
    word-break: break-word;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-info {
    background-color: var(--primary-color);
}

.notification-success {
    background-color: var(--success-color);
}

.notification-warning {
    background-color: var(--warning-color);
}

.notification-error {
    background-color: var(--error-color);
}

/* ================= 模态框样式 ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-overlay.hide {
    opacity: 0;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: sticky;
    top: 10px;
    right: 10px;
    float: right;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px;
    clear: both;
}

/* ================= 加载动画 ================= */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-lg {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ================= 徽章样式 ================= */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background-color: #f6ffed;
    color: var(--success-color);
    border: 1px solid #b7eb8f;
}

.badge-warning {
    background-color: #fffbe6;
    color: var(--warning-color);
    border: 1px solid #ffe58f;
}

.badge-error {
    background-color: #fff1f0;
    color: var(--error-color);
    border: 1px solid #ffccc7;
}

.badge-info {
    background-color: #e6f7ff;
    color: var(--primary-color);
    border: 1px solid #91d5ff;
}

/* ================= 空状态样式 ================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 16px;
    margin-bottom: 8px;
}

.empty-state-hint {
    font-size: 12px;
    color: #999;
}

/* ================= 搜索表单样式 ================= */
.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.search-toggle {
    display: none;
    width: 100%;
    margin-bottom: 10px;
}

.search-toggle-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #40a9ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.search-toggle-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.search-toggle-btn:hover::before {
    transform: scaleX(1);
}

.search-toggle-btn:active {
    transform: translateY(0);
}

.search-toggle-icon {
    transition: transform 0.3s;
}

.search-toggle-icon.expanded {
    transform: rotate(180deg);
}

.search-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
}

.search-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 0 0 auto;
}

.search-form .input {
    min-width: 120px;
    flex: 0 0 auto;
    width: auto;
}

.search-form select.input {
    width: 150px;
}

.search-form input[type="text"].input {
    width: 200px;
}

.search-form input[type="date"].input {
    width: 150px;
}

.search-form .btn {
    flex: 0 0 auto;
}

/* ================= 状态指示器 ================= */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-indicator.running {
    background-color: var(--success-color);
    animation: pulse 1.5s ease-in-out infinite;
}

.status-indicator.stopped {
    background-color: var(--error-color);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ================= 登录页面样式 ================= */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
    font-size: 28px;
    font-weight: 600;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ================= 主布局样式 ================= */
.main-layout {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: 250px;
    background: var(--sidebar-bg);
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    transition: width 0.3s;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.3s;
    margin-bottom: 4px;
    cursor: pointer;
}

.nav-item:hover {
    color: var(--sidebar-text-hover);
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    background: var(--sidebar-active);
    color: var(--sidebar-text-hover);
}

.nav-icon {
    margin-right: 12px;
    font-size: 18px;
    min-width: 20px;
    text-align: center;
}

.nav-text {
    font-size: 14px;
    white-space: nowrap;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 主内容区域 */
.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.3s;
    min-width: 0;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.main-header h1 {
    font-size: 24px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.status-badge {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--white);
    border-radius: 20px;
    font-size: 14px;
    box-shadow: var(--shadow);
}

/* 页面内容动画 */
.page-content {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 表格头部 */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.table-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.table-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 标题链接 */
.title-link {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.title-link:hover {
    color: #40a9ff;
    text-decoration: underline;
}

/* 详情模态框样式 */
.detail-modal {
    padding: 10px;
}

.detail-modal h2 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 24px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.detail-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-row .label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-row .value {
    font-size: 14px;
    color: var(--text-color);
    word-break: break-all;
}

.detail-introduce {
    margin-bottom: 20px;
}

.detail-introduce h4 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.detail-introduce p {
    color: var(--text-color);
    line-height: 1.8;
    white-space: pre-wrap;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.detail-images h4 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.image-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.image-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

/* 统计面板样式 */
.statistics-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    text-align: center;
    color: var(--white);
    transition: transform 0.3s;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* 图表容器 */
.chart-container {
    min-height: 300px;
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
}

/* 柱状图 */
.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bar-label {
    min-width: 100px;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.bar-wrapper {
    flex: 1;
    background: #f5f5f5;
    border-radius: 4px;
    height: 30px;
    overflow: hidden;
    position: relative;
}

.bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #40a9ff);
    border-radius: 4px;
    transition: width 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    color: white;
    font-size: 12px;
    font-weight: 500;
}

.bar-value {
    min-width: 50px;
    text-align: right;
    font-weight: 600;
    color: var(--text-color);
}

/* 爬虫监控面板 */
.status-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.status-item {
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.status-item.status-running {
    background: #f6ffed;
    border: 2px solid #b7eb8f;
}

.status-item.status-stopped {
    background: #fff1f0;
    border: 2px solid #ffccc7;
}

.status-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.status-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
}

.control-panel {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.log-container {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 8px;
    height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', 'Monaco', monospace;
    font-size: 12px;
    line-height: 1.5;
}

.log-container::-webkit-scrollbar {
    width: 8px;
}

.log-container::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.log-container::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.log-container::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* 权限管理样式 */
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f5f5f5;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.permission-item:hover {
    background: #e8e8e8;
    transform: translateX(5px);
}

.permission-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.permission-item span {
    font-size: 14px;
    color: var(--text-color);
    flex: 1;
}

/* 表单样式 */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.form-group label.required::after {
    content: "*";
    color: var(--error-color);
    margin-left: 4px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* 复选框样式 */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* 工具类 */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-danger {
    color: var(--error-color);
    font-weight: 600;
}

.text-success {
    color: var(--success-color);
}

.text-warning {
    color: var(--warning-color);
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.ml-10 {
    margin-left: 10px;
}

.mr-10 {
    margin-right: 10px;
}

.p-20 {
    padding: 20px;
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    box-shadow: var(--shadow);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 侧边栏遮罩 */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.sidebar-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* 卡片式列表布局（手机端） */
.card-list {
    display: none;
    gap: 15px;
}

.card-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #40a9ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-item:hover::before {
    transform: scaleX(1);
}

.card-item:active {
    transform: translateY(-2px) scale(0.98);
}

.card-item-header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.card-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.card-item-image-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.card-item-info {
    flex: 1;
    min-width: 0;
}

.card-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.4;
    
    /* 标准属性 */
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    
    overflow: hidden;
}

.card-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.card-item-tag {
    font-size: 12px;
    padding: 3px 8px;
    background: #f0f7ff;
    color: var(--primary-color);
    border-radius: 4px;
}

.card-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.card-item-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.card-item-actions {
    display: flex;
    gap: 8px;
}

.card-item-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.card-item-wrapper {
    position: relative;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .table th:nth-child(6),
    .table td:nth-child(6),
    .table th:nth-child(7),
    .table td:nth-child(7) {
        display: none;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 260px;
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .sidebar-overlay {
        display: block;
    }
    
    .sidebar-overlay:not(.show) {
        pointer-events: none;
    }
    
    .main-content {
        margin-left: 0;
        padding-top: 60px;
    }
    
    .detail-info {
        grid-template-columns: 1fr;
    }
    
    .statistics-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .table-container {
        display: none;
    }
    
    .card-list {
        display: flex;
        flex-direction: column;
    }
    
    .img-thumbnail,
    .img-placeholder {
        width: 40px;
        height: 40px;
    }
    
    .control-panel {
        flex-wrap: wrap;
    }
    
    .control-panel .btn {
        flex: 1 1 calc(50% - 10px);
        min-width: 140px;
    }
    
    /* 手机端搜索表单 - 在768px以下也生效 */
    .search-toggle {
        display: block;
    }
    
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-inputs {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .search-inputs.expanded {
        display: flex;
    }
    
    .search-buttons {
        display: none;
        width: 100%;
        justify-content: stretch;
        gap: 10px;
    }
    
    .search-buttons.expanded {
        display: flex;
        margin-top: 10px;
    }
    
    .search-form .input,
    .search-form .btn {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
    
    .search-buttons .btn {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
}

@media (max-width: 576px) {
    .sidebar-header h2 {
        font-size: 18px;
    }
    
    .main-content {
        padding: 60px 10px 10px;
    }
    
    .statistics-overview {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .table-actions {
        width: 100%;
    }
    
    .table-actions .btn {
        flex: 1;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .image-grid img {
        height: 100px;
    }
    
    .detail-modal h2 {
        font-size: 18px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .main-header {
        padding-left: 50px;
    }
    
    .main-header h1 {
        font-size: 18px;
    }
    
    .card-item {
        padding: 12px;
    }
    
    .card-item-image,
    .card-item-image-placeholder {
        width: 70px;
        height: 70px;
    }
    
    .card-item-title {
        font-size: 14px;
    }
    
    /* 统计页面手机端优化 */
    .statistics-overview {
        grid-template-columns: 1fr;
    }
    
    /* 监控页面手机端优化 */
    .status-panel {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .control-panel .btn {
        flex: 1 1 100%;
    }
    
    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 图表手机端优化 */
    .bar-chart {
        gap: 10px;
    }
    
    .bar-label {
        min-width: 60px;
        font-size: 12px;
    }
    
    .bar-wrapper {
        height: 24px;
    }
    
    /* 用户页面手机端优化 */
    .users-page .table-container {
        display: none;
    }
    
    .users-page .card-list {
        display: flex !important;
    }
    
    /* 模态框手机端优化 */
    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .detail-modal h2 {
        font-size: 18px;
    }
    
    .permissions-grid {
        grid-template-columns: 1fr;
    }
    
    /* 按钮手机端优化 */
    .btn-lg {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* 通知消息手机端优化 */
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    /* 分页器手机端优化 */
    .pagination-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .pagination-controls {
        width: 100%;
        justify-content: center;
    }
    
    .pagination-buttons {
        width: 100%;
    }
    
    .pagination-input {
        width: 70px;
    }
}

/* ================= 图片画廊样式 ================= */
body.gallery-open {
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 20px;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gallery-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.gallery-prev {
    left: 8px;
}

.gallery-next {
    right: 8px;
}

.gallery-image-container {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.gallery-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #40a9ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.gallery-image-container:hover::before {
    transform: scaleX(1);
}

.gallery-image-container img {
    max-width: 80vw;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.gallery-image-container img:hover {
    cursor: zoom-in;
}

.gallery-counter {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: #f0f7ff;
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* 手机端画廊优化 */
@media (max-width: 768px) {
    .gallery-overlay {
        padding: 15px;
    }
    
    .gallery-close {
        width: 28px;
        height: 28px;
        font-size: 16px;
        top: 6px;
        right: 6px;
        border-radius: 6px;
    }
    
    .gallery-nav {
        display: none; /* 手机端隐藏导航按钮，使用滑动 */
    }
    
    .gallery-image-container {
        padding: 12px;
        border-radius: 10px;
    }
    
    .gallery-image-container img {
        max-width: 90vw;
        max-height: 70vh;
        border-radius: 6px;
    }
    
    .gallery-counter {
        font-size: 11px;
        padding: 3px 10px;
        bottom: 6px;
        border-radius: 4px;
    }
}

/* 打印样式 */
@media print {
    .sidebar,
    .header-actions,
    .search-form,
    .pagination,
    .action-buttons,
    .modal-close {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        padding: 0;
    }
    
    .table-container {
        overflow: visible;
    }
}

/* ================= 进度条样式 ================= */
.progress-bar-wrapper {
    padding: 20px;
}

.progress-bar-container {
    width: 100%;
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #1890ff 0%, #36cfc9 100%);
    border-radius: 15px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-bar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    color: #333;
    font-size: 14px;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
    z-index: 1;
}

/* ================= 统计卡片样式 ================= */
.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-card:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-card:nth-child(5) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.stat-card:nth-child(6) {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.stat-icon {
    font-size: 40px;
    opacity: 0.9;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
}

/* ================= 日志模态框样式 ================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-color);
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s;
}

.close-btn:hover {
    background: #f0f0f0;
    color: var(--text-color);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

.log-content {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 4px;
    font-family: 'Courier New', 'Monaco', monospace;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 600px;
    overflow-y: auto;
}

.log-content::-webkit-scrollbar {
    width: 8px;
}

.log-content::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.log-content::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.log-content::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* ================= 错误状态样式 ================= */
.status-error {
    background: #fff1f0 !important;
    border: 2px solid #ffccc7 !important;
}

.status-error .status-value {
    color: #ff4d4f;
    font-size: 16px;
    word-break: break-all;
}
    
.table {
        min-width: auto;
    }

/* ================= 服务器状态页面样式 ================= */
.server-status-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.status-section {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 20px;
    transition: all 0.3s ease;
}

.status-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.section-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.section-icon {
    font-size: 20px;
}

/* 状态卡片布局 */
.status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.status-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.status-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.status-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.status-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.status-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.status-card-icon {
    font-size: 32px;
    opacity: 0.9;
}

.status-card-content {
    flex: 1;
}

.status-card-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.status-card-value {
    font-size: 18px;
    font-weight: 600;
}

/* 进度条卡片 */
.progress-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

/* 磁盘卡片 */
.disk-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.disk-header {
    margin-bottom: 12px;
}

.disk-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.disk-mountpoint {
    font-weight: 600;
    color: var(--text-color);
}

.disk-fstype {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--white);
    padding: 2px 8px;
    border-radius: 4px;
}

.disk-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.disk-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.disk-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.disk-stat-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

/* 网络卡片 */
.network-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.network-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.network-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.1);
}

.network-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.network-icon {
    font-size: 16px;
}

.network-name {
    font-weight: 600;
    color: var(--text-color);
}

.address-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.address-family {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 80px;
}

.address-value {
    flex: 1;
    font-weight: 500;
    color: var(--text-color);
}

.address-netmask {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 加载动画 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-container .loading {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
}

.loading-container p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* 错误容器 */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: #fff1f0;
    border: 2px solid #ffccc7;
    border-radius: 8px;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.error-container h4 {
    color: var(--error-color);
    margin-bottom: 8px;
    font-size: 18px;
}

.error-container p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 400px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .status-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .network-cards {
        grid-template-columns: 1fr;
    }
    
    .disk-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .server-status-container {
        gap: 16px;
    }
    
    .status-section {
        padding: 16px;
    }
}

@media (max-width: 576px) {
    .status-cards {
        grid-template-columns: 1fr;
    }
    
    .status-card {
        padding: 12px;
    }
    
    .status-card-icon {
        font-size: 24px;
    }
    
    .status-card-value {
        font-size: 16px;
    }
    
    .section-header h4 {
        font-size: 16px;
    }
    
    .disk-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .address-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .address-family {
        min-width: auto;
    }
}

/* ================= 帖子表单样式 ================= */
.post-form {
    max-width: 800px;
    margin: 0 auto;
}

.post-form h2 {
    color: var(--text-color);
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.form-label span {
    color: var(--error-color);
}

.form-actions {
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.image-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.image-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.image-url-input {
    flex: 1;
}

.image-upload-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 编辑按钮样式 */
.action-btn-edit {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn-edit:hover {
    background: #40a9ff;
    transform: translateY(-1px);
}

/* 表单响应式 */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .image-upload-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .table-header button {
        width: 100%;
    }
}
