/* 颜色方案 */
:root {
    --primary-color: #3B82F6; /* 柔和的蓝色 */
    --secondary-color: #6366F1; /* 紫色 */
    --accent-color: #10B981; /* 绿色 */
    --text-color: #374151; /* 深灰色 */
    --bg-color: #F9FAFA; /* 浅灰色 */
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--bg-color) 100%);
    margin: 0;
    min-height: 100vh;
    color: var(--text-color);
}

.query-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(44,62,80,0.10);
    max-width: 500px; /* 稍微增加宽度 */
    margin: 0px auto 0 auto;
    padding: 40px; /* 增加padding */
}

h1 {
    text-align: center;
    color: var(--secondary-color); /* 使用强调色 */
    font-size: 2rem; /* 增大字体 */
    letter-spacing: 2px;
    font-weight: 700; /* 加粗 */
}
h2 {
    margin-top: 1px; /* 调整此值以缩小间距 */
    text-align: center;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-row label {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 1.1rem; /* 稍微增大字体 */
}

.form-row input[type="text"] {
    padding: 16px; /* 增加padding */
    border: 1.5px solid #D1D5DB;
    border-radius: 8px; /* 增加圆角 */
    font-size: 1.2rem; /* 增大字体 */
    background: var(--bg-color);
    transition: border 0.2s, box-shadow 0.2s; /* 添加阴影过渡 */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* 添加阴影 */
}

.form-row input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* 增加阴影 */
}

.form-row button {
    margin-top: 1px;
    padding: 14px 0;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(44,62,80,0.08);
    transition: background 0.2s, transform 0.2s; /* 添加过渡效果 */
}

.form-row button:hover {
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px); /* 稍微向上移动 */
}

.msg {
    text-align: center;
    color: #E53E3E;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.result-table {
    width: 100%;
    border-collapse: collapse; /* 使用 collapse，更容易控制边框 */
    margin-top: 20px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(44,62,80,0.1); /* 更强的阴影 */
}

.result-table th,
.result-table td {
    padding: 16px 12px; /* 增加padding */
    font-size: 1.1rem; /* 增大字体 */
    text-align: left; /* 左对齐 */
    border-bottom: 1px solid #F1F5F9; /* 分割线 */
}

.result-table th {
    background: #EDF2F7; /* 更浅的背景色 */
    color: var(--text-color);
    font-weight: 600;
    width: 35%; /* 稍微增加宽度 */
}

.result-table td {
    color: #4A5568;
}

/* 斑马纹 */
.result-table tbody tr:nth-child(even) {
    background-color: #F7FAFC;
}

/* 悬停效果 */
.result-table tbody tr:hover {
    background-color: #E2E8F0;
    transition: background-color 0.2s;
}

.result-table img {
    max-width: 120px; /* 稍微增大 */
    max-height: 120px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(44,62,80,0.1);
    border: 1px solid #CBD5E0; /* 添加边框 */
}

@media (max-width: 600px) {
    .query-container {
        max-width: 95vw;
        padding: 24px;
    }

    .result-table th,
    .result-table td {
        font-size: 1rem;
        padding: 10px 6px;
    }
}

.footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px; /* 增加与内容区域的间距 */
    border-top: 1px solid #ccc; /* 添加分隔线 */
    font-size: 12px; /* 更小的字体 */
    color: #888; /* 柔和的颜色 */
}

.footer a {
    color: #888;
    text-decoration: none; /* 移除下划线 */
}

.footer a:hover {
    text-decoration: underline; /* 鼠标悬停时显示下划线 */
}
