/* ===========================================
   About.php 专用样式 - 现代化响应式版本
   使用 clamp() 和 rem/vw/vh 单位实现响应式设计
   =========================================== */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Segoe UI", sans-serif;
    overflow: hidden; /* 禁止默认滚动，交给 Swiper 控制 */
}

body {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

body::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Swiper 样式 */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-color: #2F2F2F;
    display: flex;
    flex-direction: column;
    justify-content: start; /* 与index和joinus保持一致 */
    align-items: center;
    height: 100vh;
    overflow-y: auto; /* 允许每页内容内部滚动 */
    padding-top: 0; /* 给 navbar 留空间 */
    overflow: hidden;
}

/* 通用样式 */
.hidden {
    display: none;
}

.visible {
    opacity: 1;
    visibility: visible;
}

/* ===========================================
   About Us 部分样式
   =========================================== */
.aboutus-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.aboutus-banner {
    position: relative;
    padding: clamp(60px, 4.17vw, 80px) 0 0 80px;
    flex: 0 0 50%;   
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
  
.aboutus-content {
    margin-top: 76px;
    width: 402px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center; /* 水平居中 */
    justify-content: center;
    text-align: center;
    transform: translateY(-60px); /* 👈 内容整体往上移 60px 可调整 */
}

.aboutus-content h1 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: clamp(3.1250rem, 4.0179vw + 0.5536rem, 5.3750rem); /* 50px - 86px */
    font-weight: bold;
    line-height: 1;
    letter-spacing: 1.4%;
    margin: -100px 100px 0 0;
    padding: 0;
    white-space: nowrap;
    text-shadow:
        10px 10px 12px rgba(0, 0, 0, 0.3),
        4px 4px 20px rgba(0, 0, 0, 0.3);
}

.aboutus-content p {
    font-size: clamp(1rem, 1.04vw, 1.25rem); /* 16px - 32px */
    font-weight: normal;
    line-height: 1.2;
    letter-spacing: 0.5%;
    margin: 20px 120px 0 20px; /* 确保p和h1的间距是80px */
    padding: 0;
    white-space: nowrap;
    text-shadow:
        10px 10px 12px rgba(0, 0, 0, 0.3),
        4px 4px 20px rgba(0, 0, 0, 0.3);
}

.aboutus-intro {
    background: url('../../images/images/背景3.jpg') no-repeat center center/cover;
    padding: 0px 20px 90px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 40%;
}

.intro-content {
    width: 502px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 0 0 50px;
}

.intro-content h1 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: clamp(3.1250rem, 4.0179vw + 0.5536rem, 5.3750rem); /* 50px - 86px */
    font-weight: bold;
    line-height: 140%;
    letter-spacing: 0.5%;
    margin: 0 58px 0 0;
    padding: 0;
    color: #FF5C00;
}

.intro-content p {
    font-size: clamp(0.7500rem, 0.8929vw + 0.1786rem, 1.2500rem);
    font-weight: normal;
    line-height: 170%;
    letter-spacing: 1px;
    margin: 0 58px 0 0;
    padding: 0;
    color: #888888;
    white-space: nowrap;
}

/* ===========================================
   Vision 部分样式
   =========================================== */
.vision {
    min-height: 100vh;
    background: url('../../images/images/背景4.webp') no-repeat center center/cover;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 80px;
}

.vision-content {
    width: 100%;    
    text-align: center;
}

.vision-content h1 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: clamp(1.25rem, 3.6458vw, 4.375rem);
    font-weight: bold;
    line-height: 140%;
    letter-spacing: 0.5%;
    margin-bottom: 20px;
    margin-top: 20px;
}

.vision-content p {
    font-size: clamp(0.625rem, 1.042vw, 1.25rem);
    font-weight: normal;
    line-height: 150%;
    letter-spacing: 2%;
    color: white;
    margin-top: 0px;
    margin-bottom: 40px;
}

