@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@600;800&display=swap');




:root {
    
    --bg-page: #f6f8fa;
    --bg-surface: #ffffff;
    --bg-surface-subtle: #f1f5f9;
    --bg-surface-elevated: #ffffff;

    
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --accent-pink: #ec4899;
    --accent-pink-light: #fdf2f8;
    --accent-cyan: #0284c7;
    --accent-cyan-light: #f0f9ff;
    --accent-amber: #d97706;
    --accent-amber-light: #fffbeb;

    
    --gradient-brand: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-brand-btn: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-silver: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    --gradient-bronze: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);

    
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;

    
    --border-subtle: #e2e8f0;
    --border-highlight: #cbd5e1;
    --border-focus: #818cf8;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.07), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
    --shadow-hover: 0 10px 24px -4px rgba(79, 70, 229, 0.12), 0 4px 8px -2px rgba(15, 23, 42, 0.04);

    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-pill: 9999px;
    --bento-gap: 16px;

    
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1400px;
}


*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--bg-page);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-body);
    background-color: var(--bg-page);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

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

button, input, textarea {
    font: inherit;
    border: none;
    outline: none;
    background: none;
}


.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 650px;
}

.header-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-nav-item {
    cursor: pointer;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    transition: var(--transition);
    background: none;
    border: none;
}

.header-nav-item:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.header-nav-item.active {
    color: #ffffff;
    background: var(--gradient-brand);
    box-shadow: 0 3px 8px rgba(79, 70, 229, 0.2);
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo-svg {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(255, 42, 84, 0.25));
}

.brand-logo:hover .brand-logo-svg {
    transform: rotate(20deg) scale(1.08);
    filter: drop-shadow(0 4px 12px rgba(121, 40, 202, 0.45));
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-text {
    font-family: 'Outfit', var(--font-sans);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
    background: linear-gradient(135deg, #FF2A54 0%, #7928CA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(255, 42, 84, 0.15);
    display: flex;
    align-items: baseline;
}

.brand-domain {
    font-family: 'Outfit', var(--font-sans);
    font-size: 0.8rem;
    font-weight: 800;
    color: #7928CA;
    opacity: 0.65;
    margin-left: 2px;
    letter-spacing: 0.5px;
}

.brand-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface-subtle);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.highlight-num {
    color: var(--primary);
    font-weight: 700;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.header-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(79, 70, 229, 0.25);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition);
}

.header-apply-btn:hover {
    background: var(--gradient-brand-btn);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}


.main-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 20px 15px;
}


.hero-section {
    text-align: center;
    padding: 6px 10px 8px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    background: var(--primary-light);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: var(--radius-pill);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.hero-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-heading);
    margin-top: -2px;
    margin-bottom: 4px;
    line-height: 1.25;
}

.hero-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 8px;
}


.search-capsule-wrapper {
    max-width: 640px;
    margin: 0 auto 0px;
}


.hot-search-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #6B7280;
}

.hot-search-label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 600;
}

.hot-search-label i {
    color: #ef4444;
    font-size: 0.8rem;
}

.hot-search-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hot-tag-btn {
    cursor: pointer;
    background: none;
    border: none;
    padding: 2px 0;
    font-size: 0.75rem;
    color: #6B7280;
    transition: var(--transition);
    position: relative;
}

.hot-tag-btn:hover {
    color: var(--primary);
}

.hot-tag-btn:not(:last-child)::after {
    content: "·";
    position: absolute;
    right: -6px;
    color: #D1D5DB;
    pointer-events: none;
}

.search-capsule {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: 5px 10px 5px 18px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.search-capsule:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12), var(--shadow-md);
}

.search-icon {
    font-size: 1.05rem;
    color: var(--text-subtle);
    margin-right: 10px;
}

.search-capsule input {
    flex: 1;
    color: var(--text-heading);
    font-size: 0.95rem;
    padding: 6px 0;
}

