/* ============================================
   BiliBili 风格样式表
   ============================================ */

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

:root {
    --bili-pink: #ff9a56;
    --bili-blue: #00a1d6;
    --bili-pink-light: #ffc371;
    --bili-blue-light: #00b5e5;
    --bg-primary: #f4f5f7;
    --bg-white: #fff;
    --text-primary: #212121;
    --text-secondary: #999;
    --text-light: #ccc;
    --border-color: #e3e5e7;
    --shadow: 0 2px 12px rgba(0,0,0,0.1);
    --header-height: 64px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    scroll-behavior: smooth;
    overscroll-behavior-y: none;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

::selection {
    background: var(--bili-pink);
    color: white;
}

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

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 1001;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    margin-left: 40px;
}

.nav-item {
    padding: 0 15px;
    height: var(--header-height);
    line-height: var(--header-height);
    font-size: 14px;
    color: var(--text-primary);
    transition: color 0.3s;
}

.nav-item:hover,
.nav-item.active {
    color: var(--bili-pink);
}

.nav-item.active {
    border-bottom: 2px solid var(--bili-pink);
}

.search-box {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.search-box:focus-within {
    border-color: var(--bili-pink);
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}

.search-box button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff9a56, #ff6a3d);
    border: none;
    cursor: pointer;
    color: white;
    transition: all 0.3s;
}

.search-box button:hover {
    background: linear-gradient(135deg, #ffc371, #ff9a56);
    color: white;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.upload-btn {
    padding: 8px 16px;
    background: var(--bg-primary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.upload-btn:hover {
    background: var(--bili-pink);
    color: white;
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

.user-nickname {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ff9a56 0%, #ff6a3d 100%);
    border-radius: 4px;
    vertical-align: middle;
    line-height: 1.4;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 106, 61, 0.3);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 160px;
    padding-top: 10px;
    background: transparent;
    display: none;
    z-index: 1000;
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    transition: background 0.3s;
    position: relative;
    z-index: 1;
}

.user-dropdown a:hover {
    background: var(--bg-primary);
    border-radius: 8px;
}

.user-dropdown a i {
    margin-right: 10px;
    width: 16px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 5px 0;
    position: relative;
    z-index: 1;
}

.auth-btns {
    display: flex;
    gap: 10px;
}

.btn-login,
.btn-register {
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-login {
    background: transparent;
    border: 1px solid var(--bili-pink);
    color: var(--bili-pink);
}

.btn-login:hover {
    background: var(--bili-pink);
    color: white;
}

.btn-register {
    background: var(--bili-pink);
    border: none;
    color: white;
}

.btn-register:hover {
    background: var(--bili-pink-light);
}

.message-icon {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-secondary);
}

.message-icon .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--bili-pink);
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* 分类导航 */
.category-nav {
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: var(--header-height);
    z-index: 100;
}

.category-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 50px;
    overflow-x: auto;
}

.category-item {
    padding: 0 20px;
    height: 50px;
    line-height: 50px;
    font-size: 14px;
    white-space: nowrap;
    color: var(--text-secondary);
    transition: all 0.3s;
    position: relative;
}

.category-item:hover {
    color: var(--bili-blue);
}

.category-item.active {
    color: var(--bili-blue);
    font-weight: 600;
}

.category-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--bili-blue);
    border-radius: 2px;
}

.category-divider {
    width: 1px;
    height: 20px;
    background: var(--border-color);
    margin: 0 10px;
}

.category-list {
    display: flex;
    gap: 10px;
}

/* ============================================
   Hero 欢迎区 - 全新设计
   ============================================ */
