* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}
body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
/* 头部样式 */
.header {
    text-align: center;
    padding: 30px 0;
    margin: 20px 0;
    background: linear-gradient(135deg, #2b6cb0, #3182ce);
    color: #fff;
    border-radius: 10px;
}
.header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}
.header p {
    font-size: 1rem;
    opacity: 0.9;
}
/* 导航栏 */
.nav {
    background: #2b6cb0;
    border-radius: 8px;
    margin-bottom: 40px;
    overflow: hidden;
}
.nav ul {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
}
.nav li {
    flex: 1;
}
.nav a {
    display: block;
    text-align: center;
    padding: 14px 5px;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s;
    white-space: nowrap;
}
.nav a:hover {
    background: #225a96;
}
/* 移动端隐藏长文本，显示短文本 */
.nav .long-text {
    display: inline;
}
.nav .short-text {
    display: none;
}
/* 模块通用 */
.module {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.module-title {
    font-size: 1.5rem;
    color: #2b6cb0;
    margin-bottom: 25px;
    padding-left: 10px;
    border-left: 4px solid #2b6cb0;
}
/* 卡片网格 */
.grid-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.card {
    display: block;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}
.card-img {
    width: 100%;
    height: 140px;
    background-color: #e8f4ff;
    border-radius: 6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
}
.card-name {
    font-size: 0.95rem;
    font-weight: 500;
}
/* 页脚 */
.footer {
    background: #222;
    color: #ccc;
    padding: 30px 0;
    margin-top: 50px;
}
.footer-link {
    text-align: center;
    margin-bottom: 20px;
}
.footer-link a {
    color: #ccc;
    text-decoration: none;
    margin: 0 10px;
}
.footer-link a:hover {
    color: #fff;
}
.footer-copyright {
    text-align: center;
    font-size: 0.9rem;
}
/* 响应式 - 平板 */
@media (max-width: 992px) {
    .grid-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* 响应式 - 手机端 */
@media (max-width: 768px) {
    /* 切换长短文字 */
    .nav .long-text {
        display: none;
    }
    .nav .short-text {
        display: inline;
    }
    .nav a {
        font-size: 0.9rem;
        padding: 12px 2px;
    }
    .header h1 {
        font-size: 1.8rem;
    }
    .module {
        padding: 15px;
    }
    .grid-row {
        grid-template-columns: 1fr;
    }
    .footer-link a {
        display: inline-block;
        margin: 5px 8px;
    }
}

/* 卡片内图片强制适配模板尺寸 */
.card-img img {
    width: 100%;
    height: 140px;
    object-fit: cover;   /* 按比例裁剪，填满容器，推荐 */
    object-position: center; /* 图片居中显示 */
    border-radius: 6px;  /* 和容器圆角统一 */
    display: block;
}


/*视频页面16:9播放器容器*/
.video-wrap {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}
.video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}