.vision-cards {
    display: flex;
    justify-content: center;   /* 或 flex-start */
    gap: clamp(20px, 1.56vw, 30px);                 /* 固定间距 */
    padding: 0 40px;
    flex-wrap: nowrap;         /* ✅ 不允许换行 */
}

.vision-card {
    width: clamp(27.0000rem, 37.5000vw + 3.0000rem, 48.0000rem);
    height: clamp(16.0000rem, 19.6429vw + 3.4286rem, 27.0000rem);
    background-color: #FFF3E6;
    border-radius: 20px;
    padding: 0 clamp(0px, 1.2vw, 32px);
    text-align: left;
    color: #888888;
    box-shadow: 
    0px 4px 6px rgba(0, 0, 0, 0.1),
    0px 10px 20px rgba(0, 0, 0, 0.15);
}

.vision-label {
    display: inline-block;
    background-color: white;
    color: #FF5C00;
    font-size: clamp(1rem, 1.67vw, 2rem);
    font-weight: bold;
    font-family: 'Source Sans Pro', sans-serif;
    padding: 8px 18px;
    border-radius: 32px;
    margin: clamp(10px, 1.7vw, 32px) 10px 10px;
}

.vision-card h2 {
    font-size: clamp(1rem, 1.67vw, 2rem);
    font-weight: bold;
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 140%;
    letter-spacing: 2%;
    margin: clamp(10px, 1vw, 20px) 10px;
    color: black;
    width: clamp(400px, 36vw, 700px);
}

.vision-card p {
    font-size: clamp(0.7500rem, 0.6696vw + 0.3214rem, 1.1250rem);
    font-weight: normal;
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 150%;
    letter-spacing: 2%;
    margin: 20px 10px;
    color: #888888;
}

