/* ========================================
   首页专用样式 - 对角分割非对称布局
   ======================================== */

/* Hero Banner - 对角分割设计 */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero-diagonal {
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 2;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.hero-text-block {
    width: 45%;
    padding-right: 50px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: #e0e0e0;
    line-height: 1.2;
    margin-bottom: 25px;
    letter-spacing: 3px;
}

.hero-title span {
    color: #8b7355;
    display: block;
}

.hero-description {
    font-size: 16px;
    color: #999;
    line-height: 1.9;
    margin-bottom: 35px;
    border-left: 3px solid #8b7355;
    padding-left: 20px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-stats {
    position: absolute;
    bottom: 80px;
    right: 10%;
    z-index: 3;
    display: flex;
    gap: 50px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #8b7355;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: #999;
    letter-spacing: 1px;
}

/* 核心优势板块 - 错位卡片布局 */
.advantages {
    background: #0f0f0f;
    position: relative;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
}

.advantage-card {
    background: #1a1a1a;
    padding: 40px 30px;
    border: 1px solid #2a2a2a;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: #8b7355;
    transition: height 0.4s ease;
}

.advantage-card:hover {
    transform: translateY(-10px);
    border-color: #3a3a3a;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.advantage-card:hover::before {
    height: 100%;
}

.advantage-card:nth-child(2) {
    margin-top: 40px;
}

.advantage-card:nth-child(3) {
    margin-top: 80px;
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: #2a2a2a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 32px;
    color: #8b7355;
}

.advantage-card h3 {
    font-size: 20px;
    color: #e0e0e0;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.advantage-card p {
    font-size: 14px;
    color: #999;
    line-height: 1.8;
}

/* 快速入口 - 对角线条装饰 */
.quick-access {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    position: relative;
    overflow: hidden;
}

.quick-access::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: linear-gradient(135deg, transparent 0%, rgba(139, 115, 85, 0.05) 100%);
    transform: rotate(15deg);
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.access-card {
    background: #2a2a2a;
    padding: 35px 25px;
    text-align: center;
    border-radius: 5px;
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.access-card:hover {
    background: #1a1a1a;
    border-color: #8b7355;
    transform: scale(1.05);
}

.access-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: #8b7355;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
}

.access-card h4 {
    font-size: 16px;
    color: #e0e0e0;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.access-card p {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
}

/* 服务项目板块 */
.services {
    background: #0f0f0f;
}

.services-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.service-item {
    flex: 1 1 25%;
    min-width: 280px;
    padding: 50px 30px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    transition: all 0.4s ease;
    position: relative;
}

.service-item:hover {
    background: #2a2a2a;
    border-color: #8b7355;
}

.service-item:hover .service-icon {
    background: #8b7355;
    color: #fff;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: #2a2a2a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #8b7355;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.service-item h3 {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.service-item p {
    font-size: 14px;
    color: #999;
    line-height: 1.7;
}

/* 资讯列表板块 */
.news-section {
    background: #1a1a1a;
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.news-tab {
    font-size: 16px;
    color: #999;
    padding: 10px 25px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.news-tab.active,
.news-tab:hover {
    color: #e0e0e0;
}

.news-tab.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #8b7355;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.news-card {
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: #8b7355;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.news-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 13px;
    color: #8b7355;
    margin-bottom: 10px;
    display: block;
}

.news-title {
    font-size: 16px;
    color: #e0e0e0;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: 13px;
    color: #999;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA 板块 */
.cta-section {
    background: linear-gradient(135deg, #8b7355 0%, #6b5642 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-title {
    font-size: 38px;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.cta-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-white {
    background: #fff;
    color: #8b7355;
    border: 2px solid #fff;
}

.btn-white:hover {
    background: transparent;
    color: #fff;
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline-white:hover {
    background: #fff;
    color: #8b7355;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 48px;
    }
    
    .advantages-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-diagonal {
        width: 100%;
        clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%);
    }
    
    .hero-image {
        width: 100%;
        opacity: 0.3;
    }
    
    .hero-text-block {
        width: 100%;
        padding-right: 0;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-stats {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 50px;
        justify-content: center;
    }
    
    .service-item {
        flex: 1 1 50%;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .advantages-grid,
    .news-grid,
    .access-grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-card:nth-child(2),
    .advantage-card:nth-child(3) {
        margin-top: 0;
    }
    
    .service-item {
        flex: 1 1 100%;
    }
    
    .cta-title {
        font-size: 28px;
    }
}
