/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 20px 30px;
}

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

.header .subtitle {
    font-size: 14px;
    opacity: 0.8;
}

/* 导航栏样式 */
.navbar {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    padding: 15px 30px;
}

.navbar a {
    display: inline-block;
    color: #495057;
    text-decoration: none;
    padding: 8px 16px;
    margin-right: 8px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.navbar a:hover {
    background: #007bff;
    color: white;
}

.navbar .login-info {
    float: right;
    font-size: 12px;
    color: #6c757d;
}

/* 内容区域 */
.content {
    padding: 30px;
}

/* 页面标题 */
.page-title {
    font-size: 28px;
    color: #1e3c72;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #007bff;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

table thead th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
}

table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

table tbody tr:hover {
    background: #e3f2fd;
    transition: background 0.2s ease;
}

table a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

table a:hover {
    text-decoration: underline;
}

/* 统计数据样式 */
.stats-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.stat-card .value {
    font-size: 32px;
    font-weight: 700;
}

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

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

/* 状态标签 */
.status-ok {
    display: inline-block;
    padding: 4px 12px;
    background: #28a745;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-fail {
    display: inline-block;
    padding: 4px 12px;
    background: #dc3545;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* 代码块样式 */
pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    overflow-x: auto;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 提示信息样式 */
.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.info-box.warning {
    background: #fff3e0;
    border-left-color: #ff9800;
}

.info-box.error {
    background: #ffebee;
    border-left-color: #f44336;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 8px;
    }

    .navbar {
        padding: 10px;
    }

    .navbar a {
        display: block;
        margin-bottom: 5px;
        margin-right: 0;
    }

    .content {
        padding: 15px;
    }

    /* 移动端表格横向滚动 */
    table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        min-width: 100%;
    }

    table thead th,
    table tbody td {
        padding: 8px 10px;
    }

    .stats-container {
        flex-direction: column;
    }
}

/* 设备接收证明样式 */
.receipt-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.receipt-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #1e3c72;
}

.receipt-header h1 {
    font-size: 32px;
    color: #1e3c72;
    margin-bottom: 10px;
}

.receipt-content {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 20px;
}

.receipt-signature {
    text-align: right;
    margin-top: 40px;
    padding-top: 20px;
}

/* 骨干网巡检报告样式 */
.check-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.check-table thead {
    background: #1e3c72;
    color: white;
}

.check-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.check-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e9ecef;
}

.check-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.check-table tbody tr:hover {
    background: #e3f2fd;
}

/* 链接样式 */
.footer-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
}

.footer-link:hover {
    color: #007bff;
}

/* 分隔线 */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    margin: 20px 0;
}

/* 居中内容 */
.center {
    text-align: center;
}

/* 页面底部 */
.footer {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-size: 14px;
    border-top: 1px solid #e9ecef;
}

/* 文本对齐 */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-danger {
    color: #dc3545;
    font-weight: 600;
}

/* 分隔线 */
.section-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    margin: 20px 0;
}

/* 简单表格样式 */
.simple-table {
    border: 1px solid #dee2e6;
    border-collapse: collapse;
}

.simple-table th,
.simple-table td {
    border: 1px solid #dee2e6;
    padding: 10px;
}

.simple-table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* 表格列宽 */
.col-unit {
    width: 100px;
}

.col-bandwidth {
    width: 100px;
}

.col-address {
    width: auto;
}

/* 状态级别颜色 */
.status-level-0 {
    background-color: #6dc334;
}

.status-level-1 {
    background-color: #3592e2;
}

.status-level-2 {
    background-color: #ff7700;
}

.status-level-3 {
    background-color: #dd0000;
}

/* 信息框变体 */
.info-box.success {
    background: #d4edda;
    border-left-color: #28a745;
}

/* 汇总行样式 */
.summary-row {
    background: #e9ecef;
    font-weight: 600;
}

.summary-row td {
    border-top: 2px solid #dee2e6;
}
