/**
 * 页面增强样式 - 数据统计页、域名检测、系统设置、快捷导航、响应式
 */

/* ============================================
   Dashboard 新版样式
   ============================================ */

/* 顶部简介 */
.dashboard-intro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    color: white;
}

.intro-icon {
    font-size: 40px;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

.intro-content p {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.6;
}

/* 三项核心统计 */
.dashboard-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.dash-stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 0;
}

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

.dash-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.dash-stat-blue .dash-stat-icon {
    background: #eff6ff;
}

.dash-stat-green .dash-stat-icon {
    background: #f0fdf4;
}

.dash-stat-purple .dash-stat-icon {
    background: #faf5ff;
}

.dash-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

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

/* 数据占比布局 */
.dashboard-charts-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    min-width: 0;
}

.chart-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    text-align: center;
}

.chart-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.donut-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.donut-chart {
    width: 100%;
    height: 100%;
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.donut-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.donut-label {
    display: block;
    font-size: 11px;
    color: #9ca3af;
}

.chart-legend {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #4b5563;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    flex-shrink: 0;
}

.legend-item b {
    margin-left: auto;
    font-weight: 600;
    color: #1f2937;
}

/* 底部系统信息 */
.dashboard-sysinfo {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.sysinfo-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.sysinfo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

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

.sysinfo-label {
    font-size: 12px;
    color: #9ca3af;
}

.sysinfo-value {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

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

@media (max-width: 900px) {
    .dashboard-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-charts-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-intro {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

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

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

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

/* 蜘蛛设置 - 复选框网格 */
.spider-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding: 10px 0;
}

.spider-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
    user-select: none;
}

.spider-checkbox-item:hover {
    border-color: #409eff;
    background: #f0f7ff;
}

.spider-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #409eff;
    cursor: pointer;
}

.spider-checkbox-item input[type="checkbox"]:checked + span,
.spider-checkbox-item:has(input:checked) {
    border-color: #409eff;
    background: #f0f7ff;
    color: #409eff;
}

@media (max-width: 1200px) {
    .spider-checkbox-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .spider-checkbox-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .spider-checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 访问状态标签 */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}
.status-200 {
    background: #e8f5e9;
    color: #2e7d32;
}
.status-301,
.status-302 {
    background: #fff3e0;
    color: #e65100;
}
.status-404 {
    background: #ffebee;
    color: #c62828;
}
.status-500,
.status-502,
.status-503 {
    background: #fce4ec;
    color: #ad1457;
}
.col-status {
    width: 80px;
    text-align: center;
}

/* 流量趋势图 */
.trend-chart-area {
    position: relative;
    padding: 10px 0;
}
.trend-chart-area canvas {
    width: 100%;
    height: auto;
    display: block;
}
.trend-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.5;
    pointer-events: none;
    z-index: 100;
    white-space: nowrap;
}

/* 未跳转排行 - 无流量时长样式 */
.inactive-duration {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    background: #fff3e0;
    color: #e65100;
}
.inactive-duration.never {
    background: #ffebee;
    color: #c62828;
}

/* 三栏布局网格 */
.spider-stats-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.spider-stats-grid .chart-card {
    min-height: 350px;
}

.spider-stats-grid .rank-card {
    min-height: 350px;
}

/* 响应式：小屏幕改为单栏 */
@media (max-width: 1200px) {
    .spider-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* 批量编辑弹窗 */
.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: 1000;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: #374151;
}

.modal-body {
    padding: 24px;
}

.modal-tip {
    margin: 0 0 20px 0;
    color: #6b7280;
    font-size: 14px;
}

.modal-tip strong {
    color: #3b82f6;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 12px 12px;
}

/* 分页大小选择器 */
.page-size-select {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.page-size-select:hover {
    border-color: #9ca3af;
}

.page-size-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* 更多按钮 */
.more-btn {
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.more-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

/* 域名访问排行页面 */
.domain-rank-table {
    width: 100%;
    border-collapse: collapse;
}

.domain-rank-table th {
    background: #f9fafb;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
}

.domain-rank-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.domain-rank-table tr:hover {
    background: #f9fafb;
}

.domain-cell {
    font-weight: 500;
    color: #1f2937;
}

/* 流量概览表格样式 */
.traffic-overview-table {
    display: flex;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.traffic-time-labels {
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border-right: 1px solid #e5e7eb;
    min-width: 100px;
}

.time-label-row {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    font-weight: 500;
    color: #6b7280;
    font-size: 14px;
    border-bottom: 1px solid #e5e7eb;
}

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

.time-label-header {
    height: 45px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.traffic-metrics-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.metric-column {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e5e7eb;
}

.metric-column:last-child {
    border-right: none;
}

.metric-header {
    height: 45px;
    padding: 12px 16px;
    background: #f8fafc;
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 10px;
    cursor: help;
}

.metric-value {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
}

.metric-value:last-child {
    border-bottom: none;
}

.metric-value.trend-down {
    color: #10b981;
}

.metric-value.trend-up {
    color: #ef4444;
}

/* 流量概览卡片式布局 */
.traffic-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.traffic-metric-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: box-shadow 0.2s;
}

.traffic-metric-card:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tmc-header {
    font-size: 12px;
    color: #8b95a5;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tmc-today {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
    margin: 4px 0;
}

.tmc-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #8b95a5;
    padding: 2px 0;
}

.tmc-sub span:last-child {
    font-weight: 600;
    color: #4a5568;
}

.tmc-sub .trend-down {
    color: #10b981;
}

.tmc-sub .trend-up {
    color: #ef4444;
}

/* 趋势图控制区 */
.trend-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.trend-legend {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.trend-period-btns {
    display: flex;
    gap: 2px;
    background: #f1f3f5;
    border-radius: 6px;
    padding: 2px;
}

.trend-period-btn {
    padding: 4px 10px;
    border: none;
    background: transparent;
    border-radius: 4px;
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.trend-period-btn:hover {
    color: #374151;
}

.trend-period-btn.active {
    background: white;
    color: #1677ff;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.chart-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #6b7280;
}

.chart-summary-bar .summary-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chart-summary-bar .summary-value {
    font-weight: 600;
    color: #374151;
}

/* 来路记录表格样式 */
.referrer-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

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

.referrer-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    background: #f8fafc;
    border-bottom: 2px solid #e5e7eb;
}

.referrer-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #6b7280;
}

.referrer-table tr:hover {
    background: #f9fafb;
}

.referrer-link {
    color: #0d9488;
    text-decoration: none;
    font-weight: 500;
}

.referrer-link:hover {
    text-decoration: underline;
}

/* 跳转排名表格样式 */
.ranking-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.ranking-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ranking-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.ranking-subtitle {
    font-size: 13px;
    color: #6b7280;
}

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

.ranking-table th {
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #6b7280;
    background: #f8fafc;
    border-bottom: 2px solid #e5e7eb;
}

.ranking-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #374151;
}

.ranking-table tr:hover {
    background: #f9fafb;
}

.rank-col {
    width: 80px;
    text-align: center;
}

.domain-col {
    font-weight: 500;
}

.count-col {
    width: 120px;
    text-align: right;
    font-weight: 600;
    color: #0d9488;
}

.percent-col {
    width: 100px;
    text-align: right;
    color: #6b7280;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 13px;
}

.rank-badge.top-1 {
    background: #fef3c7;
    color: #d97706;
}

.rank-badge.top-2 {
    background: #e5e7eb;
    color: #4b5563;
}

.rank-badge.top-3 {
    background: #fed7aa;
    color: #c2410c;
}

.rank-badge.normal {
    background: #f3f4f6;
    color: #6b7280;
}

.ranking-pagination {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #e5e7eb;
}

.inactive-hours {
    font-weight: 600;
    color: #ef4444;
}

.inactive-hours.warning {
    color: #f59e0b;
}

.inactive-hours.normal {
    color: #10b981;
}

/* ========== 访问明细 - 卡片式布局 ========== */
.detail-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-toolbar-left {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-toolbar-right {
    display: flex;
    align-items: center;
}

.detail-count-text {
    font-size: 13px;
    color: #64748b;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.detail-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
}

.detail-item-main {
    flex: 1;
    min-width: 0;
}

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

.detail-domain {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.detail-type-badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}

.detail-type-badge.type-search {
    background: #dbeafe;
    color: #1d4ed8;
}

.detail-type-badge.type-external {
    background: #fef3c7;
    color: #92400e;
}

.detail-type-badge.type-direct {
    background: #f1f5f9;
    color: #64748b;
}

.detail-item-target {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

.detail-arrow {
    color: #94a3b8;
    margin-right: 4px;
}

.detail-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: 16px;
}

.detail-meta-item {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

.detail-meta-icon {
    font-size: 11px;
}

.detail-ip {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 12px;
    color: #475569;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

.detail-status {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.detail-status.status-ok {
    background: #dcfce7;
    color: #166534;
}

.detail-status.status-warn {
    background: #fef3c7;
    color: #92400e;
}

.detail-time {
    color: #94a3b8;
    font-size: 11px;
}

.detail-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 14px;
}

@media (max-width: 768px) {
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .detail-item-meta {
        margin-left: 0;
        flex-wrap: wrap;
    }
    
    .detail-domain {
        max-width: 200px;
    }
    
    .detail-item-target {
        max-width: 250px;
    }
}

/* 蜘蛛统计 - 图表网格 */
.spider-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}

.spider-header-actions {
    display: flex;
    gap: 8px;
}

.spider-header-actions .btn {
    white-space: nowrap;
}

.chart-container {
    padding: 16px;
    position: relative;
    height: 300px;
}

.chart-container-pie {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-container canvas {
    max-width: 100%;
}

@media (max-width: 900px) {
    .spider-charts-grid {
        grid-template-columns: 1fr;
    }
    
    .spider-header {
        flex-wrap: wrap;
    }
    
    .spider-header-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ==================== 数据统计页面 ==================== */
.dashboard-welcome {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 32px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    color: white;
}

.welcome-content h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.welcome-content p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.welcome-icon {
    font-size: 48px;
    opacity: 0.8;
}

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

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.2s;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-card-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.stat-card-blue .stat-card-icon { background: #e8f4fd; }
.stat-card-green .stat-card-icon { background: #e6f9f0; }
.stat-card-purple .stat-card-icon { background: #f3e8ff; }
.stat-card-orange .stat-card-icon { background: #fff3e6; }

.stat-card-info {
    flex: 1;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.stat-card-label {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

.dashboard-charts-section,
.dashboard-sysinfo-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.dashboard-charts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.chart-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.chart-card-header {
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    border-bottom: 1px solid #f5f5f5;
    background: #fafafa;
}

.chart-card-body {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.donut-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

.donut-chart {
    width: 100%;
    height: 100%;
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.donut-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.donut-label {
    display: block;
    font-size: 11px;
    color: #999;
}

.chart-legend {
    width: 100%;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    padding: 4px 0;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

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

.sysinfo-card {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sysinfo-card .sysinfo-label {
    font-size: 13px;
    color: #888;
}

.sysinfo-card .sysinfo-value {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 500;
}

@media (max-width: 1200px) {
    .dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-charts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sysinfo-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-welcome {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-charts-grid {
        grid-template-columns: 1fr;
    }
    .sysinfo-cards {
        grid-template-columns: 1fr;
    }
}

/* ========== 域名检测页面 ========== */
.check-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.check-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.check-toolbar-right {
    display: flex;
    gap: 8px;
}
.check-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.check-result-badge.yes {
    background: #e8f5e9;
    color: #2e7d32;
}
.check-result-badge.no {
    background: #ffebee;
    color: #c62828;
}
.check-result-badge.warn {
    background: #fff3e0;
    color: #e65100;
}
.check-result-badge.expired {
    background: #ffebee;
    color: #c62828;
}
.check-result-badge.warning {
    background: #fff3e0;
    color: #e65100;
}
.check-result-badge.ok {
    background: #e8f5e9;
    color: #2e7d32;
}
.check-result-badge.unknown {
    background: #f5f5f5;
    color: #757575;
}
.check-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.check-status-dot.yes, .check-status-dot.ok { background: #4caf50; }
.check-status-dot.no, .check-status-dot.expired { background: #f44336; }
.check-status-dot.warn, .check-status-dot.warning { background: #ff9800; }
.check-status-dot.unknown { background: #9e9e9e; }
.check-progress-text {
    color: #4f8cff;
    font-size: 13px;
}

/* ========== 系统设置概览页面 ========== */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.setting-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
}
.setting-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: #667eea;
}
.setting-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}
.setting-card:nth-child(1) .setting-card-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.setting-card:nth-child(2) .setting-card-icon {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}
.setting-card:nth-child(3) .setting-card-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.setting-card-content {
    flex: 1;
    min-width: 0;
}
.setting-card-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}
.setting-card-content p {
    font-size: 13px;
    color: #999;
    margin: 0;
}
.setting-card-arrow {
    font-size: 18px;
    color: #ccc;
    transition: all 0.3s;
}
.setting-card:hover .setting-card-arrow {
    color: #667eea;
    transform: translateX(4px);
}

/* 快速操作按钮 */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #e8e8e8;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}
.quick-action-btn:hover {
    background: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
    color: #667eea;
}
.quick-action-btn.btn-danger {
    color: #e74c3c;
}
.quick-action-btn.btn-danger:hover {
    border-color: #e74c3c;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.15);
    color: #c0392b;
}
.quick-action-icon {
    font-size: 18px;
}

@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== 数据统计页面增强 ========== */
/* 欢迎区域操作按钮 */
.welcome-actions {
    display: flex;
    gap: 10px;
}
.welcome-btn {
    padding: 8px 18px;
    border-radius: 8px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}
.welcome-btn:hover {
    background: rgba(255,255,255,0.35);
    border-color: rgba(255,255,255,0.5);
}

/* 区块间距 */
.dash-section {
    margin-top: 28px;
}
.dash-section .section-title {
    margin-bottom: 16px;
}

/* 今日概览卡片 */
.today-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.today-stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.today-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 12px 0 0 12px;
}
.today-stat-card.today-blue::before { background: linear-gradient(180deg, #4f8cff, #667eea); }
.today-stat-card.today-green::before { background: linear-gradient(180deg, #36d399, #11998e); }
.today-stat-card.today-purple::before { background: linear-gradient(180deg, #a855f7, #7c3aed); }
.today-stat-card.today-orange::before { background: linear-gradient(180deg, #f97316, #ea580c); }
.today-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.today-stat-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f8f9fa;
    flex-shrink: 0;
}
.today-stat-info {
    flex: 1;
    min-width: 0;
}
.today-stat-value {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
}
.today-stat-label {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}
.today-stat-trend {
    font-size: 12px;
    color: #36d399;
    font-weight: 600;
    background: rgba(54,211,153,0.1);
    padding: 3px 8px;
    border-radius: 12px;
}

/* 累计数据卡片额外信息 */
.stat-card-extra {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}
.stat-card-extra.text-danger { color: #e74c3c; }
.stat-card-extra.text-warn { color: #f39c12; }

/* 双列布局 */
.dash-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.dash-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}
.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f5f5f5;
}
.dash-card-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
}
.view-all-link {
    font-size: 12px;
    color: #667eea;
    text-decoration: none;
}
.view-all-link:hover {
    text-decoration: underline;
}

/* 最近跳转日志列表 */
.recent-logs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.recent-log-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fafbfc;
    border-radius: 8px;
    font-size: 12px;
    transition: background 0.2s;
}
.recent-log-item:hover {
    background: #f0f4ff;
}
.recent-log-time {
    color: #999;
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 11px;
    flex-shrink: 0;
}
.recent-log-device {
    font-size: 14px;
    flex-shrink: 0;
}
.recent-log-source {
    color: #333;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.recent-log-arrow {
    color: #ccc;
    flex-shrink: 0;
}
.recent-log-target {
    color: #666;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.log-status-ok {
    color: #36d399;
    font-weight: 700;
}
.log-status-err {
    color: #e74c3c;
    font-weight: 700;
}
.empty-state-sm {
    text-align: center;
    color: #ccc;
    padding: 24px;
    font-size: 13px;
}

/* 系统状态列表 */
.system-status-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8f8f8;
}
.status-row:last-child {
    border-bottom: none;
}
.status-label {
    font-size: 13px;
    color: #666;
}
.status-value {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.status-badge.status-ok {
    background: rgba(54,211,153,0.1);
    color: #11998e;
}
.status-badge.status-warn {
    background: rgba(243,156,18,0.1);
    color: #f39c12;
}
.status-badge.status-error {
    background: rgba(231,76,60,0.1);
    color: #e74c3c;
}

/* 快捷导航 */
.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
.quick-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s;
}
.quick-nav-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: #667eea;
}
.quick-nav-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.quick-nav-text {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}
.quick-nav-desc {
    font-size: 11px;
    color: #999;
    text-align: center;
    line-height: 1.4;
}

/* 响应式 */
@media (max-width: 1200px) {
    .today-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .quick-nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .today-stats-grid {
        grid-template-columns: 1fr;
    }
    .dash-two-col {
        grid-template-columns: 1fr;
    }
    .quick-nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .welcome-actions {
        flex-direction: column;
    }
}

/* ========== 系统部署页面 ========== */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.settings-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-card:hover {
    border-color: #4f8cff;
    box-shadow: 0 4px 12px rgba(79, 140, 255, 0.1);
    transform: translateY(-2px);
}

.settings-card-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    border-radius: 12px;
    flex-shrink: 0;
}

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

.settings-card-content h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.settings-card-content p {
    margin: 0 0 8px;
    font-size: 13px;
    color: #888;
}

.settings-card-status {
    font-size: 12px;
    color: #666;
}

.settings-card-status .status-label {
    color: #999;
}

.settings-card-status .status-value {
    font-weight: 500;
    color: #333;
}

.settings-card-arrow {
    font-size: 18px;
    color: #ccc;
    flex-shrink: 0;
}

.deploy-output {
    margin-top: 16px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
}

.deploy-output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f5f7fa;
    border-bottom: 1px solid #e8e8e8;
    font-size: 13px;
}

.deploy-output pre {
    margin: 0;
    padding: 12px;
    font-size: 12px;
    line-height: 1.6;
    color: #333;
    background: #fafafa;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.env-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f9fafc;
    border: 1px solid #eef0f5;
    border-radius: 8px;
    font-size: 14px;
}

.env-check-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.env-check-name {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.env-check-value {
    font-size: 12px;
    color: #888;
}

/* 部署页面容器 */
.deploy-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 100%;
}

/* Deploy SSH hint */
.deploy-ssh-hint {
    margin-top: 24px;
    padding: 16px 20px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
}

.deploy-ssh-hint-title {
    font-weight: 600;
    font-size: 14px;
    color: #0369a1;
    margin-bottom: 6px;
}

.deploy-ssh-hint-desc {
    font-size: 13px;
    color: #475569;
    margin: 0 0 10px;
}

.deploy-ssh-cmd {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1e293b;
    color: #e2e8f0;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

.deploy-ssh-cmd code {
    flex: 1;
    word-break: break-all;
}

.deploy-ssh-cmd .btn-sm {
    flex-shrink: 0;
    background: rgba(255,255,255,0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.2);
}

.deploy-ssh-cmd .btn-sm:hover {
    background: rgba(255,255,255,0.2);
}

.deploy-ssh-hint-note {
    font-size: 12px;
    color: #64748b;
    margin: 10px 0 0;
}

.deploy-ssh-hint-note code {
    background: #e2e8f0;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 12px;
    color: #0369a1;
}

.deploy-ssh-hint-detail {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: #475569;
}

.deploy-ssh-hint-detail strong {
    color: #1e293b;
}

.deploy-ssh-hint-detail ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.deploy-ssh-hint-detail li {
    margin-bottom: 4px;
    color: #64748b;
}

/* Deploy status list */
.deploy-status-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.deploy-status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f9fafc;
    border: 1px solid #eef0f5;
    border-radius: 8px;
    font-size: 14px;
    transition: background 0.2s;
}

.deploy-status-item:hover {
    background: #f0f2f8;
}

.deploy-status-item .env-check-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.deploy-status-item .env-check-name {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.deploy-status-item .env-check-value {
    font-size: 12px;
    color: #888;
    margin-right: 8px;
}

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

.deploy-status-text.status-ok {
    color: #10b981;
    background: #ecfdf5;
}

.deploy-status-text.status-missing {
    color: #ef4444;
    background: #fef2f2;
}

.deploy-status-text.status-warn {
    color: #f59e0b;
    background: #fffbeb;
}

.deploy-status-item .btn-sm {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 4px;
    flex-shrink: 0;
}

.domain-lock-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f9fafc;
    border: 1px solid #eef0f5;
    border-radius: 8px;
    font-size: 14px;
}

.domain-lock-info strong {
    color: #333;
}

.input-group {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.input-group .form-input {
    flex: 1;
}

@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}
