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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
}

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

header {
    text-align: center;
    padding: 60px 0 40px;
}

.logo {
    font-size: 48px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

h1 {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(90deg, #00d2ff, #3a7bd5, #9b59b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.subtitle {
    font-size: 18px;
    color: #8892b0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.header-nav {
    margin-top: 20px;
}

.header-nav .nav-link {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.header-nav .nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 210, 255, 0.3);
}

.quote-section {
    max-width: 700px;
    margin: 30px auto;
    padding: 24px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-align: center;
}

.quote-title {
    font-size: 16px;
    color: #00d2ff;
    margin-bottom: 12px;
    font-weight: 600;
}

.quote-content {
    font-size: 20px;
    color: #fff;
    line-height: 1.8;
    margin-bottom: 10px;
    font-style: italic;
}

.quote-author {
    font-size: 14px;
    color: #8892b0;
}

.quote-category {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 12px;
    background: rgba(155, 89, 182, 0.2);
    color: #c084fc;
    border-radius: 12px;
    font-size: 12px;
}

.quote-refresh {
    margin-top: 15px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #8892b0;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.quote-refresh:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.search-box {
    max-width: 600px;
    margin: 40px auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 18px 24px;
    font-size: 16px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.3);
}

.search-box input::placeholder {
    color: #8892b0;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
}

.category-btn {
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.category-btn:hover, .category-btn.active {
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    border-color: transparent;
    transform: translateY(-2px);
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 4px solid #00d2ff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title .icon {
    font-size: 32px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 210, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.card-desc {
    font-size: 14px;
    color: #8892b0;
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 12px;
    background: rgba(0, 210, 255, 0.15);
    color: #00d2ff;
    border-radius: 12px;
    font-size: 12px;
}

.tag.secondary {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
}

footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
}

footer p {
    color: #8892b0;
    font-size: 14px;
}

.footer-main {
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #8892b0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    background: rgba(0, 210, 255, 0.15);
    border-color: rgba(0, 210, 255, 0.3);
    color: #00d2ff;
    transform: translateY(-2px);
}

.footer-link .link-icon {
    font-size: 16px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 30px;
}

.footer-bottom .copyright {
    color: #8892b0;
    font-size: 14px;
}

.footer-bottom .icp {
    font-size: 12px;
    color: #666;
}

.footer-sitemap {
    margin-top: 20px;
}

.footer-sitemap h4 {
    font-size: 14px;
    color: #8892b0;
    margin-bottom: 12px;
    font-weight: 500;
}

.sitemap-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.sitemap-tag {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    color: #8892b0;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sitemap-tag:hover {
    background: rgba(155, 89, 182, 0.15);
    border-color: rgba(155, 89, 182, 0.3);
    color: #9b59b6;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.4);
}

@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .categories {
        gap: 8px;
    }
    
    .category-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}
