/**
 * 瓦小力餐饮视频库 V4 - 首页样式
 * 包含光边卡片、轮播、渐变文字等效果
 */
@import url('https://fonts.googleapis.com/css2?family=ZCOOL+QingKe+HuangYou&display=swap');

/* ==================== 首页容器 ==================== */
.home-page {
    min-height: 100vh;
    background: var(--bg-primary);
}

/* ==================== 顶部通栏 ==================== */
.hero-topbar {
    position: relative;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    overflow: visible;
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.topbar-search {
    flex: 0 0 360px;
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.6rem 1.2rem;
    transition: all var(--transition-fast);
}
.topbar-search:focus-within {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}
.topbar-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    outline: none;
    margin-left: 0.5rem;
}
.topbar-search input::placeholder { color: var(--text-muted); }
.topbar-search i { color: var(--text-muted); font-size: 1.1rem; }

.topbar-hot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.topbar-hot-label {
    font-size: 1rem;
    line-height: 1;
}
.topbar-hot-label-text {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-right: 0.25rem;
}
.topbar-hot-tag {
    padding: 0.25rem 0.625rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    color: var(--accent-orange);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.topbar-hot-tag:hover {
    background: rgba(255, 107, 53, 0.1);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    position: relative;
    z-index: 200;
}
.topbar-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0.25rem 0.5rem;
}
.topbar-action-btn i { font-size: 1rem; }
.topbar-action-btn:hover { color: var(--accent-orange); }
.topbar-vip-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.875rem;
    background: linear-gradient(135deg, rgba(255, 183, 77, 0.15), rgba(255, 107, 53, 0.15));
    border: 1px solid rgba(255, 183, 77, 0.3);
    border-radius: var(--radius-full);
    color: #FFB74D;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.topbar-vip-btn:hover {
    background: linear-gradient(135deg, rgba(255, 183, 77, 0.25), rgba(255, 107, 53, 0.25));
    border-color: #FFB74D;
    color: #FFD54F;
}
.topbar-vip-btn i { font-size: 0.9rem; }

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-xs);
    font-weight: 700;
}
.topbar-user-info {
    display: flex;
    flex-direction: column;
}
.topbar-user-name {
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.2;
}
.topbar-user-vip {
    display: inline-block;
    padding: 0 0.375rem;
    background: linear-gradient(135deg, rgba(255,183,77,0.2), rgba(255,107,53,0.2));
    border-radius: 2px;
    color: #FFD54F;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.4;
    width: fit-content;
}

.topbar-user-normal {
    display: inline-block;
    padding: 0 0.375rem;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    color: rgba(255,255,255,0.5);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.4;
    width: fit-content;
}

