/* ===== 基础样式重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== 基本布局设置 ===== */
html, body {
    height: 100%;
    overflow: hidden; /* 防止页面滚动 */
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-width: 1920px; /* 设置最小宽度 */
    min-height: 1080px; /* 设置最小高度 */
}

/* ===== 背景设置 ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/index/bgfit.png') repeat;
    z-index: -1; /* 确保在最底层 */
}

/* ===== 主容器样式 ===== */
.site-container {
    width: 1920px;
    height: 1080px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    overflow: visible;
    display: flex;
    flex-direction: column;
    z-index: 1;
    background: url('../img/index/bg.png') no-repeat top center;
    background-size: 1920px 1080px;
}

/* ===== 头部区域样式 ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1920px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

/* Logo相关样式 */
.logo-container {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    padding: 0;
    z-index: 11;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.site-logo {
    display: block;
    width: 373.5px;
    height: 75px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo-link:hover .site-logo {
    opacity: 0.8; /* Logo悬停效果 */
}

/* 头部右侧区域样式 */
.header-right {
    display: flex;
    align-items: center;
    gap: 7.5px;
    position: fixed;
    top: 0.75rem;
    right: 1.5rem;
    z-index: 11;
}


/* 日期显示样式 */
.datetime {
    color: #fff;
    font-weight: bold;
    font-size: 1.65rem;
    display: inline-block;
    white-space: nowrap; /* 防止日期换行 */
}

.date {
    display: inline-block;
}

/* ===== 主要内容区域样式 ===== */
.site-main {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* 允许子元素接收事件 */
}

.site-main > img {
    pointer-events: auto; /* 按钮图片可以接收事件 */
}

/* DNA装饰图样式 */
.dna-decoration {
    position: fixed;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 1920px;
    height: 1080px;
    object-fit: contain;
    opacity: 0.8;
    pointer-events: none;
    z-index: 2;
    max-width: none;
    max-height: none;
}

/* DNA图片前的透明玻璃特效 */
.dna-glass-effect {
    position: fixed;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 1920px;
    height: 1080px;
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(
        135deg,
        rgba(0, 255, 255, 0.2) 0%,
        rgba(0, 195, 255, 0.25) 25%,
        rgba(0, 255, 255, 0.2) 50%,
        rgba(0, 195, 255, 0.25) 75%,
        rgba(0, 255, 255, 0.2) 100%
    );
    backdrop-filter: blur(8px) brightness(1.1);
    -webkit-backdrop-filter: blur(8px) brightness(1.1);
    mask-image: radial-gradient(ellipse 900px 700px at center, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 900px 700px at center, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 80%);
    animation: glassShimmer 6s ease-in-out infinite;
    box-shadow: 
        inset 0 0 200px rgba(0, 255, 255, 0.3),
        0 0 300px rgba(0, 195, 255, 0.2);
}

@keyframes glassShimmer {
    0%, 100% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1);
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.03);
        filter: brightness(1.2);
    }
}

/* DNA图片前的光影特效 - 已禁用光晕 */
.dna-light-effect {
    display: none;
}

