/* 全局通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

body {
    background-color: #0f1118;
    color: #e5e7eb;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航栏 */
.header {
    background: #181b26;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 999;
}
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #f59e0b;
}
.nav-menu {
    display: flex;
    gap: 30px;
}
.nav-menu li a {
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
}
.nav-menu li a:hover, .nav-menu li a.active {
    background: #f59e0b;
    color: #000;
}

/* 轮播/横幅 */
.banner {
    height: 400px;
    background: linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)), url("https://picsum.photos/id/175/1920/800") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.banner-text h1 {
    font-size: 48px;
    color: #f59e0b;
    margin-bottom: 15px;
}
.banner-text p {
    font-size: 20px;
    color: #ccc;
    max-width: 800px;
}

/* 板块通用 */
.section {
    padding: 60px 0;
}
.section-title {
    text-align: center;
    font-size: 32px;
    color: #f59e0b;
    margin-bottom: 40px;
    position: relative;
}
.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #f59e0b;
    margin: 10px auto;
}

/* 卡片布局 */
.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}
.card {
    background: #181b26;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #272a37;
    transition: transform 0.3s, border-color 0.3s;
}
.card:hover {
    transform: translateY(-8px);
    border-color: #f59e0b;
}
.card h3 {
    color: #f59e0b;
    font-size: 20px;
    margin-bottom: 15px;
}
.card p {
    color: #b0b3bc;
    font-size: 15px;
}

/* 页脚 */
.footer {
    background: #181b26;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #272a37;
}
.footer p {
    color: #888;
    font-size: 14px;
}

/* 内容区块 */
.content-box {
    background: #181b26;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #272a37;
}
.content-box h3 {
    color: #f59e0b;
    margin-bottom: 20px;
    font-size: 22px;
}
.content-box p {
    margin-bottom: 15px;
    color: #ddd;
}

/* 响应式 手机端适配 */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }
    .nav-menu {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .banner {
        height: 280px;
    }
    .banner-text h1 {
        font-size: 32px;
    }
    .section-title {
        font-size: 26px;
    }
}
