/**
 * 统计页面样式 - 蜘蛛统计、流量统计、趋势图、排名表格、访问明细
 */

/* ========== 流量统计 / 蜘蛛统计 顶部汇总卡片 ========== */
.spider-stats-summary,
.user-stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.summary-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.summary-content {
    flex: 1;
    min-width: 0;
}

.summary-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
}

.summary-value {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

/* 图例表头 */
.legend-header {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 12px;
    color: #999;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 4px;
}

.legend-name {
    flex: 1;
    font-size: 13px;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.legend-count {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    margin-left: 8px;
    min-width: 36px;
    text-align: right;
}

.legend-percent {
    font-size: 12px;
    color: #888;
    margin-left: 8px;
    min-width: 48px;
    text-align: right;
}

/* 卡片副标题 */
.card-subtitle {
    font-size: 12px;
    color: #999;
    margin-left: 8px;
}

/* 计数徽章 */
.count-badge {
    display: inline-block;
    padding: 2px 10px;
    background: #e6f7ff;
    color: #1890ff;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

/* 状态徽章（成功/失败） */
.status-success {
    background: #f6ffed;
    color: #52c41a;
}

.status-fail {
    background: #fff1f0;
    color: #ff4d4f;
}

/* 详细表格列宽 */
.detail-table .col-num { width: 60px; }
.detail-table .col-source { width: 160px; }
.detail-table .col-url { width: auto; }
.detail-table .col-ip { width: 140px; }
.detail-table .col-status { width: 80px; text-align: center; }
.detail-table .col-time { width: 170px; }


.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
}

/* 管理主页样式 */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.welcome-section h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #333;
}

.welcome-subtitle {
    font-size: 16px;
    color: #666;
    font-weight: normal;
}

.current-time {
    margin: 0;
    font-size: 14px;
    color: #999;
}

.quote-box {
    padding: 12px 20px;
    background: #f5f5f5;
    border-radius: 4px;
    border-left: 3px solid #1890ff;
}

.quote-box p {
    margin: 0;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.view-all {
    font-size: 14px;
    color: #1890ff;
    text-decoration: none;
}

.view-all:hover {
    text-decoration: underline;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #e6f7ff;
    border-color: #1890ff;
    transform: translateY(-2px);
}

.action-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.action-text {
    font-size: 14px;
    color: #666;
}

.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    font-size: 20px;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.activity-time {
    font-size: 12px;
    color: #999;
}

.system-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    color: #999;
}

.info-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.status-ok {
    color: #52c41a;
}

.status-distribution {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.status-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}

.status-active {
    background: #52c41a;
}

.status-inactive {
    background: #ff4d4f;
}

.status-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.status-label {
    color: #666;
}

.status-count {
    color: #333;
    font-weight: 500;
}

/* 域名管理页面样式 */
.domain-overview {
    background: #f0f2f5;
    min-height: 100vh;
    padding: 20px;
}

.overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    background: white;
    padding: 20px 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.overview-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.overview-actions {
    display: flex;
    gap: 12px;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.overview-stat-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 16px;
}

.overview-stat-icon {
    font-size: 32px;
}

.overview-stat-content {
    flex: 1;
}

.overview-stat-value {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.overview-stat-label {
    font-size: 14px;
    color: #666;
}

.recent-domains-section,
.quick-ops-section {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.view-all-link {
    font-size: 14px;
    color: #1890ff;
    text-decoration: none;
}

.view-all-link:hover {
    text-decoration: underline;
}

.simple-data-table {
    width: 100%;
    border-collapse: collapse;
}

.simple-data-table th,
.simple-data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.simple-data-table th {
    background: #fafafa;
    color: #666;
    font-weight: 500;
}

.simple-data-table td a {
    color: #1890ff;
    text-decoration: none;
}

.simple-data-table td a:hover {
    text-decoration: underline;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.status-inactive {
    background: #fff1f0;
    color: #ff4d4f;
    border: 1px solid #ffa39e;
}

.quick-ops-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.quick-op-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-op-btn:hover {
    background: #e6f7ff;
    border-color: #1890ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24,144,255,0.15);
}

.quick-op-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.quick-op-text {
    font-size: 14px;
    color: #666;
}

/* ========== SSL 证书管理 ========== */

/* SSL 状态徽章 */
.ssl-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.ssl-applied {
    background: #d4edda;
    color: #155724;
}

.ssl-expired {
    background: #fff3cd;
    color: #856404;
}

.ssl-error {
    background: #f8d7da;
    color: #721c24;
}

.ssl-none {
    background: #e9ecef;
    color: #6c757d;
}

/* SSL 按钮 */
.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    margin-right: 4px;
    transition: all 0.2s;
}

.btn-sm:hover { opacity: 0.85; }

.btn-info {
    background: #17a2b8;
    color: #fff;
}

.btn-warning {
    background: #ffc107;
    color: #333;
}

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

.ssl-modal-content {
    background: #fff;
    border-radius: 10px;
    width: 500px;
    max-width: 90vw;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.ssl-modal-content.wide {
    width: 700px;
}

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

.ssl-modal-header h3 {
    font-size: 16px;
    margin: 0;
}

.ssl-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.ssl-modal-close:hover { color: #333; }

.ssl-modal-body {
    padding: 20px;
}

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

.ssl-modal-body label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.ssl-modal-body select,
.ssl-modal-body input[type="email"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.ssl-modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.ssl-notice {
    background: #e8f4fd;
    border: 1px solid #b8daff;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 12px;
    color: #004085;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Nginx 配置代码块 */
.ssl-config-code {
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 8px;
    padding: 16px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 400px;
    overflow-y: auto;
}

/* SSL 开关 */
.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

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

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 20px;
}

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

.switch input:checked + .switch-slider {
    background-color: #4a90d9;
}

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

/* ===== 申请 SSL 多选域名列表 ===== */
.ssl-domain-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
}

.ssl-domain-count {
    margin-left: auto;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.ssl-domain-list {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    background: #fff;
}

.ssl-domain-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s, border-color 0.15s;
    user-select: none;
}

.ssl-domain-item:last-child {
    border-bottom: none;
}

.ssl-domain-item:hover {
    background: #f5f7fa;
}

.ssl-domain-item.selected {
    background: #e6f0ff;
    border-left: 3px solid #4a90d9;
    padding-left: 11px;
}

.ssl-domain-item .ssl-domain-name {
    font-size: 13px;
    color: #333;
    flex: 1;
    font-family: 'Monaco', 'Menlo', monospace;
}

.ssl-domain-item .ssl-domain-check {
    width: 18px;
    height: 18px;
    border: 2px solid #d0d0d0;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
    background: #fff;
}

.ssl-domain-item.selected .ssl-domain-check {
    background: #4a90d9;
    border-color: #4a90d9;
    color: #fff;
}

.ssl-domain-item.selected .ssl-domain-check::after {
    content: '✓';
    font-size: 12px;
    font-weight: bold;
}

.ssl-domain-item .ssl-domain-status {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    flex-shrink: 0;
}

.ssl-domain-empty {
    padding: 30px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

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

.modal {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(to right, #f9fafb, #ffffff);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    line-height: 1;
}

.modal-close:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-content h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
}

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

.modal-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

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

/* ==================== 系统日志标签页样式 ==================== */

.log-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px 8px 0 0;
    padding: 0 10px;
}

.log-tab {
    padding: 12px 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.log-tab:hover {
    color: #3b82f6;
}

.log-tab.active {
    color: #10b981;
    border-bottom-color: #10b981;
    font-weight: 500;
}

/* 日志工具栏 */
.log-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.log-toolbar .btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.log-toolbar .btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.log-toolbar .btn-danger {
    color: #dc2626;
    border-color: #fca5a5;
}

.log-toolbar .btn-danger:hover {
    background: #fef2f2;
    border-color: #dc2626;
}

/* 可排序列 */
.sortable {
    cursor: pointer;
    user-select: none;
}

.sortable:hover {
    background: #f9fafb;
}

.sortable::after {
    content: ' ↕';
    color: #9ca3af;
    font-size: 12px;
}

.sortable.sort-asc::after {
    content: ' ↑';
    color: #3b82f6;
}

.sortable.sort-desc::after {
    content: ' ↓';
    color: #3b82f6;
}

/* 日志详情列 */
.log-detail {
    max-width: 500px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log-detail:hover {
    white-space: normal;
    word-break: break-all;
}

/* IP 信息 */
.log-ip-info {
    color: #6b7280;
    font-size: 12px;
}

.log-ip-info .ip-location {
    color: #9ca3af;
}

/* 操作类型徽章 */
.log-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.log-type-badge.type-file {
    background: #dbeafe;
    color: #1d4ed8;
}

.log-type-badge.type-login {
    background: #d1fae5;
    color: #065f46;
}

.log-type-badge.type-error {
    background: #fee2e2;
    color: #991b1b;
}

.log-type-badge.type-security {
    background: #fef3c7;
    color: #92400e;
}

/* 清空日志按钮样式（红色危险按钮） */
/* 清空日志按钮样式（红色危险按钮） */
.tab-nav-danger {
    background: #dc2626 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    margin-left: auto !important;
    margin-right: 10px !important;
    margin-bottom: 0 !important;
    font-weight: 500 !important;
    transition: all 0.2s !important;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2) !important;
}

.tab-nav-danger:hover {
    background: #b91c1c !important;
    color: #fff !important;
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3) !important;
    transform: translateY(-1px) !important;
}

.tab-nav-danger:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2) !important;
}

.tab-nav-danger.active {
    background: #dc2626 !important;
    color: #fff !important;
    border-bottom: none !important;
}

/* ==================== 个人设置标签页面板样式 ==================== */

.spider-tab-panel {
    display: none;
}

.spider-tab-panel.active {
    display: block;
}

/* ============================================
   优化后的 Dashboard 样式
   ============================================ */

/* 欢迎区域 */
.dashboard-welcome {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 32px 40px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.welcome-content {
    flex: 1;
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.welcome-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.welcome-actions {
    display: flex;
    gap: 12px;
}

.btn-welcome-primary,
.btn-welcome-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-welcome-primary {
    background: white;
    color: #667eea;
}

.btn-welcome-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-welcome-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-welcome-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

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

.welcome-time {
    text-align: right;
    color: white;
}

.time-display {
    font-size: 36px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    margin-bottom: 4px;
}

.date-display {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.stat-icon-orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-icon-purple {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
}

.stat-trend-up {
    color: #10b981;
    background: #ecfdf5;
}

.stat-trend-neutral {
    color: #6b7280;
    background: #f3f4f6;
}

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

.stat-body {
    margin-bottom: 12px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: #6b7280;
}

.stat-footer {
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.stat-footer-text {
    font-size: 12px;
    color: #9ca3af;
}

/* Dashboard 主网格 */
.dashboard-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dashboard-left-col,
.dashboard-right-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 卡片通用样式 */
.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-icon {
    font-size: 18px;
}

.view-all-link {
    font-size: 13px;
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.view-all-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* 快速操作 */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quick-action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 10px;
    background: #f9fafb;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.quick-action-item:hover {
    background: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.action-icon-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.action-icon-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.action-icon-orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.action-icon-purple {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.action-text {
    flex: 1;
    min-width: 0;
}

.action-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.action-desc {
    font-size: 12px;
    color: #6b7280;
}

/* 活动列表 */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.activity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.activity-dot-blue {
    background: #667eea;
}

.activity-dot-green {
    background: #10b981;
}

.activity-dot-orange {
    background: #f59e0b;
}

.activity-dot-red {
    background: #ef4444;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-text {
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 4px;
}

.activity-time {
    font-size: 12px;
    color: #9ca3af;
}

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

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 13px;
    color: #6b7280;
}

.info-value {
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
}

/* 状态徽章 */
.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge-success {
    background: #ecfdf5;
    color: #10b981;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

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

/* 域名状态分布 */
.status-chart {
    display: flex;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.chart-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
    transition: width 0.5s ease;
}

.chart-bar-active {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.chart-bar-inactive {
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #6b7280;
}

.status-legend {
    display: flex;
    justify-content: space-around;
    gap: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.legend-dot-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.legend-dot-inactive {
    background: #e5e7eb;
}

.legend-text {
    font-size: 13px;
    color: #6b7280;
}

.legend-count {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

/* 个性签名卡片 */
.quote-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: none;
}

.quote-content {
    position: relative;
    padding: 20px;
    text-align: center;
}

.quote-mark {
    font-size: 48px;
    color: #667eea;
    opacity: 0.3;
    line-height: 1;
    position: absolute;
    top: 10px;
    left: 20px;
}

.quote-mark-end {
    position: absolute;
    bottom: 10px;
    right: 20px;
    top: auto;
    left: auto;
}

.quote-text {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

/* 响应式 */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-welcome {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .welcome-actions {
        justify-content: center;
    }
    
    .welcome-time {
        text-align: center;
        margin-top: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   简化版 Dashboard 样式
   ============================================ */

/* 快捷入口网格 */
.quick-entry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.quick-entry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    border-radius: 12px;
    background: white;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.quick-entry-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.entry-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.entry-icon-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.entry-icon-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.entry-icon-orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.entry-icon-purple {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.entry-text {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

/* 简化统计卡片 */
.stats-grid .stat-card {
    padding: 20px;
}

.stats-grid .stat-header {
    margin-bottom: 12px;
}

.stats-grid .stat-icon-wrapper {
    width: 40px;
    height: 40px;
}

.stats-grid .stat-value {
    font-size: 28px;
}

/* 响应式 */
@media (max-width: 768px) {
    .quick-entry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .quick-entry-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

