/* 页面背景优化 */
body {
    background: linear-gradient(135deg, 
        rgba(248, 250, 252, 0.5) 0%, 
        rgba(241, 245, 249, 0.5) 50%, 
        rgba(248, 250, 252, 0.5) 100%);
    min-height: 100vh;
}

/* 性能优化：对所有使用blur的元素启用GPU加速，减少触摸板卡顿 */
*[style*="backdrop-filter"],
.knowledge-inspiration-compact,
.quick-interest-panel,
.quick-interests-panel,
.article-card-item,
.stat-card {
    will-change: auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.container-fluid {
    background: transparent;
}

/* 波浪动画横幅样式 */
#hero-banner {
    position: relative;
    overflow: hidden;
}

#hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(240, 248, 255, 0.5) 50%, 
        rgba(224, 242, 254, 0.46) 100%);
    z-index: 2;
    border-radius: 0.375rem;
}

#hero-banner .row {
    position: relative;
    z-index: 10;
}

/* 确保文字在动画背景上清晰可读 */
#hero-banner h1,
#hero-banner p,
#hero-banner .lead {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#hero-banner canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0.375rem;
    z-index: 1 !important;
}


/* 横幅动画 */
.bg-gradient-primary {
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 统计卡片样式 */
.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

/* 折叠板块卡片装饰 */
.collapsible-section-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(249, 250, 251, 1) 100%);
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.collapsible-section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.8) 0%, 
        rgba(14, 165, 233, 0.8) 50%, 
        rgba(6, 182, 212, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.collapsible-section-card:hover::before {
    opacity: 1;
}

/* 根据不同板块自定义顶部装饰条颜色 */
.collapsible-section-card[data-section="direct-experience"]::before {
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.85) 0%, 
        rgba(37, 99, 235, 0.85) 100%);
}

.collapsible-section-card[data-section="guide"]::before {
    background: linear-gradient(90deg, 
        rgba(14, 165, 233, 0.85) 0%, 
        rgba(6, 182, 212, 0.85) 100%);
}

.collapsible-section-card[data-section="quick-start"]::before {
    background: linear-gradient(90deg, 
        rgba(6, 182, 212, 0.85) 0%, 
        rgba(20, 184, 166, 0.85) 100%);
}

/* 背景装饰图案 */
.collapsible-section-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(59, 130, 246, 0.03) 0%, 
        rgba(14, 165, 233, 0.02) 50%, 
        transparent 70%);
    pointer-events: none;
    transition: all 0.6s ease;
}

.collapsible-section-card:hover::after {
    transform: scale(1.2);
    opacity: 0.8;
}

/* 折叠标题区域装饰 */
.collapsible-header {
    position: relative;
    z-index: 1;
}

.collapsible-header::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.3) 50%, 
        transparent 100%);
    opacity: 0;
    transition: all 0.4s ease;
}

.collapsible-header:hover::before {
    opacity: 1;
    width: 100px;
}

/* 折叠面板样式 */
#sampleArticlesToggle,
#interactiveGuideToggle,
#quickStartToggle {
    color: inherit !important;
    background: none !important;
    box-shadow: none !important;
    position: relative;
}

#sampleArticlesToggle:hover,
#interactiveGuideToggle:hover,
#quickStartToggle:hover {
    opacity: 0.8;
}

#sampleArticlesToggle h2,
#interactiveGuideToggle h2,
#quickStartToggle h3 {
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1f2937;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#sampleArticlesToggle:hover h2,
#interactiveGuideToggle:hover h2,
#quickStartToggle:hover h3 {
    color: #3b82f6;
    text-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.collapse-icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    display: inline-block;
}

#sampleArticlesToggle[aria-expanded="true"] .collapse-icon,
#interactiveGuideToggle[aria-expanded="true"] .collapse-icon,
#quickStartToggle[aria-expanded="true"] .collapse-icon {
    transform: rotate(180deg);
}

/* 图标装饰效果 */
#sampleArticlesToggle i.fa-martini-glass-citrus,
#interactiveGuideToggle i.fa-play-circle,
#quickStartToggle i.fa-flag-checkered {
    background: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    display: inline-block;
}

#sampleArticlesToggle:hover i.fa-martini-glass-citrus,
#interactiveGuideToggle:hover i.fa-play-circle,
#quickStartToggle:hover i.fa-flag-checkered {
    transform: scale(1.1) rotate(5deg);
}

/* 展开状态下的卡片样式 */
.collapsible-section-card:has(.collapse.show) {
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.12) !important;
}

.collapsible-section-card:has(.collapse.show)::before {
    opacity: 1;
    height: 4px;
}

/* 描述文字装饰 */
.collapsible-header p.text-muted {
    position: relative;
    z-index: 1;
    color: #6b7280 !important;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.collapsible-header:hover p.text-muted {
    color: #4b5563 !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .collapsible-section-card::after {
        width: 300px;
        height: 300px;
        top: -40%;
        right: -15%;
    }
    
    .collapsible-section-card::before {
        height: 2px;
    }
    
    .collapsible-section-card:has(.collapse.show)::before {
        height: 3px;
    }
}

/* 一键生成按钮样式 */
.quick-generate-btn {
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 50%, #bae6fd 100%) !important;
    border: none !important;
    outline: none !important;
    color: #031621 !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2) !important;
}

.quick-generate-btn:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #bae6fd 50%, #7dd3fc 100%) !important;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3) !important;
    transform: translateY(-2px) !important;
    border: none !important;
    outline: none !important;
}

.quick-generate-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.2) !important;
    border: none !important;
    outline: none !important;
}

.quick-generate-btn:focus {
    border: none !important;
    outline: none !important;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3) !important;
}

.quick-generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    border: none !important;
    outline: none !important;
}

.stat-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2rem;
    color: #1f2937;
    opacity: 0.8;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #4b5563;
    font-weight: 500;
}

@media (max-width: 576px) {
    .stat-card {
        padding: 0.875rem 1.25rem;
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}