/* ==================== Dashboard V2 ==================== */

/* Banner Carousel */
.dash-banner {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 2.5rem;
    min-height: 320px;
}

.dash-banner-track {
    display: flex;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.dash-banner-slide {
    min-width: 100%;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 0.55fr);
    gap: 2rem;
    align-items: center;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
}

.dash-banner-slide.active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Hero (reused for each slide) */
.dash-hero {
    position: relative;
    min-height: 320px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 0.55fr);
    gap: 2rem;
    align-items: center;
}

.dash-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #1a2744 30%, #0f172a 100%);
}

.dash-hero-accent {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.dash-hero-accent::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 65%);
    top: -200px;
    right: -100px;
}

.dash-hero-accent::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 65%);
    bottom: -100px;
    left: 10%;
}

.dash-hero-content {
    position: relative;
    z-index: 1;
    padding: 2.5rem 3rem 2.5rem 2.5rem;
    min-width: 0;
}

.dash-hero-media {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 2.5rem 2rem 0;
}

.dash-hero-media::before {
    content: "";
    position: absolute;
    inset: -20% 0;
    background: radial-gradient(
        ellipse 90% 110% at 65% 50%,
        rgba(59, 130, 246, 0.28) 0%,
        rgba(99, 102, 241, 0.15) 35%,
        rgba(59, 130, 246, 0.06) 55%,
        transparent 75%
    );
    pointer-events: none;
}

.dash-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(147, 197, 253, 0.06) 1px, transparent 1px);
    background-size: 32px 32px, 24px 24px;
    background-position: 0 0, 12px 12px;
    pointer-events: none;
}

/* 封面周围常驻环境光与装饰 */
.dash-hero-art-ambient {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.dash-hero-art-glow {
    position: absolute;
    width: 320px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(
        ellipse 65% 75% at 50% 50%,
        rgba(59, 130, 246, 0.45) 0%,
        rgba(99, 102, 241, 0.2) 40%,
        rgba(59, 130, 246, 0.08) 60%,
        transparent 75%
    );
    filter: blur(24px);
}

.dash-hero-deco {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    animation: dash-hero-deco-float 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .dash-hero-deco { animation: none; }
}

.dash-hero-deco-1 {
    width: 20px;
    height: 20px;
    top: 12%;
    right: 5%;
    animation-delay: 0s;
}

.dash-hero-deco-2 {
    width: 14px;
    height: 14px;
    bottom: 22%;
    left: 2%;
    animation-delay: -1.2s;
}

.dash-hero-deco-3 {
    width: 10px;
    height: 10px;
    top: 38%;
    right: -2%;
    animation-delay: -2.5s;
}

.dash-hero-deco-4 {
    width: 16px;
    height: 16px;
    bottom: 8%;
    right: 10%;
    animation-delay: -3.8s;
}

.dash-hero-deco-5 {
    width: 8px;
    height: 8px;
    top: 55%;
    left: 15%;
    animation-delay: -1.8s;
}

.dash-hero-deco-6 {
    width: 12px;
    height: 12px;
    bottom: 35%;
    right: 22%;
    animation-delay: -4.2s;
}

@keyframes dash-hero-deco-float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    33% { transform: translate(2px, -3px) scale(1.05); opacity: 0.85; }
    66% { transform: translate(-2px, 2px) scale(0.97); opacity: 0.65; }
}

.dash-hero-art-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-reduced-motion: reduce) {
    .dash-hero-art-wrap { transition: none; }
}

.dash-hero-art-wrap:hover {
    transform: translateY(-8px) scale(1.02);
}

.dash-hero-art {
    position: relative;
    width: min(100%, 200px);
    aspect-ratio: 3 / 4;
    flex-shrink: 0;
    background: rgba(15, 23, 42, 0.45);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        0 0 100px rgba(59, 130, 246, 0.35),
        0 0 180px rgba(59, 130, 246, 0.15);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
    .dash-hero-art { transition: none; }
}

.dash-hero-art-wrap:hover .dash-hero-art {
    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.25),
        0 0 80px rgba(59, 130, 246, 0.3),
        0 0 120px rgba(59, 130, 246, 0.15);
}