.search-capsule input::placeholder {
    color: var(--text-subtle);
    font-size: 0.9rem;
}


.search-capsule input::-webkit-search-cancel-button,
.search-capsule input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.search-clear-btn {
    display: none;
    cursor: pointer;
    color: var(--text-subtle);
    padding: 4px;
    border-radius: 50%;
    transition: var(--transition);
}

.search-clear-btn:hover {
    color: var(--text-heading);
    background: var(--bg-surface-subtle);
}

.search-kbd-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
}

.search-kbd-hint kbd {
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-family: inherit;
    color: var(--text-muted);
    font-weight: 600;
}


.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-heading);
    padding: 6px;
    border-radius: 6px;
    transition: var(--transition);
    background: none;
    border: none;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}


.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    justify-content: flex-end;
}

.mobile-drawer-card {
    background: #ffffff;
    width: 280px;
    height: 100%;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    animation: drawerSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes drawerSlideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.drawer-close-btn {
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-muted);
    padding: 4px;
    border-radius: 50%;
    transition: var(--transition);
    background: none;
    border: none;
}

.drawer-close-btn:hover {
    color: var(--text-heading);
    background: rgba(0, 0, 0, 0.05);
}

.drawer-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.drawer-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.drawer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-nav-item {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-heading);
    transition: var(--transition);
    text-align: left;
    width: 100%;
    background: none;
    border: none;
}

.drawer-nav-item i {
    width: 16px;
    text-align: center;
    color: var(--text-muted);
}

.drawer-nav-item:hover {
    background: var(--bg-surface-subtle);
    color: var(--primary);
}

.drawer-nav-item:hover i {
    color: var(--primary);
}

.drawer-nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

.drawer-nav-item.active i {
    color: var(--primary);
}

.drawer-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 20px 0;
}

.drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0 4px;
}

.drawer-apply-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: var(--radius-pill);
    background: var(--gradient-brand-btn);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(79, 70, 229, 0.25);
    transition: var(--transition);
    border: none;
}

.drawer-apply-btn:hover {
    opacity: 0.95;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}


.section-head {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.section-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text-heading);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.3px;
}

.section-title i {
    color: var(--primary);
    font-size: 1.05rem;
}

.section-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
}


.bento-section {
    margin-bottom: 32px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(140px, 1fr);
    height: 330px;
    gap: var(--bento-gap);
}

.bento-portal-card {
    height: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.bento-portal-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-hover);
}

.bento-slot-hero {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-slot-wide {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-slot-square {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-thumb-box {
    position: relative;
    width: 100%;
    height: 70px;
    background: var(--bg-surface-subtle);
    overflow: hidden;
    flex-shrink: 0;
}

.bento-slot-hero .bento-thumb-box {
    height: 140px;
}

.bento-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.bento-portal-card:hover .bento-img {
    transform: scale(1.04);
}

.bento-badge-float {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 2;
}




.bento-body {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-surface);
}

.bento-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.bento-rating {
    font-size: 0.74rem;
    color: var(--accent-amber);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bento-stats {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: var(--bg-surface-subtle);
    padding: 2px 6px;
    border-radius: 4px;
}

.bento-site-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.3;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bento-site-desc {
    font-size: 0.76rem;
    color: var(--text-body);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bento-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
}

.bento-tag-pills {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.bento-tag-pill {
    font-size: 0.72rem;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.bento-btn-direct {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    background: var(--gradient-brand-btn);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
    transition: var(--transition);
    white-space: nowrap;
}

.bento-btn-direct:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35);
}


.bento-wide-layout {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 12px;
    background: var(--bg-surface);
}

.bento-thumb-square {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-surface-subtle);
}

.bento-body-right {
    flex: 1;
    min-width: 0;
    padding-left: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 110px;
}

.bento-body-right .bento-site-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.bento-body-right .bento-site-desc {
    font-size: 0.74rem;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-body);
}

.bento-body-right .bento-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
    border-top: none;
    margin-top: auto;
}