.topbar-bell-btn {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.topbar-bell-btn:hover { color: var(--accent-orange); }
.topbar-bell-dot {
    position: absolute;
    top: 4px;
    right: 5px;
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
}

/* ==================== Hero主区域 ==================== */
.hero-main {
    position: relative;
    padding: 1.5rem 1.5rem 2rem;
    background: #000000;
    overflow: hidden;
}
/* 暗紫渐变背景肌理 */
.hero-main::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at 80% 50%, rgba(168, 85, 247, 0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(255, 107, 53, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-layout {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* 左侧文字区 */
.hero-left {
    flex: 0 0 45%;
    padding-left: 5rem;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.3rem;
    margin-top: -0.5rem;
    letter-spacing: -0.02em;
}
.hero-title-white {
    color: #ffffff;
}
.hero-title-orange {
    margin-left: 0.25em;
    font-size: 1.2em;
    font-style: normal;
    font-weight: 900;
    font-family: 'Impact', 'Arial Black', 'Microsoft YaHei', sans-serif;
    letter-spacing: 0.12em;
    background: linear-gradient(180deg, #FF8C00 0%, #FF6B00 40%, #FF4500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 1.5px rgba(255, 69, 0, 0.6);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 20px rgba(255, 69, 0, 0.7)) drop-shadow(0 0 50px rgba(255, 140, 0, 0.3));
    text-shadow: none;
    paint-order: stroke fill;
}
@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

/* 功能标签横排 - 深色卡片按钮 */
.hero-feature-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    border-radius: 0;
    cursor: default;
    transition: all var(--transition-fast);
    background: transparent;
    border: none;
}
.hero-feature-item i {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
}
.hero-feature-item.fi-orange,
.hero-feature-item.fi-purple,
.hero-feature-item.fi-blue,
.hero-feature-item.fi-green {
    background: transparent;
    border: none;
    color: inherit;
}
.hero-feature-item.fi-orange:hover,
.hero-feature-item.fi-purple:hover,
.hero-feature-item.fi-blue:hover,
.hero-feature-item.fi-green:hover {
    background: transparent;
}
.hero-feature-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
}
.hero-feature-text span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.2;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
    min-width: 300px;
    padding: 0.8rem 2.5rem;
    background: linear-gradient(135deg, #E91E8C, #FF6B35);
    color: white;
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 25px rgba(233, 30, 140, 0.4), 0 4px 25px rgba(255, 107, 53, 0.3);
    border: none;
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(233, 30, 140, 0.5), 0 8px 35px rgba(255, 107, 53, 0.4);
    color: white;
    background: linear-gradient(135deg, #D4177E, #FF5A25);
}

/* 右侧轮播区 */
.hero-right {
    flex: 0 0 55%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow {
    position: absolute;
    z-index: 20;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}
.carousel-arrow-left { left: -10px; }
.carousel-arrow-right { right: 20px; }

.hero-carousel {
    position: relative;
    width: 100%;
    height: 420px;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}
.hero-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 轮播项 */
.hero-carousel-item {
    position: absolute;
    width: 300px;
    height: 400px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.hero-carousel-item.center {
    z-index: 10;
    transform: scale(1.1);
    opacity: 1;
    filter: brightness(1.05);
}
.hero-carousel-item.center .hero-carousel-card {
    border-color: rgba(255, 140, 90, 0.8);
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.6),
                0 0 60px rgba(255, 107, 53, 0.3),
                0 0 120px rgba(255, 107, 53, 0.12),
                inset 0 0 20px rgba(255, 107, 53, 0.15);
}
.hero-carousel-item.left-1 {
    z-index: 8;
    transform: translateX(-220px) scale(0.85);
    opacity: 0.55;
}
.hero-carousel-item.left-2 {
    z-index: 6;
    transform: translateX(-400px) scale(0.7);
    opacity: 0.25;
}
.hero-carousel-item.right-1 {
    z-index: 8;
    transform: translateX(220px) scale(0.85);
    opacity: 0.55;
}
.hero-carousel-item.right-2 {
    z-index: 6;
    transform: translateX(400px) scale(0.7);
    opacity: 0.25;
}
.hero-carousel-item.hidden {
    z-index: 0;
    opacity: 0;
    pointer-events: none;
}

/* 轮播卡片 */
.hero-carousel-card {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 2px solid rgba(255, 107, 53, 0.5);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.4),
                0 0 40px rgba(255, 107, 53, 0.15),
                inset 0 0 15px rgba(255, 107, 53, 0.1);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.hero-carousel-card:hover {
    border-color: rgba(255, 107, 53, 0.8);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.6),
                0 0 60px rgba(255, 107, 53, 0.25),
                0 0 100px rgba(255, 107, 53, 0.1),
                inset 0 0 20px rgba(255, 107, 53, 0.15);
    transform: translateY(-5px);
}

.hero-carousel-img {
    position: relative;
    flex: 1;
    overflow: hidden;
}
.hero-carousel-img video,
.hero-carousel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-carousel-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-hover));
    font-size: 3rem;
    color: var(--text-muted);
}

.hero-carousel-badge {
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-light));
    color: white;
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-sm);
}
.hero-carousel-badge.hot {
    background: linear-gradient(135deg, var(--danger), #ff6b6b);
}
.hero-carousel-badge.new {
    background: linear-gradient(135deg, var(--accent-blue), #60a5fa);
}

.hero-carousel-info {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.5);
}
.hero-carousel-info h3 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: white;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-carousel-plays {
    font-size: var(--font-size-xs);
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
}
.hero-carousel-plays i { margin-right: 0.25rem; }

/* 兼容旧的hero样式（其他页面可能用到） */
.hero-section {
    position: relative;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    overflow: hidden;
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 1;
}
.hero-text { flex: 1; }

/* 渐变文字效果（保留兼容） */
.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--accent-orange) 50%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-orange {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 功能标签（竖排兼容） */
.hero-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.feature-tag {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(26, 26, 37, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
}
.feature-tag:hover {
    border-color: var(--accent-orange);
    transform: translateX(5px);
}
.feature-tag-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
}
.feature-tag-icon.orange { background: rgba(255, 107, 53, 0.15); color: var(--accent-orange); }
.feature-tag-icon.purple { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); }
.feature-tag-icon.blue { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.feature-tag-icon.green { background: rgba(74, 222, 128, 0.15); color: var(--success); }
.feature-tag-text { font-size: var(--font-size-sm); color: var(--text-primary); }
.feature-tag-text span { color: var(--text-muted); font-size: var(--font-size-xs); }

/* ==================== 光边卡片效果（核心） ==================== */

/* 基础光边卡片 */
.glow-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

/* 光边边框效果 - 使用伪元素 */
.glow-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.3), 
        rgba(168, 85, 247, 0.3), 
        rgba(59, 130, 246, 0.3));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity var(--transition-normal);
}

