/* ========================================
   尧图网站开发 - 首页专用样式
   阶梯式错落错位布局
   ======================================== */

/* Hero Banner 区域 */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark-gray) 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 107, 0, 0.15);
    border: 1px solid var(--color-orange);
    border-radius: 30px;
    color: var(--color-orange);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-title span {
    color: var(--color-orange);
}

.hero-description {
    font-size: 18px;
    color: var(--color-light-gray);
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

/* 阶梯式服务区块 */
.services-staggered {
    padding: 100px 0;
    background: var(--color-black);
}

.stagger-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.stagger-item {
    background: var(--color-dark-gray);
    border-radius: 12px;
    padding: 35px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.stagger-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--color-orange);
    transition: var(--transition-smooth);
}

.stagger-item:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: var(--shadow-hover);
}

.stagger-item:hover::before {
    height: 100%;
}

.stagger-item.large {
    grid-column: span 8;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stagger-item.medium {
    grid-column: span 4;
    min-height: 300px;
}

.stagger-item.small {
    grid-column: span 4;
    min-height: 250px;
}

.stagger-item.offset-top {
    margin-top: 60px;
}

.stagger-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.stagger-icon img {
    width: 32px;
    height: 32px;
}

.stagger-item h3 {
    font-size: 22px;
    color: var(--color-white);
    margin-bottom: 15px;
}

.stagger-item p {
    color: var(--color-light-gray);
    font-size: 14px;
    line-height: 1.7;
}

.stagger-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-orange);
    font-size: 14px;
    font-weight: 600;
    margin-top: 20px;
    transition: var(--transition-smooth);
}

.stagger-link:hover {
    gap: 12px;
}

/* 特色优势区块 - 错位布局 */
.features-asymmetric {
    padding: 100px 0;
    background: var(--color-dark-gray);
    position: relative;
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.features-image-wrapper {
    position: relative;
}

.features-main-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
}

.features-floating-card {
    position: absolute;
    background: var(--color-medium-gray);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    animation: float 3s ease-in-out infinite;
}

.features-floating-card.card-1 {
    top: -30px;
    right: -40px;
}

.features-floating-card.card-2 {
    bottom: -30px;
    left: -40px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.features-content {
    padding: 20px 0;
}

.features-content h2 {
    font-size: 40px;
    color: var(--color-white);
    margin-bottom: 25px;
    line-height: 1.3;
}

.features-content h2 span {
    color: var(--color-orange);
}

.feature-list {
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.feature-check {
    width: 24px;
    height: 24px;
    background: var(--color-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-check img {
    width: 14px;
    height: 14px;
}

.feature-item h4 {
    color: var(--color-white);
    font-size: 18px;
    margin-bottom: 5px;
}

.feature-item p {
    color: var(--color-light-gray);
    font-size: 14px;
}

/* 资讯区块 - 首页下方 */
.news-section {
    padding: 100px 0;
    background: var(--color-black);
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.news-tab {
    padding: 10px 25px;
    background: var(--color-dark-gray);
    color: var(--color-silver);
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.news-tab.active,
.news-tab:hover {
    background: var(--color-orange);
    color: var(--color-white);
}

.news-grid-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--color-dark-gray);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: var(--shadow-hover);
}

.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-content {
    padding: 25px;
}

.news-card-date {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 107, 0, 0.1);
    color: var(--color-orange);
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 15px;
}

.news-card-title {
    font-size: 18px;
    color: var(--color-white);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    color: var(--color-light-gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    color: var(--color-orange);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-smooth);
}

.read-more:hover {
    gap: 10px;
}

/* CTA 区块 */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-dark-gray) 0%, var(--color-black) 100%);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-title {
    font-size: 42px;
    color: var(--color-white);
    margin-bottom: 20px;
}

.cta-title span {
    color: var(--color-orange);
}

.cta-description {
    color: var(--color-light-gray);
    font-size: 18px;
    margin-bottom: 40px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .stagger-item.large {
        grid-column: span 12;
    }
    
    .stagger-item.medium,
    .stagger-item.small {
        grid-column: span 6;
    }
    
    .features-container {
        grid-template-columns: 1fr;
    }
    
    .features-floating-card {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .stagger-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .stagger-item.large,
    .stagger-item.medium,
    .stagger-item.small {
        grid-column: span 1;
    }
    
    .stagger-item.offset-top {
        margin-top: 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 32px;
    }
}