.bento-square-layout {
    padding: 12px 14px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-surface);
}

.bento-square-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.bento-site-icon-square {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    flex-shrink: 0;
    border: 1px solid rgba(79, 70, 229, 0.15);
    position: relative;
    overflow: hidden;
}

.card-fallback-avatar-square {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-size: inherit;
    font-weight: 800;
    z-index: 0;
}

.bento-square-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.bento-square-title-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bento-site-title-square {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.bento-rating-square {
    font-size: 0.7rem;
    color: var(--accent-amber);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.bento-site-desc-square {
    font-size: 0.76rem;
    color: var(--text-body);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 32px;
}

.bento-square-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.bento-stats-square {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.bento-btn-mini {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: var(--gradient-brand-btn);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    box-shadow: 0 1px 4px rgba(79, 70, 229, 0.2);
    transition: var(--transition);
    white-space: nowrap;
}

.bento-btn-mini:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(79, 70, 229, 0.3);
}


.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 22px;
    align-items: flex-start;
}

.stream-section {
    min-width: 0;
}

.stream-head {
    margin-top: 0;
    padding-top: 0;
    line-height: 1;
    margin-bottom: 12px;
}

.stream-head .section-title {
    margin-top: 0;
    padding-top: 0;
    line-height: 1;
}

@media (min-width: 1081px) {
    .rank-card {
        margin-top: 31px; 
    }
}


.stream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

@media (min-width: 1024px) {
    .stream-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1400px) {
    .stream-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.nav-portal-card {
    background: var(--bg-surface);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.nav-portal-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
}


.card-preview-box {
    position: relative;
    width: 100%;
    height: 120px;
    background: var(--bg-surface-subtle);
    overflow: hidden;
}

.card-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.nav-portal-card:hover .card-preview-img {
    transform: scale(1.04);
}

.card-fallback-avatar {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    font-weight: 900;
    color: rgba(79, 70, 229, 0.2);
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
}

.card-preview-tags {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

.preview-category-badge {
    padding: 3px 8px;
    background: rgba(31, 41, 55, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
}

.preview-heat-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    background: rgba(245, 158, 11, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}


.card-info-box {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-surface);
}

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

.card-site-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
    border: 1px solid rgba(79, 70, 229, 0.15);
}

.card-title-group {
    flex: 1;
    min-width: 0;
}

.card-site-title {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.card-site-desc {
    font-size: 12.5px;
    color: #4B5563;
    line-height: 1.45;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.card-tags-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow: hidden;
    margin-bottom: 8px;
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}

.card-tag-pill {
    flex-shrink: 0;
    padding: 2px 8px;
    background: #F3F4F6;
    color: #4B5563;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
}

.card-footer-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-visit-site {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: #F3F2FF;
    color: #4F46E5;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-visit-site i {
    transition: transform 0.2s ease;
}

.btn-visit-site:hover {
    background: #E0E7FF;
    color: #4338CA;
}

.btn-visit-site:hover i {
    transform: translate(2px, -2px);
}


.card-skeleton {
    height: 290px;
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
    background-size: 400% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}


.sidebar-sticky {
    position: sticky;
    top: 72px;
}

.rank-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.rank-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.rank-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 6px;
}

.rank-title i {
    color: #eab308;
}

.rank-badge {
    font-size: 0.7rem;
    padding: 2px 7px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    color: #059669;
    font-weight: 700;
    white-space: nowrap;
}

.rank-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface-subtle);
    border: 1px solid transparent;
    transition: var(--transition);
}

.rank-item:hover {
    background: #ffffff;
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transform: translateX(3px);
}

.rank-num {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--text-muted);
    background: #ffffff;
    border: 1px solid var(--border-subtle);
}

.rank-top-1 {
    background: var(--gradient-gold);
    color: #ffffff;
    border: none;
}

.rank-top-2 {
    background: var(--gradient-silver);
    color: #ffffff;
    border: none;
}

