* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    padding: 24px 0;
    background-color: #ffffff;
    color: #333333;
    border-bottom: 1px solid #e0e0e0;
}

.header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #28a745;
}

.logo-domain {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: normal;
    opacity: 0.8;
    margin-left: 10px;
    color: #20c997;
}

.search-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 700px;
}

.search-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.search-form {
    display: flex;
    flex: 1;
    gap: 6px;
    width: 100%;
    min-height: 44px;
    align-items: center;
}

.search-label {
    padding: 10px;
    background-color: #f5f5f5;
    color: #666;
    font-size: 13px;
    border-radius: 3px 0 0 3px;
    width: 50px;
    text-align: center;
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
    border-right: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-label:hover {
    background-color: #e8f0fe;
    color: #1a73e8;
}

.search-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    font-size: 14px;
    outline: none;
}

.bing-focus:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.search-btn {
    padding: 10px 16px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 0 3px 3px 0;
    font-size: 14px;
    cursor: pointer;
}

.search-btn:hover {
    background-color: #1557b0;
}

.main {
    padding: 25px 0;
    margin-bottom: 30px;
}

.main-sites {
    background-color: #f5f5f5;
    border-radius: 4px;
    padding: 15px;
}

.site-row {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    padding: 6px 0;
}

.site-row a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    background-color: white;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    min-height: 42px;
}

.site-row a:hover {
    background-color: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.category {
    margin-top: 30px;
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a73e8;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8f0fe;
}

.site-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-list a {
    padding: 8px 16px;
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
}

.site-list a:hover {
    background-color: #e8f0fe;
    color: #1a73e8;
}

.friend-links {
    padding: 25px 0;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
}

.friend-links-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a73e8;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8f0fe;
}

.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.friend-links-list a {
    padding: 8px 16px;
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
}

.friend-links-list a:hover {
    background-color: #e8f0fe;
    color: #1a73e8;
}

.footer {
    padding: 25px 0;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
}

.footer-links a:hover {
    color: #1a73e8;
}

.footer-links span {
    color: #ccc;
}

.copyright {
    color: #999;
    font-size: 12px;
}

@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }
    .logo {
        font-size: 20px;
    }
    .logo-domain {
        font-size: 12px;
    }
    .search-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    .search-row {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    .search-label {
        width: 50px;
        flex-shrink: 0;
    }
    .site-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .site-row a {
        padding: 8px 6px;
        font-size: 13px;
    }
    .site-list {
        gap: 8px;
    }
    .site-list a {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 0;
    }
    .logo {
        font-size: 16px;
    }
    .logo-domain {
        font-size: 11px;
    }
    .search-wrapper {
        flex-direction: column;
        gap: 6px;
    }
    .search-row {
        flex-direction: column;
        gap: 6px;
    }
    .search-label {
        padding: 6px;
        font-size: 12px;
        width: 50px;
        flex-shrink: 0;
    }
    .search-input {
        padding: 6px 10px;
        font-size: 13px;
    }
    .search-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    .site-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .site-row a {
        padding: 6px 4px;
        font-size: 12px;
    }
    .site-list {
        gap: 8px;
    }
    .site-list a {
        padding: 5px 10px;
        font-size: 12px;
    }
}