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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #0f0f14;
    color: #e5e5e5;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
}

.header {
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 24px;
}

.nav-item {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-item.active {
    color: #fff;
    font-weight: 600;
}

.nav-arrow {
    font-size: 12px;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 500px;
    background: rgba(30, 30, 40, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.02);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dropdown-favicon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.dropdown-menu .dropdown-item:nth-child(1) .dropdown-favicon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.dropdown-menu .dropdown-item:nth-child(2) .dropdown-favicon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.dropdown-menu .dropdown-item:nth-child(3) .dropdown-favicon {
    background: linear-gradient(135deg, #1abc9c, #16a085);
}

.dropdown-menu .dropdown-item:nth-child(4) .dropdown-favicon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.dropdown-menu .dropdown-item:nth-child(5) .dropdown-favicon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.dropdown-menu .dropdown-item:nth-child(6) .dropdown-favicon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.dropdown-menu .dropdown-item:nth-child(7) .dropdown-favicon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.dropdown-menu .dropdown-item:nth-child(8) .dropdown-favicon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.dropdown-info {
    flex: 1;
    min-width: 0;
}

.dropdown-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.dropdown-desc {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.dropdown-divider {
    grid-column: 1 / -1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 8px 0;
}

/* Right arrow on dropdown items */
.dropdown-item .dropdown-arrow {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.3);
    margin-left: 8px;
    transition: all 0.2s ease;
    transform: translateX(0);
}

.dropdown-item:hover .dropdown-arrow {
    color: rgba(255, 255, 255, 0.7);
    transform: translateX(3px);
}

/* CTA item at bottom */
.dropdown-item-cta {
    background: rgba(245, 158, 11, 0.08) !important;
    border: 1px solid rgba(245, 158, 11, 0.15) !important;
    border-radius: 10px !important;
    margin-top: 4px;
}

.dropdown-item-cta:hover {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}

.dropdown-item-cta .dropdown-name {
    color: #fbbf24 !important;
    font-weight: 600 !important;
}

.dropdown-item-cta .dropdown-desc {
    color: rgba(251, 191, 36, 0.6) !important;
}

/* Premium dropdown: fixed 2-column layout */
.nav-dropdown .dropdown-menu {
    width: 580px;
    padding: 16px;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
}

/* Remove grid layout from divider and CTA */
.nav-dropdown .dropdown-menu .dropdown-divider {
    grid-column: 1 / -1;
}

/* Make CTA span full width */
.nav-dropdown .dropdown-menu .dropdown-item-cta {
    grid-column: 1 / -1;
}

/* Better dropdown item text */
.nav-dropdown .dropdown-item .dropdown-info {
    flex: 1;
    min-width: 0;
}

.nav-dropdown .dropdown-item .dropdown-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-dropdown .dropdown-item .dropdown-desc {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-right .nav-item {
    padding: 6px 16px;
}

.header-right .nav-item:last-child {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
}

.header-right .nav-item:last-child:hover {
    opacity: 0.9;
}

.user-dropdown {
    position: relative;
}

.user-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.user-icon {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: rgba(30, 30, 40, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 1000;
}

.user-dropdown:hover .user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    margin-bottom: 8px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.user-info {
    flex: 1;
}

.user-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.user-desc {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

.user-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 8px 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: all 0.2s ease;
}

.user-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.menu-icon {
    width: 16px;
    height: 16px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hero {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f14 100%);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title-wrap h1 {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

.hero-search-wrap {
    width: 100%;
}

.hero-search-inner {
    background: rgba(30, 30, 40, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.hero-search-box {
    padding: 8px;
}

.hero-search-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-search-icon {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.5);
}

#heroSearchInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #fff;
    background: transparent;
}

#heroSearchInput::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.hero-kbd-group {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.hero-kbd {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-family: monospace;
}

.hero-search-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 8px;
}

.hero-search-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.hero-se-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.hero-se-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hero-se-btn:hover .se-arrow {
    transform: rotate(180deg);
}

#seIcon svg {
    width: 24px;
    height: 24px;
}

.se-arrow {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease;
}

.hero-se-dropdown {
    position: relative;
    z-index: 1001;
}

.hero-se-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: rgba(30, 30, 40, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    min-width: 140px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.hero-se-dropdown:hover .hero-se-menu {
    display: block;
}

.hero-search-box {
    overflow: visible;
}

.hero-search-inner {
    overflow: visible;
}

.hero-se-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    font-size: 14px;
}

.hero-se-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.hero-se-item.active {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.hero-se-item svg {
    width: 20px;
    height: 20px;
}

.hero-zhiant-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.hero-zhiant-pill {
    width: 40px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
}

.hero-zhiant-dot {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.hero-search-submit {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.hero-search-submit:hover {
    opacity: 0.9;
}

.category-bar {
    background: rgba(20, 20, 28, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
    position: sticky;
    top: 56px;
    z-index: 999;
}

.category-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-container::-webkit-scrollbar {
    display: none;
}

.category-item {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.02);
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.category-item.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px;
    display: flex;
    gap: 24px;
}

/* ============================================================
   ENHANCED GLASSMORPHISM SIDEBAR
   ============================================================ */

/* --- Sidebar Container --- */
.side-bar {
    width: 300px;
    flex-shrink: 0;
    order: 1;
    position: relative;
    z-index: 100;
}

/* --- Sidebar Glass Card --- */
.side-bar .aside-card {
    background: rgba(30, 30, 45, 0.55);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 1px 0 rgba(255, 255, 255, 0.08) inset;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Top gradient accent line */
.side-bar .aside-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(139, 92, 246, 0.6) 30%,
        rgba(102, 126, 234, 0.8) 50%,
        rgba(139, 92, 246, 0.6) 70%,
        transparent
    );
    pointer-events: none;
}

/* Bottom gradient accent line */
.side-bar .aside-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(139, 92, 246, 0.3) 30%,
        rgba(102, 126, 234, 0.5) 50%,
        rgba(139, 92, 246, 0.3) 70%,
        transparent
    );
    pointer-events: none;
}

/* --- Sidebar Header --- */
.side-bar .aside-header {
    padding: 10px 10px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.side-bar .sidebar-toggle {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.side-bar .sidebar-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(139, 92, 246, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.side-bar .sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.4);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.side-bar .sidebar-toggle:hover::before {
    opacity: 1;
}

.side-bar .sidebar-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

/* --- Sidebar List --- */
.side-bar .aside-ul {
    list-style: none;
    padding: 6px;
    margin: 0;
    overflow-y: auto;
    max-height: 580px;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
}

.side-bar .aside-ul::-webkit-scrollbar {
    width: 4px;
}
.side-bar .aside-ul::-webkit-scrollbar-track {
    background: transparent;
}
.side-bar .aside-ul::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 4px;
}
.side-bar .aside-ul::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

/* --- Sidebar Item --- */
.side-bar .aside-item {
    margin-bottom: 3px;
    position: relative;
}

.side-bar .aside-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    font-weight: 450;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.side-bar .aside-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.15),
        rgba(139, 92, 246, 0.1)
    );
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: inherit;
}

.side-bar .aside-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    transform: translateX(3px);
    border-color: rgba(255, 255, 255, 0.06);
}

.side-bar .aside-btn:hover::before {
    opacity: 1;
}

.side-bar .aside-btn.active {
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.25),
        rgba(139, 92, 246, 0.2)
    );
    color: #a5b4fc;
    font-weight: 500;
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 0 16px rgba(102, 126, 234, 0.15);
}