.hero-section {
    margin-top: var(--header-height);
    background: linear-gradient(135deg, #5b4fd4 0%, #7c3aed 50%, #a855f7 100%);
    text-align: center;
    position: relative;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 64px 40px 56px;
}

.hero-title {
    font-size: 50px;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: linear-gradient(90deg, #fbbf24, #f87171, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 36px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-btn-primary {
    background: white;
    color: #6d28d9;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.hero-btn-secondary {
    background: rgba(255,255,255,0.12);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-3px);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 2;
}

.hero-wave svg {
    width: 100%;
    height: 60px;
    display: block;
}


/* ============================================
   内容区块通用样式
   ============================================ */
.content-section {
    padding: 32px 0;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}

.section-icon.fire {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 12px rgba(239,68,68,0.3);
}

.section-icon.clock {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}

.section-icon.idea {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.section-more:hover {
    background: var(--bili-blue);
    color: white;
    border-color: var(--bili-blue);
}

.section-more i {
    font-size: 11px;
    transition: transform 0.3s;
}

.section-more:hover i {
    transform: translateX(3px);
}

/* ============================================
   热门推荐网格
   ============================================ */
.hot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.hot-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/10;
    background: #e8e8e8;
}

.hot-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hot-card:hover .hot-card-img {
    transform: scale(1.08);
}

.hot-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    color: white;
}

.hot-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.hot-card-meta {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.75);
}

.hot-card-meta i {
    margin-right: 4px;
}

.hot-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.35s ease;
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.hot-card-play i {
    color: var(--bili-blue);
    font-size: 20px;
    margin-left: 3px;
}

.hot-card:hover .hot-card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ============================================
   视频网格
   ============================================ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.35s ease;
    cursor: pointer;
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.video-cover {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: #f0f0f0;
}

.video-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-cover img {
    transform: scale(1.06);
}

.video-cover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.video-card:hover .video-cover-overlay {
    background: rgba(0,0,0,0.2);
}

.video-play-btn {
    width: 48px;
    height: 48px;
    background: rgba(0,161,214,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.35s ease;
    box-shadow: 0 4px 16px rgba(0,161,214,0.35);
}

.video-play-btn i {
    color: white;
    font-size: 18px;
    margin-left: 3px;
}

.video-card:hover .video-play-btn {
    opacity: 1;
    transform: scale(1);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.78);
    color: white;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.video-info {
    padding: 12px 14px;
}

.video-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.video-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
    gap: 14px;
}

.video-meta i {
    margin-right: 3px;
    font-size: 11px;
}

.video-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-secondary);
}

.video-author img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
}

/* ============================================
   功能入口卡片
   ============================================ */
.features-section {
    padding: 16px 0 56px;
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    text-decoration: none;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bili-pink), var(--bili-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.08);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 18px;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.08) rotate(-3deg);
}