/* DNA图片前的粒子光效 */
.dna-particles {
    position: fixed;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 1920px;
    height: 1080px;
    pointer-events: none;
    z-index: 5;
    background-image: 
        radial-gradient(3px 3px at 20% 30%, rgba(0, 255, 255, 1), transparent),
        radial-gradient(3px 3px at 60% 70%, rgba(0, 195, 255, 1), transparent),
        radial-gradient(2px 2px at 50% 50%, rgba(0, 255, 255, 1), transparent),
        radial-gradient(2px 2px at 80% 20%, rgba(0, 195, 255, 1), transparent),
        radial-gradient(3px 3px at 30% 80%, rgba(0, 255, 255, 1), transparent),
        radial-gradient(2px 2px at 70% 40%, rgba(0, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 40% 60%, rgba(0, 195, 255, 0.9), transparent),
        radial-gradient(3px 3px at 10% 50%, rgba(0, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 90% 80%, rgba(0, 195, 255, 0.8), transparent),
        radial-gradient(2px 2px at 15% 15%, rgba(0, 255, 255, 0.9), transparent),
        radial-gradient(3px 3px at 85% 35%, rgba(0, 195, 255, 0.9), transparent),
        radial-gradient(2px 2px at 25% 65%, rgba(0, 255, 255, 0.85), transparent),
        radial-gradient(2px 2px at 75% 55%, rgba(0, 195, 255, 0.85), transparent),
        radial-gradient(3px 3px at 45% 25%, rgba(0, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 55% 75%, rgba(0, 195, 255, 0.9), transparent),
        radial-gradient(2px 2px at 35% 45%, rgba(0, 255, 255, 0.8), transparent),
        radial-gradient(3px 3px at 65% 15%, rgba(0, 195, 255, 0.8), transparent),
        radial-gradient(2px 2px at 5% 75%, rgba(0, 255, 255, 0.85), transparent),
        radial-gradient(2px 2px at 95% 45%, rgba(0, 195, 255, 0.85), transparent),
        radial-gradient(3px 3px at 12% 85%, rgba(0, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 88% 65%, rgba(0, 195, 255, 0.9), transparent),
        radial-gradient(2px 2px at 38% 85%, rgba(0, 255, 255, 0.8), transparent),
        radial-gradient(3px 3px at 62% 25%, rgba(0, 195, 255, 0.8), transparent),
        radial-gradient(2px 2px at 18% 55%, rgba(0, 255, 255, 0.85), transparent),
        radial-gradient(2px 2px at 82% 75%, rgba(0, 195, 255, 0.85), transparent);
    background-size: 200% 200%, 180% 180%, 150% 150%, 220% 220%, 190% 190%, 160% 160%, 200% 200%, 170% 170%, 210% 210%, 195% 195%, 185% 185%, 175% 175%, 205% 205%, 165% 165%, 225% 225%, 155% 155%, 215% 215%, 195% 195%, 180% 180%, 200% 200%, 190% 190%, 170% 170%, 210% 210%, 160% 160%, 220% 220%;
    background-position: 0% 0%, 100% 100%, 50% 50%, 80% 20%, 30% 80%, 70% 40%, 40% 60%, 10% 50%, 90% 80%, 15% 15%, 85% 35%, 25% 65%, 75% 55%, 45% 25%, 55% 75%, 35% 45%, 65% 15%, 5% 75%, 95% 45%, 12% 85%, 88% 65%, 38% 85%, 62% 25%, 18% 55%, 82% 75%;
    animation: particlesMove 15s linear infinite;
    opacity: 0.9;
    filter: drop-shadow(0 0 3px rgba(0, 255, 255, 0.8));
}

@keyframes particlesMove {
    0% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 80% 20%, 30% 80%, 70% 40%, 40% 60%, 10% 50%, 90% 80%, 15% 15%, 85% 35%, 25% 65%, 75% 55%, 45% 25%, 55% 75%, 35% 45%, 65% 15%, 5% 75%, 95% 45%, 12% 85%, 88% 65%, 38% 85%, 62% 25%, 18% 55%, 82% 75%;
        opacity: 0.9;
    }
    25% {
        background-position: 25% 25%, 75% 75%, 60% 40%, 70% 30%, 40% 70%, 80% 50%, 50% 70%, 20% 60%, 85% 85%, 30% 30%, 80% 50%, 40% 75%, 70% 65%, 55% 40%, 60% 80%, 45% 60%, 75% 30%, 20% 80%, 90% 60%, 25% 90%, 85% 75%, 50% 90%, 70% 40%, 30% 70%, 88% 80%;
        opacity: 1;
    }
    50% {
        background-position: 50% 50%, 50% 50%, 70% 30%, 60% 40%, 50% 60%, 90% 60%, 60% 80%, 30% 70%, 80% 90%, 45% 45%, 55% 65%, 50% 85%, 65% 75%, 60% 55%, 65% 85%, 55% 75%, 70% 45%, 40% 85%, 75% 75%, 50% 95%, 70% 85%, 60% 95%, 75% 55%, 50% 80%, 72% 85%;
        opacity: 0.9;
    }
    75% {
        background-position: 75% 75%, 25% 25%, 40% 60%, 50% 50%, 60% 40%, 60% 70%, 70% 50%, 40% 40%, 70% 75%, 60% 60%, 30% 50%, 75% 40%, 25% 35%, 70% 70%, 40% 30%, 65% 60%, 30% 30%, 35% 70%, 80% 30%, 25% 20%, 62% 50%, 42% 30%, 38% 50%, 68% 65%, 78% 30%;
        opacity: 1;
    }
    100% {
        background-position: 100% 100%, 0% 0%, 30% 70%, 40% 60%, 70% 30%, 50% 50%, 80% 40%, 50% 30%, 60% 70%, 75% 75%, 15% 65%, 75% 25%, 25% 45%, 75% 50%, 45% 25%, 65% 55%, 35% 85%, 95% 25%, 88% 15%, 12% 35%, 62% 15%, 88% 75%, 38% 55%, 82% 25%, 18% 25%, 68% 75%;
        opacity: 0.9;
    }
}

/* 添加扫描线特效 */
.dna-glass-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 255, 255, 0.1) 48%,
        rgba(0, 255, 255, 0.2) 50%,
        rgba(0, 255, 255, 0.1) 52%,
        transparent 100%
    );
    animation: scanLine 4s linear infinite;
    pointer-events: none;
}

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