.side-bar .aside-btn.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: linear-gradient(180deg, #667eea, #a78bfa);
    border-radius: 0 3px 3px 0;
}

/* --- Sidebar Icon --- */
.side-bar .aside-icon {
    font-size: 16px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.1));
}

/* --- Sidebar Text --- */
.side-bar .aside-text {
    flex: 1;
    text-align: left;
    white-space: nowrap;
}

/* --- Sidebar Arrow --- */
.side-bar .aside-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid rgba(255, 255, 255, 0.4);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    transform: rotate(0deg);
    opacity: 0;
}

.side-bar .aside-has-sub > .aside-btn .aside-arrow {
    opacity: 1;
}

.side-bar .aside-has-sub:hover > .aside-btn .aside-arrow,
.side-bar .aside-has-sub.expanded > .aside-btn .aside-arrow {
    transform: rotate(90deg);
    border-left-color: #a5b4fc;
}

/* --- Sidebar Sub Menu (inline, shown on hover/expand) --- */
.side-bar .aside-sub {
    display: none;
    list-style: none;
    padding: 4px 0 4px 0;
    margin: 2px 0 0 18px;
    border-left: 1px solid rgba(102, 126, 234, 0.2);
    padding-left: 14px;
    position: relative;
    max-width: 100%;
    overflow: visible;
    flex-wrap: wrap;
    gap: 0;
}

