/* 基础背景和字体 */
body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f0f2f5;
    margin: 0;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.container {
    max-width: 1000px;
    width: 100%;
    text-align: center;
}

/* 主标题：大气、醒目 */
.main-title {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* 副标题：低调、清晰 */
.sub-title {
    font-size: 1.1rem;
    color: #666;
    font-weight: normal;
    margin-bottom: 40px;
}

/* 导航网格：响应式布局 */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

/* 卡片样式 */
.card {
    background: #fff;
    padding: 24px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: #007aff;
}

.card h3 {
    margin: 0 0 10px 0;
    color: #007aff;
}

.card p {
    margin: 0;
    font-size: 0.9rem;
    color: #888;
}
/* 搜索框样式 */
.search-container {
    margin-bottom: 40px;
    position: relative;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

#searchInput {
    width: 100%;
    padding: 15px 25px;
    border-radius: 30px;
    border: 2px solid #eee;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

#searchInput:focus {
    border-color: #007aff;
    box-shadow: 0 6px 15px rgba(0,123,255,0.2);
}

.search-engines {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #888;
}

.engine {
    margin: 0 10px;
    cursor: pointer;
    transition: color 0.3s;
}

.engine.active {
    color: #007aff;
    font-weight: bold;
}

/* 卡片增强交互 */
.card:active {
    transform: scale(0.95); /* 点击时微缩，模拟物理按压感 */
}