* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a {
    text-decoration: none;
    }
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

body.dark-mode .banner {
    background: linear-gradient(135deg, #2980b9, #8e44ad);
}

body.dark-mode .banner-btn {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: relative;
    z-index: 100;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.site-brand {
    font-size: 22px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ai-tool-btn {
    padding: 8px 20px;
    background-color: #000;
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.ai-tool-btn:hover {
    opacity: 0.8;
}

.blog-btn {
    padding: 8px 20px;
    background-color: white;
    color: #000;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.blog-btn:hover {
    background-color: #f5f5f5;
}

body.dark-mode .site-brand,
body.dark-mode .nav-tab.active {
    color: white;
}


body.dark-mode .blog-btn {
    background-color: #333;
    color: white;
}

body.dark-mode .blog-btn:hover {
    background-color: #444;
}

body.dark-mode .ai-tool-btn {
    background-color: #8e44ad;
}

body.dark-mode .ai-tool-btn:hover {
    opacity: 0.9;
    background-color: #9b59b6;
}

@media (max-width: 768px) {
    .top-nav {
        padding: 15px 20px;
    }
    
    .site-brand {
        font-size: 20px;
    }
    
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.search-box {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    margin-top: 35px;
    transition: all 0.3s ease;
}

.search-box input {
    width: 100%;
    padding: 18px 28px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 18px;
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

.search-box input:focus {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: #ffffff;
    border-color: rgba(52, 152, 219, 0.3);
    transform: translateY(-2px);
}

.search-box i {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #3498db;
    font-size: 20px;
    transition: all 0.3s ease;
}

.search-box:hover i {
    color: #8e44ad;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 12px;
    padding: 5px;
}

.category-tab {
    padding: 12px 24px;
    background-color: #f0f5ff;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.category-tab:hover, .category-tab.active {
    background-color: #3498db;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.category-content {
    display: none;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    min-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
}

.category-content.active {
    display: block;
    opacity: 1;
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    padding: 25px 0;
    margin: 0 auto;
}

.site-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: white;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.site-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(52, 152, 219, 0.1);
}

.site-card:hover .site-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: #3498db;
    color: white;
}

.site-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f5ff;
    border-radius: 12px;
    color: #3498db;
    font-size: 22px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.1);
    position: relative;
}

.site-icon img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
}

.site-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.site-name {
    font-weight: 700;
    color: #2c3e50;
    font-size: 16px;
    letter-spacing: -0.3px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.site-card:hover .site-name {
    color: #3498db;
}

.site-desc {
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.5;
    transition: all 0.3s ease;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-card:hover .site-desc {
    opacity: 1;
    color: #5a6a72;
}

.visit-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 4px 11px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    margin-left: auto;
    float: right;
}

.visit-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.site-card:hover .visit-btn {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.site-card:hover .visit-btn i {
    transform: translateX(4px);
}

.site-content {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    flex: 1;
}

footer {
    padding: 40px 0;
    margin-top: 50px;
    width: 100%;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    border-top: 1px solid #e0e0e0;
    padding-top: 40px;
}

.footer-left, .footer-right {
    flex: 0 0 48%;
}

.footer-left h3 {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #333;
}

.footer-left p {
    font-size: 16px;
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.footer-left .copyright {
    font-size: 14px;
    color: #999;
    margin-top: 20px;
}

.footer-right {
    flex: 0 0 48%;
    text-align: right;
}

.footer-right h3 {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #333;
    text-align: right;
}

.friend-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.friend-links a {
    color: #666;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    text-align: right;
}

.friend-links a:hover {
    color: #007bff;
}

body.dark-mode footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .footer-left h3,
body.dark-mode .footer-right h3 {
    color: #e0e0e0;
}

body.dark-mode .footer-left p {
    color: #b0b0b0;
}

body.dark-mode .footer-left .copyright {
    color: #888;
}

body.dark-mode .friend-links a {
    color: #b0b0b0;
    transition: all 0.3s ease;
}

body.dark-mode .friend-links a:hover {
    color: #8e44ad;
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .sites-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 20px;
    }
    
    .banner {
        padding: 40px 20px;
        margin-bottom: 30px;
    }
    
    .banner h2 {
        font-size: 26px;
    }
    
    .banner p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .search-box input {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .category-tabs {
        gap: 8px;
        margin-bottom: 30px;
    }
    
    .category-tab {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .site-card {
        padding: 20px 15px;
    }
    
    .site-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-left, .footer-right {
        flex: 0 0 100%;
    }
}

body.dark-mode {
    background-color: #1a1a1a;
    color: #f0f0f0;
    transition: all 0.3s ease;
}

body.dark-mode .site-card {
    background-color: #2d2d2d;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .site-card:hover {
    border-color: rgba(142, 68, 173, 0.2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

body.dark-mode .site-name {
    color: #e0e0e0;
}

body.dark-mode .site-card:hover .site-name {
    color: #8e44ad;
}

body.dark-mode .site-desc {
    color: #b0b0b0;
}

body.dark-mode .site-card:hover .site-desc {
    color: #c0c0c0;
}

body.dark-mode .site-icon {
    background-color: #3a3a3a;
    color: #8e44ad;
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.1);
}

body.dark-mode .site-card:hover .site-icon {
    background-color: #8e44ad;
    color: #f0f0f0;
}

body.dark-mode .category-tab {
    background-color: #333;
    color: #ddd;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .category-tab:hover, 
body.dark-mode .category-tab.active {
    background-color: #8e44ad;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(142, 68, 173, 0.3);
}

body.dark-mode .search-box input {
    background-color: #2d2d2d;
    color: #f0f0f0;
    border-color: #444;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

body.dark-mode .search-box input:focus {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(142, 68, 173, 0.3);
    transform: translateY(-2px);
}

body.dark-mode .search-box i {
    color: #8e44ad;
}

body.dark-mode .search-box:hover i {
    color: #9b59b6;
}

body.dark-mode .similar-name {
    color: #e0e0e0;
}

.theme-switch {
    position: fixed;
    top: 15px;
    right: 15px;
    cursor: pointer;
    z-index: 100;
    background-color: #f0f0f0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.theme-switch:hover {
    transform: rotate(30deg) scale(1.1);
}

body.dark-mode .theme-switch {
    background-color: #333;
    border-color: rgba(142, 68, 173, 0.5);
}

.page-title {
    text-align: center;
    padding: 15px 30px;
    background: linear-gradient(135deg, #3498db, #8e44ad);
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin: 20px auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-title span {
    color: #ffd700;
    font-weight: bold;
    margin-left: 5px;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    to {
        left: 100%;
    }
}

body.dark-mode .page-title {
    background: linear-gradient(135deg, #2980b9, #8e44ad);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
body.dark-mode .visit-btn {
    background-color: #8e44ad;
}

body.dark-mode .site-card:hover .visit-btn {
    background-color: #9b59b6;
}

.site-card:hover .visit-btn i {
    transform: translateX(4px);
}

.redirect-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.redirect-header {
    text-align: center;
    margin-bottom: 30px;
}

.redirect-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.redirect-icon {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.redirect-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.redirect-info {
    flex: 1;
}

.redirect-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.redirect-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.redirect-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.redirect-category {
    display: inline-block;
    padding: 5px 15px;
    background: #f0f5ff;
    border-radius: 20px;
    color: #3498db;
    font-size: 14px;
    margin-bottom: 15px;
}

.redirect-desc {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 15px;
}

.module-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
}

.module-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.module-info p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.similar-apps {
    margin: 30px 0;
}

.similar-apps h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 18px;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.similar-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.similar-card:hover {
    transform: translateY(-5px);
    background: #f0f5ff;
}

.similar-name {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 16px;
}

.similar-desc {
    color: #666;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.redirect-footer {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 30px;
}

.countdown {
    font-size: 18px;
    color: #3498db;
    margin-bottom: 15px;
}

.redirect-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.redirect-btn {
    padding: 10px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.redirect-now {
    background: #3498db;
    color: white;
    border: none;
}

.redirect-now:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

body.dark-mode .redirect-now {
    background: #8e44ad;
}

body.dark-mode .redirect-now:hover {
    background: #9b59b6;
}

.redirect-back {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.redirect-back:hover {
    background: #f1f1f1;
    transform: translateY(-2px);
}

body.dark-mode {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

body.dark-mode .redirect-container {
    background: #2d2d2d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .redirect-name {
    color: #e0e0e0;
}

body.dark-mode .redirect-category {
    background: #3a3a3a;
    color: #8e44ad;
}

body.dark-mode .redirect-desc,
body.dark-mode .module-info p,
body.dark-mode .similar-desc {
    color: #b0b0b0;
}

body.dark-mode .module-info,
body.dark-mode .similar-card,
body.dark-mode .redirect-footer {
    background: #333;
}

body.dark-mode .redirect-back {
    background: #333;
    color: #ddd;
    border-color: #444;
}

body.dark-mode .redirect-back:hover {
    background: #3a3a3a;
}

body.dark-mode .similar-card:hover {
    background: #3a3a3a;
}
