/* 
 * 维拓商网 - 首页专用样式
 * 品牌时序递进布局
 */

/* ========== 全屏 Banner ========== */
.banner {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f3ef 0%, #e8e4d9 100%);
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.banner-title {
    font-size: 68px;
    color: var(--mo-black);
    margin-bottom: 25px;
    font-family: "Kaiti", "STKaiti", serif;
    letter-spacing: 15px;
    line-height: 1.3;
    animation: titleFadeIn 1s ease forwards;
    opacity: 0;
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-subtitle {
    font-size: 22px;
    color: var(--ink-light);
    margin-bottom: 45px;
    letter-spacing: 3px;
    animation: subtitleFadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

@keyframes subtitleFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: actionsFadeIn 1s ease 0.6s forwards;
    opacity: 0;
}

@keyframes actionsFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .banner-title {
        font-size: 42px;
        letter-spacing: 8px;
    }

    .banner-subtitle {
        font-size: 18px;
    }

    .banner-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ========== 品牌历程时序板块 ========== */
.brand-timeline {
    padding: 120px 0;
    background: var(--xuanzhi-white);
    position: relative;
}

.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.timeline-header {
    text-align: center;
    margin-bottom: 80px;
}

.timeline-header h2 {
    font-size: 42px;
    color: var(--mo-black);
    font-family: "Kaiti", "STKaiti", serif;
    letter-spacing: 8px;
    margin-bottom: 20px;
}

.timeline-header p {
    color: var(--ink-light);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 200px;
    bottom: 100px;
    width: 2px;
    background: linear-gradient(to bottom, var(--zhusha-red), var(--border-ink));
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .timeline-line {
        left: 50px;
    }
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 60px;
    position: relative;
    margin-bottom: 80px;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 60px;
}

@media (max-width: 768px) {
    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 100px;
        padding-right: 0;
    }
}

.timeline-dot {
    position: absolute;
    right: -10px;
    top: 0;
    width: 22px;
    height: 22px;
    background: var(--zhusha-red);
    border-radius: 50%;
    border: 4px solid var(--xuanzhi-white);
    box-shadow: 0 0 0 3px var(--border-ink);
}

.timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -10px;
}

@media (max-width: 768px) {
    .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 39px;
        right: auto;
    }
}

.timeline-content {
    background: #fff;
    padding: 35px;
    border-radius: 5px;
    box-shadow: 0 10px 40px rgba(44, 44, 44, 0.08);
    max-width: 450px;
    position: relative;
    transition: all 0.4s ease;
}

.timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(44, 44, 44, 0.12);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%) rotate(45deg);
    width: 20px;
    height: 20px;
    background: #fff;
    border-top: 1px solid var(--border-ink);
    border-right: 1px solid var(--border-ink);
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: auto;
    left: -10px;
    transform: translateY(-50%) rotate(-135deg);
}

@media (max-width: 768px) {
    .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -10px;
        right: auto;
        transform: translateY(-50%) rotate(-135deg);
    }
}

.timeline-year {
    font-size: 48px;
    color: var(--zhusha-red);
    font-weight: bold;
    margin-bottom: 15px;
    font-family: "Kaiti", "STKaiti", serif;
}

.timeline-content h3 {
    font-size: 22px;
    color: var(--mo-black);
    margin-bottom: 12px;
}

.timeline-content p {
    color: var(--ink-light);
    font-size: 14px;
    line-height: 1.9;
}

/* ========== 核心服务板块 ========== */
.services-section {
    padding: 120px 0;
    background: var(--paper-beige);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    text-align: center;
    border-radius: 5px;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: var(--zhusha-red);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(196, 60, 60, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card h3 {
    font-size: 20px;
    color: var(--mo-black);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.service-card p {
    color: var(--ink-light);
    font-size: 14px;
    line-height: 1.9;
}

/* ========== 优势展示板块 ========== */
.advantages-section {
    padding: 120px 0;
    background: var(--xuanzhi-white);
}

.advantages-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: center;
}

@media (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

.advantages-image {
    position: relative;
}

.advantages-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 20px 50px rgba(44, 44, 44, 0.1);
}

.advantages-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--zhusha-red);
    border-radius: 5px;
    z-index: -1;
}

.advantages-content h3 {
    font-size: 36px;
    color: var(--mo-black);
    margin-bottom: 30px;
    font-family: "Kaiti", "STKaiti", serif;
    letter-spacing: 5px;
}

.advantage-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.advantage-number {
    width: 50px;
    height: 50px;
    background: var(--zhusha-red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    flex-shrink: 0;
}

.advantage-text h4 {
    font-size: 18px;
    color: var(--mo-black);
    margin-bottom: 8px;
}

.advantage-text p {
    color: var(--ink-light);
    font-size: 14px;
    line-height: 1.8;
}

/* ========== 快速入口板块 ========== */
.quick-access {
    padding: 100px 0;
    background: var(--mo-black);
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 992px) {
    .access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .access-grid {
        grid-template-columns: 1fr;
    }
}

.access-card {
    background: rgba(245, 243, 239, 0.05);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(245, 243, 239, 0.15);
    border-radius: 5px;
    transition: all 0.4s ease;
}

.access-card:hover {
    background: rgba(245, 243, 239, 0.1);
    border-color: var(--zhusha-red);
    transform: translateY(-5px);
}

.access-card h4 {
    font-size: 20px;
    color: var(--xuanzhi-white);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.access-card p {
    color: rgba(245, 243, 239, 0.6);
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.8;
}

.access-card .btn {
    background: transparent;
    border-color: var(--zhusha-red);
    color: var(--zhusha-red);
}

.access-card .btn:hover {
    background: var(--zhusha-red);
    color: #fff;
}

/* ========== 首页资讯列表 ========== */
.news-section {
    padding: 120px 0;
    background: var(--xuanzhi-white);
}

.news-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    border-bottom: 2px solid var(--border-ink);
    padding-bottom: 20px;
}

.news-tab {
    font-size: 18px;
    color: var(--ink-light);
    cursor: pointer;
    padding: 10px 25px;
    position: relative;
    transition: all 0.3s ease;
}

.news-tab.active,
.news-tab:hover {
    color: var(--zhusha-red);
}

.news-tab.active::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--zhusha-red);
}

.news-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

@media (max-width: 992px) {
    .news-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .news-list-grid {
        grid-template-columns: 1fr;
    }
}

.news-card {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(44, 44, 44, 0.06);
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(44, 44, 44, 0.12);
}

.news-card-image {
    height: 200px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-card-content {
    padding: 25px;
}

.news-card-date {
    font-size: 13px;
    color: var(--zhusha-red);
    margin-bottom: 10px;
}

.news-card-title {
    font-size: 18px;
    color: var(--mo-black);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    color: var(--ink-light);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-link {
    color: var(--zhusha-red);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-card-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-link::after {
    transform: translateX(5px);
}
