* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

html, body {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #001a33, #003366);
    color: #fff;
    position: relative;
}

/* 背景样式优化 */
#background-canvas {
    pointer-events: none;
}

.container {
    width: 100%;
    height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* 优化科技感header样式 */
.header {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px 0;
    background: linear-gradient(90deg, rgba(0, 51, 102, 0.8), rgba(0, 102, 204, 0.8), rgba(0, 51, 102, 0.8));
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 153, 255, 0.5);
    border: 1px solid rgba(0, 153, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* 添加科技感装饰元素 */
.header:before, .header:after {
    content: "";
    position: absolute;
    background: rgba(0, 153, 255, 0.2);
    z-index: -1;
}

.header:before {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    top: -100px;
    left: -50px;
    filter: blur(20px);
}

.header:after {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    bottom: -80px;
    right: -30px;
    filter: blur(15px);
}

/* 添加科技感边框效果 */
.header-content {
    position: relative;
    z-index: 1;
}

.header-tech-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(0, 153, 255, 0.3);
    border-radius: 8px;
    overflow: hidden;
    z-index: 0;
}

.header-tech-border:before, .header-tech-border:after {
    content: "";
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(0, 153, 255, 0.8), transparent);
    width: 50%;
    height: 1px;
}

.header-tech-border:before {
    top: 0;
    left: 25%;
    animation: techBorderFlow 3s linear infinite;
}

.header-tech-border:after {
    bottom: 0;
    right: 25%;
    animation: techBorderFlow 3s 1.5s linear infinite;
}

@keyframes techBorderFlow {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

.header h1 {
    font-size: 38px;
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 153, 255, 0.8);
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
}

/* 添加标题下划线动画效果 */
.header h1:after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ccff, transparent);
}

.header h2 {
    font-size: 24px;
    color: #99ccff;
    margin-top: 15px;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

/* 添加点缀元素 */
.tech-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #00ccff;
    box-shadow: 0 0 10px rgba(0, 153, 255, 0.8);
    animation: pulseDot 2s infinite;
}

.tech-dot:nth-child(1) {
    top: 20px;
    left: 20%;
}

.tech-dot:nth-child(2) {
    top: 40px;
    right: 25%;
}

.tech-dot:nth-child(3) {
    bottom: 25px;
    left: 30%;
}

.tech-dot:nth-child(4) {
    bottom: 15px;
    right: 20%;
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* 三列布局样式 */
.content-area {
    display: flex;
    justify-content: space-between;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    gap: 10px;
    height: calc(100vh - 120px);
}

.column-left, .column-middle, .column-right {
    display: flex;
    flex-direction: column;
    padding: 0 10px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 153, 255, 0.5) rgba(0, 51, 102, 0.2);
    height: 100%;
    min-height: 0;
}

.column-left, .column-right {
    width: 35%;
}

.column-middle {
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.column-middle .book-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.column-middle .book-list:last-child {
    margin-bottom: 0;
}

.column-middle .book-list .section-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.column-middle .book-list h3 {
    margin-bottom: 10px;
}

.column-middle .book-list ul {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-right: 5px;
    position: relative;
}

.column-middle .book-list .scroll-content {
    position: absolute;
    width: 100%;
    animation: scrollUp 30s linear infinite;
}

.column-middle .book-list .scroll-content:hover {
    animation-play-state: paused;
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.column-middle .book-list li {
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.column-middle .book-list li:last-child {
    margin-bottom: 0;
}

/* 自定义中间列滚动条 */
.column-middle .book-list ul::-webkit-scrollbar {
    width: 4px;
}

.column-middle .book-list ul::-webkit-scrollbar-track {
    background: rgba(0, 51, 102, 0.2);
    border-radius: 2px;
}

.column-middle .book-list ul::-webkit-scrollbar-thumb {
    background: rgba(0, 153, 255, 0.5);
    border-radius: 2px;
}

/* 自定义滚动条 */
.column-left::-webkit-scrollbar,
.column-right::-webkit-scrollbar {
    width: 6px;
}

.column-left::-webkit-scrollbar-track,
.column-right::-webkit-scrollbar-track {
    background: rgba(0, 51, 102, 0.2);
    border-radius: 3px;
}

.column-left::-webkit-scrollbar-thumb,
.column-right::-webkit-scrollbar-thumb {
    background: rgba(0, 153, 255, 0.5);
    border-radius: 3px;
}

/* 优化科技感区块样式 */
.data-section, .chart-box, .book-list {
    flex: 0 0 auto;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.7), rgba(0, 77, 153, 0.7));
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(0, 153, 255, 0.3);
    border: 1px solid rgba(0, 153, 255, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.data-section:last-child, .chart-box:last-child, .book-list:last-child {
    margin-bottom: 0;
}

/* 添加区块科技感装饰元素 */
.data-section:before, .chart-box:before, .book-list:before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(0, 153, 255, 0.1);
    top: -60px;
    right: -60px;
    filter: blur(15px);
    z-index: 0;
}

/* 添加区块科技感边框效果 */
.section-tech-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(0, 153, 255, 0.3);
    border-radius: 8px;
    overflow: hidden;
    z-index: 0;
}

.section-tech-border:before, .section-tech-border:after {
    content: "";
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(0, 153, 255, 0.8), transparent);
    width: 50%;
    height: 1px;
}

