:root {
    --primary-color: #1a73e8;
    --success-color: #28a745;
    --error-color: #dc3545;
}

body {
    padding: 0;
    margin: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

.containerbody {
    background: #fff;
    max-width: 1280px;
	width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 2rem;
}

.search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

input[type="text"] {
    padding: 0.8rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

button[type="submit"] {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: opacity 0.3s;
}

button[type="submit"]:hover {
    opacity: 0.9;
}

.query-status {
    margin: 0.5rem 0;
    min-height: 40px;
}

/* 加载动画样式 */
#loading {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #666;
    opacity: 0;
    transition: opacity 0.3s;
}

#loading.show {
    opacity: 1;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0,0,0,0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 结果区域样式 */
#resultWrapper {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: none;
}

#resultWrapper.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #666;
}

.export-btn {
    background: var(--success-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.result-body {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

th, td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f8f9fa;
    font-weight: 500;
}

td {
    word-break: break-word;
    white-space: pre-wrap;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 8px;
    background: var(--error-color);
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.toast.show {
    opacity: 1;
}

/* 添加表格斑马纹样式 */
#resultTable tr:nth-child(odd) {
    background-color: #f8f9fa;
}

#resultTable tr:nth-child(even) {
    background-color: #ffffff;
}

/* 缓存指示器样式 */
.cache-indicator {
    background: #ffd700;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    display: none;
}

.cache-indicator.active {
    display: inline-block;
}

/* 导出按钮间距调整 */
.export-btn {
    margin-left: 1rem;
}


.navbar {
    margin-bottom: 20px;
}

footer {
    margin-top: 50px;
}


.radio-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hidden {
    display: none;
}