.rank-top-3 {
    background: var(--gradient-bronze);
    color: #ffffff;
    border: none;
}

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

.rank-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.rank-name {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-domain {
    font-size: 0.7rem;
    color: var(--text-subtle);
    font-family: ui-monospace, monospace;
}

.rank-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-heat-val {
    font-size: 0.78rem;
    font-weight: 800;
    color: #d97706;
    display: flex;
    align-items: center;
    gap: 3px;
}


.seo-keywords-section {
    margin-top: 36px;
    margin-bottom: 10px;
}

.seo-keywords-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.seo-group-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.seo-group-title i {
    color: var(--primary);
    font-size: 0.85rem;
}

.seo-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.seo-link-tag {
    display: inline-block;
    padding: 3px 8px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-body);
    font-weight: 500;
    transition: var(--transition);
}

.seo-link-tag:hover {
    color: var(--primary);
    background: var(--primary-light);
    border-color: rgba(79, 70, 229, 0.3);
}

.seo-friend-link {
    display: inline-block;
    padding: 4px 10px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    font-size: 12px;
    color: var(--text-heading);
    font-weight: 600;
    transition: var(--transition);
}

.seo-friend-link:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: rgba(79, 70, 229, 0.3);
}


.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-surface-subtle);
}

.modal-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-title i {
    color: var(--primary);
}

.modal-close-btn {
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-muted);
    padding: 4px;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close-btn:hover {
    color: var(--text-heading);
    background: rgba(0, 0, 0, 0.05);
}

.modal-body {
    padding: 20px;
}

.modal-tip {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.modal-form-item {
    margin-bottom: 14px;
}

.modal-form-item label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.modal-form-item input, .modal-form-item textarea {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-heading);
    transition: var(--transition);
}

.modal-form-item input:focus, .modal-form-item textarea:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-surface-subtle);
    border-top: 1px solid var(--border-subtle);
}

.modal-btn-cancel {
    cursor: pointer;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: #ffffff;
    border: 1px solid var(--border-subtle);
}

.modal-btn-submit {
    cursor: pointer;
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--gradient-brand-btn);
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}


.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
}

.security-badge i {
    font-size: 0.85rem;
}

.security-modal-body {
    padding: 24px 20px 20px;
}

.security-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 20px;
    line-height: 1.3;
}

.security-target-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-subtle);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.security-site-icon-wrapper {
    flex-shrink: 0;
}

.security-site-icon-wrapper .card-site-icon {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
    border-radius: 8px;
    border: 1px solid rgba(79, 70, 229, 0.2);
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.08);
}

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

.security-site-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.security-site-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.security-status-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    background: #ecfdf5;
    color: #10b981;
    border: 1px solid #a7f3d0;
    padding: 1px 6px;
    border-radius: 4px;
}

.security-site-url {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.security-notice-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 8px;
}

.security-btn-go {
    background: var(--gradient-brand-btn);
    box-shadow: 0 3px 8px rgba(79, 70, 229, 0.25);
    transition: all 0.2s ease;
}

.security-btn-go:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}


.empty-state {
    text-align: center;
    padding: 50px 20px;
    background: var(--bg-surface);
    border: 2px dashed var(--border-subtle);
    border-radius: var(--radius-lg);
}

.empty-icon {
    font-size: 3rem;
    color: var(--text-subtle);
    margin-bottom: 14px;
}

.empty-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.empty-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-btn {
    cursor: pointer;
    padding: 8px 20px;
    background: var(--gradient-brand-btn);
    color: #ffffff;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.3);
    transition: var(--transition);
}

.site-footer {
    border-top: 1px solid var(--border-subtle);
    background: #ffffff;
    padding: 35px 20px 30px;
    margin-top: 20px;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    justify-content: center;
}

.footer-tagline {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
}

