/* ========================================
   首页专用样式 - 对角线非对称布局
   ======================================== */

/* Hero Banner - 对角线分割 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a1a1a 100%);
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(139, 26, 26, 0.1) 100%);
    clip-path: polygon(40% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    padding: 60px 0;
}

.hero-content h1 {
    font-size: 56px;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.hero-content h1 span {
    color: var(--color-red);
    display: block;
}

.hero-content p {
    font-size: 18px;
    color: var(--color-silver);
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: rotate(-3deg);
    transition: transform 0.6s ease;
}

.hero-image:hover img {
    transform: rotate(0deg) scale(1.02);
}

.hero-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-red);
    z-index: -1;
}

/* 核心优势板块 - 对角线分布 */
.advantages {
    padding: 120px 0;
    background: var(--color-dark);
    position: relative;
}

.advantages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 45%, rgba(139, 26, 26, 0.05) 50%, transparent 55%);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
}

.advantage-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    padding: 50px 35px;
    border-left: 3px solid var(--color-red);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(139, 26, 26, 0.1) 0%, transparent 70%);
}

.advantage-card:hover {
    transform: translateY(-15px);
    border-left-color: var(--color-red-light);
    box-shadow: 0 30px 60px rgba(139, 26, 26, 0.2);
}

.advantage-icon {
    font-size: 48px;
    color: var(--color-red);
    margin-bottom: 25px;
}

.advantage-card h3 {
    color: var(--color-white);
    font-size: 24px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.advantage-card p {
    color: var(--color-silver);
    line-height: 1.8;
    font-size: 15px;
}

/* 服务体系 - 交错布局 */
.services {
    padding: 120px 0;
    background: var(--color-black);
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.service-row.reverse {
    direction: rtl;
}

.service-row.reverse .service-content {
    direction: ltr;
}

.service-row.reverse .service-image {
    direction: ltr;
}

.service-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.service-content {
    padding: 40px;
}

.service-content h3 {
    color: var(--color-white);
    font-size: 32px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.service-content p {
    color: var(--color-silver);
    line-height: 1.8;
    margin-bottom: 25px;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.service-list li {
    color: var(--color-silver);
    padding: 12px 0;
    border-bottom: 1px solid rgba(139, 26, 26, 0.3);
    position: relative;
    padding-left: 25px;
}

.service-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--color-red);
    font-size: 12px;
}

/* 成功案例 */
.cases {
    padding: 120px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.case-card {
    background: var(--color-dark);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(139, 26, 26, 0.2);
}

.case-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.case-overlay span {
    color: var(--color-red);
    font-size: 13px;
    letter-spacing: 1px;
}

.case-content {
    padding: 30px;
}

.case-content h3 {
    color: var(--color-white);
    font-size: 20px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.case-content p {
    color: var(--color-silver);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.case-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.case-tag {
    background: rgba(139, 26, 26, 0.2);
    color: var(--color-red-light);
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 3px;
}

/* 首页资讯列表 */
.home-news {
    padding: 120px 0;
    background: var(--color-black);
}

.news-section-wrapper {
    margin-bottom: 60px;
}

.news-section-title {
    color: var(--color-white);
    font-size: 28px;
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 4px solid var(--color-red);
    letter-spacing: 2px;
}

.news-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.news-card-home {
    background: var(--color-dark);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card-home:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 26, 26, 0.2);
}

.news-card-home img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-card-home .news-info {
    padding: 20px;
}

.news-card-home .news-info h4 {
    color: var(--color-white);
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-card-home .news-info p {
    color: var(--color-gray);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.news-card-home .news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(192, 192, 192, 0.1);
}

.news-card-home .news-date {
    color: var(--color-red);
    font-size: 13px;
}

.news-card-home .news-more {
    color: var(--color-silver);
    font-size: 13px;
}

.news-card-home .news-more:hover {
    color: var(--color-red);
}

/* 响应式 */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        height: 350px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .service-row {
        grid-template-columns: 1fr;
    }

    .service-row.reverse {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-image {
        height: 280px;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .service-list {
        grid-template-columns: 1fr;
    }

    .hero-container,
    .container {
        padding: 0 20px;
    }
}
