* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航 */
header {
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text h1 {
    font-size: 40px;
    color: #E60012;
    font-weight: bold;
    line-height: 1;
    margin: 0;
}

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 12px;
    margin: 0 20px;
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    padding: 0 8px;
    font-size: 14px;
    width: 200px;
}

.search-box button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #E60012;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #E60012;
}

/* 轮播 Banner + 动态背景 */
.hero-slider {
    position: relative;
    height: 400px;
    overflow: hidden;
}
.tech-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.7;
}
.slider-container {
    height: 100%;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.slide.active {
    opacity: 1;
}
.slide-content {
    text-align: center;
    color: white;
    z-index: 3;
}
.slide-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
    line-height: 1.3;
}
.slide-content p {
    font-size: 14px;
    line-height: 1.5;
}
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    z-index: 3;
}
.slider-controls button {
    background: rgba(255,255,255,0.3);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}
.slider-controls button:hover {
    background: rgba(255,255,255,0.5);
}
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}
.slider-dots .dot.active {
    background: white;
}

/* 内容网格 */
.content-grid {
    padding: 40px 0;
}
.content-grid .container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}
.grid-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.card {
    padding: 25px;
    border-radius: 4px;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
.card-red {
    background: linear-gradient(135deg, #e64a19, #f4511e);
}
.card-orange {
    background: linear-gradient(135deg, #f9a825, #fbc02d);
}
.card-green {
    background: linear-gradient(135deg, #8bc34a, #9ccc65);
}
.card-blue {
    background: linear-gradient(135deg, #607d8b, #78909c);
}
.card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}
.card p {
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}
.card-btn {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.3s;
}
.card-btn:hover {
    background: rgba(255,255,255,0.4);
}

/* 新闻时间轴 */
.news-timeline {
    background: white;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}
.news-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.news-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}
.news-date {
    text-align: center;
    flex-shrink: 0;
}
.news-date .year {
    display: block;
    font-size: 14px;
    color: #E60012;
    font-weight: bold;
}
.news-date .day {
    display: block;
    font-size: 13px;
    color: #666;
}
.news-content p {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}
.news-detail {
    font-size: 12px;
    color: #E60012;
    text-decoration: none;
}

/* 快捷入口 */
.quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.quick-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background 0.3s;
}
.quick-link:hover {
    background: #e0e0e0;
}
.quick-link i {
    margin-right: 8px;
    color: #E60012;
}

/* 页脚 */
footer {
    background: #f5f5f5;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #666;
}
footer p {
    margin-bottom: 8px;
}

/* 响应式 */
@media (max-width: 992px) {
    .search-box {
        display: none;
    }
    nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #f8f9fa;
        padding: 15px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    nav ul {
        flex-direction: column;
    }
    nav ul li {
        margin: 8px 0;
    }
    .mobile-menu-btn {
        display: block;
    }
    .content-grid .container {
        grid-template-columns: 1fr;
    }
    .grid-left {
        grid-template-columns: 1fr;
    }
}