/* 首页样式 */

/* 全屏滚动板块 */
.fullscreen-section {
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* 第一屏：Header + Banner - 高度自适应 */
.first-screen {
    min-height: auto !important;
    height: auto;
    display: block;
}

/* Banner区域 */
.banner {
    height: 970px;
    width: 100%;
}

/* Banner轮播区域 */
.banner-section {
    position: relative;
    width: 100%;
    height:970px;
    overflow: hidden;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.banner-slide.active {
    opacity: 1;
    visibility: visible;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 15%;
    transform: translateY(-50%);
    z-index: 2;
    color: #d4a574;
}

.banner-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 8px;
    color: #d4a574;
}

.banner-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: #fff;
    letter-spacing: 2px;
}

.banner-btn {
    display: inline-block;
    padding: 12px 35px;
    background: #d4a574;
    color: #1e3a5f;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.banner-btn:hover {
    background: #c49464;
    transform: translateY(-2px);
}

/* 左右切换箭头 */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.banner-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.banner-prev {
    left: 30px;
}

.banner-next {
    right: 30px;
}

.banner-arrow i {
    color: #fff;
    font-size: 20px;
}

/* 指示器 */
.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-dots .dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dots .dot.active {
    background: #d4a574;
}

.banner-dots .dot:hover {
    background: rgba(212, 165, 116, 0.8);
}

/* 新闻中心板块 */
.news-section {
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-container {
    max-width: 1600px;
    margin: 0 auto;
    
}

.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 36px;
    color: #fff;
    margin-bottom: 10px;
}

.title-line {
    width: 40px;
    height: 4px;
    background: #eb802a;
    margin-left: 150px;
    margin-top: -15px;
}

/* 新闻网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: #fff;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.news-date {
    position: absolute;
    top: 20px;
    right: 40px;
    background: #104cae;
    color: #fff;
    border-radius: 0 0 8px 8px;
    text-align: center;
    z-index: 2;
    
}

.news-date .day {
    display: block;
    font-size: 18px;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 3px;
    line-height: 1;
    width: 50%;
    text-align: center;
    margin: 0 auto;
}

.news-date .month {
    display: block;
    font-size: 12px;
    opacity: 0.9;
}

/* 更小的字体，使用 transform scale */
.small-text {
    font-size: 12px;
    transform: scale(0.85);
    transform-origin: center;
    display: inline-block;
}

.news-image {
    width: 100%;
    height: 245px;
    padding: 20px 20px 0 20px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
    text-align: center;
}

.news-title {
    font-size: 18px;
    color: #333;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    padding-bottom: 10px;
}

.news-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 100px;
}

.news-btn {
    display: inline-block;
    padding: 5px 30px;
    margin: 5px 0px;
    background: #d87b0d;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.news-btn:hover {
    background: #c49464;
    transform: translateY(-2px);
}

