/* ========== 公共Banner样式 ========== */

/* CSS变量 - 各页面通过覆盖这些变量实现不同主题 */
:root {
    --banner-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
    --banner-glow-color: rgba(59, 130, 246, 0.3);
    --banner-btn-primary-bg: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    --banner-btn-primary-shadow: rgba(59, 130, 246, 0.4);
    --banner-btn-primary-shadow-hover: rgba(59, 130, 246, 0.5);
}

/* Banner基础样式 */
.page-banner {
    position: relative;
    min-height: 520px;
    padding: 60px 0 70px;
    margin-top: 70px;
    color: white;
    overflow: hidden;
    background: var(--banner-gradient);
    display: flex;
    flex-direction: column;
}

/* 粒子动画背景 */
.banner-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.banner-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat 15s infinite linear;
}

.banner-particles span:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.banner-particles span:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 14s; }
.banner-particles span:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 11s; }
.banner-particles span:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 13s; }
.banner-particles span:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 15s; }
.banner-particles span:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 12s; }
.banner-particles span:nth-child(7) { left: 70%; animation-delay: 2s; animation-duration: 14s; }
.banner-particles span:nth-child(8) { left: 80%; animation-delay: 4s; animation-duration: 11s; }
.banner-particles span:nth-child(9) { left: 90%; animation-delay: 1s; animation-duration: 13s; }
.banner-particles span:nth-child(10) { left: 95%; animation-delay: 3s; animation-duration: 15s; }

@keyframes particleFloat {
    0% { transform: translateY(100%) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

/* 光晕效果 */
.banner-glow {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--banner-glow-color) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

/* 网格纹理 */
.banner-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Banner内容布局 */
.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 2;
    flex: 1;
    align-content: center;
    flex-wrap: wrap;
}

.banner-main {
    flex: 1;
    max-width: 600px;
}

/* 徽章 */
.banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: .8rem;
    animation: fadeInUp 0.6s ease;
}

.badge-icon { font-size: 16px; }
.badge-text { font-size: 14px; font-weight: 500; }

/* 标题 */
.banner-title {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 .8rem;
    letter-spacing: -1px;
    animation: fadeInUp 0.6s ease 0.1s both;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.banner-desc {
    font-size: 17px;
    line-height: 1.5;
    opacity: 0.9;
    margin: 0 0 1rem;
    animation: fadeInUp 0.6s ease 0.2s both;
    max-width: 100%;
}

/* 数据统计 */
.banner-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: .8rem;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.stat-item { text-align: center; }
.stat-number { font-size: 36px; font-weight: 700; display: inline; }
.stat-unit { font-size: 24px; font-weight: 600; }
.stat-label { display: block; font-size: 13px; opacity: 0.7; margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255, 255, 255, 0.2); }

/* 按钮组 */
.banner-actions {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

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

.banner-btn.primary {
    background: var(--banner-btn-primary-bg);
    color: white;
    box-shadow: 0 4px 20px var(--banner-btn-primary-shadow);
}

.banner-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--banner-btn-primary-shadow-hover);
}

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

.banner-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 右侧视觉区 - 中心辐射式布局 */
.banner-visual {
    position: relative;
    width: 420px;
    height: 320px;
    animation: fadeInRight 0.8s ease 0.5s both;
}

/* 中心核心数据 */
.visual-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    animation: pulseGlow 3s ease-in-out infinite;
}

.visual-center::before {
    content: '';
    position: absolute;
    inset: -15px;
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 50%;
    animation: rotateSlow 20s linear infinite;
}

.visual-center::after {
    content: '';
    position: absolute;
    inset: -30px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: rotateSlow 30s linear infinite reverse;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(255,255,255,0.2); }
    50% { box-shadow: 0 0 50px rgba(255,255,255,0.3); }
}

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

.center-value {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.center-label {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 环绕卡片 */
.visual-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    z-index: 5;
}

.visual-card::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
    pointer-events: none;
}