.section-tech-border:before {
    top: 0;
    left: 25%;
    animation: techBorderFlow 3s linear infinite;
}

.section-tech-border:after {
    bottom: 0;
    right: 25%;
    animation: techBorderFlow 3s 1.5s linear infinite;
}

.section-content {
    position: relative;
    z-index: 1;
}

.data-section h3, .chart-box h3, .book-list h3 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 15px;
    color: #99ccff;
    text-shadow: 0 0 8px rgba(0, 153, 255, 0.6);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

/* 添加标题下划线效果 */
.data-section h3:after, .chart-box h3:after, .book-list h3:after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ccff, transparent);
}

/* 数据项科技感样式 */
.data-item {
    width: 45%;
    text-align: center;
    margin: 8px;
    padding: 10px;
    background: rgba(0, 102, 204, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 153, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.data-item:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 153, 255, 0.1), transparent);
    animation: dataPulse 3s infinite alternate;
    z-index: 0;
}

/* 数据项图标样式 */
.data-item .data-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: rgba(0, 153, 255, 0.1);
    border: 1px solid rgba(0, 153, 255, 0.3);
    transition: all 0.3s ease;
}

.data-item .data-icon i {
    font-size: 24px;
    color: #fff;
    transition: all 0.3s ease;
}

/* 为不同数据项设置不同的图标颜色 */
.total-visits .data-icon {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
}

.total-visits .data-icon i {
    color: #FF6B6B;
}

.total-borrows .data-icon {
    background: rgba(78, 205, 196, 0.1);
    border-color: rgba(78, 205, 196, 0.3);
}

.total-borrows .data-icon i {
    color: #4ECDC4;
}

.total-books .data-icon {
    background: rgba(69, 183, 209, 0.1);
    border-color: rgba(69, 183, 209, 0.3);
}

.total-books .data-icon i {
    color: #45B7D1;
}

.today-visits .data-icon {
    background: rgba(150, 206, 180, 0.1);
    border-color: rgba(150, 206, 180, 0.3);
}

.today-visits .data-icon i {
    color: #96CEB4;
}

.today-borrows .data-icon {
    background: rgba(255, 238, 173, 0.1);
    border-color: rgba(255, 238, 173, 0.3);
}

.today-borrows .data-icon i {
    color: #FFEEAD;
}

.today-returns .data-icon {
    background: rgba(212, 165, 165, 0.1);
    border-color: rgba(212, 165, 165, 0.3);
}

.today-returns .data-icon i {
    color: #D4A5A5;
}

/* 图书综合统计图标颜色 */
.department-count .data-icon {
    background: rgba(155, 89, 182, 0.1);
    border-color: rgba(155, 89, 182, 0.3);
}

.department-count .data-icon i {
    color: #9B59B6;
}

.reader-total .data-icon {
    background: rgba(52, 152, 219, 0.1);
    border-color: rgba(52, 152, 219, 0.3);
}

.reader-total .data-icon i {
    color: #3498DB;
}

.book-types .data-icon {
    background: rgba(230, 126, 34, 0.1);
    border-color: rgba(230, 126, 34, 0.3);
}

.book-types .data-icon i {
    color: #E67E22;
}

.book-count .data-icon {
    background: rgba(26, 188, 156, 0.1);
    border-color: rgba(26, 188, 156, 0.3);
}

.book-count .data-icon i {
    color: #1ABC9C;
}

.book-value .data-icon {
    background: rgba(241, 196, 15, 0.1);
    border-color: rgba(241, 196, 15, 0.3);
}

.book-value .data-icon i {
    color: #F1C40F;
}

.book-book .data-icon {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
}

.book-book .data-icon i {
    color: #E74C3C;
}

/* 数据项悬停效果 */
.data-item:hover .data-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 153, 255, 0.3);
}

.data-item:hover .data-icon i {
    transform: scale(1.1);
}

@keyframes dataPulse {
    0% {
        opacity: 0.2;
    }
    100% {
        opacity: 0.6;
    }
}

.data-item:hover {
    transform: scale(1.05);
    background: rgba(0, 102, 204, 0.4);
    box-shadow: 0 0 15px rgba(0, 153, 255, 0.6);
}

.data-value {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 10px rgba(0, 153, 255, 0.5);
}

.data-label {
    font-size: 14px;
    color: #99ccff;
    position: relative;
    z-index: 1;
}

/* 图书列表科技感样式 */
.book-list li {
    padding: 8px;
    margin-bottom: 10px;
    background: rgba(0, 102, 204, 0.2);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 153, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.book-list li:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 153, 255, 0.1), transparent);
    animation: bookScan 3s infinite;
    z-index: 0;
}