.side-bar .aside-sub::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(180deg,
        rgba(102, 126, 234, 0.4),
        rgba(139, 92, 246, 0.2),
        transparent
    );
}

.side-bar .aside-has-sub:hover > .aside-sub,
.side-bar .aside-has-sub.expanded > .aside-sub {
    display: block;
    animation: subMenuSlide 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes subMenuSlide {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.side-bar .aside-sub li {
    margin-bottom: 2px;
}

.side-bar .aside-sub .aside-btn {
    padding: 6px 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.side-bar .aside-sub .aside-btn:hover {
    background: rgba(102, 126, 234, 0.12);
    color: #a5b4fc;
    transform: translateX(4px);
    border-color: rgba(102, 126, 234, 0.2);
}

/* --- Sidebar Bottom --- */
.side-bar .aside-bottom {
    padding: 8px 12px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.side-bar .expand-btn {
    justify-content: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.4) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px dashed rgba(255, 255, 255, 0.1) !important;
}

.side-bar .expand-btn:hover {
    color: #a5b4fc !important;
    background: rgba(102, 126, 234, 0.12) !important;
    border-color: rgba(102, 126, 234, 0.3) !important;
    border-style: solid !important;
}

.side-bar .expand-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.side-bar .expand-text {
    font-size: 13px;
}

/* ============================================================
   COLLAPSED SIDEBAR
   ============================================================ */
.side-bar.collapsed {
    width: 64px;
}

.side-bar.collapsed .aside-card {
    border-radius: 16px;
    padding: 6px;
}

.side-bar.collapsed .aside-header {
    justify-content: center;
    padding: 6px;
}

.side-bar.collapsed .sidebar-toggle svg {
    transform: rotate(180deg);
}

.side-bar.collapsed .aside-text,
.side-bar.collapsed .aside-arrow,
.side-bar.collapsed .aside-sub,
.side-bar.collapsed .aside-bottom {
    display: none !important;
}

.side-bar.collapsed .aside-btn {
    justify-content: center;
    padding: 12px;
}

.side-bar.collapsed .aside-icon {
    font-size: 20px;
}

.side-bar.collapsed .aside-ul {
    max-height: 620px;
}

/* Hover tooltip for collapsed state */
.side-bar.collapsed .aside-btn {
    position: relative;
}

.side-bar.collapsed .aside-btn:hover::after {
    content: attr(data-title);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 30, 45, 0.95);
    backdrop-filter: blur(20px);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
    z-index: 200;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    pointer-events: none;
    animation: tooltipFade 0.2s ease;
}

.side-bar.collapsed .aside-btn[data-title]:hover::after {
    content: attr(data-title);
}

@keyframes tooltipFade {
    from { opacity: 0; transform: translateY(-50%) translateX(-4px); }
    to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* ============================================================
   HOVER SUBMENU POPUP GRID
   A beautiful glassmorphism grid panel that appears on the right
   ============================================================ */
.side-bar .hover-submenu {
    position: absolute;
    top: 0;
    left: calc(100% + 12px);
    width: 340px;
    background: rgba(28, 29, 40, 0.75);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-12px) scale(0.96);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    overflow: hidden;
}

/* Top accent line for popup */
.side-bar .hover-submenu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(102, 126, 234, 0.7) 30%,
        rgba(139, 92, 246, 0.9) 50%,
        rgba(102, 126, 234, 0.7) 70%,
        transparent
    );
    pointer-events: none;
}

