
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #0a0a1a;
    color: #fff;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

 .navbar_dz {
    position: absolute;
    top: 0.5rem;
    right: 0;
    padding: 0.5rem;
}

.navbar_dz a {
    /*color: white;*/
    text-decoration: none;
    font-size:1.3rem ;
    margin: 0 12px;
     background: linear-gradient(90deg, #00f2fe, #4facfe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(79, 172, 254, 0.5);

    /*font-size: 1.2rem;*/
    /*color: #a0a0e0;*/
}
.navbar_dz a:hover {
    color: white; /* 鼠标悬浮时的颜色 */
  }
.div_none{
    display: none !important;
}

/*返回按钮*/
.fanhu{
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    color: #aaa;
    /*float: left;*/
    cursor: pointer;
}

#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

.subtitle {
    font-size: 1.2rem;
    color: #a0a0c0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
/* 手机端显示2个一行 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr); /* 固定2列 */
        gap: 15px;
    }

    .stat-card {
        padding: 15px; /* 手机端减少内边距 */
    }

    .stat-value {
        font-size: 1.5rem; /* 手机端字体稍小 */
    }
}

/* 超小屏幕（如竖屏手机） */
@media (max-width: 380px) {
    .stats-grid {
        grid-template-columns: 1fr; /* 超小屏幕回到1列 */
        gap: 12px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

.stat-card {
    background: rgba(20, 20, 40, 0.7);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(79, 172, 254, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.stat-card>.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
    color: #4facfe;
}

.stat-label {
    font-size: 1rem;
    color: #a0a0c0;
}

.charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .charts-container {
        grid-template-columns: 1fr;
    }
}

.chart-card {
    background: rgba(20, 20, 40, 0.7);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(79, 172, 254, 0.2);
    height: 350px;
    display: flex;
    flex-direction: column;
}

.chart-title {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #4facfe;
    height: 30px;
}

.chart-wrapper {
    flex: 1;
    position: relative;
}

.chart-canvas {
    /*width: 80%;*/
    /*height: 80%;*/
}

.wordcloud-container {
    background: rgba(20, 20, 40, 0.7);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(79, 172, 254, 0.2);
    margin-bottom: 30px;
    text-align: center;
    height: 350px;
}

#wordCloud {
    width: 100%;
    height: 300px;
    margin: 0 auto;
}

.pulse {
    /*animation: pulse 2s infinite;*/
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(79, 172, 254, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(79, 172, 254, 0);
    }
}