.dash-hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* 悬浮光晕扫过效果 */
.dash-hero-art-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.15) 45%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0.15) 55%,
        transparent 60%
    );
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.dash-hero-art-wrap:hover .dash-hero-art-shine {
    transform: translateX(100%) skewX(-15deg);
}

@media (prefers-reduced-motion: reduce) {
    .dash-hero-art-shine { display: none; }
}

/* 封面轻微浮动动画 */
@keyframes dash-hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.dash-hero-art-wrap:not(:hover) .dash-hero-art {
    animation: dash-hero-float 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .dash-hero-art-wrap:not(:hover) .dash-hero-art {
        animation: none;
    }
}

.dash-hero-badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    background: rgba(255,184,0,0.9);
    color: #1a1a2e;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.dash-hero-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.dash-hero-desc {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.dash-hero-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.dash-hero-meta-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
}

.dash-hero-cta {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
}

/* Banner Nav */
.dash-banner-nav {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
}

.dash-banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.dash-banner-dot.active {
    width: 28px;
    border-radius: 4px;
    background: rgba(255,255,255,0.25);
}

/* Progress fill animation on active dot */
.dash-banner-dot.active::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255,255,255,0.9);
    transform-origin: left;
    animation: dash-dot-progress 5s linear forwards;
}

.dash-banner.paused .dash-banner-dot.active::after {
    animation-play-state: paused;
}

@keyframes dash-dot-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.dash-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    opacity: 0;
}

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

.dash-banner-arrow:hover {
    background: rgba(0,0,0,0.5);
}

.dash-banner-arrow-prev {
    left: 1rem;
}

.dash-banner-arrow-next {
    right: 1rem;
}

/* Sleeper-themed slide bg */
.dash-slide-sleeper .dash-hero-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b35 30%, #1a1033 60%, #0f172a 100%);
}

.dash-slide-sleeper .dash-hero-accent::before {
    background: radial-gradient(circle, rgba(56,189,248,0.2) 0%, transparent 65%);
}

.dash-slide-sleeper .dash-hero-accent::after {
    background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 65%);
}

.dash-slide-sleeper .dash-hero-badge {
    background: linear-gradient(135deg, rgba(56,189,248,0.9), rgba(139,92,246,0.9));
    color: #fff;
}

.dash-slide-sleeper .dash-hero-art {
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(56, 189, 248, 0.2),
        0 0 100px rgba(139, 92, 246, 0.35),
        0 0 180px rgba(56, 189, 248, 0.15);
}

.dash-slide-sleeper .dash-hero-art-wrap:hover .dash-hero-art {
    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(56, 189, 248, 0.25),
        0 0 80px rgba(139, 92, 246, 0.3),
        0 0 120px rgba(56, 189, 248, 0.15);
}

.dash-slide-sleeper .dash-hero-art-glow {
    width: 380px;
    height: 460px;
    background: radial-gradient(
        ellipse 70% 80% at 50% 50%,
        rgba(139, 92, 246, 0.55) 0%,
        rgba(56, 189, 248, 0.28) 35%,
        rgba(139, 92, 246, 0.12) 55%,
        transparent 75%
    );
    filter: blur(28px);
}