/* 添加边缘光效 */
.dna-glass-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-image: linear-gradient(
        45deg,
        rgba(0, 255, 255, 0.6),
        rgba(0, 195, 255, 0.4),
        rgba(0, 255, 255, 0.6)
    ) 1;
    box-shadow: 
        inset 0 0 100px rgba(0, 255, 255, 0.2),
        0 0 200px rgba(0, 195, 255, 0.15);
    pointer-events: none;
    animation: edgeGlow 5s ease-in-out infinite;
}

@keyframes edgeGlow {
    0%, 100% {
        opacity: 0.6;
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        filter: brightness(1.3);
    }
}

/* ===== 按钮样式 ===== */
/* 所有按钮的共同样式 */
.btn1-image,
.btn2-image,
.btn3-image,
.btn4-image,
.btn5-image,
.btn6-image {
    position: fixed;
    width: auto;
    height: auto;
    max-height: none;
    max-width: none;
    cursor: pointer !important;
    z-index: 100 !important;
    transition: all 0.3s ease;
    transform: translateY(-50%) scale(1.05);
    pointer-events: auto !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* 按钮悬停效果 */
.btn1-image:hover,
.btn2-image:hover,
.btn3-image:hover,
.btn4-image:hover,
.btn5-image:hover,
.btn6-image:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.0);
    filter: brightness(1.3);
    transition: all 0.3s ease;
}

/* 各个按钮的具体位置设置 */
/* 左侧按钮组 */
.btn1-image {
    left: calc(50% - 710px); /* 放大1.5倍，向右移动100px */
    top: calc(50% - 270px);
}

.btn2-image {
    left: calc(50% - 770px); /* 放大1.5倍，向右移动100px */
    top: calc(50% - 45px);
}

.btn3-image {
    left: calc(50% - 725px); /* 放大1.5倍，向右移动100px */
    top: calc(50% + 180px);
}

/* 右侧按钮组 */
.btn4-image {
    left: calc(50% + 382.5px); /* 放大1.5倍，向右移动100px，再向左移动55px */
    top: calc(50% - 270px);
}

.btn5-image {
    left: calc(50% + 420px); /* 放大1.5倍，向右移动100px，再向左移动55px */
    top: calc(50% - 45px);
}

.btn6-image {
    left: calc(50% + 382.5px); /* 放大1.5倍，向右移动100px，再向左移动55px */
    top: calc(50% + 180px);
}


/* ===== 浮动按钮样式 ===== */
.floating-button {
    position: fixed;
    bottom: 0;
    right: 30px;
    width: 180px;
    height: 180px;
    cursor: pointer;
    z-index: 100;
    transition: transform 0.3s ease;
}

.floating-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== 对话框样式 ===== */
.chat-dialog {
    position: fixed;
    bottom: 195px;
    right: 30px;
    width: 450px;
    height: 600px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    z-index: 99;
}

.chat-dialog.show {
    display: flex;
}

.chat-header {
    padding: 15px;
    background: #f0f0f0;
    border-radius: 15px 15px 0 0;
    border-bottom: 1px solid #ddd;
}

