/* 全局样式 */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background: #f5f5f5;
}

/* 头部样式 */
header {
    background: #2c3e50;
    color: white;
    padding: 1rem;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 语言切换按钮 */
.lang-switch button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

/* 搜索容器 */
.search-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 搜索引擎选择 */
.engine-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.engine-btn {
    background: #ecf0f1;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.engine-btn.active {
    background: #3498db;
    color: white;
}

.engine-btn:hover {
    background: #bdc3c7;
}

/* 搜索表单 */
#search-form {
    display: flex;
    gap: 0.5rem;
}

#search-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

#search-btn {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

#search-btn:hover {
    background: #27ae60;
}

/* 代理提示 */
#proxy-notice {
    margin-top: 1rem;
    padding: 0.5rem;
    background: #f39c12;
    color: white;
    border-radius: 4px;
    text-align: center;
}

.hidden {
    display: none;
}

.cn-only {
    display: none;
}

/* 信息页脚 */
.info-footer {
    background: #34495e;
    color: #ecf0f1;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 2rem;
}

.info-footer div {
    margin: 0.3rem 0;
}

/* 分类导航样式 */
.category-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.category h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.8rem;
}

.links a {
    color: #3498db;
    text-decoration: none;
    padding: 0.3rem 0;
    transition: all 0.2s;
}

.links a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .engine-selector {
        flex-direction: column;
    }
    
    #search-form {
        flex-direction: column;
    }
    
    .info-footer {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .category-container {
        grid-template-columns: 1fr;
    }
    
    .links {
        grid-template-columns: repeat(2, 1fr);
    }
}
