
/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding-top: 120px; /* 为固定查询表单留出空间 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 固定在顶部的查询表单 */
.fixed-query-form {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    border-bottom: 3px solid #3498db;
}

.fixed-query-form h1 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.8em;
    text-align: center;
}

/* 内联表单样式 */
.inline-form {
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-group-inline {
    display: flex;
    gap: 10px;
    align-items: center;
}

.form-group-inline input {
    padding: 12px 16px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 16px;
    min-width: 200px;
    transition: border-color 0.3s;
}

.form-group-inline input:focus {
    outline: none;
    border-color: #3498db;
}

/* 主要内容区域 */
.main-content {
    display: grid;
    grid-gap: 30px;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2.5em;
}

header p {
    color: #7f8c8d;
    font-size: 1.1em;
}

/* 主要内容区域 */
main {
    display: grid;
    grid-gap: 30px;
}

/* 卡片样式 */
.query-form, .info-section, .result-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.query-form h2, .info-section h3, .result-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5em;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

/* 按钮样式 */
.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* 数据输出样式 */
.data-output {
    background: #2c3e50;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
}

.data-output pre {
    color: #ecf0f1;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
}

/* 信息列表样式 */
.info-section ul {
    list-style: none;
}

.info-section li {
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
}

.info-section li:last-child {
    border-bottom: none;
}

/* 代码样式 */
code {
    background: #ecf0f1;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

code a {
    color: #2980b9;
    text-decoration: none;
}

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

/* 页脚样式 */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: white;
}

footer a {
    color: #ecf0f1;
    text-decoration: none;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .query-form, .info-section, .result-section {
        padding: 20px;
    }
}
