* {
    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;
    min-height: 100vh;
    color: #333333;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 50%, #1a73e8 100%);
    color: white;
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.3);
}

.header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.logo {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 3px;
}

.logo-domain {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: normal;
    opacity: 0.9;
    margin-left: 10px;
    font-style: italic;
}

.search-wrapper {
    display: flex;
    gap: 15px;
    width: 100%;
    max-width: 720px;
}

.search-form {
    display: flex;
    flex: 1;
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-label {
    padding: 9px 12px;
    background: #f0f4f8;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    border-right: 1px solid #e0e0e0;
    cursor: pointer;
}

.search-input {
    flex: 1;
    padding: 9px 12px;
    border: none;
    font-size: 13px;
    outline: none;
}

.search-btn {
    padding: 9px 16px;
    background: #1a73e8;
    color: white;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.search-btn:hover {
    background: #1557b0;
}

.main {
    padding: 30px 0;
}

.main-sites {
    background: #f8f9fa;
    padding: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.site-row {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    padding: 2px 0;
}

.site-row:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
}

.site-row a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    background: white;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    min-height: 42px;
    transition: all 0.3s ease;
}

.site-row a:hover {
    background: #1a73e8;
    color: white;
}

.category {
    margin-top: 20px;
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    color: #34a853;
    margin-bottom: 10px;
    padding: 8px 0 8px 14px;
    background: #f8f9fa;
    border-left: 4px solid #34a853;
    border-bottom: 1px solid #e0e0e0;
}

.category-title a {
    color: #34a853;
    text-decoration: none;
}

.category-title a:hover {
    text-decoration: underline;
}

.site-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.site-list a {
    padding: 8px 16px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.site-list a:hover {
    background: #34a853;
    color: white;
}

.footer {
    padding: 30px 0;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    margin-top: 40px;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
}

.footer-links a:hover {
    color: #1a73e8;
}

.footer-links span {
    color: #ddd;
}

.copyright {
    color: #999;
    font-size: 13px;
}

.back-link {
    margin-bottom: 20px;
}

.back-link a {
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    background: #f8f9fa;
}

.back-link a:hover {
    background: #1a73e8;
    color: white;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.page-desc {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
}

.site-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.site-item {
    background: #f8f9fa;
    padding: 20px 15px;
    text-align: center;
}

.site-item a {
    text-decoration: none;
    color: inherit;
}

.site-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    background: #1a73e8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
}

.site-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.site-desc {
    font-size: 12px;
    color: #999;
}

@media (max-width: 768px) {
    .header {
        padding: 15px 0;
    }
    .logo {
        font-size: 22px;
    }
    .logo-domain {
        font-size: 12px;
    }
    .search-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    .site-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .site-row a {
        padding: 10px 6px;
        font-size: 13px;
    }
    .site-list {
        gap: 10px;
    }
    .site-list a {
        padding: 8px 14px;
        font-size: 13px;
    }
    .category-title {
        font-size: 16px;
        padding: 10px 0 10px 15px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 12px 0;
    }
    .logo {
        font-size: 18px;
    }
    .logo-domain {
        font-size: 11px;
    }
    .search-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    .search-label {
        padding: 8px 10px;
        font-size: 12px;
    }
    .search-input {
        padding: 10px;
        font-size: 13px;
    }
    .search-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    .site-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .site-row a {
        padding: 10px 6px;
        font-size: 12px;
        min-height: 40px;
    }
    .site-list {
        gap: 8px;
    }
    .site-list a {
        padding: 7px 12px;
        font-size: 12px;
    }
    .category-title {
        font-size: 15px;
        padding: 8px 0 8px 12px;
    }
    .main {
        padding: 20px 0;
    }
    .main-sites {
        padding: 15px;
    }
}
