/* 数据整合展示面板 - 浅色商业化风格 */

.integrated-data-dashboard {
    display: flex;
    width: 100%;
    max-width: 100%;
    height: 120px;
    background: #ffffff;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    transition: all 0.3s ease;
    /* 跟随two-column-layout的宽度约束 */
    box-sizing: border-box;
}

.integrated-data-dashboard:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.dashboard-module {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 25px;
    border-right: 1px solid #f5f5f5;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-module:last-child {
    border-right: none;
}

.dashboard-module:hover {
    background: #fafafa;
}

.module-icon {
    font-size: 24px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.module-icon i {
    font-size: 22px;
    transition: all 0.3s ease;
}

.dashboard-module:hover .module-icon {
    transform: scale(1.05);
}

.module-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.main-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1a1a1a;
    line-height: 1;
}

.module-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.value-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    gap: 15px;
}

.value-item {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.trend-indicator {
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.trend-indicator.up {
    color: #10b981;
}

.trend-indicator.down {
    color: #ef4444;
}

.trend-indicator.stable {
    color: #f59e0b;
}

/* 各模块特殊样式 - 浅色主题 */
.vitality-module .module-icon {
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    color: white;
}

.vitality-module .module-icon i {
    color: white;
}

.visits-module .module-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

.visits-module .module-icon i {
    color: white;
}

.behavior-module .module-icon {
    background: linear-gradient(135deg, #a78bfa, #c084fc);
    color: white;
}

.behavior-module .module-icon i {
    color: white;
}

.spiders-module .module-icon {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: white;
}

.spiders-module .module-icon i {
    color: white;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .integrated-data-dashboard {
        height: 110px;
        margin: 18px 0;
    }
    
    .dashboard-module {
        padding: 0 20px;
    }
    
    .module-icon {
        width: 45px;
        height: 45px;
        margin-right: 15px;
    }
    
    .module-icon i {
        font-size: 20px;
    }
    
    .main-value {
        font-size: 24px;
    }
    
    .module-label {
        font-size: 12px;
    }
    
    .value-item {
        font-size: 12px;
    }
}

@media (max-width: 992px) {
    .integrated-data-dashboard {
        height: 100px;
    }
    
    .dashboard-module {
        padding: 0 15px;
    }
    
    .module-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .module-icon i {
        font-size: 18px;
    }
    
    .main-value {
        font-size: 22px;
    }
    
    .module-label {
        font-size: 11px;
    }
    
    .value-item {
        font-size: 11px;
    }
    
    .value-row {
        flex-direction: column;
        gap: 3px;
    }
}

@media (max-width: 768px) {
    .integrated-data-dashboard {
        flex-direction: column;
        height: auto;
        border-radius: 10px;
        margin: 15px 0;
    }
    
    .dashboard-module {
        border-right: none;
        border-bottom: 1px solid #f5f5f5;
        padding: 20px 15px;
        height: 80px;
    }
    
    .dashboard-module:last-child {
        border-bottom: none;
    }
    
    .module-icon {
        width: 40px;
        height: 40px;
        margin-right: 15px;
    }
    
    .module-icon i {
        font-size: 18px;
    }
    
    .main-value {
        font-size: 22px;
    }
    
    .module-label {
        font-size: 12px;
    }
    
    .value-item {
        font-size: 12px;
    }
    
    .value-row {
        flex-direction: row;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .integrated-data-dashboard {
        margin: 12px 0;
        border-radius: 8px;
    }
    
    .dashboard-module {
        padding: 15px 12px;
        height: 75px;
    }
    
    .module-icon {
        width: 35px;
        height: 35px;
        margin-right: 12px;
    }
    
    .module-icon i {
        font-size: 16px;
    }
    
    .main-value {
        font-size: 20px;
    }
    
    .module-label {
        font-size: 11px;
    }
    
    .value-item {
        font-size: 11px;
    }
}

/* 折柒网品牌全屏横版动态加载动画 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(10, 10, 30, 0.95) 0%, 
        rgba(30, 10, 50, 0.95) 50%, 
        rgba(10, 30, 60, 0.95) 100%);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.5s ease;
    border-radius: 0;
    overflow: hidden;
}

/* 3D科技背景层 - 关键词矩阵和算法齿轮 */
.loading-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(100, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 200, 255, 0.1) 0%, transparent 50%),
        linear-gradient(30deg, transparent 30%, rgba(255, 0, 200, 0.05) 50%, transparent 70%);
    animation: bgRotate 20s linear infinite;
    transform: rotateX(60deg) rotateZ(30deg);
}

@keyframes bgRotate {
    0% { transform: rotateX(60deg) rotateZ(30deg) translateX(0%); }
    100% { transform: rotateX(60deg) rotateZ(30deg) translateX(-50%); }
}

/* 科技网格线 */
.loading-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 200, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 200, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 10s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.loading-content {
    text-align: center;
    color: white;
    padding: 40px 60px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0;
    box-shadow: 
        0 0 80px rgba(100, 0, 255, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: none;
    position: relative;
    z-index: 2;
    min-width: 600px;
    max-width: 90%;
}

/* 品牌宣传文案 */
.loading-text {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 30px;
    color: transparent;
    background: linear-gradient(45deg, 
        #ff6b6b 0%, 
        #ffa726 25%, 
        #4facfe 50%, 
        #00f2fe 75%, 
        #a78bfa 100%);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: textGradient 3s ease-in-out infinite;
    text-shadow: 
        0 0 20px rgba(255, 107, 107, 0.5),
        0 0 40px rgba(79, 172, 254, 0.3);
    line-height: 1.2;
    letter-spacing: 1px;
}

.loading-text::before {
    content: '折柒网 - AI 智能 SEO 优化自动秒收录平台';
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.loading-text::after {
    content: 'SEO 软文开放平台';
    display: block;
    font-size: 20px;
    margin-top: 10px;
    background: linear-gradient(45deg, #ffa726, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

/* 3D立体进度条 */
.loading-progress {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: center;
    margin: 40px 0 20px;
}

.progress-bar {
    width: 400px;
    height: 16px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(100, 0, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    animation: shine 2s ease-in-out infinite;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        #ff6b6b 0%, 
        #ffa726 25%, 
        #4facfe 50%, 
        #00f2fe 75%, 
        #a78bfa 100%);
    background-size: 200% 100%;
    border-radius: 0;
    width: 0%;
    animation: 
        progressFill 3s ease-in-out infinite,
        progressGradient 2s ease-in-out infinite;
    box-shadow: 
        0 0 20px rgba(255, 107, 107, 0.6),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    position: relative;
    transition: width 0.3s ease;
}

@keyframes progressFill {
    0% { width: 0%; }
    20% { width: 25%; }
    50% { width: 60%; }
    80% { width: 90%; }
    100% { width: 100%; }
}

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

.progress-text {
    font-size: 24px;
    font-weight: 900;
    color: #4facfe;
    min-width: 80px;
    text-shadow: 
        0 0 20px rgba(79, 172, 254, 0.8),
        0 0 40px rgba(79, 172, 254, 0.4);
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* 动态颗粒特效 */
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #4facfe;
    animation: particleFloat 6s ease-in-out infinite;
    box-shadow: 0 0 10px currentColor;
}

.particle:nth-child(odd) {
    background: #ff6b6b;
    animation-duration: 8s;
}

.particle:nth-child(3n) {
    background: #ffa726;
    animation-duration: 10s;
}

.particle:nth-child(4n) {
    background: #a78bfa;
    animation-duration: 7s;
}

@keyframes particleFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
        opacity: 0.3; 
    }
    25% { 
        transform: translate(100px, -50px) scale(1.5); 
        opacity: 0.8; 
    }
    50% { 
        transform: translate(200px, 50px) scale(1.2); 
        opacity: 0.6; 
    }
    75% { 
        transform: translate(-100px, 80px) scale(1.8); 
        opacity: 0.9; 
    }
}

/* 二次元元素 */
.anime-element {
    position: absolute;
    font-size: 24px;
    animation: animeFloat 4s ease-in-out infinite;
    z-index: 1;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.anime-element.code-sprite {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.anime-element.seo-icon {
    top: 70%;
    right: 15%;
    animation-delay: 2s;
}

@keyframes animeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* 完成提示气泡 */
.completion-bubble {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(45deg, #ffa726, #ff6b6b);
    padding: 15px 30px;
    border-radius: 25px;
    color: white;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.6);
    z-index: 3;
    opacity: 0;
}

.completion-bubble.show {
    animation: bubblePop 1.5s ease-out;
}

@keyframes bubblePop {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* 性能优化 - 减少动画对低性能设备的影响 */
@media (prefers-reduced-motion: reduce) {
    .loading-overlay::before,
    .loading-overlay::after,
    .progress-bar::before,
    .progress-fill,
    .particle,
    .anime-element,
    .loading-text,
    .progress-text {
        animation: none !important;
        transition: none !important;
    }
    
    .loading-overlay::before {
        transform: none !important;
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .loading-content {
        padding: 35px 50px;
        min-width: 550px;
    }
    
    .loading-text {
        font-size: 28px;
    }
    
    .loading-text::before {
        font-size: 22px;
    }
    
    .loading-text::after {
        font-size: 18px;
    }
    
    .progress-bar {
        width: 350px;
    }
}

@media (max-width: 992px) {
    .loading-content {
        padding: 30px 40px;
        min-width: 500px;
    }
    
    .loading-text {
        font-size: 26px;
    }
    
    .loading-text::before {
        font-size: 20px;
    }
    
    .loading-text::after {
        font-size: 17px;
    }
    
    .progress-bar {
        width: 320px;
    }
}

@media (max-width: 768px) {
    .loading-content {
        padding: 25px 30px;
        min-width: auto;
        max-width: 90%;
    }
    
    .loading-text {
        font-size: 22px;
    }
    
    .loading-text::before {
        font-size: 18px;
    }
    
    .loading-text::after {
        font-size: 15px;
    }
    
    .progress-bar {
        width: 280px;
        height: 14px;
    }
    
    .progress-text {
        font-size: 20px;
    }
    
    .loading-progress {
        gap: 25px;
        margin: 30px 0 15px;
    }
    
    /* 移动端减少粒子数量 */
    .particle:nth-child(n+15) {
        display: none;
    }
    
    /* 移动端简化背景动画 */
    .loading-overlay::before {
        animation-duration: 30s;
    }
}

@media (max-width: 480px) {
    .loading-content {
        padding: 20px 20px;
        max-width: 95%;
    }
    
    .loading-text {
        font-size: 20px;
        letter-spacing: 0.5px;
    }
    
    .loading-text::before {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .loading-text::after {
        font-size: 14px;
        margin-top: 8px;
    }
    
    .progress-bar {
        width: 220px;
        height: 12px;
    }
    
    .progress-text {
        font-size: 18px;
        min-width: 60px;
    }
    
    .loading-progress {
        gap: 20px;
        margin: 25px 0 12px;
    }
    
    /* 超小屏幕进一步减少粒子 */
    .particle:nth-child(n+10) {
        display: none;
    }
    
    /* 隐藏部分二次元元素 */
    .anime-element.seo-icon {
        display: none;
    }
}

@media (max-width: 360px) {
    .loading-content {
        padding: 15px 15px;
    }
    
    .loading-text {
        font-size: 18px;
    }
    
    .loading-text::before {
        font-size: 14px;
    }
    
    .loading-text::after {
        font-size: 12px;
    }
    
    .progress-bar {
        width: 180px;
        height: 10px;
    }
    
    .progress-text {
        font-size: 16px;
    }
    
    .loading-progress {
        flex-direction: column;
        gap: 15px;
    }
}

/* 加载动画 */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.integrated-data-dashboard.loading .dashboard-module {
    opacity: 0.3;
    filter: blur(2px);
}

.integrated-data-dashboard.loading .main-value,
.integrated-data-dashboard.loading .value-item {
    animation: pulse 2s infinite;
}

/* 数字变化动画 */
.value-changing {
    animation: valueChange 0.5s ease-in-out;
}

@keyframes valueChange {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 错误状态 */
.dashboard-module.error {
    background: #fef2f2;
}

.dashboard-module.error .module-icon {
    background: #fecaca;
}

/* 高亮效果 */
.dashboard-module.highlight {
    background: #f8fafc;
    box-shadow: inset 0 0 0 2px #e2e8f0;
}