.feature-icon.series {
    background: linear-gradient(135deg, #6d28d9, #7c3aed);
    box-shadow: 0 6px 16px rgba(109,40,217,0.3);
}

.feature-icon.resources {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 6px 16px rgba(5,150,105,0.3);
}

.feature-icon.vip {
    background: linear-gradient(135deg, #e11d48, #f43f5e);
    box-shadow: 0 6px 16px rgba(225,29,72,0.3);
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bili-blue);
    transition: gap 0.3s;
}

.feature-card:hover .feature-link {
    gap: 10px;
}

.feature-link i {
    font-size: 11px;
    transition: transform 0.3s;
}

.feature-card:hover .feature-link i {
    transform: translateX(3px);
}

/* 轮播图 */
/* 移动端系列专栏推荐 - 桌面端隐藏 */
.mobile-series-section {
    display: none;
}

.banner {
    max-width: 1400px;
    margin: 16px auto 0;
    padding: 0 24px;
}

.banner-wrapper {
    display: flex;
    gap: 12px;
    height: 260px;
}

.banner-main {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.banner-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    cursor: pointer;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 0 0 30px;
    background: transparent;
    color: white;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.banner-slide-content {
    width: 100%;
    padding: 16px 30px 16px 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(20,20,40,0.4) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.banner-slide-tag {
    display: inline-block;
    padding: 4px 14px;
    background: linear-gradient(135deg, #ff9a56, #ff6a3d);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255,106,61,0.4);
}

.banner-slide-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.banner-slide-desc {
    font-size: 13px;
    opacity: 0.8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.35);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 14px;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.banner-main:hover .banner-arrow {
    opacity: 1;
}

.banner-arrow:hover {
    background: rgba(0,0,0,0.6);
    transform: translateY(-50%) scale(1.1);
}

.banner-prev {
    left: 12px;
}

.banner-next {
    right: 12px;
}

.banner-dots {
    position: absolute;
    bottom: 14px;
    right: 16px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.banner-dot.active {
    background: white;
    width: 20px;
    border-radius: 4px;
}

/* 轮播图侧边栏 */
.banner-side {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.banner-side-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s;
    overflow: hidden;
    position: relative;
}

.banner-side-card:hover {
    transform: translateX(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.banner-side-rank {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border-radius: 10px 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.banner-side-rank.rank-1 { background: linear-gradient(135deg, #ff9a56, #ffc371); }
.banner-side-rank.rank-2 { background: linear-gradient(135deg, #ff9a56, #ffb347); }
.banner-side-rank.rank-3 { background: linear-gradient(135deg, #00a1d6, #6366f1); }
.banner-side-rank.rank-4 { background: #aaa; }

.banner-side-cover {
    width: 90px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

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

.banner-side-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-primary);
}

.banner-side-meta {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 空状态占位 */
.banner-empty {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff9a56 0%, #ffc371 30%, #00a1d6 70%, #6366f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.banner-empty::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255,255,255,0.1) 0%, transparent 40%);
    animation: bannerPulse 8s ease-in-out infinite;
}

.banner-empty::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.banner-empty span {
    position: relative;
    z-index: 2;
}

.banner-side-empty {
    flex: 1;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 13px;
}

@keyframes bannerPulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.6; }
    50% { transform: scale(1.1) rotate(3deg); opacity: 1; }
}

/* 响应式：轮播图 */
@media (max-width: 900px) {
    .banner-wrapper {
        flex-direction: column;
        height: auto;
    }
    .banner-main {
        height: 200px;
    }
    .banner-side {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
    }
    .banner-side-card {
        min-width: 200px;
    }
    .banner-arrow {
        opacity: 1;
    }
}

/* 视频区域 */
.video-section {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 400px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-large {
    width: 600px;
}

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

.modal-header h3 {
    font-size: 18px;
}

.modal-header .close {
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-header .close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.modal-footer a {
    color: var(--bili-blue);
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--bili-blue);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--bili-pink), var(--bili-pink-light));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 154, 86, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 154, 86, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* 上传区域 */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.upload-area:hover {
    border-color: var(--bili-blue);
    background: rgba(0,161,214,0.05);
}

.upload-area i {
    font-size: 48px;
    color: var(--bili-blue);
    margin-bottom: 15px;
}

.upload-area p {
    color: var(--text-secondary);
    margin: 5px 0;
}

.upload-hint {
    font-size: 12px !important;
}

.upload-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--bili-blue);
    border-radius: 4px;
    transition: width 0.3s;
}

#progressText {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 封面上传 */
.cover-upload {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cover-upload img {
    width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.cover-upload button {
    padding: 10px 20px;
    background: var(--bg-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.cover-upload button:hover {
    background: var(--bili-blue);
    color: white;
}

/* 消息弹窗 */
.message-modal-content {
    max-width: 480px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.message-modal-content .modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.message-modal-content .modal-header h3 {
    font-size: 17px;
    font-weight: 600;
}

.message-modal-content .close {
    font-size: 22px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.message-modal-content .close:hover {
    background: var(--bg-primary);
}

/* 消息标签 */
.message-tabs {
    display: flex;
    gap: 0;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    overflow-x: auto;
}

.tab-btn {
    padding: 12px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
}

.tab-btn.active {
    color: var(--bili-blue);
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--bili-blue);
    border-radius: 1px;
}

/* 消息列表 */
.message-list {
    flex: 1;
    overflow-y: auto;
    min-height: 200px;
    max-height: 50vh;
}

.message-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s;
    cursor: pointer;
}

.message-item:hover {
    background: var(--bg-primary);
}

.message-item.unread {
    background: rgba(0,161,214,0.05);
}

.message-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.message-item-body {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
}

.message-time {
    color: var(--text-secondary);
    font-size: 12px;
}

.message-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.message-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Toast提示 */
.toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 14px 28px;
    background: rgba(0,0,0,0.85);
    color: white;
    border-radius: 10px;
    font-size: 14px;
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: linear-gradient(135deg, #52c41a, #73d13d);
}

.toast.error {
    background: linear-gradient(135deg, #ff4d4f, #ff7875);
}

/* 页脚 */
.footer {
    background: linear-gradient(180deg, #18191c 0%, #0d0d0f 100%);
    padding: 40px 0 30px;
    margin-top: 50px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

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

.footer-links a {
    color: #999;
    font-size: 14px;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--bili-pink);
}

.footer-info {
    color: #666;
    font-size: 12px;
    line-height: 2;
}

.footer-info a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-info a:hover {
    color: #bbb;
}

/* 汉堡菜单按钮 */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: white;
    cursor: pointer;
    padding: 8px;
    margin-right: 8px;
}

/* 移动端导航面板 */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-white);
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    font-size: 15px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    background: var(--bg-primary);
    color: var(--bili-pink);
}

/* 移动端导航遮罩 */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .search-box {
        margin: 0 10px;
    }

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

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

    .modal-content {
        width: 95vw;
    }

    .user-nickname {
        display: none;
    }

    .header-right {
        gap: 12px;
    }

    .banner {
        padding: 0 12px;
    }

    .video-section {
        padding: 0 12px;
    }

    .footer-links {
        gap: 16px;
    }

    /* Hero 移动端 */
    .hero-inner {
        padding: 36px 20px 48px;
    }

    .hero-title {
        font-size: 28px;
    }

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

    .hero-actions {
        flex-wrap: wrap;
    }

    .hero-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .hero-wave svg {
        height: 40px;
    }


    /* 热门推荐移动端 */
    .hot-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .hot-card {
        aspect-ratio: 16/11;
    }

    .hot-card-title {
        font-size: 13px;
    }

    /* 功能卡片移动端 */
    .features-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 28px;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }

    .header-right {
        gap: 8px;
    }

    .upload-btn {
        display: none;
    }
}

/* 减少动画（无障碍） */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0s !important;
        transition-duration: 0s !important;
    }
}

/* 横屏优化 */
@media (orientation: landscape) and (max-height: 500px) {
    .banner-main {
        height: 160px;
    }
}

/* 空状态提示 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state p {
    margin-bottom: 15px;
    font-size: 14px;
}

/* 视频进度条（历史记录） */
.video-progress {
    padding: 4px 0;
}

.video-progress .progress-bar {
    height: 3px;
    background: #e3e5e7;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.video-progress .progress-fill {
    height: 100%;
    background: var(--bili-blue);
    border-radius: 2px;
    transition: width 0.3s;
}

.video-progress span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ============================================
   移动端触摸交互优化
   ============================================ */

/* 移动端触摸反馈 */
@media (hover: none) and (pointer: coarse) {
    .video-card,
    .banner-side-card,
    .category-item,
    .nav-item,
    .action-btn,
    .btn-primary,
    .filter-btn,
    .space-nav .nav-item {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .video-card:active,
    .banner-side-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .category-item:active,
    .nav-item:active,
    .space-nav .nav-item:active {
        opacity: 0.7;
    }

    .action-btn:active,
    .btn-primary:active {
        transform: scale(0.95);
    }
}

/* 移动端滚动优化 */
@media (max-width: 768px) {
    body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }

    .video-grid {
        scroll-snap-type: y proximity;
    }

    .video-card {
        scroll-snap-align: start;
    }

    /* 移动端搜索框优化 */
    .search-box {
        max-width: none;
        flex: 1;
    }

    .search-box input {
        font-size: 16px; /* 防止iOS缩放 */
    }

    /* 移动端模态框优化 */
    .modal-content {
        max-height: 85vh;
        border-radius: 12px;
        margin: 0 10px;
    }

    .modal-header {
        padding: 16px;
        position: sticky;
        top: 0;
        background: white;
        z-index: 1;
    }

    .modal-body {
        padding: 16px;
        -webkit-overflow-scrolling: touch;
    }

    /* 移动端表单优化 */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* 防止iOS自动缩放 */
        padding: 14px 12px;
    }

    /* 移动端按钮优化 */
    .btn-primary {
        padding: 14px;
        font-size: 16px;
    }

    /* 移动端视频卡片优化 */
    .video-card {
        background: white;
        border-radius: 8px;
        overflow: hidden;
    }

    .video-cover {
        position: relative;
        padding-top: 56.25%;
    }

    .video-info {
        padding: 10px 12px;
    }

    .video-title {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 6px;
    }

    .video-meta {
        font-size: 11px;
        gap: 10px;
    }

    .video-author {
        font-size: 11px;
        margin-top: 8px;
    }

    .video-author img {
        width: 20px;
        height: 20px;
    }

    /* 移动端轮播图优化 */
    .banner {
        padding: 0 12px;
        margin: 12px auto;
    }

    .banner-wrapper {
        height: auto;
    }

    .banner-main {
        height: 180px;
        border-radius: 10px;
    }

    .banner-slide-title {
        font-size: 16px;
    }

    .banner-slide-desc {
        font-size: 12px;
        display: none;
    }

    .banner-side {
        display: none;
    }

    .banner-dots {
        bottom: 10px;
        right: 12px;
    }

    .banner-dot {
        width: 6px;
        height: 6px;
    }

    .banner-dot.active {
        width: 16px;
    }

    /* 移动端系列专栏推荐 */
    .mobile-series-section {
        display: block;
        padding: 16px 0;
    }

    .mobile-series-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 24px 12px;
    }

    .mobile-series-card {
        background: var(--bg-white);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        cursor: pointer;
    }

    .mobile-series-card:active {
        transform: scale(0.98);
    }

    .mobile-series-cover {
        position: relative;
        width: 100%;
        height: 160px;
        overflow: hidden;
    }

    .mobile-series-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-series-cover-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 8px 12px;
        background: linear-gradient(transparent, rgba(0,0,0,0.6));
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .mobile-series-episodes {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 3px 8px;
        background: rgba(255,255,255,0.9);
        border-radius: 12px;
        font-size: 11px;
        font-weight: 600;
        color: #333;
    }

    .mobile-series-episodes i {
        font-size: 10px;
        color: var(--bili-pink);
    }

    .mobile-series-info {
        padding: 12px;
    }

    .mobile-series-title {
        font-size: 14px;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 6px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-series-meta {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        color: var(--text-secondary);
    }

    .mobile-series-meta span {
        display: flex;
        align-items: center;
        gap: 3px;
    }

    .mobile-series-meta i {
        font-size: 10px;
    }

    /* 移动端分类导航优化 */
    .category-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

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

    .category-item {
        padding: 0 16px;
        font-size: 14px;
    }

    /* 移动端Toast优化 */
    .toast {
        left: 50%;
        transform: translateX(-50%) translateY(-20px);
        padding: 12px 24px;
        font-size: 14px;
        border-radius: 8px;
        max-width: 90%;
    }

    .toast.show {
        transform: translateX(-50%) translateY(0);
    }

    /* 移动端导航标签优化 */
    .nav-item {
        min-height: 44px; /* 确保足够的点击区域 */
        display: flex;
        align-items: center;
    }
}

/* 移动端安全区域适配 */
@supports (padding: env(safe-area-inset-bottom)) {
    .mobile-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .footer {
        padding-bottom: calc(30px + env(safe-area-inset-bottom));
    }
}

/* 移动端横屏优化 */
@media (orientation: landscape) and (max-height: 500px) {
    .header {
        height: 48px;
    }

    .header-inner {
        padding: 0 12px;
    }

    .logo img {
        height: 30px;
    }

    .category-nav {
        height: 40px;
    }

    .category-item {
        height: 40px;
        line-height: 40px;
    }

    .banner-main {
        height: 140px;
    }
}

/* ============================================
   移动端底部导航栏
   ============================================ */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: white;
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.mobile-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: var(--text-secondary);
    font-size: 10px;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.mobile-bottom-nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.mobile-bottom-nav-item.active {
    color: var(--bili-pink);
}

.mobile-bottom-nav-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--bili-pink);
    border-radius: 0 0 2px 2px;
}

.mobile-bottom-nav-item:active {
    opacity: 0.7;
}

/* 底部导航栏中间的上传按钮 */
.mobile-bottom-nav-item.upload-nav-btn {
    position: relative;
}

.mobile-bottom-nav-item.upload-nav-btn .upload-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--bili-pink), var(--bili-pink-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-top: -20px;
    box-shadow: 0 4px 12px rgba(255, 154, 86, 0.3);
    transition: transform 0.2s;
}

.mobile-bottom-nav-item.upload-nav-btn:active .upload-icon {
    transform: scale(0.95);
}

/* 移动端底部导航栏显示条件 */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }

    /* 为底部导航栏腾出空间 */
    .footer {
        padding-bottom: calc(30px + 56px + env(safe-area-inset-bottom));
    }

    /* 隐藏桌面端的上传按钮 */
    .upload-btn {
        display: none;
    }

    /* 确保按钮可点击 */
    button, .btn-submit-article, .btn-primary, .btn-cancel,
    .article-sort-btns button, .nav-item, .mobile-nav-item,
    .series-sort-btns button, .space-nav .nav-item {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        position: relative;
        z-index: 10;
    }
}

/* ============================================
   暗黑高端主题 — 首页专用
   ============================================ */

/* 全局暗色覆盖 */
.main {
    background: #0e0e12;
}

/* Hero 暗色 */
.hero-section {
    background: linear-gradient(135deg, #0e0e12 0%, #1a1a2e 40%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

/* 浮动光球 */
.hero-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ff9a56 0%, transparent 70%);
    top: -100px;
    right: -50px;
    animation: orbFloat1 12s ease-in-out infinite;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #ffc371 0%, transparent 70%);
    bottom: -80px;
    left: 10%;
    animation: orbFloat2 15s ease-in-out infinite;
}

.hero-orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #ff6a3d 0%, transparent 70%);
    top: 30%;
    left: 60%;
    animation: orbFloat3 10s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 30px) scale(1.1); }
    66% { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -40px) scale(1.15); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, -25px) scale(1.08); }
    66% { transform: translate(25px, 20px) scale(0.92); }
}

