/* ========== reset & 基础变量 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'PingFang SC', 'Helvetica Neue', 'Segoe UI', Roboto, 'Noto Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', sans-serif;
    background: #fefaf5;
    color: #2c2a29;
    line-height: 1.5;
}

/* ========== 页面主容器 ========== */
.page-content {
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
    padding: 28px 90px 80px 24px;
    background: #fefaf5;
    min-height: 100vh;
    box-sizing: border-box;
}

@media (max-width: 1080px) {
    .page-content {
        max-width: 100%;
        padding: 28px 80px 80px 20px;
    }
}

/* ========== 页面头部 ========== */
.page-header {
    text-align: center;
    padding-top: 28px;
    margin-bottom: 32px;
}
.page-header h1 {
    font-size: 50px;
    font-weight: 700;
    background: linear-gradient(135deg, #b87333, #a5521f);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}
.page-header .sub {
    font-size: 30px;
    color: #9b7b5c;
    border-top: 1px solid #e9dfd3;
    display: inline-block;
    padding-top: 10px;
}

/* ========== 卡片样式 ========== */
.section-card {
    background: white;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
    border: 1px solid #f0e5da;
    margin-bottom: 28px;
}
.card-header {
    background: linear-gradient(135deg, #fef1e6, #fff7f0);
    padding: 20px 24px;
    border-bottom: 2px solid #f0e5da;
}
.card-header h2 {
    font-size: 40px;
    font-weight: 600;
    color: #b87333;
    display: flex;
    align-items: center;
    gap: 12px;
}
.card-header h2 .emoji {
    font-size: 48px;
}
.card-body {
    padding: 24px;
}

/* ========== 悬浮菜单 ========== */
.global-float-nav {
    position: fixed;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.nav-btn {
    width: 56px;
    height: 56px;
    border-radius: 32px;
    background: rgba(30, 25, 22, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    flex-direction: column;
    transition: transform 0.2s, background 0.2s;
}
.nav-btn span {
    font-size: 13px;
}
.nav-btn:hover {
    transform: scale(1.05);
    background: rgba(184,115,51,0.9);
}
.nav-btn.active {
    background: #b87333;
    pointer-events: none;
}
@media (max-width: 560px) {
    .nav-btn { width: 48px; height: 48px; }
    .nav-btn span { font-size: 11px; }
    .page-content { padding-right: 76px; }
}

/* ========== 轮播图通用样式 ========== */
.swiper-container,
.main-swiper,
.company-swiper {
    position: relative;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #f0e9e0;
    aspect-ratio: 16 / 9;
    touch-action: pan-y pinch-zoom;
}
.swiper-wrapper,
.main-swiper-wrapper,
.company-swiper-wrapper {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
    cursor: grab;
}
.swiper-wrapper:active,
.main-swiper-wrapper:active,
.company-swiper-wrapper:active {
    cursor: grabbing;
}
.swiper-slide,
.main-swiper-slide,
.company-swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
}
.swiper-slide img,
.main-swiper-slide img,
.company-swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.swiper-btn,
.main-swiper-btn,
.company-swiper-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 10;
    font-size: 32px;
}
.swiper-prev, .main-swiper-prev, .company-swiper-prev { left: 12px; }
.swiper-next, .main-swiper-next, .company-swiper-next { right: 12px; }
.swiper-dots,
.main-swiper-dots,
.company-swiper-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}
.swiper-dot,
.main-swiper-dot,
.company-swiper-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}
.swiper-dot.active,
.main-swiper-dot.active,
.company-swiper-dot.active {
    background: #b87333;
}

/* ========== 视频按钮 ========== */
.video-float-btn,
.video-icon-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: 0.2s;
}
.video-float-btn svg,
.video-icon-btn svg {
    width: 32px;
    height: 32px;
    fill: white;
}
.video-float-btn:active,
.video-icon-btn:active {
    transform: scale(0.95);
}

/* ========== 模态框 ========== */
.modal-overlay,
.image-modal,
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);           
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.2s;
}
.modal-overlay.active,
.image-modal.active,
.video-modal.active {
    visibility: visible;
    opacity: 1;
}
.modal-content {
    width: 90%;
    max-width: 1080px;
    background: #fffef7;
    border-radius: 32px;
    overflow: hidden;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0e5da;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    color: #b87333;
    font-size: 36px;
}
.close-modal {
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    font-size: 36px;
    cursor: pointer;
    color: #9b7b5c;
}
.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}
.close-image {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    cursor: pointer;
}

/* ========== 子轮播图（弹窗内） ========== */
.sub-swiper {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 16 / 9;
    touch-action: pan-y pinch-zoom;
}
.sub-swiper-wrapper {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
    cursor: grab;
}
.sub-swiper-wrapper:active { cursor: grabbing; }
.sub-swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
}
.sub-swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.sub-swiper-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    font-size: 28px;
}
.sub-swiper-prev { left: 12px; }
.sub-swiper-next { right: 12px; }
.sub-swiper-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.sub-swiper-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
}
.sub-swiper-dot.active { background: #b87333; }
.image-caption {
    background: #b87333;
    color: white;
    padding: 16px 20px;
    text-align: center;
    font-weight: 500;
    border-radius: 20px;
    margin-top: 16px;
    font-size: 28px;
}
.video-link-btn {
    display: block;
    background: linear-gradient(135deg, #fef1e6, #fff7f0);
    border: 1px solid #f0e5da;
    color: #b87333;
    padding: 14px 24px;
    border-radius: 48px;
    font-size: 26px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    margin-top: 20px;
    transition: 0.2s;
}
.video-link-btn:active {
    background: #f0e5da;
    transform: scale(0.98);
}

/* ========== 页脚 ========== */
.footer-note {
    margin-top: 40px;
    text-align: center;
    font-size: 24px;
    color: #bfaa93;
    border-top: 0.5px solid #e9dfd3;
    padding-top: 24px;
}
.partners {
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
    color: #bfaa93;
    padding-top: 24px;
    padding-bottom: 60px;
}
.partners p {
    margin: 0;
    line-height: 2;
}

/* ========== 响应式调整 ========== */
@media (max-width: 560px) {
    .page-header h1 { font-size: 36px; }
    .page-header .sub { font-size: 20px; }
    .card-header h2 { font-size: 28px; }
    .card-header h2 .emoji { font-size: 36px; }
    .card-body { padding: 16px; }
    .section-card { margin-bottom: 20px; }
    .modal-header h3 { font-size: 28px; }
    .image-caption { font-size: 22px; }
    .video-link-btn { font-size: 18px; padding: 10px 16px; }
    .footer-note { font-size: 18px; }
    .partners { font-size: 16px; }
}