/* Sand Shape Game Guide - Custom Styles */

/* Hero Grid Background */
.hero-grid-bg {
    position: relative;
    overflow: hidden;
}

.hero-grid-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(34, 197, 94, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 197, 94, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: gridPulse 8s ease-in-out infinite;
    z-index: 0;
}

.hero-grid-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(74, 222, 128, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 222, 128, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridWave 12s ease-in-out infinite reverse;
    z-index: 0;
}

@keyframes gridPulse {
    0%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-2px);
    }
}

@keyframes gridWave {
    0%, 100% {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
    33% {
        opacity: 0.8;
        transform: translateX(2px) translateY(-1px);
    }
    66% {
        opacity: 0.9;
        transform: translateX(-1px) translateY(1px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Duration Display Styles */
.duration-badge {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
    transition: all 0.2s ease;
}

.duration-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.4);
}

.duration-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #16a34a;
    font-weight: 500;
}

.duration-info i {
    color: #22c55e;
}

/* Video Container Styles - 支持横屏和竖屏模式 */
.video-container {
    position: relative;
    width: 100%;
    background: #1f2937;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    aspect-ratio: 16/9; /* 默认横屏模式 */
}

/* 竖屏模式 (9:16) - 当mobile_screen_mode=2时 */
.video-container[data-mobile-mode="2"] {
    aspect-ratio: 9/16;
    max-width: 100%;
    margin: 0 auto;
}

/* Web端竖屏模式 - 当web_screen_mode=2时 */
@media (min-width: 1024px) {
    .video-container[data-web-mode="2"] {
        aspect-ratio: 9/16;
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* 大屏幕横屏模式优化 */
    .video-container[data-web-mode="1"] {
        aspect-ratio: 16/9;
        max-width: 100%;
    }
    
    /* 超大屏幕优化 - 限制最大宽度以保持良好比例 */
    @media (min-width: 1400px) {
        .video-container {
            max-width: 1200px;
            margin: 0 auto;
        }
    }
}

/* 手机端特殊处理 */
@media (max-width: 768px) {
    /* 手机端竖屏模式 - 全宽显示 */
    .video-container[data-mobile-mode="2"] {
        max-width: 100%;
        aspect-ratio: 9/16;
    }
    
    /* 手机端横屏模式 - 保持16:9但调整高度 */
    .video-container[data-mobile-mode="1"] {
        aspect-ratio: 16/9;
        max-height: 50vh;
    }
}

/* 平板端优化 */
@media (min-width: 769px) and (max-width: 1023px) {
    .video-container[data-mobile-mode="2"] {
        max-width: 100%;
        aspect-ratio: 9/16;
    }
}

/* Video Info Header Styles */
.video-info-header {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border: 1px solid #22c55e;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.video-info-header h3 {
    color: #16a34a;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.video-duration-display {
    background: white;
    border: 1px solid #22c55e;
    color: #16a34a;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

/* Level Info Bar Styles */
.level-info-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0.75rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
    backdrop-filter: blur(10px);
}

.level-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-weight: 500;
}

.level-info-item i {
    color: #22c55e;
    font-size: 1rem;
}

/* Responsive Duration Display */
@media (max-width: 640px) {
    .level-info-bar {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .level-info-item {
        font-size: 0.875rem;
    }
    
    .duration-badge {
        font-size: 0.6875rem;
        padding: 0.1875rem 0.375rem;
    }
}

/* Base Styles */
* {
    box-sizing: border-box;
}

html,
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html *,
body * {
    font-family: inherit;
}

body {
    line-height: 1.6;
    color: #374151;
    background: linear-gradient(135deg, #4b3b32 0%, #6b5b52 50%, #9a8f88 100%);
    min-height: 100vh;
}

/* Custom Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(240, 136, 10, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(240, 136, 10, 0.6);
    }
}

@keyframes card-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(0.5deg);
    }
    50% {
        transform: translateY(-10px) rotate(0deg);
    }
    75% {
        transform: translateY(-5px) rotate(-0.5deg);
    }
}

@keyframes image-zoom {
    0% {
        transform: scale(1);
    }
    100% {
    transform: scale(1.1);
}
}

@keyframes badge-bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.05);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 3s infinite;
}

.animate-bounce-slow {
    animation: bounce-slow 2s infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-card-float {
    animation: card-float 6s ease-in-out infinite;
}

.animate-badge-bounce {
    animation: badge-bounce 2s ease-in-out infinite;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #4b3b32, #6b5b52, #9a8f88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Custom Buttons */
.btn-primary {
    background: linear-gradient(135deg, #4b3b32, #6b5b52);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: #4b3b32;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #6b5b52;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(240, 136, 10, 0.1), transparent);
    transition: left 0.5s;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: #4b3b32;
    color: white;
    transform: translateY(-2px);
}

/* Enhanced Card Styles */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Enhanced Level Number Cards */
.level-number {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.level-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.level-number:hover::before {
    transform: translateX(100%);
}

.level-number:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.level-number:active {
    transform: translateY(-1px) scale(1.02);
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero-left {
    padding-right: 2rem;
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.2);
}

/* Level Guides Section */
.level-guides-section {
    background: #f8fafc;
}

.level-group {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.level-group:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.level-group:last-child {
    margin-bottom: 0;
}

.level-group-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

/* Quick Search Styles */
.quick-search {
    margin-bottom: 2rem;
}

.quick-search-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.search-input-container {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    max-width: 20rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s;
}

.search-input-container:focus-within {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.search-input-container:focus-within::before {
    left: 100%;
}

.search-input-field {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.125rem;
    padding: 0.25rem 0.5rem;
}

.search-button {
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0.75rem;
    position: relative;
    overflow: hidden;
}

.search-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.search-button:active::before {
    width: 300px;
    height: 300px;
}

.search-button:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #4b3b32, #6b5b52);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Enhanced Level Card */
.level-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: 1;
}

.level-card:hover::before {
    transform: translateX(100%);
}

.level-card:hover {
    transform: translateY(-10px) scale(1.05) rotate(2deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: card-float 2s ease-in-out infinite;
}

.level-card:active {
    transform: translateY(-5px) scale(1.02) rotate(1deg);
}

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateY(-4px) scale(1.05) rotate(1deg); }
    10%, 30%, 50%, 70%, 90% { transform: translateY(-4px) scale(1.05) rotate(1deg) translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateY(-4px) scale(1.05) rotate(1deg) translateX(2px); }
}

/* Aspect Ratio for Long Images */
.aspect-w-3 {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 133.33%; /* 4:3 aspect ratio for long images */
}

.aspect-w-3 > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Enhanced Level Badge Styles */
.level-badge {
    background: linear-gradient(135deg, #4b3b32, #6b5b52);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    transition: all 0.3s ease;
    animation: badge-bounce 3s ease-in-out infinite;
}

.level-badge:hover {
        transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

/* Level Text Content Styles */
.level-text-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.level-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    text-align: center;
}

.level-description {
    color: #6b7280;
    text-align: center;
    line-height: 1.4;
}

/* Enhanced Image Hover Effects */
.level-image {
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.level-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: 1;
}

.level-image:hover::before {
    transform: translateX(100%);
}

.level-image:hover {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.1);
}

/* Enhanced Hover Overlay - Removed for cleaner design */

.level-card-image {
    height: 160px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.level-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.level-card-image:hover::before {
    transform: translateX(100%);
}

/* Difficulty Badges */
.difficulty-easy {
    background: linear-gradient(135deg, #4b3b32, #6b5b52);
    color: white;
}

.difficulty-medium {
    background: linear-gradient(135deg, #6b5b52, #4b3b32);
    color: white;
}

.difficulty-hard {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
}

/* Search Bar */
.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    transition: color 0.3s ease;
}

.search-input:focus + .search-icon {
    color: #22c55e;
}

/* Nav search input gradient border */
#navLevelJump {
    border: 1px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #4ade80, #22c55e, #16a34a) border-box;
}

/* Enhanced Navigation */
.nav-link {
    color: #6B7280;
    font-weight: 500;
    transition: color 0.2s ease, background 0.2s ease;
    padding: 8px 16px;
    border-radius: 12px;
}

.nav-link:hover {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

/* Mobile Menu - hidden via Tailwind 'hidden' class, shown via .active */
.mobile-menu,
#mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 1) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.mobile-menu.active,
#mobile-menu.active {
    display: block !important;
}

/* Mobile nav search input icon positioning fix */
#mobileNavLevelJump {
    padding-left: 2.75rem !important;
    padding-right: 3rem !important;
    font-size: 0.875rem !important;
}

#mobile-menu .fa-search {
    left: 1rem !important;
    font-size: 0.875rem !important;
    width: 1rem;
    text-align: center;
}

/* Level Navigation Bar */
.level-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.level-nav-btn-active {
    border-color: #22c55e;
    color: #16a34a;
    background: #fff;
}

.level-nav-btn-active:hover {
    background: #f0fdf4;
    border-color: #16a34a;
}

.level-nav-btn-disabled {
    border-color: #e5e7eb;
    color: #9ca3af;
    background: #f9fafb;
    cursor: not-allowed;
}

/* Custom dropdown button */
.level-nav-dropdown-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid #22c55e;
    color: #374151;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.level-nav-dropdown-btn:hover {
    background: #f0fdf4;
}

.level-nav-dropdown-icon {
    color: #22c55e;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

/* Dropdown list panel */
.level-nav-dropdown-list {
    position: absolute;
    /* bottom: calc(100% + 6px); */
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #22c55e;
    border-radius: 0.625rem;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
    max-height: 240px;
    z-index: 100;
}

.level-nav-dropdown-item {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    transition: background 0.15s ease;
    border-left: 3px solid transparent;
}

.level-nav-dropdown-item:hover {
    background: #f0fdf4;
    color: #16a34a;
    border-left-color: #22c55e;
}

.level-nav-dropdown-item-active {
    background: #f0fdf4;
    color: #16a34a;
    font-weight: 600;
    border-left-color: #22c55e;
}

@media (max-width: 430px) {
    .level-nav-btn {
        padding: 0.5rem 0.625rem;
        font-size: 0.8125rem;
        gap: 0.25rem;
    }
    
    .level-nav-dropdown-btn {
        padding: 0.5rem 0.625rem;
        font-size: 0.8125rem;
    }
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(34, 197, 94, 0.3);
    border-radius: 50%;
    border-top-color: #22c55e;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Grid Layout Utilities */
.grid-cols-15 {
    grid-template-columns: repeat(15, minmax(0, 1fr));
}

.grid-cols-20 {
    grid-template-columns: repeat(20, minmax(0, 1fr));
}

/* ===== LEVEL RANGES GRID STYLES ===== */
.level-ranges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 2rem;
}

.level-range-link {
    display: block;
    padding: 16px 12px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 250, 252, 0.9) 100%);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.level-range-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #f59e0b, #06b6d4);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.level-range-link:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.95) 100%);
    border-color: rgba(59, 130, 246, 0.3);
    color: #1f2937;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(59, 130, 246, 0.15);
}

.level-range-link:hover::before {
    transform: scaleX(1);
}

.level-range-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .level-ranges-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .level-range-link {
        padding: 14px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .level-ranges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .level-range-link {
        padding: 12px 8px;
        font-size: 12px;
    }
}

/* Hero Search Box - Premium Design */
.hero-search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.hero-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    box-shadow: 
        0 25px 50px rgba(240, 136, 10, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(240, 136, 10, 0.1);
    border: 2px solid rgba(240, 136, 10, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.hero-search-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(240, 136, 10, 0.05) 0%, 
        rgba(225, 109, 5, 0.05) 50%, 
        rgba(240, 136, 10, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.hero-search-box:focus-within {
    border-color: rgba(240, 136, 10, 0.4);
    box-shadow: 
        0 30px 60px rgba(240, 136, 10, 0.25),
        0 15px 30px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(240, 136, 10, 0.2);
    transform: translateY(-6px) scale(1.02);
}

.hero-search-box:focus-within::before {
    opacity: 1;
}

.search-icon-wrapper {
    display: flex;
    align-items: center;
    padding: 0 20px 0 28px;
    z-index: 1;
    position: relative;
}

.search-icon-wrapper i {
    font-size: 18px;
    transition: all 0.3s ease;
}

.hero-search-box:focus-within .search-icon-wrapper i {
    color: #f59e0b;
    transform: scale(1.1);
}

.hero-search-input {
    flex: 1;
    padding: 22px 20px 22px 0;
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    background: transparent;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hero-search-input::placeholder {
    color: #9ca3af;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-search-input:focus::placeholder {
    color: #d1d5db;
    transform: translateY(-2px);
}

.hero-search-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 8px;
    background: linear-gradient(135deg, #f59e0b 0%, #06b6d4 50%, #f59e0b 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 20px;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(240, 136, 10, 0.3);
}

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

.hero-search-btn:hover {
        transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(240, 136, 10, 0.4);
    background-position: 100% 0;
}

.hero-search-btn:hover::before {
    left: 100%;
}

.hero-search-btn:active {
    transform: scale(0.96);
}

.hero-search-btn i {
    transition: transform 0.3s ease;
}

.hero-search-btn:hover i {
    transform: translateX(3px) scale(1.1);
}

.hero-search-hint {
    margin-top: 20px;
    font-size: 16px;
    color: #6b7280;
    text-align: center;
    font-weight: 600;
    opacity: 0.8;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.hero-search-container:hover .hero-search-hint {
    color: #f59e0b;
    opacity: 1;
    transform: translateY(-2px);
}

/* Floating particles effect */
.hero-search-container::after {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background: 
        radial-gradient(circle at 20% 20%, rgba(240, 136, 10, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(225, 109, 5, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 10%, rgba(240, 136, 10, 0.05) 0%, transparent 50%);
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: float 6s ease-in-out infinite;
}

.hero-search-container:hover::after {
    opacity: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

/* Level Jump Input - Legacy */
#levelJump {
    min-width: 120px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .card {
        padding: 16px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
    }
    
    /* Hero Search Responsive */
    .hero-search-container {
        max-width: 100%;
        padding: 0 16px;
    }
    
    .hero-search-box {
        border-radius: 20px;
        box-shadow: 
            0 15px 30px rgba(240, 136, 10, 0.12),
            0 6px 12px rgba(0, 0, 0, 0.08);
    }
    
    .search-icon-wrapper {
        padding: 0 16px 0 20px;
    }
    
    .search-icon-wrapper i {
        font-size: 16px;
    }
    
    .hero-search-input {
        padding: 18px 16px 18px 0;
        font-size: 16px;
        letter-spacing: 0.3px;
    }
    
    .hero-search-btn {
        width: 56px;
        height: 56px;
        margin: 6px;
        font-size: 18px;
        border-radius: 16px;
    }
    
    .hero-search-hint {
        font-size: 14px;
        margin-top: 16px;
        letter-spacing: 0.3px;
    }
    
    .hero-search-container::after {
        top: -20px;
        left: -20px;
        right: -20px;
        bottom: -20px;
        border-radius: 40px;
    }
    
    .level-card-image {
        height: 120px;
    }
    
    .level-number {
        min-height: 50px;
        padding: 8px;
    }
    
    .grid-cols-15,
    .grid-cols-20 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    
    .level-card:hover {
        transform: translateY(-5px) scale(1.02) rotate(1deg);
    }
}

@media (max-width: 480px) {
    .level-number {
        min-height: 45px;
        padding: 6px;
    font-size: 12px;
    }
    
    .level-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }
    
    .level-text-content {
        padding: 0.75rem;
    }
    
    .level-title {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
    
    .level-description {
        font-size: 0.75rem;
    }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

/* Focus States */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}

/* Hover Effects */
.hover-lift:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Line Clamp */
.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}

/* Custom Scrollbar Styles */
.scrollbar-thin {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f3f4f6;
}

.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Level List Scrollable Container */
.level-list-container {
    max-height: 25rem; /* 256px - reduced since we only show 11 levels now */
    overflow-y: auto;
    padding-right: 0.5rem;
}

.level-list-container::-webkit-scrollbar {
    width: 6px;
}

.level-list-container::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

/* === Level Loading & Card Animations (moved from header inline style) === */

.level-card-placeholder {
    animation: placeholderPulse 1.5s ease-in-out infinite;
}

@keyframes placeholderPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.level-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #4ade80, #22c55e, #16a34a) border-box;
}

.level-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Level card title - single line, no wrap */
.level-card h3,
.level-card .text-lg {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9375rem !important;
}

.level-image {
    transition: opacity 0.5s ease-in-out;
}

.level-image-placeholder {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.level-badge {
    transition: all 0.3s ease;
}

.level-card:hover .level-badge {
    transform: scale(1.05);
}

.level-tab-btn {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.level-tab-btn:active {
    transform: scale(0.95);
}

.level-tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.level-tab-btn:hover::before {
    left: 100%;
}

@media (max-width: 640px) {
    .level-card {
        margin-bottom: 1rem;
    }
    
    .level-card-placeholder {
        margin-bottom: 1rem;
    }
}

.level-list-container::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.level-list-container::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Level Guide Card Styles - 图文攻略布局 */
.level-guide-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.level-guide-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: #e2e8f0;
}

.level-guide-image {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    position: relative;
    overflow: hidden;
}

.level-guide-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.level-guide-card:hover .level-guide-image::before {
    transform: translateX(100%);
}

.level-guide-info {
        padding: 0.75rem;
    text-align: center;
}

.level-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.level-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive adjustments for guide cards */
@media (max-width: 640px) {
    .level-guide-image {
        min-height: 70px;
        padding: 0.75rem;
    }
    
    .level-guide-info {
        padding: 0.5rem;
    }
    
    .level-number {
        font-size: 0.7rem;
    }
    
    .level-title {
        font-size: 0.8rem;
    }
}

@media (min-width: 1024px) {
    .level-guide-image {
        min-height: 90px;
    }
    
    .level-guide-info {
        padding: 1rem;
    }
    
    .level-number {
        font-size: 0.8rem;
    }
    
    .level-title {
        font-size: 0.9rem;
    }
}

/* 手机端只隐藏views单词，保留数字显示 */
@media (max-width: 768px) {
    /* 隐藏views单词 */
    .views-text {
        display: none !important;
    }
    
    /* 隐藏包含"View Count:"的整个文本 */
    .view-count-full {
        display: none !important;
    }
}

/* 视频容器额外优化 */
.video-container iframe {
    border: none;
    outline: none;
    display: block;
}

/* 确保视频容器在加载时有平滑的过渡效果 */
.video-container {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 视频容器悬停效果 */
@media (hover: hover) {
    .video-container:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }
}

/* ===== 3D轮播图 - 手机框样式 ===== */
.carousel-container {
    position: relative;
    width: 100%;
    height: 600px;
    perspective: 1200px;
    perspective-origin: center center;
}

.carousel-stage {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item.phone-frame {
    position: absolute;
    width: 280px;
    height: 520px;
    left: 50%;
    top: 50%;
    margin-left: -140px;
    margin-top: -260px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* 手机外框 */
.phone-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 35px;
    padding: 8px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    transform-style: preserve-3d;
}

/* 手机顶部刘海/听筒 */
.phone-body::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 20px;
    background: linear-gradient(145deg, #0a0a0a, #1a1a1a);
    border-radius: 0 0 15px 15px;
    z-index: 10;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* 手机屏幕区域 */
.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: 
        inset 0 0 0 2px rgba(0, 0, 0, 0.8),
        inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 屏幕内容（图片） */
.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* 激活状态 - 增大尺寸和亮度 */
.carousel-item.phone-frame.active {
    z-index: 10;
}

.carousel-item.phone-frame.active .phone-body {
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(34, 197, 94, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}

.carousel-item.phone-frame.active .phone-screen {
    box-shadow: 
        inset 0 0 0 2px rgba(0, 0, 0, 0.8),
        inset 0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(34, 197, 94, 0.2);
}

/* 3D旋转时的视觉效果 */
.carousel-item.phone-frame:not(.active) {
    opacity: 0.6;
    filter: blur(2px);
}

.carousel-item.phone-frame:not(.active) .phone-screen img {
    filter: brightness(0.7);
}

/* 悬停效果 */
.carousel-item.phone-frame:hover {
    z-index: 15;
}

.carousel-item.phone-frame:hover .phone-body {
    box-shadow: 
        0 35px 90px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(34, 197, 94, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}

.carousel-item.phone-frame:hover .phone-screen img {
    transform: scale(1.05);
}

/* 导航按钮样式 */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.carousel-container:hover .carousel-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.carousel-nav svg {
    width: 24px;
    height: 24px;
    color: #22c55e;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* 导航点样式 */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 8px;
    z-index: 100;
}

.carousel-nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-nav-dot.active {
    background: #22c55e;
    border-color: #22c55e;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.carousel-nav-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

/* 自动播放按钮 */
.carousel-autoplay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    color: #22c55e;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-autoplay:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-autoplay svg {
    width: 16px;
    height: 16px;
}

/* 粒子效果容器 */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: float-particle 8s infinite ease-in-out;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-100px) translateX(50px) rotate(180deg);
        opacity: 0.8;
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .carousel-container {
        height: 500px;
    }
    
    .carousel-item.phone-frame {
        width: 240px;
        height: 450px;
        margin-left: -120px;
        margin-top: -225px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-nav svg {
        width: 20px;
        height: 20px;
    }
}

/* ===== NAV LINK GRADIENT UNDERLINE HOVER ===== */
.nav-link-gradient {
    position: relative;
    text-decoration: none;
    padding-bottom: 2px;
}

.nav-link-gradient::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4ade80, #22c55e, #16a34a);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link-gradient:hover::after,
.nav-link-gradient.active::after {
    width: 100%;
}

/* Apply to standard nav links too */
nav a.nav-link,
nav .nav-link {
    position: relative;
    padding-bottom: 2px;
}

nav a.nav-link::after,
nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4ade80, #22c55e, #16a34a);
    border-radius: 2px;
    transition: width 0.3s ease;
}

nav a.nav-link:hover::after,
nav .nav-link:hover::after {
    width: 100%;
}

/* ===== MOBILE-FIRST RESPONSIVE IMPROVEMENTS ===== */

/* Base mobile defaults (320px-430px) */
@media (max-width: 430px) {

    /* Typography scale down - much smaller for compact mobile */
    h1, .text-5xl, .text-4xl { font-size: 1.5rem !important; line-height: 1.25 !important; }
    h2, .text-3xl { font-size: 1.25rem !important; line-height: 1.3 !important; }
    h3, .text-2xl { font-size: 1.125rem !important; line-height: 1.35 !important; }
    h4, .text-xl { font-size: 1rem !important; line-height: 1.4 !important; }
    p, .text-lg { font-size: 0.875rem !important; line-height: 1.5 !important; }
    .text-base { font-size: 0.875rem !important; line-height: 1.5 !important; }
    .text-sm { font-size: 0.8125rem !important; }

    /* Spacing reduction - much tighter */
    .py-16 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    .py-20 { padding-top: 1.75rem !important; padding-bottom: 1.75rem !important; }
    .py-12 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
    .py-8 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    .mb-12 { margin-bottom: 1rem !important; }
    .mb-8  { margin-bottom: 0.75rem !important; }
    .mb-6  { margin-bottom: 0.5rem !important; }
    .mb-4  { margin-bottom: 0.375rem !important; }
    .gap-12 { gap: 1rem !important; }
    .gap-8 { gap: 0.75rem !important; }
    .gap-6 { gap: 0.625rem !important; }
    .gap-4 { gap: 0.5rem !important; }
    .space-y-8 > * + * { margin-top: 0.875rem !important; }
    .space-y-6 > * + * { margin-top: 0.625rem !important; }
    .space-y-4 > * + * { margin-top: 0.5rem !important; }

    /* Hero section - tighter */
    .hero-grid-bg .space-y-8 { gap: 0.75rem !important; }
    .hero-grid-bg h1 { font-size: 1.5rem !important; line-height: 1.25 !important; }
    .hero-grid-bg p { font-size: 0.875rem !important; line-height: 1.5 !important; }
    .hero-content { padding: 1rem !important; }

    /* Cards: tighter padding and radius */
    .card {
        border-radius: 8px !important;
        padding: 0.875rem !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    }

    .level-card {
        border-radius: 6px !important;
    }

    .bg-white.rounded-xl { border-radius: 8px !important; }
    .rounded-lg { border-radius: 6px !important; }
    .rounded-2xl { border-radius: 10px !important; }

    /* Padding overrides for tighter mobile */
    .p-8 { padding: 0.875rem !important; }
    .p-6 { padding: 0.75rem !important; }
    .p-4 { padding: 0.625rem !important; }
    .px-8 { padding-left: 1rem !important; padding-right: 1rem !important; }
    .px-6 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
    .px-4 { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }

    /* Images: full width */
    img { max-width: 100%; height: auto; }

    /* Videos: responsive aspect ratio */
    .video-container,
    .video-container iframe {
        width: 100% !important;
        aspect-ratio: 16/9 !important;
        height: auto !important;
    }

    /* Level card image height */
    .level-card-image { height: 85px !important; }

    /* FAQ buttons - smaller */
    .faq-btn, button[onclick^="toggleFAQ"] {
        padding: 0.625rem 0.875rem !important;
        font-size: 0.875rem !important;
    }

    /* Download page hero - compact */
    .hero-section h1 { font-size: 1.5rem !important; line-height: 1.25 !important; }
    .hero-section p.text-xl { font-size: 0.875rem !important; line-height: 1.5 !important; }
    .hero-section .text-lg { font-size: 0.875rem !important; }

    /* Reduce button padding - more compact */
    .btn-primary, .btn-secondary {
        padding: 0.625rem 1rem !important;
        font-size: 0.875rem !important;
    }

    /* Download buttons - smaller */
    .download-btn {
        padding: 0.5rem 0.875rem !important;
        font-size: 0.8125rem !important;
    }

    /* App badges - smaller */
    .app-badge {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.8125rem !important;
    }

    /* Carousel */
    .carousel-container { height: 380px !important; }
    .carousel-item.phone-frame {
        width: 180px !important;
        height: 340px !important;
        margin-left: -90px !important;
        margin-top: -170px !important;
    }

    /* Section padding - tighter */
    section { padding-left: 0.875rem !important; padding-right: 0.875rem !important; }
    .container { padding-left: 0.875rem !important; padding-right: 0.875rem !important; }
    .max-w-6xl, .max-w-7xl, .max-w-4xl { padding-left: 0.875rem !important; padding-right: 0.875rem !important; }

    /* Stats in hero - smaller */
    .flex.flex-wrap.gap-6 { gap: 0.5rem !important; }
    .flex.flex-wrap.gap-6 span { font-size: 0.8125rem !important; }

    /* Search input - more compact */
    .hero-search-input { font-size: 0.875rem !important; padding: 0.75rem 0.625rem 0.75rem 0 !important; }
    .hero-search-btn { width: 44px !important; height: 44px !important; font-size: 0.875rem !important; }
    .hero-search-box { padding: 0.375rem !important; }

    /* Nav search input - smaller */
    #navLevelJump { width: 8rem !important; font-size: 0.75rem !important; padding: 0.375rem 0.5rem !important; }

    /* Level tabs - smaller */
    .level-tab-btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8125rem !important;
    }

    /* Feature cards grid items */
    .bg-white.rounded-lg.p-6 { padding: 0.875rem !important; }
    
    /* List items spacing */
    .space-y-3 > * + * { margin-top: 0.5rem !important; }
    .space-y-2 > * + * { margin-top: 0.375rem !important; }
}

/* Small mobile (max 375px) - even tighter */
@media (max-width: 375px) {
    h1, .text-5xl, .text-4xl { font-size: 1.375rem !important; line-height: 1.2 !important; }
    h2, .text-3xl { font-size: 1.125rem !important; }
    h3, .text-2xl { font-size: 1rem !important; }
    p, .text-lg, .text-base { font-size: 0.8125rem !important; line-height: 1.45 !important; }

    .py-16 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
    .py-12 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    .py-8 { padding-top: 0.875rem !important; padding-bottom: 0.875rem !important; }

    .card { padding: 0.75rem !important; }
    .p-8 { padding: 0.75rem !important; }
    .p-6 { padding: 0.625rem !important; }

    section { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
    .container { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }

    /* Grid: force 2 columns minimum */
    .grid-cols-3, .sm\:grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

    /* level card text */
    .level-guide-info { padding: 0.375rem !important; }
    .level-title { font-size: 0.75rem !important; }
    
    /* Buttons even smaller */
    .btn-primary, .btn-secondary { padding: 0.5rem 0.875rem !important; font-size: 0.8125rem !important; }
    .download-btn { padding: 0.5rem 0.75rem !important; font-size: 0.75rem !important; }
}