/* Vision卡片悬停缩放效果 */
.vision-card:hover {
    transform: scale(clamp(0.75, 2vw + 0.3, 1.15)); /* 悬停时放大 */
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.vision-label:hover {
    transform: scale(clamp(0.9, 2.2vw + 0.2, 1.3)); /* 悬停时放大 */
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===========================================
   Values 部分样式
   =========================================== */
.values-section {
    padding-top: 80px; /* 预留navbar高度 */
    background: url('../../images/images/背景3.jpg') no-repeat center center/cover;
    margin: 0px auto 0;
    box-sizing: border-box;
    min-height: 100vh;
    width: 100%;
    padding-bottom: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    color: #000;
    gap: clamp(0px, 2.8vw, 53px);
}

.values-top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: clamp(350px, 44vw, 850px);
    padding: 0 clamp(20px, 4vw, 48px);
    box-sizing: border-box;
}

.values-title {
    font-size: clamp(20px, 3.75vw, 70px);
    color: black;
    font-weight: bold;
    margin-top: 24px;
    margin-bottom: 16px;
}

.values-description {
    font-size: clamp(10px, 1.1vw, 20px);
    color: #888888;
    margin-top: 0px;
    margin-bottom: clamp(0px, 1.2vw, 24px);
    line-height: 150%;
    word-break: break-word;
    max-width: 100%;
}

.values-bottom {
    display: flex;
    flex-wrap: nowrap;     
    gap: 32px;  
    padding: 0 20px;
    justify-content: flex-start;
    scroll-behavior: smooth;
}

.values-card {
    width: clamp(13.1250rem, 15.6250vw + 3.1250rem, 21.8750rem); 
    height: clamp(13.7500rem, 14.5089vw + 4.4643rem, 21.8750rem);
    background-color: #FFF1E5;
    padding: clamp(15px, 2vw, 24px) clamp(10px, 1.5vw, 16px);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.values-icon {
    width: clamp(66px, 5.2vw, 100px);
    height: clamp(66px, 5.2vw, 100px);
    margin-top: 40px;
}

.values-card h3 {
    font-size: clamp(18px, 2vw, 38px);
    font-weight: bold;
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 140%;
    margin-top: clamp(14px, 1.04vw, 20px);
    margin-bottom: 0;
}

.values-card p {
    width: clamp(200px, 17vw, 320px);
    font-size: clamp(12px, 1.1vw, 20px);
    font-weight: normal;
    color: #888888;
    line-height: 140%;
    padding: 0 clamp(10px, 2vw, 28px);
    margin-top: clamp(8px, 0.73vw, 14px);
    margin-bottom: clamp(20px, 5vw, 40px);
}

/* ===========================================
   Timeline 部分样式
   =========================================== */
.timeline-section {
    background: url('../../images/images/背景4.webp') no-repeat center center/cover;
    padding: 80px 20px;
    position: relative;
    height: 130vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.timeline-section h1 {
    text-align: center;
    font-size: clamp(20px, 2.6vw, 50px);
    color: white; /* 直接使用白色文字 */
    margin-bottom: clamp(10px, 1.6vw, 30px);
    margin-top: clamp(10px, 3.2vw, 60px);
    position: relative;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4); /* 阴影加在文字上 */
}

/* 时间线导航 */
.timeline-nav {
    position: relative;
    margin: 0 auto clamp(10px, 2.1vw, 40px) auto;
    width: 100%;
    max-width: 800px;
    height: clamp(10px, 6.25vw, 120px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 可滚动的时间线容器 */
.timeline-scroll-container {
    position: relative;
    width: clamp(50%, 65vw, 100%);
    height: clamp(10px, 4.2vw, 80px);
    overflow: hidden;
    margin: 0 auto;
    mask: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* 时间线轨道 */
.timeline-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: clamp(2px, 0.21vw, 4px);
    background: white;
    transform: translateY(-50%);
    border-radius: 2px;
    z-index: 1;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 时间线项目容器 */
.timeline-items-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

/* 时间线项目 */
.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 年份圆圈 */
.timeline-bullet {
    width: clamp(25px, 2.6vw, 50px);
    height: clamp(25px, 2.6vw, 50px);
    border-radius: 50%;
    background: rgb(204, 198, 198);
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: clamp(8px, 0.8vw, 16px);
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 3;
}

/* 活动状态的圆圈 */
.timeline-item.active .timeline-bullet {
    background: rgb(255, 255, 255);
    color: #ff5c00;
    transform: scale(1.2);
    box-shadow: 0 6px 12px rgba(255, 92, 0, 0.3);
}

/* 悬停效果 */
.timeline-item:hover .timeline-bullet {
    transform: scale(1.1);
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2);
}

.timeline-item.active:hover .timeline-bullet {
    transform: scale(1.25);
}

.timeline-item.active .timeline-label {
    color: #ff5c00;
    opacity: 1;
    transform: translateY(0);
    font-weight: 700;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(20px, 2.1vw, 40px);
    height: clamp(20px, 2.1vw, 40px);
    background: rgba(161, 159, 159, 0.788);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: clamp(20px, 1.7vw, 32px);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    border: clamp(1px, 0.15vw, 2px) solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    user-select: none;
    font-family: Arial, sans-serif;
    font-size: 0;
    color: transparent;
}

.nav-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
}

.nav-arrow.prev::before {
    border-width: clamp(3px, 0.26vw, 5px) clamp(5px, 0.36vw, 7px) clamp(3px, 0.26vw, 5px) 0;
    border-color: transparent #333 transparent transparent;
}

.nav-arrow.next::before {
    border-width: clamp(3px, 0.26vw, 5px) 0 clamp(3px, 0.26vw, 5px) clamp(5px, 0.36vw, 7px);
    border-color: transparent transparent transparent #333;
}

.nav-arrow:hover {
    background: white;
    color: #2c3e50;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.nav-arrow:hover::before {
    border-color: transparent #2c3e50 transparent transparent;
}

.nav-arrow.next:hover::before {
    border-color: transparent transparent transparent #2c3e50;
}

.nav-arrow.prev {
    left: calc((100% - clamp(50%, 65vw, 100%)) / 2 - 30px);
}

.nav-arrow.next {
    right: calc((100% - clamp(50%, 65vw, 100%)) / 2 - 30px);
}

.nav-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.timeline-content-container {
    position: relative;
    width: 100%;
    max-width: 1600px;
    height: 1000px;
    overflow: hidden;
    perspective: 1000px;
}

.timeline-cards-wrapper {
    position: relative;
    width: 100%;
    height: clamp(530px, 33vw, 630px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-content-item {
    position: absolute;
    width: clamp(300px, 45vw, 850px);
    height: clamp(160px, 19vw, 350px);
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    margin-top: -250px;
}

.timeline-content-item.active {
    transform: translateX(0) scale(1) rotateY(0deg);
    z-index: 2;
    opacity: 1;
}

.timeline-content-item.prev {
    transform: translateX(-240px) scale(0.75);
    z-index: 1;
    opacity: 0.7;
}

.timeline-content-item.next {
    transform: translateX(240px) scale(0.75);
    z-index: 1;
    opacity: 0.7;
}

.timeline-content-item.hidden {
    transform: translateX(0) scale(0.7);
    z-index: 0;
    opacity: 0;
}

/* 堆叠隐藏的卡片 - 隐藏在中间卡片后面 */
.timeline-content-item.stack-hidden {
    transform: translateX(0) scale(0.95) translateZ(-50px);
    z-index: 1;
    opacity: 0.3;
    pointer-events: none; /* 禁用点击事件，避免误触 */
}

/* 为堆叠效果添加轻微的随机偏移 */
.timeline-content-item.stack-hidden:nth-child(4n) {
    transform: translateX(-5px) scale(0.94) translateZ(-60px) rotate(-0.5deg);
}

.timeline-content-item.stack-hidden:nth-child(4n+1) {
    transform: translateX(5px) scale(0.93) translateZ(-70px) rotate(0.5deg);
}

.timeline-content-item.stack-hidden:nth-child(4n+2) {
    transform: translateX(-3px) scale(0.92) translateZ(-80px) rotate(-0.3deg);
}

.timeline-content-item.stack-hidden:nth-child(4n+3) {
    transform: translateX(3px) scale(0.91) translateZ(-90px) rotate(0.3deg);
}

.timeline-content {
    display: flex;
    gap: clamp(10px, 2.1vw, 40px);
    align-items: center;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1), 
        rgba(255, 255, 255, 1));
    padding: clamp(20px, 2.1vw, 40px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 92, 0, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.timeline-image {
    flex: 1;
    max-width: 350px;
    position: relative;
    z-index: 1;
}

.timeline-image img {
    width: 100%;
    height: clamp(140px, 14.5vw, 280px);
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.timeline-text {
    flex: 1;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.timeline-text h3 {
    font-size: clamp(10px, 1.2vw, 26px);
    background: #ff5c00;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    position: relative;
    font-weight: 700;
    line-height: 1.2;
}

.timeline-text h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FF5C00, transparent);
    border-radius: 2px;
}

.timeline-text p {
    font-size: clamp(8px, 0.85vw, 16px);
    color: #888888;
    line-height: 1.6;
    margin-bottom: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.timeline-text .year-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: clamp(6px, 0.55vw, 10px) clamp(10px, 0.95vw, 18px);
    border-radius: 25px;
    font-weight: bolder;
    font-size: clamp(4px, 0.95vw, 18px);
    margin-bottom: 0px;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
    letter-spacing: 1px;
}

/* 侧边卡片点击效果 */
.timeline-content-item.prev .timeline-content,
.timeline-content-item.next .timeline-content {
    cursor: pointer;
}


/* ===========================================
   页面指示器样式
   =========================================== */
.page-indicator {
    position: fixed;
    left: clamp(1.875rem, 2.5vw, 2rem); /* 响应式位置 */
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: clamp(0.625rem, 1vw, 0.75rem); /* 响应式间距 */
    padding: clamp(0.9rem, 1.2vw, 1rem) clamp(0.5rem, 0.8vw, 0.6rem); /* 响应式内边距 */
    background: rgba(50, 50, 50, 0.3);
    border-radius: clamp(1.5rem, 2vw, 1.75rem); /* 响应式圆角 */
    backdrop-filter: blur(clamp(0.6rem, 1vw, 0.8rem)) saturate(160%); /* 响应式模糊 */
    border: clamp(0.05rem, 0.1vw, 0.08rem) solid rgba(255, 255, 255, .15); /* 响应式边框 */
    opacity: 0;
    transition: opacity .8s ease, transform .8s ease;
}

.page-indicator.indicator-loaded {
    opacity: 1;
}

.page-dot {
    width: clamp(0.125rem, 0.15vw, 0.15rem); /* 响应式宽度 */
    height: clamp(0.125rem, 0.15vw, 0.15rem); /* 响应式高度 */
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    border: clamp(0.125rem, 0.15vw, 0.15rem) solid rgba(255, 255, 255, 0.8); /* 响应式边框 */
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.page-dot:hover {
    background-color: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.3);
}

.page-dot.active {
    width: clamp(0.125rem, 0.15vw, 0.15rem); /* 响应式宽度 */
    height: clamp(1.5rem, 2vw, 1.75rem); /* 响应式高度 */
    border-radius: clamp(0.35rem, 0.5vw, 0.4rem); /* 响应式圆角 */
    background-color: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
}

.page-dot.active:hover {
    transform: scale(1.12);
}

/* ===========================================
   响应式设计 - 使用 clamp() 实现
   =========================================== */

/* Timeline 专用响应式样式 - 使用 clamp() 实现 */

/* ===========================================
   背景图片优化
   =========================================== */
.aboutus-intro,
.vision {
  background-attachment: scroll !important;
  background-size: cover;
  background-position: center;
}

/* ===========================================
   动画样式（从 aboutanimation.css 提取）
   =========================================== */

/* 渐显向上动画 */
.fade-in-up {
  opacity: 0;
  transform: translateY(clamp(1.5rem, 2vw, 2rem)); /* 响应式变换 */
  animation: fadeInUp 0.4s ease-out forwards;
}

/* 动画延迟 - 保持原设置 */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }
.delay-4 { animation-delay: 0.7s; }
.delay-5 { animation-delay: 0.9s; }
.delay-6 { animation-delay: 1.1s; }
.delay-7 { animation-delay: 1.3s; }
.delay-8 { animation-delay: 1.5s; }

/* 向上淡入关键帧 */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 向左滑入动画 */
.slide-in-left {
  opacity: 0 !important;
  transform: translateX(clamp(-15rem, -20vw, -20rem)) !important; /* 响应式变换 */
  transition: all 0.8s ease-out;
  animation: none !important;
}

.slide-in-left.visible {
  opacity: 1 !important;
  transform: translateX(0) !important;
  transition-delay: 0.6s !important;
}

.slide-in-left.delay-1 {
  transition-delay: 0.4s;
}

.slide-in-left.delay-2 {
  transition-delay: 0.6s;
}

.slide-in-left.delay-3 {
  transition-delay: 1.0s;
}

.slide-in-left:not(.visible) {
  transition-delay: 0s !important;
}

/* 向右滑入动画 */
.slide-in-right {
  opacity: 0 !important;
  transform: translateX(clamp(15rem, 20vw, 20rem)) !important; /* 响应式变换 */
  transition: all 0.8s ease-out;
  animation: none !important;
}

.slide-in-right.visible {
  opacity: 1 !important;
  transform: translateX(0) !important;
  transition-delay: 0.6s !important;
}

.slide-in-right:not(.visible) {
  transition-delay: 0s !important;
}

/* 缩放淡入动画 */
.scale-fade-in {
  opacity: 0;
  transform: scale(0.8);
  animation: scaleFadeIn 1.6s ease forwards;
  animation-play-state: paused;
}

.animate-on-scroll.visible .scale-fade-in {
  animation-play-state: running;
}

.animate-on-scroll:not(.visible) .scale-fade-in {
  animation-play-state: paused;
  opacity: 0;
  transform: scale(0.8);
}

@keyframes scaleFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 首页所有元素统一,延迟0.3秒后开始1.6s动画 */
.home-content .scale-fade-in {
  animation-delay: 0.15s;
}

/* 装饰线条也使用相同的0.3秒延迟 */
.home-content .decor-line.scale-fade-in {
  animation-delay: 0.15s;
}

/* 装饰线条使用相同的从中间放大效果 */
.decor-line.scale-fade-in {
  opacity: 0;
  transform: scale(0.8);
  animation: scaleFadeIn 1.6s ease forwards;
  animation-play-state: paused;
}

.animate-on-scroll.visible .decor-line.scale-fade-in {
  animation-play-state: running;
}

.animate-on-scroll:not(.visible) .decor-line.scale-fade-in {
  animation-play-state: paused;
  opacity: 0;
  transform: scale(0.8);
}

/* values/图文进入特效 */
.card-tilt-in-left {
  opacity: 0 !important;
  transform: perspective(clamp(50rem, 60vw, 62.5rem)) translateX(clamp(-7rem, -8vw, -8rem)) rotateY(25deg) scale(0.9) !important; /* 响应式变换 */
  transform-origin: left center;
  transition: all 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-tilt-in-left.visible {
  opacity: 1 !important;
  transform: perspective(clamp(50rem, 60vw, 62.5rem)) translateX(0) rotateY(0deg) scale(1) !important; /* 响应式变换 */
}

/* 卡片单独延迟进入 */
.card-tilt-in-left.visible .values-card:nth-child(1) {
  transition-delay: 0.6s;
  opacity: 1;
  transform: translateY(0);
}

.card-tilt-in-left.visible .values-card:nth-child(2) {
  transition-delay: 0.8s;
  opacity: 1;
  transform: translateY(0);
}

.card-tilt-in-left.visible .values-card:nth-child(3) {
  transition-delay: 1.0s;
  opacity: 1;
  transform: translateY(0);
}

.card-tilt-in-left.visible .values-card:nth-child(4) {
  transition-delay: 1.2s;
  opacity: 1;
  transform: translateY(0);
}

/* values 内容缩放渐显特效 */
.values-scale-fade {
  opacity: 0 !important;
  transform: scale(0.8) !important;
  transition: all 1.6s ease;
  animation: none !important;
}

.values-scale-fade.visible {
  opacity: 1 !important;
  transform: scale(1) !important;
  transition: all 1.0s ease !important;
}

.values-scale-fade:not(.visible) { 
  transition-delay: 0s !important; 
}

/* 为 values 标题和描述添加渐进延迟 */
.values-scale-fade.delay-1.visible {
  transition-delay: 0.1s !important;
}

.values-scale-fade.delay-2.visible {
  transition-delay: 0.2s !important;
}

.values-scale-fade.delay-3.visible {
  transition-delay: 0.3s !important;
}

.values-scale-fade.delay-4.visible {
  transition-delay: 0.4s !important;
}

.values-scale-fade.delay-5.visible {
  transition-delay: 0.5s !important;
}

.values-scale-fade.delay-6.visible {
  transition-delay: 0.6s !important;
}

.values-scale-fade.delay-7.visible {
  transition-delay: 0.7s !important;
}

.values-scale-fade.delay-8.visible {
  transition-delay: 0.8s !important;
}

.values-scale-fade.delay-9.visible {
  transition-delay: 0.9s !important;
}

.values-scale-fade.delay-10.visible {
  transition-delay: 1.0s !important;
}

/* 右侧文字缩放滑入 */
.text-zoom-in-right {
  opacity: 0 !important;
  transform: translateX(clamp(6rem, 8vw, 6.25rem)) translateY(clamp(1.5rem, 2vw, 2rem)) scale(0.8) !important; /* 响应式变换 */
  transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.text-zoom-in-right.visible {
  opacity: 1 !important;
  transform: translateX(0) translateY(0) scale(1) !important;
}

.text-zoom-in-right.delay-1 {
  transition-delay: 0.3s;
}

.text-zoom-in-right.delay-2 {
  transition-delay: 0.6s;
}

.text-zoom-in-right.delay-3 {
  transition-delay: 0.9s;
}

/* 360度3D旋转进场 */
.rotate-3d-full {
  opacity: 0 !important;
  transform: perspective(clamp(50rem, 60vw, 62.5rem)) rotateY(360deg) scale(0.6) !important; /* 响应式变换 */
  transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-origin: center;
  transform-style: preserve-3d;
}

.rotate-3d-full.visible {
  opacity: 1 !important;
  transform: perspective(clamp(50rem, 60vw, 62.5rem)) rotateY(0deg) scale(1) !important; /* 响应式变换 */
}

.rotate-3d-full:not(.visible) { 
  transition-delay: 0s !important; 
}

.rotate-3d-full.delay-1 { transition-delay: 0.2s; }
.rotate-3d-full.delay-2 { transition-delay: 0.4s; }
.rotate-3d-full.delay-3 { transition-delay: 0.6s; }

/* 向下滑入动画 */
.fade-in-down {
  opacity: 0 !important;
  transform: translateY(clamp(-2rem, -3vw, -2.5rem)) !important; /* 响应式变换 */
  transition: all 0.8s ease-out;
  animation: none !important;
}

.fade-in-down.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.fade-in-down:not(.visible) {
  transition-delay: 0s !important;
}

/* 缩放淡出动画 */
.scale-out {
  opacity: 0 !important;
  transform: scale(0.3) !important;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: none !important;
}

.scale-out.visible {
  opacity: 1 !important;
  transform: scale(1) !important;
}

.scale-out:not(.visible) {
  transition-delay: 0s !important;
}

/* 图片专用 3D 旋转特效 */
img.image-3d-rotate,
.image-3d-rotate img {
  opacity: 0 !important;
  transform: perspective(clamp(50rem, 60vw, 62.5rem)) rotateY(-90deg) scale(1.4) !important; /* 响应式变换 */
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.3s;
  transform-origin: center;
  border-radius: clamp(0.4rem, 0.6vw, 0.5rem); /* 响应式圆角 */
  animation: none !important;
}

img.image-3d-rotate.visible,
.image-3d-rotate.visible img {
  opacity: 1 !important;
  transform: perspective(clamp(50rem, 60vw, 62.5rem)) rotateY(0deg) scale(1) !important; /* 响应式变换 */
}

img.image-3d-rotate:not(.visible),
.image-3d-rotate:not(.visible) img {
  transition-delay: 0s !important;
}

img.image-3d-rotate:hover,
.image-3d-rotate img:hover {
  transform: perspective(clamp(50rem, 60vw, 62.5rem)) rotateY(5deg) rotateX(5deg) scale(1.05) !important; /* 响应式变换 */
  transition-delay: 0s !important;
}

/* Vision Content 从上面滑下特效 */
.vision-slide-down {
  opacity: 0 !important;
  transform: translateY(clamp(-3rem, -4vw, -4rem)) !important; /* 响应式变换 */
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  animation: none !important;
}

.vision-slide-down.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition-delay: 0.5s !important;
}

.vision-slide-down:not(.visible) {
  transition-delay: 0s !important;
}

/* 时间线动画状态 */
.timeline-section.timeline-active h1 {
    animation: titleFadeIn 0.4s ease-out forwards;
    animation-delay: 0s;
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(clamp(1rem, 1.5vw, 1.25rem)); /* 响应式变换 */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-section.timeline-active .timeline-track {
    animation: trackExpand 0.5s ease-out forwards;
    animation-delay: 0.2s;
}

@keyframes trackExpand {
    from {
        transform: translateY(-50%) scaleX(0);
    }
    to {
        transform: translateY(-50%) scaleX(1);
    }
}

.timeline-section.timeline-active .timeline-items-container {
    animation: itemsFadeIn 0.4s ease-out forwards;
    animation-delay: 0.7s;
}

@keyframes itemsFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.timeline-section.timeline-active .timeline-item {
    animation: bulletAppear 0.4s ease-out forwards;
}

.timeline-section.timeline-active .timeline-item:nth-child(1) {
    animation-delay: 0.3s;
}

.timeline-section.timeline-active .timeline-item:nth-child(2) {
    animation-delay: 0.45s;
}

.timeline-section.timeline-active .timeline-item:nth-child(3) {
    animation-delay: 0.6s;
}

.timeline-section.timeline-active .timeline-item:nth-child(4) {
    animation-delay: 0.75s;
}

.timeline-section.timeline-active .timeline-item:nth-child(5) {
    animation-delay: 0.9s;
}

@keyframes bulletAppear {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(clamp(1rem, 1.5vw, 1.25rem)); /* 响应式变换 */
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.timeline-section.timeline-active .nav-arrow {
    animation: arrowFadeIn 0.3s ease-out forwards;
    animation-delay: 0.6s;
}

@keyframes arrowFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* AboutUs 专用的动画状态 */
.aboutus-banner {
    opacity: 1;
    transform: translateY(0);
    background-size: cover;
    background-position: center;
    min-height: clamp(12rem, 15vw, 15rem); /* 响应式最小高度 */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aboutus-content {
    opacity: 0 !important;
    transform: translateY(clamp(1.5rem, 2vw, 2rem)) !important; /* 响应式变换 */
    transition: all 0.8s ease-out;
    text-align: center;
    color: white;
    visibility: hidden;
}

.aboutus-banner.content-loaded .aboutus-content {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible;
    transition-delay: 0.3s;
}

.aboutus-intro {
    background-size: cover;
    background-position: center;
}

.intro-content {
    opacity: 0 !important;
    transform: translateY(clamp(2rem, 3vw, 2.5rem)) !important; /* 响应式变换 */
    transition: all 1.0s ease-out;
    width: 100%; /* 使用全宽度，确保居中 */
    text-align: center;
    visibility: hidden;
}

.aboutus-intro.intro-loaded .intro-content {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible;
    transition-delay: 0.6s;
}

.aboutus-content h1,
.aboutus-content p {
    opacity: 0 !important;
    transform: translateY(clamp(-3rem, -4vw, -4rem)) !important; /* 响应式变换 */
    transition: all 0.8s ease-out;
    visibility: hidden;
}

.intro-content h1 {
    opacity: 0 !important;
    transform: translateY(clamp(1rem, 1.5vw, 1.25rem)) !important; /* 响应式变换 */
    transition: all 0.6s ease-out;
    visibility: hidden;
}

.intro-content p {
    opacity: 0 !important;
    transform: translateY(clamp(0.75rem, 1vw, 1rem)) !important; /* 响应式变换 */
    transition: all 0.6s ease-out;
    visibility: hidden;
}

.aboutus-banner.content-loaded .aboutus-content h1 {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible;
    transition-delay: 0.5s;
}

.aboutus-banner.content-loaded .aboutus-content p {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible;
    transition-delay: 0.7s;
}

.aboutus-intro.intro-loaded .intro-content h1 {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible;
    transition-delay: 1.1s;
}

.aboutus-intro.intro-loaded .intro-content p {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible;
    transition-delay: 1.3s;
}

/* 加载状态类 */

.page-indicator.indicator-loaded {
  opacity: 1;
}

.navbar.navbar-loaded {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================================
   滚动触发的动画
   =========================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(clamp(1rem, 1.5vw, 1.25rem)); /* 响应式变换 */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

