/* Hero 仪表盘组件 */
.hero-dashboard {
    margin-bottom: 24px;
}

.hero-dashboard__container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 20px;
    align-items: stretch;
}

/* 左侧轮播 Banner 区域 */
.hero-dashboard__banner-wrapper {
    position: relative;
    border-radius: var(--border-radius, 12px);
    overflow: hidden;
    min-height: 320px;
}

.hero-dashboard__banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
}

.hero-dashboard__banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    color: #fff;
}

.hero-dashboard__banner.is-active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* 轮播指示器 */
.hero-dashboard__banner-dots {
    position: absolute;
    bottom: 20px;
    left: 40px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-dashboard__banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dashboard__banner-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero-dashboard__banner-dot.is-active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* 轮播箭头 */
.hero-dashboard__banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
}

.hero-dashboard__banner-wrapper:hover .hero-dashboard__banner-arrow {
    opacity: 1;
}

.hero-dashboard__banner-arrow:hover,
.hero-dashboard__banner-arrow:focus {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    outline: none;
}

.hero-dashboard__banner-arrow--prev {
    left: 16px;
}

.hero-dashboard__banner-arrow--next {
    right: 16px;
}

.hero-dashboard__banner-content {
    position: relative;
    z-index: 2;
    max-width: 60%;
}

.hero-dashboard__banner-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-dashboard__banner-subtitle {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-dashboard__banner-desc {
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 400px;
}

.hero-dashboard__banner-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-dashboard__banner-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}



/* 右侧边栏 */
.hero-dashboard__sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 420px;
    min-width: 280px;
}

/* 特色卡片 */
.hero-dashboard__card {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-primary, #e5e7eb);
    border-radius: var(--border-radius, 12px);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-dashboard__card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 8px 24px rgba(0, 0, 0, 0.08));
}

.hero-dashboard__card--featured {
    position: relative;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero-dashboard__card-content {
    position: relative;
    z-index: 2;
    flex: 1;
}

.hero-dashboard__card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin: 0 0 8px;
    line-height: 1.4;
}

.hero-dashboard__card-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary, #475569);
    margin: 0 0 20px;
}

.hero-dashboard__card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-dashboard__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.hero-dashboard__btn--primary {
    background: var(--theme-color, #3b82f6);
    color: #fff;
    border: 1px solid var(--theme-color, #3b82f6);
}

.hero-dashboard__btn--primary:hover {
    background: var(--color-link-hover, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.hero-dashboard__btn--secondary {
    background: transparent;
    color: var(--text-primary, #1e293b);
    border: 1px solid var(--border-primary, #e5e7eb);
}

.hero-dashboard__btn--secondary:hover {
    background: var(--bg-hover, #f1f5f9);
    border-color: var(--border-hover, #cbd5e1);
}

.hero-dashboard__card-image {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 140px;
    height: 140px;
    opacity: 0.8;
    z-index: 1;
}

.hero-dashboard__card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 小卡片网格 */
.hero-dashboard__card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hero-dashboard__mini-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-primary, #e5e7eb);
    border-radius: var(--border-radius, 12px);
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-dashboard__mini-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.06));
    border-color: var(--border-hover, #cbd5e1);
}

.hero-dashboard__mini-card-content {
    flex: 1;
}

.hero-dashboard__mini-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin: 0 0 4px;
    line-height: 1.4;
}

.hero-dashboard__mini-card-desc {
    font-size: 12px;
    color: var(--text-tertiary, #64748b);
    margin: 0 0 8px;
    line-height: 1.4;
}

.hero-dashboard__mini-card-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted, #94a3b8);
    transition: transform 0.2s ease, color 0.2s ease;
}

.hero-dashboard__mini-card:hover .hero-dashboard__mini-card-arrow {
    transform: translateX(4px);
    color: var(--theme-color, #3b82f6);
}

.hero-dashboard__mini-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary, #f8fafc);
    border-radius: 10px;
    color: var(--theme-color, #3b82f6);
    font-size: 18px;
    flex-shrink: 0;
    margin-left: 12px;
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .hero-dashboard__container {
        grid-template-columns: 1fr;
    }
    
    .hero-dashboard__banner {
        min-height: 280px;
        padding: 32px;
    }
    
    .hero-dashboard__banner-content {
        max-width: 100%;
    }
    
    .hero-dashboard__sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .hero-dashboard__card--featured {
        flex: 1;
        min-width: 300px;
    }
    
    .hero-dashboard__card-grid {
        flex: 1;
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .hero-dashboard__banner {
        padding: 24px;
        min-height: auto;
    }
    
    .hero-dashboard__banner-title {
        font-size: 22px;
    }
    
    .hero-dashboard__banner-subtitle {
        font-size: 16px;
    }
    
    .hero-dashboard__sidebar {
        flex-direction: column;
    }
    
    .hero-dashboard__card--featured,
    .hero-dashboard__card-grid {
        min-width: auto;
        width: 100%;
    }
    
    .hero-dashboard__card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-dashboard__banner-title {
        font-size: 20px;
    }
    
    .hero-dashboard__banner-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .hero-dashboard__card-actions {
        flex-direction: column;
    }
    
    .hero-dashboard__btn {
        width: 100%;
    }
}

/* 深色模式适配 */
[data-theme="dark"] .hero-dashboard__card,
[data-theme="dark"] .hero-dashboard__mini-card {
    background: var(--bg-card, #2a2a2a);
    border-color: var(--border-primary, #3a3a3a);
}

[data-theme="dark"] .hero-dashboard__mini-card-icon {
    background: var(--bg-secondary, #222);
}

[data-theme="dark"] .hero-dashboard__btn--secondary {
    color: var(--text-primary, #e8e8e8);
    border-color: var(--border-primary, #3a3a3a);
}

[data-theme="dark"] .hero-dashboard__btn--secondary:hover {
    background: var(--bg-hover, #3a3a3a);
}
