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

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #FFFFFF;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
}

.container {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    position: relative;
}

.home-link {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #4285f4;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.home-link:hover {
    color: #3367d6;
    text-decoration: underline;
}

.logo {
    margin-bottom: 40px;
    text-align: center;
}

.logo img {
    width: 300px;
    max-width: 100%;
    height: auto;
}

.search-form {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.search-box {
    flex-grow: 1;
    position: relative;
    margin-right: 10px;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: #4285f4;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
}

.search-button {
    padding: 15px 30px;
    font-size: 16px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.search-button:hover {
    background-color: #3367d6;
}

.footer {
    width: 100%;
    padding: 30px 0;
    text-align: center;
    background-color: #f8f9fa;
}

.friend-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.friend-links a {
    color: #5f6368;
    text-decoration: none;
    transition: color 0.3s;
    padding: 5px 10px;
}

.friend-links a:hover {
    color: #4285f4;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .home-link {
        top: 15px;
        right: 15px;
        font-size: 14px;
    }
    
    .logo img {
        max-width: 280px;
    }
    
    .search-form {
        flex-direction: row;
    }
    
    .search-box {
        width: auto;
        margin-right: 10px;
        margin-bottom: 0;
        flex-grow: 1;
    }
    
    .search-button {
        width: auto;
        padding: 12px 20px;
    }
    
    .friend-links {
        gap: 10px;
    }
    
    .friend-links a {
        padding: 5px 8px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .home-link {
        top: 10px;
        right: 10px;
        font-size: 13px;
    }
    
    .friend-links {
        gap: 8px;
    }
    
    .friend-links a {
        padding: 4px 6px;
        font-size: 13px;
    }
}