.dash-slide-sleeper .dash-hero-deco {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

/* Tabs */
.dash-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.dash-tabs::-webkit-scrollbar {
    display: none;
}

.dash-tab {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.dash-tab:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.dash-tab-active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

.dash-tab-active:hover {
    background: var(--brand-primary-hover);
    border-color: var(--brand-primary-hover);
    color: #fff;
}

/* Sections */
.dash-section {
    margin-bottom: 3rem;
}

.dash-section:last-child {
    margin-bottom: 1rem;
}

.dash-section-head {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.dash-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.dash-section-sub {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Cards Grid */
.dash-grid {
    display: grid;
    gap: 1.25rem;
}

.dash-grid-main {
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
}

/* Card */
.dash-card {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.dash-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.dash-card-cover {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8eaf6, #f3e5f5);
}

.dash-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.dash-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.dash-card-emoji-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 4rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #fdf2f8 100%);
}

.dash-card-difficulty {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.dash-diff-easy {
    background: rgba(46,125,50,0.85);
    color: #fff;
}

.dash-diff-medium {
    background: rgba(230,81,0,0.85);
    color: #fff;
}

.dash-diff-hard {
    background: rgba(198,40,40,0.85);
    color: #fff;
}

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

.dash-card-body h3 {
    font-size: 1.15rem;
    font-weight: 650;
    color: var(--text-color);
    margin-bottom: 0.4rem;
}

.dash-card-body p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.dash-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.dash-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    background: #f5f5f7;
    color: #6e6e73;
    line-height: 1;
    white-space: nowrap;
}

.dash-tag svg {
    flex-shrink: 0;
    opacity: 0.65;
}

.dash-tag-ai {
    background: #e3f2fd;
    color: #1565c0;
}

.dash-tag-no-ai {
    background: #f5f5f5;
    color: #9e9e9e;
}

.dash-card-btn {
    width: 100%;
    text-align: center;
    padding: 0.6rem;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    margin-top: auto;
}

/* Soon cards */
.dash-card-soon {
    opacity: 0.75;
    filter: grayscale(0.2);
}

.dash-card-soon:hover {
    opacity: 1;
    filter: grayscale(0);
}

.dash-card-soon-badge {
    position: absolute;
    top: 14px;
    right: -30px;
    background: var(--brand-gradient);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 2.5rem;
    transform: rotate(45deg);
    z-index: 3;
    letter-spacing: 0.5px;
}

/* ==================== AI Adventure Section ==================== */

.dash-adventure {
    position: relative;
    background: transparent;
    padding: 0;
    overflow: visible;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.dash-adventure-bg { display: none; }
.dash-adventure-stars { display: none; }
.dash-adventure-glow { display: none; }

.dash-adventure-head {
    position: relative;
    z-index: 1;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.dash-adventure-title {
    color: var(--text-color, #1e293b);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.dash-adventure-sub {
    color: var(--text-light, #64748b);
    font-size: 0.8rem;
    line-height: 1.4;
}

.dash-adventure-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: stretch;
}

/* Featured card — wide hero style */
.dash-adventure-featured {
    position: relative;
    z-index: 1;
    margin-bottom: 1.25rem;
}

.dash-adventure-featured .dash-adventure-card {
    border-radius: var(--radius-xl);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.dash-adventure-featured .dash-adventure-card:hover {
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Upcoming section header */
.dash-adventure-upcoming-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.dash-adventure-upcoming-head {
    margin-bottom: 0.75rem;
}

.dash-adventure-upcoming-title {
    color: var(--text-color, #1e293b);
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.2px;
}

.dash-adventure-upcoming-hint {
    color: var(--text-light, #94a3b8);
    font-size: 0.65rem;
    font-weight: 500;
}

/* Poster grid — 2x2 on desktop, 2x2 on mobile */
.dash-adventure-scroll {
    position: relative;
    z-index: 1;
}

.dash-adventure-scroll-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

/* Poster cards */
.dash-adventure-poster {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    cursor: default;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.dash-adventure-poster:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.dash-adventure-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash-adventure-poster:hover img {
    transform: scale(1.08);
}

.dash-adventure-poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 12, 35, 0.92) 0%,
        rgba(15, 12, 35, 0.55) 35%,
        rgba(15, 12, 35, 0.1) 60%,
        transparent 100%
    );
    pointer-events: none;
}

.dash-adventure-poster-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    background: rgba(139,92,246,0.75);
    backdrop-filter: blur(6px);
    color: #ede9fe;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dash-adventure-poster-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dash-adventure-poster-genre {
    font-size: 0.58rem;
    font-weight: 600;
    color: #c4b5fd;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.dash-adventure-poster-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.25;
    letter-spacing: 0.3px;
}

.dash-adventure-poster-desc {
    margin: 0.15rem 0 0;
    font-size: 0.65rem;
    line-height: 1.4;
    color: rgba(203, 213, 225, 0.6);
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    transition: color 0.3s ease;
}

.dash-adventure-poster:hover .dash-adventure-poster-desc {
    -webkit-line-clamp: unset;
    color: rgba(203, 213, 225, 0.85);
}

.dash-adventure-poster-meta {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.2rem;
}

.dash-adventure-poster-meta span {
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(203,213,225,0.7);
    padding: 0.12rem 0.4rem;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.08);
}

/* Per-poster color accents + hover glow */
.dash-adventure-poster-reborn .dash-adventure-poster-overlay {
    background: linear-gradient(to top, rgba(45, 10, 30, 0.92) 0%, rgba(45, 10, 30, 0.4) 40%, transparent 100%);
}
.dash-adventure-poster-reborn .dash-adventure-poster-genre { color: #f9a8d4; }
.dash-adventure-poster-reborn .dash-adventure-poster-badge { background: rgba(236,72,153,0.7); }
.dash-adventure-poster-reborn:hover {
    box-shadow: 0 16px 40px rgba(236, 72, 153, 0.2), 0 0 0 1px rgba(236, 72, 153, 0.15);
}

.dash-adventure-poster-hongmen .dash-adventure-poster-overlay {
    background: linear-gradient(to top, rgba(40, 15, 8, 0.92) 0%, rgba(40, 15, 8, 0.4) 40%, transparent 100%);
}
.dash-adventure-poster-hongmen .dash-adventure-poster-genre { color: #fbbf24; }
.dash-adventure-poster-hongmen .dash-adventure-poster-badge { background: rgba(180,83,9,0.7); }
.dash-adventure-poster-hongmen:hover {
    box-shadow: 0 16px 40px rgba(245, 158, 11, 0.18), 0 0 0 1px rgba(245, 158, 11, 0.12);
}

.dash-adventure-poster-dnd .dash-adventure-poster-overlay {
    background: linear-gradient(to top, rgba(12, 25, 45, 0.92) 0%, rgba(12, 25, 45, 0.4) 40%, transparent 100%);
}
.dash-adventure-poster-dnd .dash-adventure-poster-genre { color: #93c5fd; }
.dash-adventure-poster-dnd .dash-adventure-poster-badge { background: rgba(37,99,235,0.7); }
.dash-adventure-poster-dnd:hover {
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.dash-adventure-poster-showdown .dash-adventure-poster-overlay {
    background: linear-gradient(to top, rgba(30, 8, 8, 0.92) 0%, rgba(30, 8, 8, 0.4) 40%, transparent 100%);
}
.dash-adventure-poster-showdown .dash-adventure-poster-genre { color: #fca5a5; }
.dash-adventure-poster-showdown .dash-adventure-poster-badge { background: rgba(185,28,28,0.7); }
.dash-adventure-poster-showdown:hover {
    box-shadow: 0 16px 40px rgba(239, 68, 68, 0.2), 0 0 0 1px rgba(239, 68, 68, 0.15);
}

.dash-adventure-card {
    display: flex;
    flex-direction: column;
    background: #1e1b35;
    border: 1px solid rgba(139,92,246,0.15);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(30,27,53,0.15);
    min-width: 0;
    height: 100%;
    position: relative;
}

.dash-adventure-card:hover {
    border-color: rgba(139,92,246,0.35);
    box-shadow: 0 8px 32px rgba(30,27,53,0.25);
    transform: translateY(-1px);
}

.dash-adventure-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.03));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.85;
}

.dash-adventure-card-sleeper {
    border-color: rgba(56, 189, 248, 0.18);
    box-shadow:
        0 12px 28px rgba(8, 15, 30, 0.34),
        0 0 0 1px rgba(56, 189, 248, 0.06) inset;
}

.dash-adventure-card-sleeper::before {
    background: linear-gradient(155deg, rgba(125, 211, 252, 0.60), rgba(34, 211, 238, 0.10) 46%, rgba(15, 23, 42, 0.02));
}

.dash-adventure-card-sleeper:hover {
    border-color: rgba(103, 232, 249, 0.34);
    box-shadow:
        0 18px 42px rgba(8, 15, 30, 0.42),
        0 0 0 1px rgba(34, 211, 238, 0.12) inset,
        0 0 28px rgba(34, 211, 238, 0.12);
}

.dash-adventure-card-reborn {
    border-color: rgba(244, 114, 182, 0.22);
    box-shadow:
        0 12px 28px rgba(26, 11, 37, 0.36),
        0 0 0 1px rgba(244, 114, 182, 0.06) inset;
}

.dash-adventure-card-reborn::before {
    background: linear-gradient(155deg, rgba(251, 113, 133, 0.62), rgba(192, 132, 252, 0.16) 44%, rgba(15, 23, 42, 0.02));
}

.dash-adventure-card-reborn:hover {
    border-color: rgba(244, 114, 182, 0.38);
    box-shadow:
        0 18px 42px rgba(26, 11, 37, 0.44),
        0 0 0 1px rgba(244, 114, 182, 0.12) inset,
        0 0 32px rgba(236, 72, 153, 0.12);
}

.dash-adventure-card-locked {
    opacity: 0.65;
    position: relative;
}

.dash-adventure-locked-badge {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    z-index: 5;
    padding: 0.22rem 0.65rem;
    border-radius: var(--radius-full);
    background: rgba(139,92,246,0.7);
    color: #ede9fe;
    font-size: 0.65rem;
    font-weight: 600;
}

.dash-adventure-card-poster {
    position: relative;
    width: 100%;
    min-height: 100px;
    aspect-ratio: 21 / 9;
    flex-shrink: 0;
    overflow: hidden;
}

.dash-adventure-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash-adventure-card:hover .dash-adventure-card-poster img {
    transform: scale(1.05);
}

.dash-adventure-card-poster-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(30,27,53,0.82) 0%, rgba(30,27,53,0.18) 46%, transparent 72%),
        linear-gradient(135deg, rgba(139,92,246,0.10) 0%, transparent 58%);
}

.dash-adventure-card-info {
    padding: 0.95rem 1.05rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1 1 auto;
    min-width: 0;
}

.dash-adventure-card-genre {
    font-size: 0.65rem;
    font-weight: 600;
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.35rem;
}

.dash-adventure-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.35rem;
    letter-spacing: 0.3px;
    line-height: 1.25;
}

.dash-adventure-card-desc {
    font-size: 0.8rem;
    color: rgba(203,213,225,0.75);
    line-height: 1.45;
    margin-bottom: 0.55rem;
    flex: 0 1 auto;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.dash-adventure-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
}

.dash-adventure-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    font-weight: 500;
    padding: 0.18rem 0.5rem;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.08);
    color: rgba(203,213,225,0.85);
    border: 1px solid rgba(255,255,255,0.08);
}

.dash-adventure-card-meta svg {
    opacity: 0.7;
    width: 12px;
    height: 12px;
}

.dash-adv-diff-hard {
    background: rgba(198,40,40,0.25) !important;
    color: #fca5a5 !important;
    border-color: rgba(198,40,40,0.3) !important;
}

.dash-adv-diff-medium {
    background: rgba(245, 158, 11, 0.22) !important;
    color: #fcd34d !important;
    border-color: rgba(245, 158, 11, 0.28) !important;
}

.dash-adv-ai {
    background: rgba(139,92,246,0.2) !important;
    color: #c4b5fd !important;
    border-color: rgba(139,92,246,0.3) !important;
}

.dash-adventure-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.48rem 1.15rem;
    border-radius: var(--radius-md);
    font-size: 0.84rem;
    font-weight: 600;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    align-self: flex-start;
    margin-top: auto;
}

.dash-adventure-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #6d28d9 0%, #9333ea 100%);
    box-shadow: 0 4px 20px rgba(139,92,246,0.35);
    transform: translateY(-1px);
}

.dash-adventure-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 桌面：横版卡片（左封面右文案） */
@media (min-width: 769px) {
    .dash-adventure-card {
        flex-direction: row;
        align-items: stretch;
    }
    .dash-adventure-card-poster {
        flex: 0 0 clamp(160px, 32vw, 240px);
        width: clamp(160px, 32vw, 240px);
        max-width: 240px;
        min-height: 0;
        aspect-ratio: unset;
        align-self: stretch;
    }
    .dash-adventure-card-poster img {
        height: 100%;
        min-height: 100%;
    }
    .dash-adventure-card-info {
        padding: 0.8rem 0.95rem 0.85rem 0.65rem;
    }
    .dash-adventure-card-desc {
        -webkit-line-clamp: 3;
    }
}

/* Changelog modal (keep existing styles) */
.changelog-modal-content {
    max-width: 500px;
    width: min(92vw, 500px);
    padding: 1.25rem;
    max-height: 78vh;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, rgba(21, 27, 45, 0.95), rgba(28, 36, 58, 0.92));
    color: #eef2ff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.changelog-modal-body { display: flex; flex-direction: column; gap: 0.9rem; color: #eef2ff; }
.changelog-modal-body .changelog-title,
.changelog-modal-body .changelog-content { color: #eef2ff; }
.changelog-version-tag {
    display: inline-flex; align-items: center; padding: 0.2rem 0.55rem;
    border-radius: 999px; background: rgba(99, 102, 241, 0.25); border: 1px solid rgba(129, 140, 248, 0.45);
}
.changelog-title { margin: 0; font-size: 1.2rem; display: flex; align-items: center; gap: 0.6rem; }
.changelog-title-text { line-height: 1.4; }
.changelog-content {
    max-height: 240px; overflow-y: auto; padding: 0.8rem; border-radius: 10px;
    background: rgba(15, 23, 42, 0.45); border: 1px solid rgba(148, 163, 184, 0.25);
    line-height: 1.65; white-space: pre-wrap;
}
.changelog-actions { display: flex; justify-content: flex-end; gap: 0.6rem; }

/* ==================== Dashboard V2 Responsive ==================== */

@media (min-width: 1200px) {
    .dash-grid-main {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .dash-banner {
        margin-bottom: 1.75rem;
    }

    .dash-banner-slide {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .dash-banner-arrow {
        display: none;
    }

    .dash-banner-nav {
        bottom: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .dash-hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* 移动端：文字叠在图片上方 */
    .dash-hero-content {
        padding: 1.5rem 1.5rem 0.75rem;
    }

    .dash-hero-media {
        padding: 0 1.5rem 2.5rem;
    }

    .dash-hero-art-glow {
        width: 220px;
        height: 280px;
    }

    .dash-hero-art {
        width: min(100%, 180px);
    }

    .dash-hero-desc {
        font-size: 0.95rem;
    }

    .dash-grid-main {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-adventure-scroll-track {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .dash-adventure-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .dash-adventure-card-poster {
        width: 100%;
        min-height: 100px;
        max-height: 140px;
        aspect-ratio: 2.2 / 1;
    }

    .dash-adventure-card-poster-overlay {
        background: linear-gradient(to bottom, transparent 50%, rgba(30,27,53,0.6) 100%);
    }

    .dash-adventure-card-info {
        padding: 0.8rem 0.9rem 0.9rem;
    }

    .dash-adventure-card-title {
        font-size: 1.1rem;
    }

    .dash-adventure-btn {
        width: 100%;
        justify-content: center;
    }

    .dash-adventure-featured {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .dash-banner {
        min-height: auto;
        border-radius: var(--radius-lg);
    }

    .dash-hero {
        min-height: auto;
        border-radius: var(--radius-lg);
    }

    .dash-hero-content {
        padding: 1.15rem 1.15rem 0.5rem;
    }

    .dash-hero-media {
        padding: 0 1.15rem 2.25rem;
    }

    .dash-hero-art {
        width: min(100%, 150px);
    }

    .dash-hero-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .dash-hero-desc {
        font-size: 0.82rem;
        margin-bottom: 0.5rem;
    }

    .dash-hero-meta {
        font-size: 0.72rem;
        gap: 0.4rem;
        margin-bottom: 0.85rem;
    }

    .dash-hero-cta {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }

    .dash-section-title {
        font-size: 1.25rem;
    }

    .dash-grid-main {
        grid-template-columns: 1fr;
    }

    .dash-card-cover {
        height: 140px;
    }

    .dash-card-body {
        padding: 1rem;
    }

    .dash-card-body h3 {
        font-size: 1.05rem;
    }

    .dash-card-btn {
        min-height: 44px;
    }

    .dash-adventure-scroll-track {
        gap: 0.5rem;
    }

    .dash-adventure-title {
        font-size: 1.1rem;
    }

    .dash-adventure-card-poster {
        min-height: 80px;
        max-height: 108px;
    }

    .dash-adventure-poster-title {
        font-size: 0.88rem;
    }
}
