/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    zoom: 0.8;
    /* 将页面缩小到80%，这样在125%浏览器缩放时相当于100% */
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    background-image: url('../image/0/1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #ffffff;
    overflow-x: hidden;
}

/* 灾情中心页面专用黑色背景 */
.disaster-center-page {
    background-color: #000000;
}

/* 物资采购与供应链页面专用黑色背景 */
.supply-chain-page {
    background-color: #000000;
}

/* 背景视频容器 */
.video-container {
    position: relative;
    top: 0px;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    overflow: hidden;
    padding: 0 0px;
}

/* 背景视频样式 */
.video-background {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.95;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.3));
    transition: opacity 0.3s ease;
}

/* 视频边缘渐变遮罩 */
.video-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

/* 固定导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

/* Logo区域 */
.nav-logo {
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: opacity 0.3s;
}

.nav-logo:hover {
    opacity: 0.8;
}

.logo-image {
    height: 60px;
    width: auto;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-item {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-item:hover {
    color: #64a5ff;
}

.nav-item.active {
    color: #64a5ff;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #64a5ff, #ff4d4d);
}

/* 登录按钮 */
.nav-login {
    display: flex;
    align-items: center;
}

.login-btn {
    background: #ffffff;
    border: none;
    color: #666666;
    padding: 8px 30px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.login-btn:hover {
    background: #f0f0f0;
    color: #333333;
}

/* 主要内容区域 */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    position: relative;
}

/* 首页背景 */
.home-container {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 60px 40px;
}

/* 全屏背景渐变遮罩层，左侧2/5暗，右侧渐变（仅首页显示） */
.home-page::before {
    content: '';
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 300%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

/* 左侧内容区域 - 占2/5 */
.left-section {
    flex: 0 0 40%;
    width: 40%;
    z-index: 2;
    position: relative;
    padding-left: 80px;
    padding-right: 60px;
}

.main-title {
    margin-bottom: 50px;
}

.title-chinese {
    font-size: 64px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 30px;
    line-height: 1.3;
    text-shadow: 0 0 20px rgba(100, 165, 255, 0.5);
    display: flex;
    flex-direction: column;
}

.title-line {
    display: block;
}

.title-english {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 3px;
    line-height: 1.5;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
}

/* About区域 */
.about-section {
    margin-top: 40px;
}

.about-title {
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
    margin-top: 100px;
    margin-bottom: 25px;
}

.about-text {
    font-size: 16px;
    line-height: 1.5;
    color: #ffffff;
    margin-bottom: 30px;
    text-align: justify;
}

.more-btn {
    background: #ffffff;
    border: none;
    color: #666666;
    padding: 12px 40px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.more-btn:hover {
    background: #f0f0f0;
    color: #333333;
}

/* 图片区域 - 6.png和7.png并排 */
.images-section {
    margin-top: 40px;
    z-index: 2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.image-pair-container {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: left;
    width: 100%;
}

.paired-image {
    max-width: 48%;
    height: auto;
    display: block;
}

/* 右侧轮播图区域 - 占3/5 */
.right-section {
    flex: 0 0 60%;
    width: 60%;
    z-index: 2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 40px;
    margin-top: 300px;
}

.carousel-container {
    width: 100%;
    max-width: 900px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

/* 左侧大轮播图 */
.carousel-left {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 右侧小轮播图 */
.carousel-right {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.carousel-item {
    position: relative;
    transition: transform 0.3s ease;
}

.carousel-item-large {
    width: 500px;
}

.carousel-item-small {
    width: 350px;
    opacity: 0.8;
}

.carousel-card {
    position: relative;
    width: 100%;
    border-radius: 0;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 10px 30px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.carousel-card:hover {
    transform: scale(1.05);
}

.carousel-card:active {
    transform: scale(0.98);
    transition: transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.carousel-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    object-fit: contain;
}

.carousel-info {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 0 20px 30px;
    z-index: 3;
    gap: 20px;
    background-color: transparent;
}

.carousel-label {
    font-size: 18px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    white-space: nowrap;
    align-self: flex-end;
    margin-bottom: 0;
}

.carousel-number {
    font-size: 160px;
    font-weight: bold;
    color: #ffffff;
    line-height: 0.8;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    position: relative;
    transform: none;
    white-space: nowrap;
}

.carousel-item-small .carousel-number {
    font-size: 120px;
    transform: none;
}

/* 轮播图箭头 */
.carousel-arrow {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 160px;
    font-weight: bold;
    width: auto;
    height: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    padding: 0;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.carousel-arrow:hover {
    color: #64a5ff;
    transform: scale(1.2);
}

.carousel-arrow-left {
    margin-right: 0;
}

.carousel-arrow-right {
    margin-left: 0;
}

/* 其他页面内容 */
.page-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    padding: 60px 40px;
    position: relative;
    z-index: 2;
}

/* 灾情中心页面特定样式 */
.disaster-center-page .page-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    z-index: 5;
}

/* 物资采购与供应链页面背景容器 */
.supply-background-container {
    position: relative;
    top: 0px;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 1;
    overflow: visible;
    padding: 0 0px;
}

/* 背景图片样式 */
.supply-background-image {
    width: 100%;
    max-width: 1920px;
    height: auto;
    object-fit: contain;
    opacity: 0.95;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.3));
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: block;
}

/* 物资采购与供应链页面特定样式 */
.supply-chain-page .page-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    z-index: 5;
}

/* 左侧容器 - 包含物资商城和供应商展示 */
.supply-left-container {
    position: absolute;
    top: 200px;
    left: 40px;
    z-index: 6;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 左侧上部分 - 物资商城 */
.supply-left-top {
    position: relative;
    z-index: 6;
    max-width: 600px;
}

/* 左侧下部分 - 供应商展示 */
.supply-left-bottom {
    position: relative;
    z-index: 6;
    max-width: 600px;
}

/* 右侧 - 市场与订单 */
.supply-right {
    position: absolute;
    top: 200px;
    right: 40px;
    z-index: 6;
    max-width: 600px;
}

.supply-image {
    width: 400px;
    height: auto;
    display: block;
}

/* 顶部图片 */
.top-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3;
}

.top-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 底部图片 */
.bottom-image {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
}

.bottom-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 左上角实时时间与按钮 */
.time-display {
    position: absolute;
    top: 120px;
    left: 40px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

#current-time {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 5px;
}

.time-buttons {
    display: flex;
    gap: 10px;
}

.icon-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
}

.icon-button img {
    width: 50px;
    height: 50px;
    display: block;
}

.icon-button:hover {
    transform: scale(1.1);
}

.icon-button:active {
    transform: scale(0.95);
}

/* 弹出窗口 */
.popup-window {
    position: absolute;
    top: 200px;
    left: 40px;
    z-index: 10;
    display: none;
}

.popup-window.show {
    display: block;
}

.popup-window img {
    width: 300px;
    height: auto;
    display: block;
}

/* 中部标题 */
.main-title-center,
.center-title {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    text-align: center;
}

/* 灾情中心特定标题样式 */
.chinese-title {
    font-size: 48px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(100, 165, 255, 0.8);
    margin-bottom: 10px;
}

.english-title {
    font-size: 48px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* 顶部装饰 */
.top-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 1920px;
    z-index: 3;
}

.bottom-decoration {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    max-width: 1920px;
    z-index: 10;
}

.decoration-image {
    width: 100%;
    max-width: 1920px;
    height: auto;
    display: block;
}

/* 左上角区域 */
.top-left-section {
    position: absolute;
    top: 10px;
    left: 40px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.real-time-clock {
    background-image: url('../image/1/3 时间.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    padding: 15px 20px;
    text-align: center;
    width: 280px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

/* 物资采购与供应链页面使用static文件夹的时间背景 */
.supply-chain-page .real-time-clock {
    background-image: url('../image/static/时间.png');
}

.time-text {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

.date-text {
    font-size: 16px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin-top: 5px;
}

.clock-buttons {
    display: flex;
    gap: 10px;
}

.clock-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
}

.clock-btn:hover {
    transform: scale(1.1);
}

.clock-btn:active {
    transform: scale(0.95);
}

.btn-image {
    width: 50px;
    height: 50px;
    display: block;
}

/* 右上角统计区域 */
.top-right-section {
    position: absolute;
    top: 120px;
    right: 40px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 缓慢显示图片的容器 */
.slow-appear-image-container {
    position: absolute;
    top: 200px;
    right: 0;
    /* 初始位置就在右侧原地 */
    z-index: 6;
    transition: opacity 1s ease-in-out;
    opacity: 0;
}

.slow-appear-image-container.show {
    opacity: 1;
    /* 只做透明度变化，实现原地缓慢显示 */
}

/* 缓慢显示的图片样式 */
.slow-appear-image {
    width: 800px;
    height: auto;
    display: block;
}

.stats-main img {
    width: 400px;
    margin-bottom: 40px;
    height: auto;
    display: block;
}

.stats-image {
    width: 400px;
    height: auto;
    display: block;
}

.stats-sub {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.stats-sub img {
    width: 400px;
    height: auto;
    margin-bottom: 40px;
    display: block;
}

/* 左下角图片 */
.bottom-left-section {
    position: absolute;
    bottom: 260px;
    left: 40px;
    z-index: 5;
}


.bottom-left-image {
    width: 500px;
    height: auto;
    display: block;
}

/* 底部导航 */
.bottom-nav {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    display: flex;
    gap: 30px;
}

.nav-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: transform 0.3s ease;
}

.nav-btn:hover {
    transform: scale(1.05);
}

.nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, #64a5ff, #ff4d4d);
}

.nav-btn-image {
    width: 100px;
    height: auto;
    display: block;
}

.main-title-center h1 {
    font-size: 48px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(100, 165, 255, 0.8);
    margin-bottom: 10px;
}

.main-title-center h2 {
    font-size: 24px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* 右上方统计图片 */
.accident-stats {
    position: absolute;
    top: 120px;
    right: 40px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.accident-stats img:first-child {
    width: 400px;
    height: auto;
    display: block;
}

.stats-images {
    display: flex;
    gap: 10px;
}

.stats-images img {
    width: 195px;
    height: auto;
    display: block;
}

/* 左下方图片 */
.left-bottom-image {
    position: absolute;
    bottom: 120px;
    left: 40px;
    z-index: 5;
}

.left-bottom-image img {
    width: 400px;
    height: auto;
    display: block;
}

/* 底部按钮 */
.bottom-buttons {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    display: flex;
    gap: 20px;
}

.nav-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.nav-button:hover {
    transform: scale(1.05);
    opacity: 1;
}

.nav-button.active {
    opacity: 1;
    transform: scale(1.1);
}

.nav-button img {
    width: 200px;
    height: auto;
    display: block;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    /* background: rgba(20, 20, 30, 0); */
    border-radius: 10px;
    border: 1px solid rgba(100, 165, 255, 0.3);
}

.page-container h1 {
    font-size: 36px;
    color: #64a5ff;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(100, 165, 255, 0.5);
}

.page-container p {
    font-size: 18px;
    color: #cccccc;
    line-height: 1.8;
}

.dev-text {
    font-size: 72px;
    color: #64a5ff;
    text-align: center;
    text-shadow: 0 0 20px rgba(100, 165, 255, 0.8);
    padding: 100px 0;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .home-container {
        flex-direction: column;
        padding: 40px 20px;
    }

    .left-section {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        padding-left: 40px;
        padding-right: 40px;
        margin-bottom: 40px;
    }

    .right-section {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        padding-left: 40px;
        padding-right: 40px;
        padding-top: 0;
        margin-top: 0;
    }

    .title-chinese {
        font-size: 48px;
    }

    .title-english {
        font-size: 22px;
    }

    .carousel-container {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    .carousel-item-large {
        width: 400px;
    }

    .carousel-item-small {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .nav-item {
        font-size: 12px;
    }

    .home-container {
        padding: 20px 15px;
    }

    .left-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .right-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .title-chinese {
        font-size: 36px;
    }

    .title-english {
        font-size: 18px;
    }

    .about-title {
        font-size: 24px;
    }

    .about-text {
        font-size: 14px;
    }

    .carousel-container {
        flex-direction: column;
        gap: 20px;
    }

    .carousel-item-large {
        width: 100%;
        max-width: 350px;
    }

    .carousel-item-small {
        width: 100%;
        max-width: 250px;
    }

    .carousel-arrow {
        display: none;
    }
}