.footer-disclaimer {
    font-size: 0.78rem;
    color: var(--text-subtle);
    line-height: 1.7;
    border-top: 1px solid var(--border-subtle);
    padding-top: 20px;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.footer-copy {
    margin-top: 12px;
    color: var(--text-subtle);
    font-size: 0.76rem;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    color: var(--text-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}


@media (max-width: 1080px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar-section {
        margin-top: 16px;
    }
    
    .sidebar-sticky {
        position: static;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 6px 14px;
    }

    .header-status {
        display: none; 
    }

    .header-apply-btn {
        padding: 4px 10px;
        font-size: 0.76rem;
    }

    .main-wrapper {
        padding: 10px 10px 30px;
    }

    .hero-section {
        padding: 8px 0 10px;
    }

    .hero-title {
        font-size: 1.45rem;
    }

    .hero-subtitle {
        font-size: 0.82rem;
        margin-bottom: 12px;
    }

    
    .hot-search-wrapper {
        flex-direction: column;
        gap: 4px;
        margin-top: 6px;
    }

    .hot-search-tags {
        justify-content: center;
        gap: 6px;
    }

    .hot-tag-btn {
        background: var(--bg-surface-subtle);
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 0.72rem;
    }

    .hot-tag-btn:not(:last-child)::after {
        display: none;
    }

    .search-capsule-wrapper {
        margin: 0 auto 10px;
    }

    .search-capsule {
        padding: 4px 8px 4px 14px;
    }

    .search-capsule input {
        font-size: 0.88rem;
    }

    .search-kbd-hint {
        display: none;
    }

    
    .header-nav {
        display: none;
    }

    .header-status {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    
    .bento-grid {
        display: flex;
        flex-direction: column;
        height: auto !important;
        min-height: unset;
        gap: 12px;
    }

    .bento-portal-card {
        width: 100% !important;
        height: auto !important;
    }

    .bento-slot-hero,
    .bento-slot-wide,
    .bento-slot-square {
        grid-column: auto !important;
        grid-row: auto !important;
        width: 100% !important;
        height: auto !important;
    }

    
    .bento-slot-hero .bento-thumb-box {
        height: 120px !important;
    }

    .bento-slot-hero .bento-body {
        padding: 10px 12px;
        height: auto;
    }

    
    .bento-wide-layout {
        padding: 10px;
        height: auto !important;
    }

    .bento-thumb-square {
        width: 70px !important;
        height: 70px !important;
    }

    .bento-thumb-square .bento-badge-float {
        display: none !important;
    }

    .bento-body-right {
        padding-left: 10px;
        height: auto !important;
        justify-content: flex-start;
        gap: 6px;
    }

    .bento-body-right .bento-site-title {
        font-size: 0.9rem;
    }

    .bento-body-right .bento-site-desc {
        font-size: 0.72rem;
        line-height: 1.3;
        margin-bottom: 2px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .bento-body-right .bento-action-bar {
        padding-top: 6px;
        margin-top: 4px;
        border-top: none;
    }

    .bento-body-right .bento-tag-pills {
        display: none; 
    }

    .bento-body-right .bento-btn-direct {
        padding: 3px 10px;
        font-size: 0.72rem;
    }

    
    .bento-square-layout {
        padding: 10px 12px;
        height: auto !important;
        gap: 6px;
    }

    .bento-site-icon-square {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.95rem;
    }

    .bento-site-title-square {
        font-size: 0.9rem;
    }

    .bento-site-desc-square {
        font-size: 0.72rem;
        line-height: 1.35;
        margin-bottom: 4px;
        min-height: unset;
    }

    .bento-square-footer {
        margin-top: 4px;
    }

    .bento-btn-mini {
        padding: 2px 8px;
        font-size: 0.7rem;
    }

    
    .content-layout {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .stream-section {
        order: 1;
        width: 100%;
    }

    .sidebar-section {
        order: 2;
        width: 100%;
        margin-top: 10px;
    }

    
    .stream-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .card-info-box {
        padding: 8px 10px 10px;
    }

    .card-site-icon {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .card-site-title {
        font-size: 0.85rem;
    }

    .card-site-desc {
        display: none; 
    }

    .card-tags-bar {
        display: none;
    }

    .card-footer-meta {
        font-size: 0.68rem;
    }

    .btn-visit-site {
        padding: 3px 8px;
        font-size: 0.72rem;
    }

    .seo-keywords-card {
        padding: 14px 16px;
    }

    .back-to-top {
        right: 14px;
        bottom: 14px;
        width: 36px;
        height: 36px;
    }
}


@media (max-width: 640px) {
    #securityModalBackdrop.modal-backdrop {
        align-items: flex-end;
        padding: 0;
        overflow: hidden;
    }

    #securityModalBackdrop .security-modal-card {
        max-width: 100%;
        margin: 0;
        border-radius: 16px 16px 0 0;
        animation: securityDrawerIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes securityDrawerIn {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .security-modal-body {
        padding: 20px 16px 16px;
    }

    .security-target-box {
        padding: 12px 14px;
        gap: 10px;
        margin-bottom: 16px;
    }

    .security-site-icon-wrapper .card-site-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .security-site-name {
        font-size: 0.95rem;
    }

    .security-site-url {
        font-size: 0.75rem;
    }

    .security-notice-text {
        font-size: 0.78rem;
    }

    #securityModalBackdrop .modal-footer {
        padding: 12px 16px;
        background: var(--bg-surface);
    }
}



@media (min-width: 1400px) {
    .collapsed-grid .nav-portal-card:nth-child(n+26) {
        display: none !important;
    }
}


@media (min-width: 1024px) and (max-width: 1399px) {
    .collapsed-grid .nav-portal-card:nth-child(n+21) {
        display: none !important;
    }
}


@media (min-width: 769px) and (max-width: 1023px) {
    .collapsed-grid .nav-portal-card:nth-child(n+16) {
        display: none !important;
    }
}


@media (max-width: 768px) {
    .collapsed-grid .nav-portal-card:nth-child(n+11) {
        display: none !important;
    }
}


.collapse-trigger-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 22px;
    position: relative;
}


.btn-collapse-trigger {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(209, 213, 219, 0.7);
    border-radius: 30px;
    padding: 10px 26px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.btn-collapse-trigger:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.16);
    transform: translateY(-2px);
}

.btn-collapse-trigger i {
    transition: transform 0.3s ease;
}


body.dark-mode .btn-collapse-trigger {
    background: rgba(30, 30, 46, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary-dark);
}

body.dark-mode .btn-collapse-trigger:hover {
    color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.24);
}


.search-tag-item {
    font-size: 11.5px;
    color: var(--text-secondary);
    background: rgba(243, 244, 246, 0.8);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 16px;
    padding: 5px 12px;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.search-tag-item:hover {
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.2);
    transform: translateY(-1.5px);
}


body.dark-mode .search-tag-item {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary-dark);
}

body.dark-mode .search-tag-item:hover {
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.28);
}


.search-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.search-tags-cloud.collapsed-cloud {
    max-height: 104px; 
}

.search-tags-cloud.expanded-cloud {
    max-height: 600px; 
}


.cloud-expand-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55px;
    background: linear-gradient(to top, #FFFFFF 35%, rgba(255, 255, 255, 0));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    transition: all 0.3s ease;
}

.btn-cloud-trigger {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 11px;
    padding: 4px 10px;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-cloud-trigger:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.15);
    transform: translateY(-1px);
}


body.dark-mode .cloud-expand-bar {
    background: linear-gradient(to top, #1E1E2E 35%, rgba(30, 30, 46, 0));
}

body.dark-mode .btn-cloud-trigger {
    background: rgba(30, 30, 46, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary-dark);
}

body.dark-mode .btn-cloud-trigger:hover {
    color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.25);
}


.search-tags-container.is-expanded .cloud-expand-bar {
    height: 30px;
    background: transparent;
    position: relative;
    margin-top: 10px;
}