/* Hero 文字金色渐变 */
.hero-title {
    color: #fff;
}

.gradient-text {
    background: linear-gradient(135deg, #ffc371 0%, #ff9a56 50%, #ff6a3d 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.hero-desc {
    color: rgba(255,255,255,0.6) !important;
}

/* Hero 按钮金色渐变 */
.hero-btn-primary {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6a3d 100%) !important;
    color: #fff !important;
    border: none !important;
    position: relative;
    overflow: hidden;
}

.hero-btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s ease;
}

.hero-btn-primary:hover::after {
    left: 100%;
}

.hero-btn-secondary {
    background: rgba(255,154,86,0.12) !important;
    border: 1px solid rgba(255,154,86,0.3) !important;
    color: #ffc371 !important;
    backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
    background: rgba(255,154,86,0.2) !important;
    border-color: rgba(255,154,86,0.5) !important;
}

/* Hero 统计栏 */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
    position: relative;
}

.hero-stat {
    text-align: center;
}

.hero-stat-num {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffc371 0%, #ff9a56 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.1);
}

/* Hero wave 颜色对齐 */
.hero-wave svg path {
    fill: #0e0e12;
}

/* 分类导航暗色 */
.category-nav {
    background: #131318 !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    position: sticky;
    z-index: 100;
}