.glow-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glow-orange);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.glow-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, 
        var(--accent-orange), 
        var(--accent-purple), 
        var(--accent-blue));
}

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

/* 光边变体 - 橙色主题 */
.glow-card-orange::before {
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.5), 
        rgba(255, 140, 90, 0.3));
}

.glow-card-orange:hover::before {
    background: linear-gradient(135deg, 
        var(--accent-orange), 
        var(--accent-orange-light));
}

/* 光边变体 - 紫色主题 */
.glow-card-purple::before {
    background: linear-gradient(135deg, 
        rgba(168, 85, 247, 0.5), 
        rgba(192, 132, 252, 0.3));
}

.glow-card-purple:hover::before {
    background: linear-gradient(135deg, 
        var(--accent-purple), 
        var(--accent-purple-light));
}

/* 光边变体 - 蓝色主题 */
.glow-card-blue::before {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.5), 
        rgba(96, 165, 250, 0.3));
}

.glow-card-blue:hover::before {
    background: linear-gradient(135deg, 
        var(--accent-blue), 
        var(--accent-blue-light));
}

/* ==================== 轮播区域 ==================== */
.carousel-section {
    padding: 3rem 2rem;
    background: var(--bg-secondary);
    position: relative;
}

.carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.carousel-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.carousel-title i {
    color: var(--accent-orange);
}

.carousel-nav {
    display: flex;
    gap: 0.5rem;
}

.carousel-nav-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-nav-btn:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: white;
}

/* 轮播容器 - 3D透视效果 */
.carousel-container {
    position: relative;
    height: 380px;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item {
    position: absolute;
    width: 280px;
    height: 360px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.carousel-item.center {
    z-index: 10;
    transform: scale(1);
    opacity: 1;
}

.carousel-item.left-1 {
    z-index: 8;
    transform: translateX(-320px) scale(0.85);
    opacity: 0.6;
}

.carousel-item.left-2 {
    z-index: 6;
    transform: translateX(-580px) scale(0.7);
    opacity: 0.3;
}

.carousel-item.right-1 {
    z-index: 8;
    transform: translateX(320px) scale(0.85);
    opacity: 0.6;
}

.carousel-item.right-2 {
    z-index: 6;
    transform: translateX(580px) scale(0.7);
    opacity: 0.3;
}

.carousel-item.hidden {
    z-index: 0;
    opacity: 0;
    pointer-events: none;
}

/* 轮播卡片内容 */
.carousel-card {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
}

.carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.carousel-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.carousel-card-image video,
.carousel-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-hover));
    font-size: 3rem;
    color: var(--text-muted);
}

.carousel-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-light));
    color: white;
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.carousel-card-badge.hot {
    background: linear-gradient(135deg, var(--danger), #ff6b6b);
}

.carousel-card-body {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.carousel-card-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.carousel-card-meta i {
    margin-right: 0.25rem;
}

.carousel-card-actions {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
}

.carousel-card-btn {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    text-decoration: none;
}

.carousel-card-btn:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: white;
}

.carousel-card-btn.primary {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-light));
    border-color: var(--accent-orange);
    color: white;
}

