/* ========================================
   首页专用样式
   ======================================== */

/* 全屏视差 Banner */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowZoom 20s ease-in-out infinite;
}

@keyframes slowZoom {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.85) 0%, rgba(26, 26, 26, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 20px;
    letter-spacing: 8px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #c0c0c0;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 3px;
    animation: fadeInUp 1s ease 0.3s both;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 视差滚动层 */
.parallax-layer {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.parallax-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
}

.layer-1 {
    background-color: #0a0a0a;
}

.layer-2 {
    background: linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
}

.layer-3 {
    background-color: #0f0f0f;
}

.layer-4 {
    background: linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
}

/* 章节标题 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.8rem;
    color: #e0e0e0;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8b2e2e, transparent);
}

.section-desc {
    color: #888;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 25px auto 0;
    line-height: 1.8;
}

/* 核心优势板块 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(139, 46, 46, 0.15);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8b2e2e, transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 46, 46, 0.4);
    background: rgba(26, 26, 26, 0.8);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 46, 46, 0.1);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: rgba(139, 46, 46, 0.2);
    transform: rotateY(180deg);
}

.feature-icon img {
    width: 45px;
    height: 45px;
}

.feature-title {
    font-size: 1.3rem;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.feature-text {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 快速入口 */
.quick-access {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .quick-access {
        grid-template-columns: 1fr;
    }
}

.access-item {
    position: relative;
    height: 350px;
    overflow: hidden;
    group: cursor-pointer;
}

.access-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.access-item:hover img {
    transform: scale(1.15);
}

.access-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    transition: all 0.4s ease;
}

.access-item:hover .access-overlay {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.5) 0%, rgba(139, 46, 46, 0.85) 100%);
}

.access-title {
    font-size: 1.8rem;
    color: #e0e0e0;
    margin-bottom: 10px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.access-item:hover .access-title {
    transform: translateY(0);
    opacity: 1;
}

.access-text {
    color: #aaa;
    font-size: 1rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.2s;
}

.access-item:hover .access-text {
    transform: translateY(0);
    opacity: 1;
}

.access-link {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: rgba(139, 46, 46, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(20px, -20px);
    opacity: 0;
    transition: all 0.4s ease 0.3s;
}

.access-item:hover .access-link {
    transform: translate(0, 0);
    opacity: 1;
}

.access-link::after {
    content: '→';
    color: #fff;
    font-size: 1.5rem;
}

/* 新闻列表区域 */
.news-section {
    position: relative;
    z-index: 2;
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.news-tab {
    padding: 12px 30px;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(139, 46, 46, 0.2);
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.news-tab:hover,
.news-tab.active {
    background: rgba(139, 46, 46, 0.2);
    border-color: #8b2e2e;
    color: #e0e0e0;
}

/* 新闻内容区块 */
.news-content-block {
    display: none;
}

.news-content-block.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* 统计数字 */
.stats-section {
    background: linear-gradient(135deg, rgba(139, 46, 46, 0.1) 0%, rgba(26, 26, 26, 0.8) 100%);
    border-top: 1px solid rgba(139, 46, 46, 0.2);
    border-bottom: 1px solid rgba(139, 46, 46, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #c94646;
    margin-bottom: 10px;
    font-family: 'Arial Black', sans-serif;
}

.stat-label {
    color: #888;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* CTA 区块 */
.cta-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.cta-text {
    color: #999;
    font-size: 1.1rem;
    margin-bottom: 35px;
    line-height: 1.8;
}

/* ========================================
   首页服务项目样式（修复错乱问题）
   ======================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(139, 46, 46, 0.15);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8b2e2e, transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 46, 46, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.service-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 30px;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(139, 46, 46, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: rgba(139, 46, 46, 0.3);
    transform: rotate(360deg);
}

.service-icon img {
    width: 30px;
    height: 30px;
}

.service-title {
    font-size: 1.4rem;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.service-text {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c94646;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-link:hover {
    gap: 15px;
    color: #e05050;
}

/* 新闻卡片样式（确保一致性） */
.news-grid .card {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(139, 46, 46, 0.15);
    overflow: hidden;
    transition: all 0.4s ease;
}

.news-grid .card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 46, 46, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.news-grid .card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-grid .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-grid .card:hover .card-image img {
    transform: scale(1.1);
}

.news-grid .card-content {
    padding: 25px;
}

.news-grid .card-title {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-grid .card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-grid .card-title a:hover {
    color: #c94646;
}

.news-grid .card-text {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-grid .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
    padding-top: 15px;
    border-top: 1px solid rgba(139, 46, 46, 0.1);
}

.news-grid .card-meta span:last-child {
    color: #c94646;
    font-weight: 500;
}