.category-item {
    color: rgba(255,255,255,0.5) !important;
}

.category-item:hover {
    color: rgba(255,255,255,0.8) !important;
}

.category-item.active {
    color: #ffc371 !important;
}

.category-item.active::after {
    background: linear-gradient(135deg, #ffc371, #ff9a56) !important;
}

.category-divider {
    background: rgba(255,255,255,0.08) !important;
}

/* 轮播图暗色适配 */
.banner-side {
    background: #16161c !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
}

.banner-side-card {
    background: rgba(255,255,255,0.04) !important;
}

.banner-side-title {
    color: rgba(255,255,255,0.85) !important;
}

.banner-side-meta {
    color: rgba(255,255,255,0.4) !important;
}

/* 内容区域暗色 */
.content-section {
    background: transparent;
}

.section-container {
    background: transparent;
}

.section-title {
    color: #fff !important;
}

.section-more {
    color: rgba(255,255,255,0.5) !important;
    border-color: rgba(255,255,255,0.15) !important;
}

.section-more:hover {
    color: #ffc371 !important;
    border-color: #ffc371 !important;
}

/* 分区标题金色装饰线 */
.section-title-group {
    position: relative;
}

.section-title-group::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #ffc371, #ff9a56);
    border-radius: 2px;
}

/* 分区图标脉冲光晕 */
.section-icon {
    position: relative;
}