/* ==================== 分类区域 ==================== */
.category-section {
    padding: 1rem 1.5rem 0.5rem;
    background: #000000;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.category-grid {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.category-card {
    flex: 0 0 auto;
    width: calc((100% - 0.6rem * 6) / 7);
    min-width: 140px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* 灰色背景 */
.category-card.cat-purple,
.category-card.cat-blue,
.category-card.cat-red,
.category-card.cat-yellow,
.category-card.cat-teal,
.category-card.cat-indigo,
.category-card.cat-pink,
.category-card.cat-orange { background: rgba(255, 255, 255, 0.08); }

.category-card-inner {
    position: relative;
    padding: 0;
    display: flex;
    align-items: stretch;
    height: 110px;
    overflow: hidden;
}

.category-left {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem 0.8rem 1.5rem;
    flex: 0 0 auto;
    min-width: 0;
}

.category-left::after {
    display: none;
}

.category-thumb {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    display: block;
}

.category-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    opacity: 0.85;
    transform: scale(1.2);
}

.category-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    flex-shrink: 0;
}

/* 每个分类图标不同颜色 - 亮色系 */
.cat-purple .category-card-icon { background: linear-gradient(135deg, #A855F7, #7C3AED); box-shadow: 0 0 12px rgba(168, 85, 247, 0.4); }
.cat-blue .category-card-icon   { background: linear-gradient(135deg, #38BDF8, #0EA5E9); box-shadow: 0 0 12px rgba(56, 189, 248, 0.4); }
.cat-red .category-card-icon    { background: linear-gradient(135deg, #EF4444, #DC2626); box-shadow: 0 0 12px rgba(239, 68, 68, 0.4); }
.cat-yellow .category-card-icon { background: linear-gradient(135deg, #EAB308, #CA8A04); box-shadow: 0 0 12px rgba(234, 179, 8, 0.4); }
.cat-teal .category-card-icon   { background: linear-gradient(135deg, #22C55E, #16A34A); box-shadow: 0 0 12px rgba(34, 197, 94, 0.4); }
.cat-indigo .category-card-icon { background: linear-gradient(135deg, #60A5FA, #3B82F6); box-shadow: 0 0 12px rgba(96, 165, 250, 0.4); }
.cat-pink .category-card-icon   { background: linear-gradient(135deg, #EC4899, #DB2777); box-shadow: 0 0 12px rgba(219, 39, 119, 0.4); }

.category-card-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: 0;
}

.category-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    white-space: nowrap;
}

.category-card:hover .category-card-icon {
    transform: scale(1.1);
}

/* 到店类图片 */
.cat-red .category-thumb img {
    transform: scale(0.9);
}

/* 菜品类图片更大更靠右靠下 */
.cat-blue .category-thumb img {
    transform: scale(1.5);
    object-position: right bottom;
}

/* 段子类图片 */
.cat-yellow .category-thumb img {
    transform: scale(1.0);
}

/* 教学类图片缩小+左移 */
.cat-teal .category-thumb img {
    transform: scale(1.0);
    object-position: left bottom;
}

/* 人设类图片缩小 */
.cat-indigo .category-thumb img {
    transform: scale(1.0);
}

/* 探店类图片 */
.cat-pink .category-thumb img {
    transform: scale(1.0);
}

/* ==================== 爆款推荐区域 ==================== */
.hot-section {
    padding: 0.5rem 1.5rem 2rem;
    background: #000000;
}

.hot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.hot-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hot-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.hot-daily {
    font-size: 0.7rem;
    color: #FF6B35;
    font-weight: 400;
}

.hot-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hot-filters {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.hot-filter {
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hot-filter:hover {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.hot-filter.active {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-color: #FFD700;
    color: #000;
    font-weight: 600;
}

.hot-more {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.hot-more:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* 爆款网格 - 6列 */
.hot-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
}

/* 爆款卡片 - 白银发光边框 */
.hot-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 玻璃质感发光边框 */
.hot-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2.5px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.7),
        rgba(180, 200, 255, 0.3),
        rgba(255, 255, 255, 0.1),
        rgba(200, 180, 255, 0.4),
        rgba(255, 255, 255, 0.7));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.hot-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1),
                0 0 30px rgba(200, 200, 255, 0.06),
                inset 0 1px 1px rgba(255, 255, 255, 0.15);
    opacity: 0.6;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hot-card:hover {
    transform: translateY(-4px);
}

.hot-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg,
        #FFD700,
        rgba(255, 200, 50, 0.6),
        rgba(255, 165, 0, 0.3),
        rgba(255, 200, 50, 0.6),
        #FFD700);
}

.hot-card:hover::after {
    opacity: 1;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.25),
                0 0 40px rgba(255, 165, 0, 0.12),
                inset 0 1px 1px rgba(255, 215, 0, 0.2);
}

/* 选中状态 - 金色玻璃边框 */
.hot-card.selected::before {
    opacity: 1;
    background: linear-gradient(135deg,
        #FFD700,
        rgba(255, 200, 50, 0.7),
        rgba(255, 165, 0, 0.4),
        rgba(255, 200, 50, 0.7),
        #FFD700);
}

.hot-card.selected::after {
    opacity: 1;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.35),
                0 0 50px rgba(255, 165, 0, 0.18),
                inset 0 1px 1px rgba(255, 215, 0, 0.25);
}

.hot-card-image {
    position: relative;
    aspect-ratio: 16/12;
    overflow: hidden;
}

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

.hot-card:hover .hot-card-image video,
.hot-card:hover .hot-card-image img {
    transform: scale(1.05);
}

.hot-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.08));
    font-size: 2rem;
    color: rgba(255,255,255,0.15);
}

/* 卡片标签 */
.hot-card-tag {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.2rem 0.5rem;
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    border-radius: 4px;
}

.hot-card-tag.red { background: rgba(239, 68, 68, 0.85); }
.hot-card-tag.orange { background: rgba(255, 107, 53, 0.85); }
.hot-card-tag.blue { background: rgba(59, 130, 246, 0.85); }
.hot-card-tag.purple { background: rgba(139, 92, 246, 0.85); }

/* 收藏/星标按钮 */
.hot-card-favorite {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.hot-card-favorite:hover,
.hot-card-favorite.active {
    color: #FFD700;
    background: rgba(0, 0, 0, 0.7);
}

/* 卡片信息 */
.hot-card-body {
    padding: 0.6rem 0.6rem 0.75rem;
}

.hot-card-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-card-subtitle {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.35);
}

.hot-card-plays {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.hot-card-star {
    color: #FFD700;
    font-size: 0.75rem;
}

/* ==================== 底部功能入口 ==================== */
.footer-tools-section {
    padding: 1rem 1.5rem 2rem;
    background: #000000;
}

.footer-tools-grid {
    display: flex;
    gap: 0.6rem;
}

.tool-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

/* 敬请期待遮罩 */
.tool-card-soon {
    cursor: default;
}

.tool-card-soon .tool-name,
.tool-card-soon .tool-desc {
    opacity: 0.5;
}

.tool-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.08);
}

.tool-icon.orange {
    background: linear-gradient(135deg, rgba(180, 80, 30, 0.6), rgba(180, 80, 30, 0.3));
    color: #FF9F43;
}

.tool-icon.blue {
    background: linear-gradient(135deg, rgba(56, 140, 220, 0.6), rgba(56, 140, 220, 0.3));
    color: #5DADE2;
}

.tool-icon.green {
    background: linear-gradient(135deg, rgba(30, 130, 76, 0.6), rgba(30, 130, 76, 0.3));
    color: #58D68D;
}

.tool-icon.brown {
    background: linear-gradient(135deg, rgba(160, 100, 40, 0.6), rgba(160, 100, 40, 0.3));
    color: #E8A838;
}

.tool-icon.violet {
    background: linear-gradient(135deg, rgba(120, 60, 180, 0.6), rgba(120, 60, 180, 0.3));
    color: #B07CE8;
}

.tool-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.tool-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

.tool-desc {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== 动画 ==================== */
.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 响应式补充 ==================== */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-features {
        width: 100%;
    }
    
    .carousel-container {
        height: 320px;
    }
    
    .carousel-item {
        width: 220px;
        height: 300px;
    }
    
    .carousel-item.left-1 {
        transform: translateX(-240px) scale(0.8);
    }
    
    .carousel-item.right-1 {
        transform: translateX(240px) scale(0.8);
    }
    
    .category-section,
    .hot-section,
    .footer-tools-section {
        padding: 2rem 1rem;
    }
    
    .hot-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
