/* ===== 基础样式重置 ===== */
* {
    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;
}

/* ===== 按钮样式 ===== */
/* 所有按钮的共同样式 */
.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;
} 