/* ============================================================
   style.css - 全站样式
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pink: #FF3B6F;
    --pink-light: #FF6B8A;
    --pink-bg: #FFF0F3;
    --yellow: #FFD700;
    --black: #1A1A1A;
    --black-light: #2D2D2D;
    --gray: #888888;
    --gray-light: #f5f5f5;
    --white: #FFFFFF;
    --font: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: #0d0d0d;
    color: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a {
    color: var(--pink);
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: var(--pink-light);
}

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

::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: var(--pink);
    border-radius: 4px;
}

/* ===== 顶部导航 ===== */
.header {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid rgba(255, 59, 111, 0.2);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}
.logo span {
    color: var(--pink);
}
.logo small {
    font-size: 0.55rem;
    font-weight: 400;
    color: var(--yellow);
    display: block;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.nav a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 20px;
    transition: all 0.3s;
    font-weight: 500;
}
.nav a:hover,
.nav a.active {
    color: #fff;
    background: var(--pink);
}

/* ===== 分类导航 ===== */
.categories {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.categories::-webkit-scrollbar {
    display: none;
}
.categories .container {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    min-width: max-content;
}
.categories a {
    flex-shrink: 0;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}
.categories a:hover,
.categories a.active {
    color: #fff;
    background: var(--pink);
    border-color: var(--pink);
}

/* ===== 主布局 ===== */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    padding: 20px 0 40px;
}

/* ===== 瀑布流 ===== */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.work-card {
    background: #141414;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(255, 59, 111, 0.12);
    border-color: rgba(255, 59, 111, 0.15);
}
.work-card a {
    display: block;
    color: #fff;
}

.work-card .thumb {
    position: relative;
    padding-top: 56.25%;
    background: #0a0a0a;
    overflow: hidden;
}
.work-card .thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.work-card:hover .thumb img {
    transform: scale(1.04);
}

.work-card .thumb .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--pink);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
}
.work-card .thumb .badge.photo {
    background: var(--yellow);
    color: #1a1a1a;
}

.work-card .thumb .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
}
.work-card:hover .thumb .play-overlay {
    opacity: 1;
}
.work-card .thumb .play-overlay i {
    font-size: 2.8rem;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.work-card .info {
    padding: 14px 16px 16px;
}
.work-card .info h3 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.work-card .info .summary {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    margin-bottom: 6px;
}
.work-card .info .meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.35);
    flex-wrap: wrap;
}
.work-card .info .meta .platform {
    background: rgba(255, 59, 111, 0.12);
    color: var(--pink);
    padding: 0 8px;
    border-radius: 8px;
    font-weight: 600;
}
.work-card .info .meta .views::before {
    content: '👁 ';
}

/* ===== 侧边栏 ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sidebar-widget {
    background: #141414;
    border-radius: var(--radius);
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.sidebar-widget h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pink);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-widget h3 i {
    color: var(--pink);
}

.hot-list {
    list-style: none;
}
.hot-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.hot-list li:last-child {
    border-bottom: none;
}
.hot-list li a {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}
.hot-list li a:hover {
    color: var(--pink);
}
.hot-list li .rank {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 59, 111, 0.15);
    color: var(--pink);
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 22px;
}
.hot-list li:nth-child(1) .rank {
    background: var(--yellow);
    color: #1a1a1a;
}
.hot-list li:nth-child(2) .rank {
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
}
.hot-list li:nth-child(3) .rank {
    background: rgba(255, 255, 255, 0.06);
    color: #888;
}
.hot-list li .hot-views {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    margin-left: auto;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tag-cloud a {
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.25s;
}
.tag-cloud a:hover {
    background: var(--pink);
    color: #fff;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 16px 0 4px;
}
.pagination a {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s;
}
.pagination a:hover {
    border-color: var(--pink);
    color: #fff;
}
.pagination a.active {
    background: var(--pink);
    color: #fff;
    border-color: var(--pink);
}

/* ===== 底部 ===== */
.footer {
    background: #0a0a0a;
    padding: 28px 0 20px;
    border-top: 2px solid rgba(255, 59, 111, 0.1);
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.footer-social a:hover {
    transform: translateY(-3px);
    color: #fff;
}
.footer-social a.twitter:hover { background: #000; color: #fff; }
.footer-social a.instagram:hover { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); color: #fff; }
.footer-social a.telegram:hover { background: #0088cc; color: #fff; }
.footer-social a.youtube:hover { background: #ff0000; color: #fff; }
.footer-social a.tiktok:hover { background: #000; color: #00f2ea; }
.footer-social a.facebook:hover { background: #1877f2; color: #fff; }
.footer-social a.whatsapp:hover { background: #25d366; color: #fff; }
.footer-social a.pinterest:hover { background: #e60023; color: #fff; }
.footer-social a.discord:hover { background: #5865f2; color: #fff; }

.footer .links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.footer .links a {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.78rem;
}
.footer .links a:hover {
    color: var(--pink);
}
.footer .copy {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.7rem;
}

/* ===== 空状态 ===== */
.empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.3);
    grid-column: 1 / -1;
}
.empty .icon {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
}

/* ===== 触摸反馈 ===== */
.work-card,
.nav a,
.categories a,
.pagination a,
.footer-social a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.work-card:active {
    transform: scale(0.97);
    transition: transform 0.1s;
}

/* ===== 移动端 ===== */
@media (max-width: 1024px) {
    .work-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
    .main-layout {
        grid-template-columns: 1fr 240px;
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .logo {
        text-align: center;
        font-size: 1.1rem;
    }
    .logo small {
        display: inline;
        font-size: 0.5rem;
    }
    .nav {
        justify-content: center;
    }
    .nav a {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .main-layout {
        grid-template-columns: 1fr;
        padding: 12px 0 30px;
    }
    .sidebar {
        order: 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .sidebar-widget {
        padding: 14px 16px;
    }
    .work-card .info {
        padding: 10px 12px 12px;
    }
    .work-card .info h3 {
        font-size: 0.78rem;
        -webkit-line-clamp: 2;
    }
    .work-card .info .summary {
        font-size: 0.68rem;
        -webkit-line-clamp: 1;
        margin-bottom: 4px;
    }
    .work-card .info .meta {
        font-size: 0.6rem;
        gap: 6px;
    }
    .work-card .thumb .badge {
        font-size: 0.5rem;
        padding: 1px 8px;
        top: 6px;
        right: 6px;
    }
    .work-card .thumb .play-overlay i {
        font-size: 2rem;
    }
    .categories .container {
        gap: 4px;
    }
    .categories a {
        font-size: 0.68rem;
        padding: 4px 12px;
    }
    .footer-social a {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    .footer-social {
        gap: 8px;
    }
    .footer .links a {
        font-size: 0.7rem;
    }
    .pagination a {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .work-card .info {
        padding: 8px 8px 10px;
    }
    .work-card .info h3 {
        font-size: 0.7rem;
        -webkit-line-clamp: 2;
    }
    .work-card .info .summary {
        font-size: 0.6rem;
        -webkit-line-clamp: 1;
        display: none;
    }
    .work-card .info .meta {
        font-size: 0.55rem;
        gap: 4px;
    }
    .sidebar {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .sidebar-widget {
        padding: 12px 14px;
    }
    .sidebar-widget h3 {
        font-size: 0.8rem;
    }
    .footer-social a {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    .container {
        padding: 0 10px;
    }
    .categories a {
        font-size: 0.6rem;
        padding: 3px 10px;
    }
}