/* 新闻卡片动画 */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes imageScale {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineExpand {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

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

.animate-card,
.animate-date,
.animate-image,
.animate-title,
.animate-line,
.animate-desc,
.animate-btn {
    opacity: 0;
}

.animate-card.animate-in {
    animation: slideUpFade 0.6s ease forwards;
}

.animate-date.animate-in {
    animation: scaleIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.animate-image.animate-in {
    animation: imageScale 0.5s ease forwards;
}

.animate-image img {
    transition: transform 0.3s ease;
}

.animate-title.animate-in {
    animation: slideUp 0.5s ease forwards;
}

.animate-line.animate-in {
    animation: lineExpand 0.4s ease forwards;
    transform-origin: left;
}

.animate-desc.animate-in {
    animation: slideUp 0.5s ease forwards;
}

.animate-btn.animate-in {
    animation: btnPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* 描述文字分隔线 */
.news-desc-line {
    height: 1px;
    background: #e0e0e0;
    margin: 10px 0;
}

/* 快捷入口 */
.quick-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 快捷入口自下而上动画 */
.quick-animate {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.quick-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.quick-animate[data-index="0"].animate-in {
    transition-delay: 0ms;
}

.quick-animate[data-index="1"].animate-in {
    transition-delay: 150ms;
}

.quick-animate[data-index="2"].animate-in {
    transition-delay: 300ms;
}

.quick-card {
    display: block;
    height: 190px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.quick-card:hover {
    transform: translateY(-3px);
}

/* 走进华审板块 */
.about-section {
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-container {
    width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-content {
    max-width: 800px;
    margin-bottom: 220px;
}

/* 走进华审内容划入动画 */
.about-animate {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 1.5s ease, transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-animate.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.about-content .section-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.title-line-short {
    width: 70px;
    height: 3px;
    background: #fff;
}

.about-title {
    font-size: 36px;
    color: #fff;
}

.about-subtitle {
    font-size: 28px;
    color: #d4a574;
    margin-bottom: 25px;
    font-weight: normal;
}

.about-text {
    margin-bottom: 70px;
}

.about-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 2;
    margin-bottom: 15px;
    text-align: justify;
}

.about-btn {
    display: inline-block;
    padding: 12px 40px;
    background: #d4a574;
    color: #1e3a5f;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.about-btn:hover {
    background: #c49464;
    transform: translateY(-2px);
}

/* 图片按钮 */
.about-btn-img {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.about-btn-img img {
   
}

.about-btn-img:hover {
    animation: swing 0.6s ease-in-out;
}

/* 摇摆动画 */
@keyframes swing {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(5deg); }
    40% { transform: rotate(-5deg); }
    60% { transform: rotate(3deg); }
    80% { transform: rotate(-3deg); }
    100% { transform: rotate(0deg); }
}

/* 数据统计 */
.about-stats {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    width: 970px;
    
}

.stat-item {
    text-align: center;
   
}

.stat-number {
    font-size: 70px;
    color: #fff;
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.stat-suffix {
    font-size: 24px;
    font-weight: normal;
    margin-left: 5px;
    margin-top: -20px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* 响应式 */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .banner-section {
        height: 350px;
    }
    
    .banner-content {
        left: 10%;
        right: 10%;
    }
    
    .banner-title {
        font-size: 28px;
        letter-spacing: 4px;
    }
    
    .banner-subtitle {
        font-size: 14px;
    }
    
    .banner-arrow {
        width: 40px;
        height: 40px;
    }
    
    .banner-prev {
        left: 15px;
    }
    
    .banner-next {
        right: 15px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-links {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .stat-item {
        flex: 1 1 calc(50% - 20px);
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .about-title {
        font-size: 24px;
    }
    
    .about-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .stat-item {
        flex: 1 1 100%;
    }
}

/* 旗下公司模块 */
.company-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* 背景图滑动容器 */
.company-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.company-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease;
}

.company-bg.active {
    opacity: 1;
}

.company-container {
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    height: 1080px;
}

.company-card {
    padding: 100px 50px 180px;
    color: #fff;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
}

.company-card:nth-child(1) {
    background: linear-gradient(180deg, rgba(74, 85, 104, 0.35) 0%, rgba(45, 55, 72, 0.95) 100%);
}

.company-card:nth-child(2) {
    background: linear-gradient(180deg, rgba(74, 85, 104, 0.15) 0%, rgba(45, 55, 72, 0.85) 100%);
}

.company-card:nth-child(3) {
    background: linear-gradient(180deg, rgba(74, 85, 104, 0.15) 0%, rgba(45, 55, 72, 0.75) 100%);
}

.company-card:nth-child(4) {
    background: linear-gradient(180deg, rgba(74, 85, 104, 0.35) 0%, rgba(45, 55, 72, 0.65) 100%);
}

.company-card:last-child {
    border-right: none;
}

.company-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-icon img {
    
}

.company-name {
    font-size: 20px;
    text-align: center;
    margin-bottom: 20px;
    color: #d4a574;
}

.company-desc {
    font-size: 14px;
    line-height: 2.2;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    margin-top: 50px;
    text-align: justify;
}

.company-business h4 {
    font-size: 14px;
    color: #d4a574;
    margin-bottom: 10px;
}

.company-business ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.company-business li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 2.4;
    margin-bottom: 5px;
}

.company-card {
    display: flex;
    flex-direction: column;
}

.company-business {
    flex: 1;
}

.company-btn {
    display: block;
    width: 200px;
    padding: 12px 0;
    background: #2e4058;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    margin: 60px auto 0;
}

.company-btn:hover {
    background: #d4a574;
    color: #1e3a5f;
}

/* 百叶窗动画效果 */
@keyframes shutterReveal {
    from {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
    }
    to {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

@keyframes shutterRevealReverse {
    from {
        clip-path: inset(0 0 0 100%);
        opacity: 0;
    }
    to {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

.company-card-animate {
    opacity: 0;
}

.company-card-animate.animate-in {
    animation: shutterReveal 0.8s ease forwards;
}

.company-card-animate.animate-in-reverse {
    animation: shutterRevealReverse 0.8s ease forwards;
}

/* 交错延迟 */
.company-card-animate[data-index="0"].animate-in,
.company-card-animate[data-index="0"].animate-in-reverse {
    animation-delay: 0ms;
}

.company-card-animate[data-index="1"].animate-in,
.company-card-animate[data-index="1"].animate-in-reverse {
    animation-delay: 150ms;
}

.company-card-animate[data-index="2"].animate-in,
.company-card-animate[data-index="2"].animate-in-reverse {
    animation-delay: 300ms;
}

.company-card-animate[data-index="3"].animate-in,
.company-card-animate[data-index="3"].animate-in-reverse {
    animation-delay: 450ms;
}

/* 响应式 */
@media (max-width: 1200px) {
    .company-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .company-card {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .company-card:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* 1600px 以下适配 */
@media (max-width: 1600px) {
   
    .news-container {
        width: 1400px !important;
        margin: 0 auto;
    }

    .banner-slider {
        height: 790px;
    }

    .news-section {
        padding: 40px 0;
    }

    .quick-links a{
        background-size: 100%;
        background-repeat: no-repeat;
    }

    .about-container{
        width: 1280px !important;
        
    }

    .news-desc{
        -webkit-line-clamp: 3;
        min-height: 0;
        line-height: 1.4;
        margin-bottom: 0px;
    }

    .news-grid {
        margin-bottom: 0px;
    }

    .about-content{
        margin-bottom:0px;
    }

    .about-stats{
        margin-top: 80px;
    }

    .company-desc{
        line-height:1.5;
        margin-top: 10px;
    }

    .company-business li {
        line-height:1.5;
    }

    .company-icon img {
        width: 150px;
    }

    .company-card{
        padding: 50px 50px 450px;
    }

    .company-btn {
        margin: 30px auto 0;
    }

    .news-image {
        width: 100%;
        height: 200px;
        padding: 20px 20px 0 20px;
        overflow: hidden;
    }

    .news-content {
        padding: 10px20px;
        text-align: center;
    }

    .news-title{
        font-size: 16px;
        padding-bottom: 0px;
    }

    .about-btn-img img {
        width: 60%;
    }

    .about-section{
        padding: 50px 0;
    }

}

/* 1440px 以下适配 */
@media (max-width: 1440px) {
   
    .news-container {
        width: 1280px !important;
        margin: 0 auto;
    }

    .banner-slider {
        height: 790px;
    }

    .news-section {
        padding: 40px 0;
    }

    .quick-links a{
        background-size: 100%;
        background-repeat: no-repeat;
    }

    .about-container{
        width: 1280px !important;
        
    }

    .news-desc{
        -webkit-line-clamp: 3;
        min-height: 0;
        line-height: 1.4;
        margin-bottom: 0px;
    }

    .news-grid {
        margin-bottom: 0px;
    }

    .about-content{
        margin-bottom:0px;
    }

    .about-stats{
        margin-top: 80px;
    }

    .company-desc{
        line-height:1.5;
        margin-top: 10px;
    }

    .company-business li {
        line-height:1.5;
    }

    .company-icon img {
        width: 150px;
    }

    .company-card{
        padding: 50px 50px 450px;
    }

    .company-btn {
        margin: 30px auto 0;
    }

    .news-image {
        width: 100%;
        height: 200px;
        padding: 20px 20px 0 20px;
        overflow: hidden;
    }

    .news-content {
        padding: 10px20px;
        text-align: center;
    }

    .news-title{
        font-size: 16px;
        padding-bottom: 0px;
    }

    .about-btn-img img {
        width: 60%;
    }

    .about-section{
        padding: 50px 0;
    }

}

/* 1280px 以下适配 */
@media (max-width: 1280px) {
   
    .news-container {
        width: 1160px !important;
        margin: 0 auto;
    }

    .banner-slider {
        height: 690px;
    }

    .news-section {
        padding: 40px 0;
    }

    .quick-links a{
        background-size: 100%;
        background-repeat: no-repeat;
    }

    .about-container{
        width: 1160px !important;
        
    }

    .news-desc{
        -webkit-line-clamp: 3;
        min-height: 0;
        line-height: 1.4;
        margin-bottom: 0px;
    }

    .news-grid {
        margin-bottom: 0px;
    }

    .about-content{
        margin-bottom:0px;
    }

    .about-stats{
        margin-top: 40px;
    }

    .company-desc{
        line-height:1.5;
        margin-top: 10px;
    }

    .company-business li {
        line-height:1.5;
    }

    .company-icon img {
        width: 100px;
    }

    .company-card{
        padding: 50px 50px 450px;
    }

    .company-btn {
        margin: 0px auto 0;
    }

    .news-image {
        width: 100%;
        height: 200px;
        padding: 20px 20px 0 20px;
        overflow: hidden;
    }

    .news-content {
        padding: 10px20px;
        text-align: center;
    }

    .news-title{
        font-size: 16px;
        padding-bottom: 0px;
    }

    .about-btn-img img {
        width: 60%;
    }

    .about-section{
        padding: 50px 0;
    }

}