.side-bar .aside-has-sub:hover .hover-submenu,
.side-bar .aside-has-sub.expanded .hover-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

/* Submenu header */
.hover-submenu-header {
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hover-submenu-header .submenu-icon {
    font-size: 22px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(139, 92, 246, 0.2));
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.25);
}

.hover-submenu-header .submenu-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    flex: 1;
}

.hover-submenu-header .submenu-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Submenu grid of items */
.hover-submenu-grid {
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    max-height: 360px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
}

.hover-submenu-grid::-webkit-scrollbar {
    width: 4px;
}
.hover-submenu-grid::-webkit-scrollbar-track {
    background: transparent;
}
.hover-submenu-grid::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 4px;
}

/* Individual grid item */
.hover-submenu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 450;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.hover-submenu-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.15),
        rgba(139, 92, 246, 0.08)
    );
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: inherit;
}

.hover-submenu-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hover-submenu-item:hover::before {
    opacity: 1;
}

.hover-submenu-item .item-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.6);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.hover-submenu-item:hover .item-dot {
    background: #667eea;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.8);
    transform: scale(1.3);
}

.hover-submenu-item .item-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Arrow indicator on left side item */
.hover-submenu-item .item-arrow {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
}

.hover-submenu-item:hover .item-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Submenu footer */
.hover-submenu-footer {
    padding: 12px 20px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: center;
}

.hover-submenu-footer a {
    font-size: 12px;
    color: rgba(102, 126, 234, 0.8);
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hover-submenu-footer a:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #a5b4fc;
    border-color: rgba(102, 126, 234, 0.4);
}

.hot-list, .new-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hot-list li, .new-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hot-list li:last-child, .new-list li:last-child {
    border-bottom: none;
}

.hot-list a, .new-list a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.hot-list a:hover, .new-list a:hover {
    color: #fff;
}

