/* AI乐享大屏样式文件 - 信息流移回中间区域 */
/* Version: 2026.0610.0958 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.display-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0A0F1E 0%, #141E30 50%, #1C2B45 100%);
    color: #FFFFFF;
    overflow-x: hidden;
    min-height: 100vh;
    padding: 20px;
}

/* 右上角定位信息 - 横向平铺 */
.location-info {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    padding: 8px 15px;
    border-radius: 25px;
    background: rgba(30, 144, 255, 0.1);
    border: 1px solid rgba(30, 144, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.location-info:hover {
    background: rgba(30, 144, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(30, 144, 255, 0.3);
    border-color: rgba(30, 144, 255, 0.4);
}

.location-icon {
    font-size: 20px;
    color: #1E90FF;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

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

.location-name {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    white-space: nowrap;
}

.location-status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(30, 144, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

/* 整体布局容器 */
.layout-container {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ========== 顶部区域 ========== */
.top-section {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.15) 0%, rgba(0, 206, 209, 0.15) 100%);
    border: 2px solid rgba(30, 144, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(30, 144, 255, 0.2);
}

/* 顶部标题和统计完全横向平铺 - 移除滚动条 */
.header-stats-container {
    display: flex;
    align-items: center;
    gap: 20px;
    overflow-x: hidden;
    overflow-y: hidden;
    padding-bottom: 10px;
}

.main-title h2 {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, #1E90FF 0%, #00CED1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    flex-shrink: 0;
}

.refresh-hint {
    font-size: 14px;
    color: #00CED1;
    background: rgba(0, 206, 209, 0.2);
    padding: 6px 15px;
    border-radius: 20px;
    border: 1px solid rgba(0, 206, 209, 0.3);
}

/* 统计卡片横向平铺布局 - 完全横版 - 移除滚动条 */
.stats-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: hidden;
    gap: 15px;
    margin-top: 10px;
    padding: 5px 5px 15px 5px;
}

.stat-card {
    display: flex;
    align-items: center;
    width: auto;
    min-width: fit-content;
    flex-shrink: 0;
    padding: 10px 14px;
    background: linear-gradient(135deg, 
        rgba(30, 144, 255, 0.15) 0%, 
        rgba(0, 206, 209, 0.1) 50%, 
        rgba(138, 43, 226, 0.05) 100%);
    border: 1.5px solid rgba(30, 144, 255, 0.25);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    gap: 10px;
}

/* 卡片发光效果 - 已禁用 */
/*
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(30, 144, 255, 0.6), 
        transparent);
    z-index: 1;
}
*/

/* 悬停效果已禁用 */
/*
.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(30, 144, 255, 0.25),
        0 0 60px rgba(0, 206, 209, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    border-color: rgba(30, 144, 255, 0.5);
    background: linear-gradient(135deg, 
        rgba(30, 144, 255, 0.2) 0%, 
        rgba(0, 206, 209, 0.15) 50%, 
        rgba(138, 43, 226, 0.1) 100%);
}

.stat-card.highlight:hover {
    box-shadow: 
        0 20px 50px rgba(255, 20, 147, 0.3),
        0 0 80px rgba(255, 69, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    border-color: rgba(255, 20, 147, 0.6);
}
*/

/* 统计卡片图标区域 - 完全平铺 */
.stat-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, 
        rgba(30, 144, 255, 0.2) 0%, 
        rgba(0, 206, 209, 0.15) 100%);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.stat-icon-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transform: rotate(30deg);
    transition: transform 0.6s ease;
}

/* 悬停效果已禁用 */
/*
.stat-card:hover .stat-icon-container::after {
    transform: rotate(30deg) translateX(100%);
}
*/

.stat-icon {
    font-size: 20px;
    z-index: 2;
    position: relative;
    background: linear-gradient(135deg, #1E90FF 0%, #00CED1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #1E90FF 0%, #00CED1 40%, #FF1493 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(30, 144, 255, 0.3);
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

/* 悬停效果已禁用 */
/*
.stat-card:hover .stat-number {
    transform: scale(1.05);
    text-shadow: 0 4px 20px rgba(30, 144, 255, 0.5);
}
*/

/* .stat-main-info、.stat-label、.stat-subtitle 样式已删除 */

.stat-detail {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    min-width: fit-content;
    gap: 6px;
}

/* 悬停效果已禁用 */
/*
.stat-detail:hover {
    transform: translateY(-3px);
    background: rgba(30, 144, 255, 0.1);
    border-color: rgba(30, 144, 255, 0.3);
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.15);
}

.stat-detail:hover::before {
    left: 100%;
}
*/

.detail-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

.detail-value {
    font-size: 14px;
    font-weight: 800;
    background: linear-gradient(135deg, #1E90FF 0%, #00CED1 60%, #7B68EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(30, 144, 255, 0.3);
    position: relative;
    display: inline-block;
    line-height: 1;
}

/* 悬停效果已禁用 */
/*
.stat-detail:hover .detail-value {
    transform: scale(1.05);
    text-shadow: 0 4px 15px rgba(30, 144, 255, 0.5);
}
*/

/* ========== 中间主体区域（左中右布局） ========== */
.main-content {
    display: flex;
    gap: 20px;
    flex: 1;
    min-height: 0;
}

/* 左侧边栏 - 移除滚动条 */
.left-sidebar {
    flex: 0 0 280px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15) 0%, rgba(30, 144, 255, 0.15) 100%);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.2);
}

/* 中间主要内容区 */
.center-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* 右侧边栏 - 移除滚动条 */
.right-sidebar {
    flex: 0 0 320px;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.15) 0%, rgba(255, 69, 0, 0.15) 100%);
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(255, 165, 0, 0.2);
}

