* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 深色主题配色 */
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --secondary: #ec4899;
    --secondary-light: #f472b6;
    --accent: #14b8a6;
    --accent-light: #2dd4bf;

    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --bg-hover: #334155;

    --text-white: #f8fafc;
    --text-gray: #cbd5e1;
    --text-muted: #94a3b8;

    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-white);
    background: var(--bg-dark);
    overflow-x: hidden;
}

.wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 顶部公告栏 */
.top-notice {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 0.75rem 0;
    text-align: center;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.top-notice i {
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 导航栏 */
.topbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--bg-card);
    box-shadow: var(--shadow);
}

.nav-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: var(--transition);
}

.brand-logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.menu-toggle {
    display: none;
    background: var(--bg-card);
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: var(--bg-hover);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65rem 1.15rem;
    border-radius: 8px;
    transition: var(--transition);
    display: block;
}

.nav-links li a:hover {
    color: var(--text-white);
    background: var(--bg-card);
}

/* Hero区域 */
.main-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9) 0%, rgba(236, 72, 153, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item strong {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-item span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* 区域标题 */
.area-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    text-align: center;
}

.area-title i {
    color: var(--primary-light);
    margin-right: 0.75rem;
}

.area-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2.5rem;
}

/* 热门榜单区域 */
.trending-section {
    padding: 5rem 2rem;
    background: var(--bg-darker);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.tabs-nav {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-card);
    padding: 0.25rem;
    border-radius: 10px;
}

.tab-btn {
    padding: 0.65rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.tab-btn:hover:not(.active) {
    background: var(--bg-hover);
    color: var(--text-white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.rank-item:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    transform: translateX(8px);
}

.rank-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-muted);
    min-width: 40px;
    text-align: center;
}

.rank-num.top-rank {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.rank-info {
    flex: 1;
}

.rank-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.rank-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.rank-arrow {
    color: var(--primary-light);
    font-size: 1.25rem;
    opacity: 0;
    transition: var(--transition);
}

.rank-item:hover .rank-arrow {
    opacity: 1;
}

/* 最新上架 - 瀑布流 */
.new-release {
    padding: 5rem 2rem;
    background: var(--bg-dark);
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    grid-auto-rows: 200px;
}

.masonry-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.masonry-item.tall {
    grid-row: span 2;
}

.masonry-item.wide {
    grid-column: span 2;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.masonry-item:hover img {
    transform: scale(1.1);
}

.masonry-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    transform: translateY(100%);
    transition: var(--transition);
}

.masonry-item:hover .masonry-overlay {
    transform: translateY(0);
}

.new-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--secondary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.masonry-overlay h3 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 0.25rem;
}

.masonry-overlay p {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* 分类区域 */
.categories-section {
    padding: 5rem 2rem;
    background: var(--bg-darker);
}

.categories-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    background: var(--bg-card);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.cat-item:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.cat-icon-wrapper {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.cat-item:hover .cat-icon-wrapper {
    transform: rotate(360deg);
}

.cat-icon-wrapper i {
    font-size: 2rem;
    color: white;
}

.cat-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    text-align: center;
}

.cat-count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 创作者聚焦 */
.creators-spotlight {
    padding: 5rem 2rem;
    background: var(--bg-dark);
}

.creators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.creator-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.creator-card:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.creator-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
}

.creator-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bg-card);
}

.creator-card h3 {
    font-size: 1.25rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.creator-genre {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.creator-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.creator-stats i {
    color: var(--primary-light);
    margin-right: 0.25rem;
}

.follow-btn {
    padding: 0.65rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.follow-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* VIP推广区 */
.vip-promo {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
}

.vip-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 50px,
        rgba(255,255,255,0.1) 50px,
        rgba(255,255,255,0.1) 100px
    );
}

.vip-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.vip-label {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255,255,255,0.2);
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.vip-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.vip-content > p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2rem;
}

.vip-perks {
    list-style: none;
    text-align: left;
    display: inline-block;
    margin-bottom: 2rem;
}

.vip-perks li {
    padding: 0.65rem 0;
    color: white;
    font-size: 1rem;
}

.vip-perks i {
    color: var(--accent-light);
    margin-right: 0.75rem;
}

.vip-pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.price-tag {
    display: flex;
    align-items: baseline;
}

.price-amount {
    font-size: 3rem;
    font-weight: 900;
    color: white;
}

.price-period {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
}

.vip-btn {
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.vip-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* 社区区域 */
.community-section {
    padding: 5rem 2rem;
    background: var(--bg-darker);
}

.community-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.comm-tab {
    padding: 0.75rem 1.75rem;
    background: var(--bg-card);
    border: none;
    color: var(--text-gray);
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.comm-tab.active {
    background: var(--primary);
    color: white;
}

.comm-content {
    display: none;
}

.comm-content.active {
    display: block;
}

.discussion-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.discuss-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border-radius: 12px;
    transition: var(--transition);
}

.discuss-item:hover {
    background: var(--bg-hover);
}

.discuss-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.discuss-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discuss-body {
    flex: 1;
}

.discuss-body h4 {
    font-size: 1.05rem;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.discuss-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.discuss-badge {
    padding: 0.35rem 0.85rem;
    background: var(--bg-hover);
    color: var(--text-gray);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
}

.discuss-badge.hot {
    background: var(--secondary);
    color: white;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* 帮助中心 */
.help-section {
    padding: 5rem 2rem;
    background: var(--bg-dark);
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.help-card {
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.help-card:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.help-card i {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.help-card h3 {
    font-size: 1.25rem;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.help-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.help-link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.help-link:hover {
    color: var(--secondary-light);
}

/* 页脚 */
.page-footer {
    background: var(--bg-darker);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--bg-card);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-about {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand img {
    width: 45px;
    height: 45px;
}

.footer-brand span {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-light);
}

.footer-about p {
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    color: var(--text-gray);
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group h4 {
    font-size: 1.05rem;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
    transition: var(--transition);
}

.link-group a:hover {
    color: var(--primary-light);
    transform: translateX(3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-card);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 返回顶部 */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 55px;
    height: 55px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* 响应式 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-dark);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li a {
        width: 100%;
        padding: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .tabs-nav {
        justify-content: center;
    }

    .masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .masonry-item.wide {
        grid-column: span 1;
    }

    .categories-carousel {
        grid-template-columns: repeat(3, 1fr);
    }

    .creators-grid {
        grid-template-columns: 1fr;
    }

    .vip-pricing {
        flex-direction: column;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .wrapper {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .categories-carousel {
        grid-template-columns: repeat(2, 1fr);
    }

    .area-title {
        font-size: 1.85rem;
    }
}