.section-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 10px;
    opacity: 0;
    animation: iconPulse 2s ease-in-out infinite;
}

.section-icon.fire::after {
    background: radial-gradient(circle, rgba(255,107,53,0.4), transparent 70%);
}

.section-icon.clock::after {
    background: radial-gradient(circle, rgba(16,185,129,0.4), transparent 70%);
}

.section-icon.idea::after {
    background: radial-gradient(circle, rgba(245,158,11,0.4), transparent 70%);
}

@keyframes iconPulse {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* 视频卡片暗色 */
.main .video-card {
    background: #16161c !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    position: relative;
    overflow: hidden;
}

.main .video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,195,113,0.06), transparent);
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.main .video-card:hover::before {
    left: 100%;
}

.main .video-card:hover {
    border-color: rgba(255,154,86,0.25) !important;
    box-shadow: 0 8px 32px rgba(255,154,86,0.1), 0 0 0 1px rgba(255,154,86,0.1) !important;
}

.main .video-title {
    color: rgba(255,255,255,0.9) !important;
}

.main .video-meta {
    color: rgba(255,255,255,0.4) !important;
}

.main .video-author-name {
    color: rgba(255,255,255,0.6) !important;
}

/* 热门卡片暗色 */
.hot-card {
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
}

.hot-card:hover {
    border-color: rgba(255,154,86,0.4);
    box-shadow: 0 0 30px rgba(255,154,86,0.15);
}