.chat-title {
    font-weight: bold;
    color: #333;
    font-size: 1.5rem;
}

.chat-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 15px;
    padding: 12px 18px;
    border-radius: 22.5px;
    max-width: 80%;
    font-size: 1.05rem;
}

.user-message {
    background: #007bff;
    color: #fff;
    margin-left: auto;
}

.assistant-message {
    background: #f0f0f0;
    color: #333;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 15px;
}

.chat-input textarea {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 7.5px;
    resize: none;
    height: 60px;
    font-family: inherit;
    font-size: 1.05rem;
}

.chat-input button {
    padding: 12px 22.5px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 7.5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 1.05rem;
}

.chat-input button:hover {
    background: #0056b3;
}

.chat-input button:active {
    background: #004085;
}

/* ===== 版权信息样式 ===== */
.copyright {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    font-size: 1.35rem;
    z-index: 5;
}

.copyright p {
    margin: 2px 0;
}

/* ===== 响应式布局 ===== */
@media (max-width: 1920px) {
    body {
        min-width: 1920px;
    }
    .site-header,
    .site-container {
        width: 1920px;
    }
    .btn1-image,
    .btn2-image,
    .btn3-image,
    .btn4-image,
    .btn5-image,
    .btn6-image {
        transform: translateY(-50%) scale(0.9);
    }
}

@media (max-height: 1080px) {
    body {
        min-height: 1080px;
    }
    .site-header,
    .site-container {
        height: 1080px;
    }
    .btn1-image,
    .btn2-image,
    .btn3-image,
    .btn4-image,
    .btn5-image,
    .btn6-image {
        transform: translateY(-50%) scale(0.9);
    }
}

/* PDF模态框样式 */
.pdf-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    padding: 45px;
    border-radius: 22.5px;
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    width: auto;
    height: auto;
}

.pdf-modal.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.pdf-close {
    position: absolute;
    top: -22.5px;
    right: -22.5px;
    width: 45px;
    height: 45px;
    background: #fff;
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 7.5px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: background-color 0.2s ease;
}

.pdf-close:hover {
    background: #f0f0f0;
}

.pdf-content {
    max-width: 1200px;
    max-height: 700px;
    overflow: auto;
}

.pdf-content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

/* 考试模态框样式 */
.exam-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    padding: 45px;
    border-radius: 22.5px;
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    width: auto;
    height: auto;
}

.exam-modal.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.exam-close {
    position: absolute;
    top: -22.5px;
    right: -22.5px;
    width: 45px;
    height: 45px;
    background: #fff;
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 7.5px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: background-color 0.2s ease;
}

.exam-close:hover {
    background: #f0f0f0;
}

.exam-content {
    width: 1200px;
    max-height: 800px;
    overflow: hidden;
    border-radius: 10px;
}

.exam-content iframe {
    width: 1200px;
    height: 800px;
    border: none;
    border-radius: 10px;
    display: block;
}

/* 数据中心模态框样式 */
.data-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    padding: 45px;
    border-radius: 22.5px;
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    width: auto;
    height: auto;
}

.data-modal.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.data-close {
    position: absolute;
    top: -22.5px;
    right: -22.5px;
    width: 45px;
    height: 45px;
    background: #fff;
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 7.5px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: background-color 0.2s ease;
}

.data-close:hover {
    background: #f0f0f0;
}

.data-content {
    width: 1200px;
    max-height: 800px;
    overflow: hidden;
    border-radius: 10px;
}

.data-content iframe {
    width: 1200px;
    height: 800px;
    border: none;
    border-radius: 10px;
    display: block;
}

/* 提示框样式 */
.tip-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    padding: 45px 75px;
    border-radius: 22.5px;
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    color: #fff;
    text-align: center;
    min-width: 450px;
}

.tip-modal.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.tip-close {
    position: absolute;
    top: -22.5px;
    right: -22.5px;
    width: 45px;
    height: 45px;
    background: #fff;
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 7.5px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: background-color 0.2s ease;
}

.tip-close:hover {
    background: #f0f0f0;
}

.tip-title {
    font-size: 36px;
    margin-bottom: 22.5px;
    color: #00ffff;
}

.tip-content {
    font-size: 24px;
    line-height: 1.6;
} 