/*
文件名称：/assets/css/style.css
功能：网站样式CSS - 完整版
作者：SB
日期：2026-1-9 3:03
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.header h1 {
    color: #333;
    margin-bottom: 10px;
}

.total-count {
    color: #667eea;
    font-weight: bold;
    font-size: 24px;
}

.query-form {
    margin-bottom: 30px;
}

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

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

textarea, input[type="number"], input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

textarea {
    height: 200px;
    resize: vertical;
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-right: 10px;
}

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

.btn-secondary {
    background: #6c757d;
    color: white;
}

.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.results-table th, .results-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.results-table th {
    background: #f8f9fa;
    font-weight: bold;
}

.results-table tr:hover {
    background: #f5f5f5;
}

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

.status-error {
    color: #dc3545;
    font-weight: bold;
}
.color-red {
    background-color: #ffebee;
}

.color-yellow {
    background-color: #fff8e1;
}

.color-green {
    background-color: #e8f5e9;
}

.color-default {
    background-color: inherit;
}

.summary-box {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 0 5px 5px 0;
}

.summary-box h3 {
    margin-top: 0;
    color: #333;
}
/* 添加查询统计样式 */
.summary-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.summary-box h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-item {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.color-stats {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.color-stats h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
}

.color-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-tag {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.color-tag.default {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.color-tag.red {
    background: #dc3545;
    color: white;
}

.color-tag.yellow {
    background: #ffc107;
    color: #333;
}

.color-tag.green {
    background: #28a745;
    color: white;
}

.query-time {
    text-align: center;
    font-size: 14px;
    opacity: 0.9;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* 表格颜色行样式 */
.color-default { background-color: inherit; }
.color-red { background-color: #ffebee !important; }
.color-red:hover { background-color: #ffcdd2 !important; }
.color-yellow { background-color: #fff8e1 !important; }
.color-yellow:hover { background-color: #ffecb3 !important; }
.color-green { background-color: #e8f5e9 !important; }
.color-green:hover { background-color: #c8e6c9 !important; }

/* 状态样式 */
.status-success { color: #28a745; font-weight: bold; }
.status-error { color: #dc3545; font-weight: bold; }
/* 在 style.css 末尾添加以下样式 */

/* 查询结果统计样式 */
.summary-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.summary-box h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-item {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.color-stats {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.color-stats h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
}

.color-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-tag {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.color-tag.default {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.color-tag.red {
    background: #dc3545;
    color: white;
}

.color-tag.yellow {
    background: #ffc107;
    color: #333;
}

.color-tag.green {
    background: #28a745;
    color: white;
}

.query-time {
    text-align: center;
    font-size: 14px;
    opacity: 0.9;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* 网站URL显示 */
.site-url {
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

/* 调试信息 */
.debug-info {
    margin-top: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
}

.debug-info h3 {
    margin-top: 0;
    color: #ffc107;
}
/* 颜色样式 */
.color-default { background-color: #f8f9fa; }
.color-red { background-color: #ffebee; }
.color-yellow { background-color: #fff8e1; }
.color-green { background-color: #e8f5e9; }

/* 鼠标悬停效果 */
.color-default:hover { background-color: #e9ecef; }
.color-red:hover { background-color: #ffcdd2; }
.color-yellow:hover { background-color: #ffecb3; }
.color-green:hover { background-color: #c8e6c9; }

/* 颜色点 */
.color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid;
    margin-right: 5px;
}

/* 查询结果统计样式 */
.summary-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.summary-box h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-item {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.color-stats {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.color-stats h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
}

.color-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-tag {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.color-tag.default {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.color-tag.red {
    background: #dc3545;
    color: white;
}

.color-tag.yellow {
    background: #ffc107;
    color: #333;
}

.color-tag.green {
    background: #28a745;
    color: white;
}

.query-time {
    text-align: center;
    font-size: 14px;
    opacity: 0.9;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.2);
}
/* 警告框样式 */
.warning-box {
    background: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid #ffeaa7;
    border-left: 4px solid #ffc107;
}

.warning-box strong {
    color: #856404;
}