.hot-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%) !important;
}

.hot-card-title {
    color: #fff !important;
}

.hot-card-meta {
    color: rgba(255,255,255,0.6) !important;
}

/* 文章卡片暗色 */
.article-card {
    background: #16161c !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
}

.article-card:hover {
    border-color: rgba(255,154,86,0.25) !important;
    box-shadow: 0 8px 32px rgba(255,154,86,0.08) !important;
}

.article-card-title {
    color: rgba(255,255,255,0.9) !important;
}

.article-card-summary {
    color: rgba(255,255,255,0.5) !important;
}

.article-card-meta {
    color: rgba(255,255,255,0.4) !important;
}

/* 功能入口卡片暗色 + 玻璃质感 */
.features-section {
    background: transparent !important;
}

.feature-card {
    background: rgba(22,22,28,0.8) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    background: linear-gradient(135deg, #ffc371, #ff9a56, #ff6a3d) !important;
}

.feature-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255,154,86,0.1), transparent, rgba(255,195,113,0.08), transparent);
    animation: featureGlowRotate 8s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover .feature-card-glow {
    opacity: 1;
}

@keyframes featureGlowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.feature-card:hover {
    border-color: rgba(255,154,86,0.3) !important;
    box-shadow: 0 8px 40px rgba(255,154,86,0.12) !important;
}