@keyframes bookScan {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.book-list li:hover {
    background: rgba(0, 102, 204, 0.4);
    transform: translateX(5px);
    box-shadow: 0 0 10px rgba(0, 153, 255, 0.5);
}

.book-title, .publisher, .author {
    position: relative;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-title {
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 153, 255, 0.5);
    max-width: 100%;
}

.publisher, .author {
    color: #99ccff;
    font-size: 14px;
    max-width: 100%;
}

/* 图表容器科技感装饰 */
.chart {
    flex: 1;
    width: 100%;
    min-height: 300px;
    position: relative;
    z-index: 1;
}

/* 动画效果 */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.slide-in {
    animation: slideIn 0.8s ease forwards;
    opacity: 0;
}

/* 响应式适配 */
@media screen and (max-width: 1600px) {
    .data-item {
        width: 45%;
    }
}

@media screen and (max-width: 1400px) {
    .data-grid-2row .data-item {
        width: 30%;
    }
}

@media screen and (max-width: 1200px) {
    .content-area {
        flex-direction: column;
        height: auto;
        overflow-y: auto;
    }
    
    .column-left, .column-middle, .column-right {
        width: 100%;
        padding: 0;
        overflow-y: visible;
    }
    
    .data-item {
        width: 30%;
    }
    
    .chart-box {
        min-height: 250px;
    }
}

@media screen and (max-width: 768px) {
    .data-row {
        flex-wrap: wrap;
    }
    
    .data-grid-2row .data-item {
        width: 48%;
    }
    
    .data-item {
        width: 45%;
    }
    
    .book-list li {
        flex-direction: column;
    }
    
    .book-list li .author,
    .book-list li .publisher {
        margin-top: 5px;
    }
    
    .header h1 {
        font-size: 28px;
    }
    
    .header h2 {
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    .data-grid-2row .data-item {
        width: 100%;
    }
}

/* 数据网格2行3列布局 */
.data-grid-2row {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.data-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
}

.data-grid-2row .data-item {
    width: 31%;
    margin: 5px 0;
}

/* 调整图表区块的布局 */
.column-left .chart-box,
.column-right .chart-box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.column-left .chart-box .section-content,
.column-right .chart-box .section-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.column-left .chart-box h3,
.column-right .chart-box h3 {
    margin-bottom: 10px;
}

.column-left .chart-box .chart,
.column-right .chart-box .chart {
    flex: 1;
    min-height: 0;
}

/* 新书推荐样式 */
.new-books {
    padding: 15px;
}

.new-books ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.new-books li {
    background: rgba(0, 51, 102, 0.3);
    border: 1px solid rgba(0, 153, 255, 0.3);
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s ease;
}

.new-books li:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 153, 255, 0.2);
}

.new-book-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.new-book-cover {
    width: 120px;
    height: 160px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0, 51, 102, 0.5);
    position: relative;
    overflow: hidden;
}

.new-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.new-book-cover:hover img {
    transform: scale(1.1);
}

.new-book-info {
    text-align: center;
    width: 100%;
}

.new-book-title {
    font-size: 14px;
    color: #fff;
    margin-bottom: 5px;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.new-book-publisher {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 添加动画效果 */
.new-book-item {
    animation: fadeInUp 0.6s ease backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 

.new-books .scroll-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* 新闻通知样式 */
.news-notice {
    height: 100%;
    overflow: hidden;
    position: relative;
}

.news-notice .news-content {
    padding: 10px 15px;
    height: calc(100% - 50px); /* 减去标题的高度 */
    position: relative;
    overflow: hidden;
}

.news-notice article {
    color: #fff;
    line-height: 1.8;
    text-align: justify;
    position: absolute;
    width: 100%;
    animation: scrollText 240s linear infinite;
    padding: 20px 5px;
    top: 0;
    left: 0;
}

.news-notice article h4 {
    color: #66ccff;
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
    padding: 5px 0;
    position: relative;
}

.news-notice article p {
    text-indent: 2em;
    margin-bottom: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.news-notice article .news-meta {
    text-align: right;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin: 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(102, 204, 255, 0.3);
}

@keyframes scrollText {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

/* 添加渐变遮罩 */
.news-notice::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(0, 51, 102, 0.9));
    pointer-events: none;
}

.news-notice::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50px; /* 标题下方开始 */
    height: 50px;
    background: linear-gradient(to top, transparent, rgba(0, 51, 102, 0.9));
    pointer-events: none;
    z-index: 1;
}

/* 调整chart-box中的新闻通知样式 */
.chart-box.news-notice {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chart-box.news-notice .section-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chart-box.news-notice h3 {
    margin-bottom: 15px;
    flex-shrink: 0;
}
.swiper-image{
    width: 100%;
    height: 100%;
}
.swiper{
    width: 100%;
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}
.swiper-slide{
    position: relative;
}
.swiper-caption{
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translate(-50%,-100%);
    bottom: 15px;
}
.swiper-caption h4{
    font-size: 16px;
    color: #66ccff;
}
.swiper-pagination-bullet-active{
background-color: #66ccff !important;
}