.rank {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.rank:nth-child(2) {
    background: linear-gradient(135deg, #ffa502, #ff8c00);
}

.rank:nth-child(3) {
    background: linear-gradient(135deg, #ffd700, #daa520);
}

.main-content {
    flex: 1;
    padding-right: 20px;
}

.content-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    position: relative;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-icon {
    font-size: 18px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h2::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
    flex-shrink: 0;
}

.section-sub-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.sub-tab {
    padding: 5px 12px;
    background: rgba(30, 30, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sub-tab:hover {
    background: rgba(30, 30, 40, 0.8);
    color: #fff;
}

.sub-tab.active {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.6);
    color: #818cf8;
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.3);
}

.sub-tab.highlight {
    animation: pulse-highlight 0.5s ease-in-out;
}

@keyframes pulse-highlight {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 12px rgba(102, 126, 234, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
    }
}

.section-more {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    margin-left: auto;
    transition: color 0.2s ease;
}

.section-more:hover {
    color: #667eea;
}

.cards-grid.empty {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: rgba(30, 30, 40, 0.3);
    border-radius: 12px;
}

.cards-empty-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    display: none;
}

.cards-empty-msg span {
    display: block;
    margin-bottom: 12px;
}

.empty-submit-link {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.empty-submit-link:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.5);
}

.empty-state {
    text-align: center;
}

.empty-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    margin: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.category-more {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.category-more:hover {
    color: #667eea;
}

.category-slider {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-slider::-webkit-scrollbar {
    display: none;
}

.category-tabs {
    display: flex;
    gap: 8px;
    padding-bottom: 8px;
    min-width: max-content;
}

.category-tab {
    padding: 8px 16px;
    background: rgba(30, 30, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-tab:hover {
    background: rgba(30, 30, 40, 0.8);
    color: #fff;
}

.category-tab.active {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    color: #818cf8;
}

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

.card.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.ranking-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.ranking-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.card-icon.color-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.card-icon.color-2 { background: linear-gradient(135deg, #008373, #00b4a6); }
.card-icon.color-3 { background: linear-gradient(135deg, #ff6b6b, #ee5a24); }
.card-icon.color-4 { background: linear-gradient(135deg, #ff9ff3, #f368e0); }
.card-icon.color-5 { background: linear-gradient(135deg, #54a0ff, #0984e3); }
.card-icon.color-6 { background: linear-gradient(135deg, #fd79a8, #e84393); }
.card-icon.color-7 { background: linear-gradient(135deg, #00b894, #00cec9); }
.card-icon.color-8 { background: linear-gradient(135deg, #a29bfe, #6c5ce7); }

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 2px 0;
    line-height: 1.4;
}

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

.card-tags .tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-tags .tag.free {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.card-tags .tag.recommend {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.card-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-favorite {
    width: 26px;
    height: 26px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-favorite:hover {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.card-favorite.active {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.card-link {
    font-size: 11px;
    color: rgba(16, 185, 129, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-link:hover {
    color: #818cf8;
}

.view-more {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 6px 12px;
    border-radius: 20px;
}

.view-more:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.website-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.website-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: rgba(30, 30, 40, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.website-card:hover {
    background: rgba(35, 35, 50, 0.9);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(6px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.website-favicon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.website-card:nth-child(1) .website-favicon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.website-card:nth-child(2) .website-favicon {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
}

.website-card:nth-child(3) .website-favicon {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
}

.website-card:nth-child(4) .website-favicon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.website-card:nth-child(5) .website-favicon {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.website-card:nth-child(6) .website-favicon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.website-card:nth-child(7) .website-favicon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.website-card:nth-child(8) .website-favicon {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.website-info {
    flex: 1;
    min-width: 0;
}

.website-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.website-name::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
}

.website-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.tag {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.tag.recommend {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.tag.free {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.tag.china {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.website-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.favorite-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.favorite-btn:hover {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
    transform: scale(1.05);
}

.favorite-btn.active {
    background: rgba(251, 146, 60, 0.3);
    color: #fb923c;
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f39c12;
}

.direct-link {
    font-size: 13px;
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.direct-link:hover {
    color: #764ba2;
}

.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-tab {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.filter-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.category-box {
    padding: 20px;
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.category-box:hover {
    background: rgba(30, 30, 40, 0.8);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-4px);
}

.category-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.category-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.footer {
    background: rgba(20, 20, 28, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    margin-top: 40px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   CARD HOVER EFFECTS (reinforced for glassmorphism theme)
   ============================================================ */
.card {
    background: linear-gradient(145deg,
        rgba(30, 30, 45, 0.75),
        rgba(40, 40, 55, 0.55),
        rgba(30, 30, 45, 0.75)
    );
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Shimmer effect on card hover */
.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.03) 45%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.03) 55%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.card:hover {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(102, 126, 234, 0.15) inset;
    transform: translateY(-2px);
}

.card:hover::before {
    transform: translateX(100%);
}

.card-header {
    position: relative;
    z-index: 1;
}

.card-icon,
.card-title,
.card-tags,
.card-desc,
.card-actions {
    position: relative;
    z-index: 1;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablet */
@media (max-width: 1100px) {
    .side-bar .hover-submenu {
        display: none !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-left {
        gap: 16px;
    }

    .main-nav {
        gap: 8px;
    }

    .nav-item {
        font-size: 13px;
        padding: 6px 8px;
    }

    .hero-title-wrap h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .content-wrapper {
        flex-direction: column;
        padding: 16px 12px;
    }

    .side-bar {
        width: 100%;
        order: 0;
        margin-bottom: 0;
    }

    .side-bar .aside-card {
        max-height: none;
    }

    .side-bar .aside-ul {
        max-height: none;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding: 8px;
    }

    .side-bar .aside-item {
        margin-bottom: 0;
        flex: 0 0 auto;
    }

    .side-bar .aside-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .side-bar .aside-text {
        display: inline;
    }

    .side-bar .aside-arrow,
    .side-bar .aside-sub,
    .side-bar .hover-submenu,
    .side-bar .aside-bottom {
        display: none !important;
    }

    .side-bar .aside-card {
        border-radius: 16px;
    }

    .category-container {
        gap: 8px;
    }

    .category-item {
        font-size: 13px;
        padding: 6px 10px;
    }

    .website-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .website-actions {
        flex-direction: row;
        align-items: center;
        margin-top: 12px;
        width: 100%;
        justify-content: space-between;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .card {
        padding: 14px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-sub-tabs {
        width: 100%;
        overflow-x: auto;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-title-wrap h1 {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .side-bar .aside-ul {
        padding: 6px;
    }

    .side-bar .aside-btn {
        padding: 7px 10px;
        font-size: 12px;
    }

    .side-bar .aside-icon {
        font-size: 14px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   浅色模式（body.light-mode 覆盖）
   ============================================================ */
body.light-mode {
    background-color: #f0f2f5;
    color: #1a1a2e;
}
body.light-mode .header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}
body.light-mode .logo { color: #1a1a2e; }
body.light-mode .nav-item { color: #4a5568; }
body.light-mode .nav-item:hover,
body.light-mode .nav-item.active { color: #667eea; }
body.light-mode .dropdown-menu {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
body.light-mode .dropdown-name { color: #1a1a2e; }
body.light-mode .dropdown-desc { color: #718096; }
body.light-mode .dropdown-arrow { color: #a0aec0; }
body.light-mode .dropdown-divider { background: rgba(0, 0, 0, 0.06); }
body.light-mode .user-menu {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
body.light-mode .user-name { color: #1a1a2e; }
body.light-mode .user-desc { color: #718096; }
body.light-mode .user-divider { background: rgba(0, 0, 0, 0.06); }
body.light-mode .user-menu-item { color: #4a5568; }
body.light-mode .user-menu-item:hover { background: #f7f8fa; color: #667eea; }
body.light-mode .hero {
    background: linear-gradient(180deg, #ffffff 0%, #f0f2f5 100%);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}
body.light-mode .hero-title-wrap h1 { color: #1a1a2e; }
body.light-mode .hero-subtitle { color: #718096; }
body.light-mode .hero-search-box {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}
body.light-mode .hero-search-input { color: #1a1a2e; }
body.light-mode .hero-search-input::placeholder { color: #a0aec0; }
body.light-mode .hero-kbd { background: #f0f2f5; color: #718096; border-color: rgba(0, 0, 0, 0.1); }
body.light-mode .hero-search-divider { background: rgba(0, 0, 0, 0.06); }
body.light-mode .hero-se-btn { color: #4a5568; background: #f7f8fa; border-color: rgba(0, 0, 0, 0.08); }
body.light-mode .hero-se-menu { background: #fff; border-color: rgba(0, 0, 0, 0.08); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); }
body.light-mode .hero-se-item { color: #4a5568; }
body.light-mode .hero-se-item:hover { background: #f7f8fa; }
body.light-mode .hero-se-item.active { background: rgba(102, 126, 234, 0.08); color: #667eea; }
body.light-mode .hero-zhiant-label { color: #4a5568; }
body.light-mode .hero-zhiant-pill { background: rgba(0, 0, 0, 0.08); }
body.light-mode .hero-zhiant-dot { background: #667eea; }
body.light-mode .hero-search-submit { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }
body.light-mode .search-suggest-dropdown { background: #fff; border-color: rgba(0, 0, 0, 0.08); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); }
body.light-mode .suggest-item { color: #1a1a2e; }
body.light-mode .suggest-item:hover { background: #f7f8fa; }
body.light-mode .suggest-title { color: #1a1a2e; }
body.light-mode .suggest-desc { color: #718096; }
body.light-mode .suggest-empty { color: #718096; }
body.light-mode .theme-toggle { background: rgba(0, 0, 0, 0.06); color: #4a5568; }
body.light-mode .theme-toggle:hover { background: rgba(0, 0, 0, 0.1); }

body.light-mode .side-bar { background: rgba(255, 255, 255, 0.9); border-right: 1px solid rgba(0, 0, 0, 0.06); }
body.light-mode .aside-card { background: transparent; border: none; box-shadow: none; }
body.light-mode .aside-btn { color: #4a5568; }
body.light-mode .aside-btn:hover { background: rgba(102, 126, 234, 0.08); color: #667eea; }
body.light-mode .aside-btn.active { background: rgba(102, 126, 234, 0.12); color: #667eea; }
body.light-mode .aside-text { color: inherit; }
body.light-mode .aside-arrow { border-color: rgba(0, 0, 0, 0.15); }
body.light-mode .aside-bottom { border-top: 1px solid rgba(0, 0, 0, 0.06); }
body.light-mode .expand-btn { color: #718096; }
body.light-mode .hover-submenu { background: #fff; border: 1px solid rgba(0, 0, 0, 0.08); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); }
body.light-mode .submenu-title { color: #1a1a2e; }
body.light-mode .submenu-count { color: #718096; }
body.light-mode .hover-submenu-item { color: #4a5568; }
body.light-mode .hover-submenu-item:hover { background: #f7f8fa; color: #667eea; }
body.light-mode .item-text { color: #1a1a2e; }
body.light-mode .item-arrow { color: #a0aec0; }
body.light-mode .hover-submenu-footer a { color: #667eea; }
body.light-mode .aside-sub li a { color: #718096; }
body.light-mode .aside-sub li a:hover { color: #667eea; background: rgba(102, 126, 234, 0.06); }

body.light-mode .content-section { }
body.light-mode .section-header { border-bottom-color: rgba(0, 0, 0, 0.06); }
body.light-mode .section-title-wrap h2 { color: #1a1a2e; }
body.light-mode .section-icon { opacity: 1; }
body.light-mode .section-more { color: #667eea; }
body.light-mode .sub-tab { color: #718096; background: #f7f8fa; border-color: rgba(0, 0, 0, 0.08); }
body.light-mode .sub-tab:hover { color: #667eea; border-color: rgba(102, 126, 234, 0.3); }
body.light-mode .sub-tab.active { background: rgba(102, 126, 234, 0.12); color: #667eea; border-color: rgba(102, 126, 234, 0.3); }

body.light-mode .card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
body.light-mode .card:hover {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12);
}
body.light-mode .card-title { color: #1a1a2e; }
body.light-mode .card-desc { color: #718096; }
body.light-mode .tag { background: #f0f2f5; color: #4a5568; border-color: rgba(0, 0, 0, 0.08); }
body.light-mode .tag.free { background: rgba(16, 185, 129, 0.1); color: #10b981; border-color: rgba(16, 185, 129, 0.2); }
body.light-mode .card-favorite { color: #a0aec0; }
body.light-mode .card-favorite.active { color: #f59e0b; }
body.light-mode .card-link { color: #667eea; }

body.light-mode .footer { background: #fff; border-top-color: rgba(0, 0, 0, 0.06); }
body.light-mode .footer a { color: #718096; }
body.light-mode .footer a:hover { color: #667eea; }
body.light-mode .footer-copyright { color: #a0aec0; }

body.light-mode .toast-container .toast { color: #fff; }

/* 浅色模式滚动条 */
body.light-mode ::-webkit-scrollbar { width: 6px; height: 6px; }
body.light-mode ::-webkit-scrollbar-track { background: transparent; }
body.light-mode ::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); border-radius: 3px; }
body.light-mode ::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.25); }