/* 卡片位置 - 三角形布局 */
.visual-card.card-1 {
    top: -5%;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    animation: floatCardTop 4s ease-in-out infinite;
}

.visual-card.card-1::before {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
    width: 20px;
}

.visual-card.card-2 {
    bottom: 35%;
    left: -10%;
    width: 170px;
    animation: floatCardLeft 4s ease-in-out infinite 0.3s;
}

.visual-card.card-2::before {
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
}

.visual-card.card-3 {
    bottom: 35%;
    right: -10%;
    width: 170px;
    animation: floatCardRight 4s ease-in-out infinite 0.6s;
}

.visual-card.card-3::before {
    top: 50%;
    left: -40px;
    transform: translateY(-50%) rotate(180deg);
}

@keyframes floatCardTop {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-6px); }
}

@keyframes floatCardLeft {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-6px); }
}

@keyframes floatCardRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}

.visual-card:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.visual-card.card-1:hover {
    transform: translateX(-50%) scale(1.05);
}

.card-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.2) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-info { flex: 1; min-width: 0; }
.card-title { display: block; font-size: 12px; opacity: 0.75; margin-bottom: 2px; white-space: nowrap; }
.card-count { font-size: 18px; font-weight: 700; }

/* 装饰粒子点 */
.visual-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.visual-dots span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

.visual-dots span:nth-child(1) { top: 35%; left: 25%; animation-delay: 0s; }
.visual-dots span:nth-child(2) { top: 35%; right: 25%; animation-delay: 0.5s; }
.visual-dots span:nth-child(3) { top: 65%; left: 20%; animation-delay: 1s; }
.visual-dots span:nth-child(4) { top: 65%; right: 20%; animation-delay: 1.5s; }
.visual-dots span:nth-child(5) { top: 50%; left: 10%; animation-delay: 0.3s; }
.visual-dots span:nth-child(6) { top: 50%; right: 10%; animation-delay: 0.8s; }

@keyframes dotPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.5); }
}

/* 浮动图标 */
.floating-icon {
    position: absolute;
    font-size: 20px;
    opacity: 0.5;
    animation: floatIcon 5s ease-in-out infinite;
}

.floating-icon.icon-1 { top: 5px; right: 50px; animation-delay: 0s; }
.floating-icon.icon-2 { bottom: 80px; left: 10px; animation-delay: 1.5s; }
.floating-icon.icon-3 { bottom: 10px; right: 30px; animation-delay: 3s; }

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
    50% { transform: translateY(-10px) rotate(15deg); opacity: 0.8; }
}

/* 底部标签栏 */
.banner-tags {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.tags-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tag-label { font-size: 14px; opacity: 0.7; }

.tag-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: var(--banner-btn-primary-bg);
    transform: translateY(-2px);
    color:var(--bg-white);
}

/* 动画关键帧 */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 响应式 */
@media (max-width: 1024px) {
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        padding-bottom: 0;
    }
    
    .banner-main { max-width: 100%; }
    .banner-visual { display: none; }
    .banner-stats { justify-content: center; }
    .banner-actions { justify-content: center; }
    .banner-title { font-size: 36px; }
}

@media (max-width: 640px) {
    .page-banner { 
        padding: 40px 0 60px;
    }
    .banner-desc { font-size: 13px; line-height: 1.5; }
    .banner-stats { gap: 12px; flex-wrap: wrap; justify-content: center; }
    .stat-number { font-size: 24px; }
    .stat-unit { font-size: 18px; }
    .stat-divider { display: none; }
    .banner-actions { 
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding-bottom: 10px;
    }
    .banner-btn { width: 100%; justify-content: center; padding: 12px 20px; }
    .banner-tags { padding: 12px 0; }
    .tags-wrapper { justify-content: center; }
    .tag-item{font-size: 12px;padding: 8px;}
}
