/* 百度搜索页面样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #ffffff;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部导航 */
.top-nav {
    height: 55px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid #e6e6e6;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 0;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #315efb;
}

.nav-link.login {
    background: #4e6ef2;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
}

.nav-link.login:hover {
    background: #315efb;
    color: white;
}

/* 主要内容区域 */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    margin-top: -100px;
}

/* 百度Logo */
.logo-container {
    margin-bottom: 30px;
}

.baidu-logo {
    font-size: 48px;
    font-weight: bold;
    color: #4e6ef2;
    text-align: center;
    letter-spacing: 2px;
}

/* 搜索框区域 */
.search-container {
    width: 100%;
    max-width: 640px;
    margin-bottom: 30px;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 2px solid #c4c7ce;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #4e6ef2;
}

.search-input::placeholder {
    color: #999;
}

.search-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
}

.search-btn, .lucky-btn {
    padding: 10px 24px;
    border: 1px solid #f8f9fa;
    border-radius: 4px;
    background: #f8f9fa;
    color: #3c4043;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 54px;
}

.search-btn:hover, .lucky-btn:hover {
    box-shadow: 0 1px 1px rgba(0,0,0,.1);
    background-color: #f1f3f4;
    border: 1px solid #dadce0;
    color: #202124;
}

.search-btn {
    background: #4e6ef2;
    color: white;
    border: 1px solid #4e6ef2;
}

.search-btn:hover {
    background: #315efb;
    border: 1px solid #315efb;
    color: white;
}

/* 热搜推荐 */
.hot-search {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 640px;
}

.hot-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 16px;
    transition: background-color 0.2s;
}

.hot-item:hover {
    background: #e8f0fe;
}

.hot-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    color: white;
    background: #999;
}

.hot-index.hot-1 {
    background: #ff4757;
}

.hot-index.hot-2 {
    background: #ff6b35;
}

.hot-index.hot-3 {
    background: #ffa502;
}

.hot-link {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.hot-link:hover {
    color: #315efb;
}

/* 底部信息 */
.footer {
    margin-top: auto;
    padding: 30px 24px;
    text-align: center;
    border-top: 1px solid #e6e6e6;
    background: #f8f9fa;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-link {
    color: #666;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #315efb;
}

.footer-info {
    color: #999;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .top-nav {
        padding: 0 16px;
    }
    
    .nav-right {
        gap: 16px;
    }
    
    .nav-link {
        font-size: 12px;
    }
    
    .main-container {
        padding: 0 16px;
        margin-top: -50px;
    }
    
    .baidu-logo {
        font-size: 36px;
    }
    
    .search-input {
        height: 40px;
        font-size: 14px;
    }
    
    .search-buttons {
        gap: 12px;
        margin-top: 20px;
    }
    
    .search-btn, .lucky-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .hot-search {
        gap: 12px;
    }
    
    .hot-item {
        padding: 4px 8px;
    }
    
    .footer-links {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .nav-right {
        gap: 12px;
    }
    
    .nav-link {
        display: none;
    }
    
    .nav-link.login {
        display: block;
    }
    
    .baidu-logo {
        font-size: 28px;
    }
    
    .search-buttons {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .search-btn, .lucky-btn {
        width: 120px;
    }
    
    .hot-search {
        flex-direction: column;
        align-items: center;
    }
}