﻿/* 首页新闻 begin */

.inws-txt {
    margin-top: 6.25vw;
    width: 100%;
}

.inws-a {
    display: inline-block;
}

.inws-b {
    margin: 0;
    float: right;
    line-height: 2;
}

.inws-ul {
    margin-top: 2.2vw;
    width: 102.2%;
    font-size: 0;
}

.inws-li {
    display: inline-block;
    vertical-align: top;
    width: 31.133%;
    margin-right: 2%;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background: #fff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -ms-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
    padding-top: 0;
}

.inws-li:hover {
    border: 2px solid #2354a1;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(27, 159, 162, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

.inws-li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 10;
    pointer-events: none;
}

.inws-li:hover::before {
    left: 100%;
}

.inws-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 46.25%;
    overflow: hidden;
}

.inws-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
    -webkit-transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
    -moz-transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
    -ms-transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

.inws-li:hover .inws-img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.inws-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -ms-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.inws-li:hover .inws-img-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

.inws-arrow {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-10px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -webkit-transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -moz-transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -ms-transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.inws-arrow-icon {
    width: 32px;
    height: 32px;
    color: #2354a1;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.inws-li:hover .inws-arrow {
    opacity: 1;
    transform: translateX(0) scale(1);
    border-color: #2354a1;
}

.inws-li:hover .inws-arrow-icon {
    animation: arrowBounce 1s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(4px);
    }
}

@-webkit-keyframes arrowBounce {
    0%, 100% {
        -webkit-transform: translateX(0);
    }
    50% {
        -webkit-transform: translateX(4px);
    }
}

.inws-info {
    padding: 1.2vw;
    position: relative;
}

.inws-c {
    color: #888;
    font-size: 14px;
    margin-bottom: 8px;
}

.inws-d {
    color: #111;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 0;
    transition: margin-bottom 0.3s ease-in-out;
    -webkit-transition: margin-bottom 0.3s ease-in-out;
}

.inws-li:hover .inws-d {
    margin-bottom: 8px;
}

.inws-summary {
    color: #666;
    line-height: 1.6;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
}

.inws-li:hover .inws-summary {
    max-height: 80px;
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1200px) {
    .inws-li {
        width: 48%;
        margin-right: 2%;
        margin-bottom: 2vw;
    }
    
    .inws-info {
        padding: 16px;
    }
    
    .inws-d {
        font-size: 18px;
    }
}

@media (max-width: 750px) {
    .inws-ul {
        width: 100%;
        margin-top: .5rem;
    }
    
    .inws-li {
        width: 100%;
        margin-right: 0;
        margin-bottom: .4rem;
    }
    
    .inws-info {
        padding: 12px;
    }
    
    .inws-c {
        font-size: 12px;
    }
    
    .inws-d {
        font-size: 16px;
        font-weight: bold;
    }
    
    .inws-summary {
        font-size: 14px;
    }
    
    .inws-li:active {
        border: 2px solid #2354a1;
        transform: translateY(-2px);
    }
    
    .inws-li:active .inws-img-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.3) 100%
        );
    }
    
    .inws-li:active .inws-arrow {
        opacity: 1;
        transform: translateX(0) rotate(0deg) scale(1);
    }
    
    .inws-li:active .inws-summary {
        max-height: 80px;
        opacity: 1;
        transform: translateY(0);
    }
}

/* 首页新闻 end */

/* 2x2网格文章列表 begin */
.article-grid-section {
    padding-top: 6vw;
}

.article-grid-title {
    margin-bottom: 3vw;
    text-align: center;
    color: #111;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.article-grid-item {
    display: flex;
    align-items: center;
    padding: 24px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.article-grid-item:hover {
    background: #e8f5f5;
    border-color: #2354a1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsl(217deg 64% 38% / 10%);
}

.article-grid-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    flex-shrink: 0;
    text-align: center;
    margin-right: 20px;
}

.article-grid-day {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    transition: color 0.2s ease-in-out;
}

.article-grid-month {
    font-size: 16px;
    color: #666;
    margin-top: 4px;
    transition: color 0.2s ease-in-out;
}

.article-grid-item:hover .article-grid-day {
    color: #2354a1;
}

.article-grid-item:hover .article-grid-month {
    color: #2354a1;
}

.article-grid-content {
    flex: 1;
    min-width: 0;
}

.article-grid-title-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
}

.article-grid-item:hover .article-grid-title-text {
    font-weight: 700;
}

.article-grid-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease-in-out;
}

.article-grid-item:hover .article-grid-desc {
    color: #444;
}

@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .article-grid-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    
    .article-grid-date {
        flex-direction: row;
        align-items: baseline;
        width: auto;
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .article-grid-day {
        font-size: 32px;
        margin-right: 8px;
    }
    
    .article-grid-month {
        font-size: 14px;
        margin-top: 0;
    }
    
    .article-grid-title-text {
        font-size: 16px;
    }
    
    .article-grid-desc {
        font-size: 13px;
    }
}
/* 2x2网格文章列表 end */
