/* ========================================
   金点轻站 - 首页专用样式
   左右摇摆式布局 | 曲线交错
   ======================================== */

/* Hero Banner - 全屏波浪效果 */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0a 50%, #0a0a0a 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/bg-hero.jpg') center/cover no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(10, 10, 10, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 40px;
}

.hero-title {
    font-size: 64px;
    color: #e0e0e0;
    margin-bottom: 25px;
    letter-spacing: 8px;
    text-transform: uppercase;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
    }
    100% {
        text-shadow: 0 0 40px rgba(139, 0, 0, 0.8), 0 0 60px rgba(165, 42, 42, 0.5);
    }
}

.hero-subtitle {
    font-size: 22px;
    color: #a0a0a0;
    margin-bottom: 40px;
    line-height: 1.8;
    letter-spacing: 3px;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 波浪装饰 */
.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 4;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,60 C300,100 600,20 900,60 C1200,100 1500,20 1800,60 L1800,120 L0,120 Z' fill='%238b0000' opacity='0.3'/%3E%3C/svg%3E");
    background-size: 50% 100%;
    animation: waveMove 15s linear infinite;
}

.wave:nth-child(2) {
    bottom: 10px;
    opacity: 0.2;
    animation-delay: -5s;
    animation-duration: 20s;
}

.wave:nth-child(3) {
    bottom: 20px;
    opacity: 0.15;
    animation-delay: -10s;
    animation-duration: 25s;
}

@keyframes waveMove {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ========================================
   左右摇摆式内容区
   ======================================== */
.swing-section {
    padding: 120px 0;
    position: relative;
}

.swing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.swing-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 100px;
    position: relative;
}

.swing-row.reverse {
    flex-direction: row-reverse;
}

.swing-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 20px 60px rgba(139, 0, 0, 0.3);
}

.swing-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.swing-image:hover img {
    transform: scale(1.05);
}

.swing-image::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #8b0000, #a52a2a, #8b0000);
    z-index: -1;
    border-radius: 8px;
}

.swing-content {
    flex: 1;
}

.swing-content h3 {
    font-size: 36px;
    color: #e0e0e0;
    margin-bottom: 25px;
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
}

.swing-content h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #8b0000, transparent);
}

.swing-content p {
    font-size: 16px;
    color: #909090;
    line-height: 2;
    margin-bottom: 30px;
}

.swing-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.swing-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(139, 0, 0, 0.1);
    border-left: 3px solid #8b0000;
    transition: all 0.3s ease;
}

.swing-feature-item:hover {
    background: rgba(139, 0, 0, 0.2);
    transform: translateX(10px);
}

.swing-feature-item .icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8b0000, #a52a2a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    font-weight: bold;
    flex-shrink: 0;
}

.swing-feature-item span {
    font-size: 14px;
    color: #c0c0c0;
    letter-spacing: 1px;
}

/* 曲线分隔 */
.curve-divider {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.curve-divider svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.curve-divider path {
    fill: #0f0f0f;
}

/* ========================================
   核心优势板块 - 卡片式交错布局
   ======================================== */
.advantages-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%);
    position: relative;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.advantage-card {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8) 0%, rgba(30, 30, 30, 0.8) 100%);
    border: 1px solid #2a2a2a;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #8b0000, #a52a2a, #8b0000);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-card:hover {
    transform: translateY(-15px);
    border-color: #8b0000;
    box-shadow: 0 20px 40px rgba(139, 0, 0, 0.2);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #8b0000 0%, #a52a2a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #e0e0e0;
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.4);
}

.advantage-card h4 {
    font-size: 20px;
    color: #e0e0e0;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.advantage-card p {
    font-size: 14px;
    color: #909090;
    line-height: 1.8;
}

/* ========================================
   快速入口 - 圆形导航
   ======================================== */
.quick-access-section {
    padding: 100px 0;
    background: #0a0a0a;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.quick-access-item {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.quick-access-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.quick-access-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(139, 0, 0, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: all 0.4s ease;
}

.quick-access-item:hover img {
    transform: scale(1.1);
}

.quick-access-item h4 {
    font-size: 24px;
    color: #e0e0e0;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.quick-access-item p {
    font-size: 14px;
    color: #a0a0a0;
}

.quick-access-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(139, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    font-size: 20px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.quick-access-item:hover .quick-access-arrow {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   资讯列表区域
   ======================================== */
.news-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #0f0f0f 100%);
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.news-tab {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid #8b0000;
    color: #c0c0c0;
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.news-tab.active,
.news-tab:hover {
    background: #8b0000;
    color: #e0e0e0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.news-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #2a2a2a;
    overflow: hidden;
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    border-color: #8b0000;
    box-shadow: 0 15px 40px rgba(139, 0, 0, 0.2);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #8b0000;
    color: #e0e0e0;
    padding: 8px 15px;
    font-size: 12px;
    letter-spacing: 1px;
}

.news-content {
    padding: 25px;
}

.news-content h4 {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content p {
    font-size: 14px;
    color: #909090;
    line-height: 1.8;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    font-size: 13px;
    color: #a52a2a;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-link:hover {
    color: #e0e0e0;
}

/* ========================================
   响应式调整
   ======================================== */
@media (max-width: 1200px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .swing-row,
    .swing-row.reverse {
        flex-direction: column;
        gap: 40px;
    }

    .swing-image img {
        height: 350px;
    }

    .quick-access-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
        letter-spacing: 4px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .swing-content h3 {
        font-size: 28px;
    }

    .swing-features {
        grid-template-columns: 1fr;
    }

    .advantages-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .news-tabs {
        gap: 10px;
    }

    .news-tab {
        padding: 10px 20px;
        font-size: 12px;
    }
}