.feature-title {
    color: #fff !important;
}

.feature-desc {
    color: rgba(255,255,255,0.5) !important;
}

.feature-link {
    color: #ffc371 !important;
}

/* 功能图标金色化 */
.feature-icon.series {
    background: linear-gradient(135deg, rgba(255,154,86,0.15), rgba(255,195,113,0.1)) !important;
    color: #ffc371 !important;
}

.feature-icon.resources {
    background: linear-gradient(135deg, rgba(255,154,86,0.15), rgba(255,195,113,0.1)) !important;
    color: #ffc371 !important;
}

.feature-icon.vip {
    background: linear-gradient(135deg, rgba(255,154,86,0.15), rgba(255,195,113,0.1)) !important;
    color: #ffc371 !important;
}

/* footer 暗色对齐 */
.footer {
    margin-top: 0 !important;
}

/* 滚动淡入动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 搜索框暗色适配 */
.search-box input {
    background: rgba(255,255,255,0.06) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.1) !important;
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.3) !important;
}

.search-box input:focus {
    border-color: rgba(255,154,86,0.4) !important;
    background: rgba(255,255,255,0.08) !important;
}

.search-box button {
    color: rgba(255,255,255,0.5) !important;
}

/* 暗色主题下 header 适配 */
.header {
    background: rgba(14,14,18,0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-item {
    color: rgba(255,255,255,0.6) !important;
}

.nav-item:hover {
    color: rgba(255,255,255,0.9) !important;
}

.nav-item.active {
    color: #ffc371 !important;
}

.nav-item.active::after {
    background: linear-gradient(135deg, #ffc371, #ff9a56) !important;
}

/* 暗色主题下 banner dots */
.banner-dot {
    background: rgba(255,255,255,0.3) !important;
}

.banner-dot.active {
    background: linear-gradient(135deg, #ffc371, #ff9a56) !important;
}

/* banner 箭头暗色 */
.banner-arrow {
    background: rgba(0,0,0,0.5) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

.banner-arrow:hover {
    background: rgba(255,154,86,0.3) !important;
}

/* 暗色适配 - 通用 */
.main {
    color: rgba(255,255,255,0.85);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .hero-stats {
        gap: 20px;
        margin-top: 28px;
    }

    .hero-stat-num {
        font-size: 24px;
    }

    .hero-stat-label {
        font-size: 12px;
    }

    .hero-orb-1 {
        width: 200px;
        height: 200px;
    }

    .hero-orb-2 {
        width: 150px;
        height: 150px;
    }

    .hero-orb-3 {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        gap: 16px;
    }

    .hero-stat-num {
        font-size: 20px;
    }

    .hero-stat-divider {
        height: 24px;
    }
}

/* 暗色模式下鼠标样式 */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,154,86,0.3) transparent;
}

*::-webkit-scrollbar {
    width: 6px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: rgba(255,154,86,0.3);
    border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(255,154,86,0.5);
}