.waterfall-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.waterfall-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    break-inside: avoid;
}

.waterfall-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(30, 144, 255, 0.3);
    border-color: rgba(30, 144, 255, 0.5);
}

.normal-item {
    cursor: pointer;
    height: 100%;
}

.item-type {
    display: inline-block;
    background: linear-gradient(135deg, #1E90FF, #00CED1);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.normal-item-content {
    display: flex;
    gap: 15px;
    height: 100%;
}

.normal-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.title {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.summary {
    font-size: 14px;
    color: #CCCCCC;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.qr-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 120px;
}

.qr-block {    
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.qr-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-div p {
    font-size: 12px;
    color: #00CED1;
    text-align: center;
    line-height: 1.3;
    margin: 0;
}

/* 自动上翻动画 */
@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.waterfall-container.auto-scroll .waterfall-item {
    animation: slideUp var(--scroll-duration, 5s) linear infinite;
}

/* 控制按钮样式 */
.refresh-hint {
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-hint:hover {
    background: rgba(0, 206, 209, 0.4) !important;
    transform: scale(1.05);
}

.control-btn .icon {
    font-size: 16px;
}

/* 面板主体 */
.panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 图表容器 */
.chart-box {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* 信息列表 - 2列网格布局 */
.info-list {
    flex: 1;
    padding-right: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* 信息卡片 - PC端保持原样 */
.info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(30, 144, 255, 0.4);
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.3);
    transform: translateY(-3px);
}

/* PC端：分类标签和编号垂直排列 */
.card-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

/* PC端：分类标签和编号垂直居中排列 */
.card-header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.category-tag {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, #1E90FF 0%, #00CED1 100%);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.card-body {
    display: flex;
    gap: 20px;
}

.info-content {
    flex: 1;
    min-width: 0;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #E8E8E8;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-summary {
    font-size: 14px;
    color: #CCCCCC;
    line-height: 1.6;
}

.info-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
}

.qr-wrapper {
    width: 80px;
    height: 80px;
    background: #FFFFFF;
    border-radius: 6px;
    padding: 3px;
    margin-bottom: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-error {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #999;
    text-align: center;
    line-height: 1.4;
}

.qr-text {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.qr-id {
    font-size: 12px;
    font-weight: 600;
    color: #1E90FF;
    margin-top: 5px;
}

/* WAP端二维码显示控制 - 默认隐藏，WAP端显示 */
.wap-only {
    display: none;
}

/* WAP端适配 */
@media (max-width: 768px) {
    .wap-only {
        display: flex !important;
    }
}

/* ========== 底部区域 ========== */
.bottom-section {
    background: rgba(20, 30, 48, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.chart-wrapper {
    margin-top: 20px;
}

.chart-full {
    width: 100%;
    height: 250px;
}

.update-time {
    font-size: 14px;
    color: #00CED1;
    background: rgba(0, 206, 209, 0.2);
    padding: 6px 15px;
    border-radius: 20px;
    border: 1px solid rgba(0, 206, 209, 0.3);
}





/* ========== 响应式布局 ========== */
@media (max-width: 1600px) {
    .stat-card {
        width: 260px;
        min-width: 260px;
    }
}

@media (max-width: 1200px) {
    .middle-section {
        flex-direction: column;
    }
    
    .left-panel,
    .right-panel {
        width: 20%;
        min-height: 350px;
    }
    
    .center-panel {
        width: 60%;
        min-height: 500px;
    }
    
    /* WAP端信息卡片：二维码在标题行右侧，标题和摘要在下方平铺 */
    .card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        margin-bottom: 10px;
    }
    
    .card-body {
        display: block;
    }
    
    .info-content {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .info-qr {
        flex-shrink: 0;
    }
    
    .qr-wrapper {
        width: 70px;
        height: 70px;
        padding: 2px;
    }
}

@media (max-width: 768px) {
    body.display-body {
        padding: 10px;
    }
    
    /* 信息卡片在WAP端调整 */
    .info-card {
        padding: 12px;
    }
    
    /* 优化WAP端分类标签样式 */
    .category-tag {
        padding: 4px 12px;
        font-size: 12px;
        border-radius: 15px;
        background: linear-gradient(135deg, #1E90FF 0%, #00CED1 100%);
        box-shadow: 0 2px 8px rgba(30, 144, 255, 0.3);
    }
    
    /* 优化编号位置 */
    .qr-id {
        font-size: 11px;
        color: #00CED1;
        font-weight: 600;
        padding: 2px 0;
    }
    
    /* WAP端：分类标签+编号在左，二维码在右 */
    .card-header {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 10px;
    }
    
    /* WAP端：分类标签和编号左对齐 */
    .card-header-left {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        flex: 1;
        min-width: 0;
    }
    
    /* WAP端二维码容器 */
    .info-qr.wap-only {
        margin-left: 10px;
        flex-shrink: 0;
        display: flex;
        align-items: flex-start;
    }
    
    /* WAP端二维码：去除背景，改为边框样式 */
    .qr-wrapper {
        width: 60px;
        height: 60px;
        padding: 3px;
        background: transparent;
        border-radius: 6px;
        border: 2px solid rgba(30, 144, 255, 0.5);
        box-shadow: 0 2px 8px rgba(30, 144, 255, 0.2);
    }
    
    .stats-grid {
        gap: 10px;
    }

    .stat-card {
        width: 220px;
        min-width: 220px;
        padding: 12px;
    }
    
    .header-stats-container {
        gap: 15px;
    }
    
    .main-title h2 {
        font-size: 22px;
    }
    
    .panel-controls {
        flex-direction: column;
    }
    
}

/* ========== 动画效果 ========== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 随机刷新动画 */
@keyframes randomRefresh {
    0% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0, 206, 209, 0);
    }
    25% {
        opacity: 0.7;
        transform: scale(0.95);
        box-shadow: 0 0 15px rgba(0, 206, 209, 0.4);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.9);
        box-shadow: 0 0 25px rgba(0, 206, 209, 0.6);
    }
    75% {
        opacity: 0.7;
        transform: scale(0.95);
        box-shadow: 0 0 15px rgba(0, 206, 209, 0.4);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0, 206, 209, 0);
    }
}



/* 数字滚动动画 */
@keyframes numberRoll {
    0% {
        opacity: 0.5;
        transform: translateY(10px) scale(0.95);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stat-number.rolling {
    animation: numberRoll 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 卡片加载动画 */
@keyframes cardLoading {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    70% {
        opacity: 0.8;
        transform: translateY(-10px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stat-card.loading {
    animation: cardLoading 0.6s ease-out;
}

/* 卡片入场动画 - 交错延迟 */
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }
.stat-card:nth-child(5) { animation-delay: 0.5s; }
.stat-card:nth-child(6) { animation-delay: 0.6s; }
.stat-card:nth-child(7) { animation-delay: 0.7s; }
.stat-card:nth-child(8) { animation-delay: 0.8s; }

.random-refresh-animating {
    position: relative;
    z-index: 10;
    animation-fill-mode: both;
}

/* ========== 暗色主题兼容 ========== */
@media (prefers-color-scheme: dark) {
    body.display-body {
        background: linear-gradient(135deg, #000000 0%, #1a1a2e 50%, #16213e 100%);
    }
}

/* ========== 响应式设计优化 ========== */
/* 大屏适配 (1200px-1600px) */
@media screen and (max-width: 1600px) {
    .layout-container { padding: 15px; gap: 15px; }
    .stats-grid { gap: 12px; }
    .main-content { gap: 15px; }
    .left-sidebar, .right-sidebar { flex: 0 0 250px; }
    .stat-card { padding: 10px 12px; gap: 10px; }
    .stat-icon-container { width: 32px; height: 32px; }
    .stat-icon { font-size: 16px; }
    .stat-number { font-size: 18px; }
}

/* 平板适配 (768px-1200px) */
@media screen and (max-width: 1200px) {
    .layout-container { padding: 10px; gap: 12px; }
    .top-section { padding: 20px; }
    .section-title h2 { font-size: 24px; }
    .section-title h3 { font-size: 18px; }
    .stats-grid { gap: 10px; }
    .stat-card { padding: 8px 10px; gap: 8px; }
    .stat-icon-container { width: 28px; height: 28px; }
    .stat-icon { font-size: 14px; }
    .stat-number { font-size: 16px; }
    .main-content { flex-direction: column; gap: 15px; }
    .left-sidebar, .right-sidebar { flex: none; order: -1; }
    .center-content { order: 1; }
    .chart-container { height: 300px; }
}

/* 手机适配 (<=768px) */
@media screen and (max-width: 768px) {
    .stat-card { padding: 6px 8px; gap: 6px; }
    .stat-icon-container { width: 24px; height: 24px; }
    .stat-icon { font-size: 12px; }
    .stat-number { font-size: 14px; }
}
