/* ================= 重置样式 ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    overflow-x: hidden;
}

/* ================= 头部导航 ================= */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 导航菜单 */
.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ================= 主体 ================= */
main {
    flex: 1;
    padding: 20px;
    width: 100%;
}

/* 视频 */
.video-section {
    margin-bottom: 30px;
    text-align: center;
}

.video-player {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 图片放大 */
.zoomable-image {
    cursor: zoom-in;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    width: 100%;
    display: block;
}

.zoomable-image.zoomed {
    transform: scale(1.8);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    cursor: zoom-out;
    position: relative;
    z-index: 999;
}

/* 左图右文 */
.content-section {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    border-radius: 12px;
}

.content-wrapper {
    display: flex;
    gap: 20px;
    /* 关键修改：改为顶部对齐 */
    align-items: flex-start;
}

.content-image {
    flex: 1;
    min-width: 200px;
    overflow: visible;
}

.content-text {
    flex: 1;
    /* 恢复正常横向排版 */
    writing-mode: initial;
    text-orientation: initial;
    /* 可选：增加一点上边距，避免文字贴边 */
    padding-top: 10px;
}

.content-text h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

.content-text p {
    font-size: 20px;
    color: #555;
    /* 保持首行缩进 2 个汉字 */
    text-indent: 2em;
    margin-bottom: 10px;
    line-height: 1.8;
}

/* 按钮 */
.buttons-section {
    margin-bottom: 30px;
}

.buttons-section h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
}

.button-group {
    display: flex;
    justify-content: space-evenly;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    font-size: 14px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.5);
}

/* ================= 底部 全新样式 ================= */
footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 35px 20px;
    text-align: center;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

/* 联系信息 横向排列 */
.footer-contact {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.contact-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.contact-label {
    font-size: 14px;
    color: #bdc3c7;
    margin-bottom: 4px;
}

.contact-text {
    font-size: 15px;
    font-weight: 500;
}

/* 底部版权 */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.footer-date,
.footer-credit {
    font-size: 13px;
    color: #bdc3c7;
    margin: 4px 0;
}

.footer-author {
    font-size: 16px;
    margin: 6px 0;
}

/* 弹窗 */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}

.popup-content {
    width: 100%;
    max-width: 900px;
    height: 90vh;
    position: relative;
    background: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
}

.popup-iframe {
    width: 100%;
    flex: 1;
    border: none;
    border-radius: 0 0 12px 12px;
}

/* 轮播 */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.slider-wrapper {
    display: flex;
    width: 100%;
    transition: transform 0.8s ease;
}

.slider-item {
    flex: 0 0 100%;
    width: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

/* ================= 响应式 ================= */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        flex-direction: column;
        align-items: center;
        padding: 15px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .button-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 90%;
        margin-bottom: 10px;
    }

    .popup-content {
        height: 95vh;
        width: 95vw;
    }

    /* 手机端底部竖排 */
    .footer-contact {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
}