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

html {
    scroll-behavior: smooth;
}

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

.layout {
    /* display: flex; */
    min-height: 100vh;
}

.sidebar {
    width: 160px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: inherit;
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    background: linear-gradient(90deg, #e94560, #ff6b6b, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-slogan {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 15px 0;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    font-size: 14px;
}

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

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

.main-wrapper {
    flex: 1;
    margin-left: 160px;
    display: flex;
    flex-direction: column;
}

.header {
    padding: 25px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 40px 25px 20px 25px;
}

.header-title {
    font-size: 40px;
    font-weight: bold;
    background: linear-gradient(90deg, #e94560, #ff6b6b, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-left {
    display: none;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.page-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.search-box {
    display: flex;
    gap: 0;
    border: 2px solid #e94560;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.search-box-site {
    display: flex;
    gap: 0;
    border: 2px solid #e94560;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.search-engines {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.search-engine-btn {
    padding: 2px 8px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-engine-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.search-engine-btn.active {
    color: #e94560;
}

.search-input {
    width: 520px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.05);
}

.search-btn {
    padding: 12px 18px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    color: #e94560;
}

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

.section {
    margin-bottom: 35px;
    scroll-margin-top: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    gap: 15px;
    flex-wrap: wrap;
}

.section-left {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.section-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
}

.more-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s;
    margin-left: auto;
    white-space: nowrap;
}

.more-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(233, 69, 96, 0.5);
}

.more-link i {
    font-size: 10px;
}

.sub-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
    order: 3;
}

.sub-tab {
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.sub-tab:hover {
    border-color: rgba(233, 69, 96, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

.sub-tab.active {
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    border-color: transparent;
    color: #fff;
}

.sub-tab.active {
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    border-color: transparent;
    color: #fff;
}

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

.card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(233, 69, 96, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.card-recommend {
    position: absolute;
    top: -1px;
    left: -1px;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px 0 8px 0;
    font-weight: 500;
    z-index: 1;
}

.card-detail {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 20px;
    height: 20px;
    background: rgb(255 255 255 / 40%);
    border-radius: 0 9px 0 0;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.card-detail:hover {
    background: #e94560;
}

.card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    overflow: hidden;
    background: #fff;
}

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

.card-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    padding: 0 25px;
    flex-wrap: wrap;
}

.page a {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.page a:hover {
    border-color: #e94560;
    color: #e94560;
}

.bookmark-tip {
    text-align: center;
    padding: 20px 25px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bookmark-tip kbd {
    display: inline-block;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    margin: 0 2px;
}

.bookmark-tip a {
    color: #e94560;
    text-decoration: none;
}

.bookmark-tip a:hover {
    text-decoration: underline;
}

.friend-links-section {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0 25px;
}

.friend-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.friend-link-item {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.friend-link-item:hover {
    color: #e94560;
}

.footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #e94560;
}

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

.footer-copyright a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
    z-index: 90;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.overlay.active {
    display: block;
}

@media (max-width: 840px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-left: 0;
    }

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

    .header-left {
        display: flex;
        justify-content: center;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 50;
        padding: 18px 15px;
        width: 100%;
        background: #1a1a2e;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .menu-toggle {
        position: absolute;
        left: 15px;
    }

    .page-title {
        position: relative;
        left: auto;
        transform: none;
    }

    .header {
        padding: 12px 0;
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-title {
        display: none;
    }

    .search-box {
        width: 100%;
        order: 3;
    }

    .search-input {
        flex: 1;
        width: auto;
    }

    .search-engine-btn {
        padding: 2px 4px;
    }

    .main-content {
        padding: 15px;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(calc(50% - 6px), 1fr));
    }

    .section-header {
        gap: 8px;
    }

    .section-title {
        font-size: 16px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .bookmark-tip {
        display: none;
    }
}

.icon-movie { color: #e94560; }
.icon-download { color: #00d9ff; }
.icon-ai { color: #a855f7; }
.icon-tool { color: #10b981; }
.icon-game { color: #22c55e; }
.icon-music { color: #f472b6; }
.icon-news { color: #3b82f6; }
.icon-shop { color: #f59e0b; }

.recommend-section {
    padding: 0 25px;
    margin-bottom: 20px;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

@media (max-width: 1845px) {
    .recommend-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1575px) {
    .recommend-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1300px) {
    .recommend-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* @media (max-width: 1000px) {
    .recommend-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .recommend-grid {
        grid-template-columns: repeat(3, 1fr);
    }
} */

@media (max-width: 1030px) {
    .recommend-section {
        padding: 0 15px;
    }

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

.recommend-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    min-width: 0;
    overflow: hidden;
}

.recommend-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(233, 69, 96, 0.5);
    transform: translateY(-2px);
}

.recommend-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

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

.recommend-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.recommend-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommend-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-page .section-header {
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.list-page .section-left {
    justify-content: center;
    width: auto;
}

.list-page .section-left .section-icon {
    width: 76px;
    height: 76px;
    font-size: 44px;
}

.list-page .section-left .section-title {
    font-size: 36px;
}

.list-page .sub-tabs {
    justify-content: center;
    width: auto;
    order: 2;
}

.detail-page .main-content {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb {
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #e94560;
}

.breadcrumb i {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb-current {
    color: rgba(255, 255, 255, 0.9);
}

.detail-container {
    padding: 25px;
}

.detail-header {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 30px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

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

.detail-info {
    flex: 1;
}

.detail-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #e94560, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
}

.detail-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.detail-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.detail-stat i {
    font-size: 14px;
}

.detail-stat-value {
    color: rgba(255, 255, 255, 0.8);
}

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

.detail-tag {
    padding: 4px 12px;
    background: rgba(233, 69, 96, 0.2);
    color: #e94560;
    border-radius: 12px;
    font-size: 12px;
}

.detail-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.detail-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.detail-btn-primary {
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    color: #fff;
    border: none;
}

.detail-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
}

.detail-btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.detail-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    margin-bottom: 20px;
}

.detail-section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section-title i {
    color: #e94560;
}

.detail-content {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 14px;
}

.detail-content p {
    margin-bottom: 12px;
}

.detail-content p:last-child {
    margin-bottom: 0;
}

.detail-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    margin-top: 15px;
}

.detail-warning i {
    color: #f59e0b;
    font-size: 18px;
    margin-top: 2px;
}

.detail-warning-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.related-section {
    margin-top: 30px;
}

.related-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-title i {
    color: #e94560;
}

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

@media (max-width: 840px) {
    .detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .detail-stats {
        justify-content: center;
    }

    .detail-tags {
        justify-content: center;
    }

    .detail-actions {
        align-items: center;
    }
}
