/* --- 核心动画修复 --- */
.ani-elm { opacity: 0; }
.animate__animated { -webkit-animation-fill-mode: both; animation-fill-mode: both; }

/* --- 变量配置 --- */
:root {
    --tech-blue: #0066cc;
    --tech-dark: #003366;
    --alert-orange: #ff8800;
    --bg-color: #f2f5f9;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-sub: #666666;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body, html {
    width: 100%;
    height: 100%;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #333;
    overflow: hidden;
}

.swiper {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    background-color: var(--bg-color);
    position: relative;
}

@media screen and (min-width: 541px) {
    .swiper { max-width: 540px; box-shadow: 0 0 50px rgba(0,0,0,0.5); }
}

@media screen and (max-width: 540px) {
    .swiper { max-width: 100%; width: 100%; }
    body { background-color: var(--bg-color); }
}

.swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}

/* 分页器 */
.swiper-pagination-bullet { width: 6px; height: 6px; background: #ccc; opacity: 0.6; margin: 5px 0 !important; }
.swiper-pagination-bullet-active { background: var(--tech-blue); height: 16px; border-radius: 4px; opacity: 1; transition: all 0.3s; }

/* --- 通用组件 --- */
h1 { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; letter-spacing: 1px; }
h2 { font-size: 1.4rem; color: var(--tech-dark); margin-bottom: 1.2rem; position: relative; display: inline-block; font-weight: bold; }
h2::after { content: ''; display: block; width: 40px; height: 4px; background: var(--tech-blue); margin: 8px auto 0; border-radius: 2px; }

.card-box {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(100, 100, 100, 0.05);
    padding: 18px;
    width: 100%;
    margin-bottom: 15px;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.8);
}
.card-box-tall {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(100, 100, 100, 0.05);
    padding: 20px 15px;
    width: 100%;
    margin-bottom: 15px;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.8);
    display: flex; flex-direction: column; justify-content: center;
    flex: 1;
    max-height: 40%;
}

p { font-size: 0.9rem; color: var(--text-sub); line-height: 1.5; margin-bottom: 0.5rem; }

/* 背景图样式 */
.page-cover { background-color: #000 !important; }
.bg-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000;
    background-position: center; background-size: cover; background-repeat: no-repeat;
    opacity: 0.6; z-index: 0;
}
.cover-content { z-index: 2; position: relative; width: 100%; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

/* --- ⚠️ 第二页 终极修复 (四角定位法) --- */
.about-header-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; 
    height: 25%; /* 顶部图片占 25% */
    background-color: #eee;
    background-position: center; background-size: cover; background-repeat: no-repeat;
    border-radius: 0 0 30px 30px;
    z-index: 0;
}

.about-container { 
    /* 1. 绝对定位 */
    position: absolute;
    
    /* 2. 左右卡死：解决跑偏问题 */
    left: 4%;
    right: 4%;
    width: auto; /* 宽度自动填满左右 */
    
    /* 3. 上下卡死：解决显示不全问题 */
    top: 22%;  /* 从图片下方一点开始 */
    bottom: 3%; /* 延伸到距离底部 3% 的地方 */
    height: auto; /* 高度自动填满上下 */
    
    margin: 0; /* 清除所有干扰 */
    z-index: 2;
    
    /* 4. 内部滚动 */
    display: block;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 25px 20px;
    padding-bottom: 40px; /* 内部再留一点余地 */
} 

/* 首页箭头 */
.swipe-hint { position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.8); z-index: 10; display: flex; flex-direction: column; align-items: center; }
.swipe-arrow { width: 20px; height: 20px; border-top: 2px solid #fff; border-left: 2px solid #fff; transform: rotate(45deg); margin-bottom: -5px; animation: arrowMove 1.5s infinite; opacity: 0; }
.swipe-arrow:nth-child(2) { animation-delay: 0.2s; }
.swipe-arrow:nth-child(3) { animation-delay: 0.4s; }
@keyframes arrowMove { 0% { opacity: 0; transform: rotate(45deg) translate(0, 0); } 50% { opacity: 1; } 100% { opacity: 0; transform: rotate(45deg) translate(-10px, -10px); } }

/* 详情模块 */
.highlight-list { display: flex; flex-direction: column; gap: 8px; margin: 15px 0; }
.hl-box {
    background: #f8f9fa; border: 1px solid #eee; padding: 12px; border-radius: 8px;
    display: flex; align-items: center; text-align: left;
    flex-shrink: 0;
}
.hl-icon {
    font-size: 1.4rem; color: var(--tech-blue); margin-right: 12px; width: 35px; text-align: center;
    flex-shrink: 0;
}
.hl-content h4 { margin: 0 0 3px 0; font-size: 0.9rem; color: #333; font-weight: bold; }
.hl-content p { margin: 0; font-size: 0.75rem; color: #666; line-height: 1.3; }

.address-notice { 
    background: #fff8f0; border: 1px solid #ffe0b2; border-radius: 10px; 
    padding: 15px; font-size: 0.8rem; color: #666; 
    position: relative; overflow: visible; 
    margin-top: 15px;
    flex-shrink: 0; 
    width: 100%;
}
.address-notice::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--alert-orange); border-radius: 10px 0 0 10px; }

.org-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; height: 70%; }
.org-item { background: #fff; padding: 10px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.04); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; height: 100%; }
.org-icon-circle { width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 8px; }
.style-manage { background: #fff3e0; color: var(--alert-orange); }
.style-tech   { background: #e3f2fd; color: var(--tech-blue); }
.style-prod   { background: #e8f5e9; color: #2e7d32; }
.style-back   { background: #f3e5f5; color: #8e24aa; }
.org-title { font-size: 0.9rem; font-weight: bold; color: #333; margin-bottom: 5px; }
.org-list-text { font-size: 0.75rem; color: #666; line-height: 1.4; }

.welfare-grid { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; height: 75%; }
.welfare-item { background: #fff; padding: 10px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 3px 8px rgba(0,0,0,0.03); }
.welfare-icon { font-size: 1.6rem; color: var(--tech-blue); margin-bottom: 5px; width: auto; }
.welfare-text h4 { font-size: 1rem; color: #333; margin-bottom: 4px; font-weight: bold; }
.welfare-text p { font-size: 0.75rem; color: #777; margin: 0; line-height: 1.3; }

.attend-split { display: flex; gap: 10px; margin-bottom: 10px; width: 100%; }
.attend-city { flex: 1; background: #fff; padding: 10px; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.03); border-top: 4px solid var(--tech-blue); }
.punch-steps { display: flex; justify-content: center; gap: 10px; margin-top: 10px; width: 100%; }
.punch-img { width: 48%; height: auto; max-height: 220px; border-radius: 8px; background-color: #f9f9f9; border: 1px solid #eee; object-fit: contain; }

.map-btn { width: 100%; padding: 12px; margin-top: 10px; border: 1px solid #e0e0e0; background: #fff; color: var(--tech-blue); border-radius: 8px; cursor: pointer; font-size: 0.9rem; font-weight: bold; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }
.contact-box { background: #fff; padding: 25px 20px; border-radius: 15px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,0.08); margin-top: 20px; }