/* ========================================
   Tiyi1.com - 首页专属样式
   航天科技风时间轴布局
   ======================================== */

/* Hero Banner */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, var(--space-black) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 5%;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #f5f7fa 0%, #b8a9d6 50%, #4fc3f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--light-purple);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* 时间轴布局 */
.timeline-section {
    padding: 6rem 5%;
    position: relative;
}

.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.timeline-main-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--purple-glow), var(--neon-blue), var(--tech-cyan));
    transform: translateX(-50%);
    border-radius: 3px;
}

.timeline-main-line::before,
.timeline-main-line::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--star-white);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--purple-glow);
}

.timeline-main-line::before {
    top: 0;
}

.timeline-main-line::after {
    bottom: 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 5rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: var(--border-tech);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    position: relative;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--purple-glow);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: var(--deep-space);
    border: 3px solid var(--purple-glow);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--purple-glow);
    z-index: 2;
}

.timeline-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--star-white);
    border-radius: 50%;
}

.timeline-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--purple-glow);
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.timeline-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--star-white);
}

.timeline-text {
    color: var(--light-purple);
    line-height: 1.8;
    opacity: 0.9;
}

/* 核心优势板块 */
.advantages-section {
    padding: 6rem 5%;
    background: var(--gradient-primary);
}

.advantages-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.advantage-card {
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-tech);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.advantage-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.advantage-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--star-white);
}

.advantage-card p {
    color: var(--light-purple);
    opacity: 0.8;
    line-height: 1.7;
}

/* 快速入口 */
.quick-access-section {
    padding: 6rem 5%;
}

.access-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.access-card {
    background: rgba(255, 255, 255, 0.02);
    border: var(--border-tech);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.access-card:hover {
    background: rgba(157, 124, 216, 0.1);
    border-color: var(--purple-glow);
    transform: translateY(-5px);
}

.access-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.access-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--star-white);
}

.access-card p {
    color: var(--light-purple);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 首页资讯列表 */
.news-preview-section {
    padding: 6rem 5%;
    background: var(--gradient-primary);
}

.news-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.news-card {
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-tech);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--purple-glow);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.85rem;
    color: var(--light-purple);
    margin-bottom: 0.8rem;
    opacity: 0.8;
}

.news-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--star-white);
    line-height: 1.4;
}

.news-excerpt {
    color: var(--light-purple);
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-link {
    color: var(--neon-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .timeline-main-line {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
    }

    .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 80px);
        margin-left: 60px;
        margin-right: 0;
    }

    .timeline-marker {
        left: 30px;
    }

    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .timeline-section {
        padding: 4rem 5%;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}
