*{
    font-family: 微软雅黑, serif;
}
/* ========== 全局容器约束（新增） ========== */

/* 页面主体内容容器 */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 10px 24px;
}

/* 头部导航容器 */
.header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 页脚容器 */
.footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== 原有样式（common.css 改名） ========== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #1f2937;
    background: #f3f6fb;
}

/* 头部导航 */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    background: linear-gradient(90deg, #134e4a 0%, #0f766e 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.logo {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    color: #e5f1ff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.nav a:hover {
    color: #fff;
}

/* 主区域背景 */
.main {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-image:
            linear-gradient(135deg, rgba(19, 78, 74, 0.75), rgba(15, 118, 110, 0.75)),
            url("https://images.unsplash.com/photo-1506744038136-46273834888b?auto=format&fit=crop&w=1600&q=80");
    background-size: cover;
    background-position: center;
}

/* 卡片通用样式 */
.card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 12px;
    padding: 40px 36px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.6s ease;
}

.card h2 {
    text-align: center;
    margin-bottom: 8px;
    color: #065f46;
    font-size: 24px;
}

.card .subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 28px;
}

/* 表单 */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #374151;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 22px;
}

.form-options label {
    color: #4b5563;
    cursor: pointer;
}

.form-options a {
    color: #0f766e;
    text-decoration: none;
}

.form-options a:hover {
    text-decoration: underline;
}

/* 主按钮 */
.btn-primary {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(90deg, #134e4a 0%, #0f766e 100%);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* 底部提示链接 */
.form-tip {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: #6b7280;
}

.form-tip a {
    color: #0f766e;
    text-decoration: none;
    font-weight: 500;
}

.form-tip a:hover {
    text-decoration: underline;
}

/* 页脚（浅色版，用于登录/注册等子页面） */
.footer {
    text-align: center;
    padding: 18px;
    font-size: 13px;
    color: #6b7280;
    background: #eef2f7;
    border-top: 1px solid #e5e7eb;
}

.footer a {
    color: #0f766e;
    text-decoration: none;
    margin: 0 6px;
}

.footer a:hover {
    text-decoration: underline;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 首页及列表页共用样式（新增合并） ========== */

/* 区块标题 */
.section-header {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 20px;
}

.section-title {
    color: #065f46;
    font-size: 24px;
    position: relative;
    display: inline-block;
    margin-top: 0;
    margin-bottom: 8px;
}

.section-desc {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 0;
}

/* 四列网格 */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 20px;
}

/* 卡片通用（列表页/首页） */
.card-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    font-size: 15px;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-body h3 a {
    color: inherit;
    text-decoration: none;
}

.card-body h3 a:hover {
    color: #0f766e;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 6px;
}

.card-link {
    display: inline-block;
    color: #0f766e;
    text-decoration: none;
    font-size: 14px;
    margin-top: 8px;
}

.card-link:hover {
    text-decoration: underline;
}

/* 课程卡片高度一致 */
.course-card-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card-item .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-card-item h3 {
    margin-top: 0;
}

.course-card-item .card-meta {
    margin-top: auto;
}

/* 课程标签导航 */
.course-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
}

.tab-item {
    padding-bottom: 12px;
    cursor: pointer;
    color: #6b7280;
    font-size: 15px;
}

.tab-item.active {
    color: #0f766e;
    border-bottom: 2px solid #0f766e;
    font-weight: bold;
}

/* 新闻资讯布局 */
.news-layout {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    align-items: stretch;
}

.news-left {
    flex: 0 0 420px;
    display: flex;
    flex-direction: column;
}

.news-left img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.news-left h3 {
    color: #065f46;
    font-size: 18px;
    margin-top: 15px;
    margin-bottom: 10px;
}

.news-left p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

.news-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.news-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px dashed #e5e7eb;
    font-size: 14px;
    margin-bottom: 0;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-item a {
    color: #374151;
    text-decoration: none;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 20px;
    transition: color 0.2s;
}

.news-list-item a:hover {
    color: #0f766e;
}

.news-list-item span {
    color: #9ca3af;
    font-size: 12px;
    min-width: 80px;
    text-align: right;
}

/* 页面头部（列表页/详情页面包屑区） */
.page-header {
    padding: 40px 48px 0;
    background: #f3f6fb;
}

.breadcrumb {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-top: 10px;
    padding: 20px 30px;
}

.breadcrumb a {
    color: #0f766e;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.page-title {
    font-size: 26px;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 20px;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.filter-bar select,
.filter-bar input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.filter-bar select:focus,
.filter-bar input:focus {
    border-color: #0f766e;
}

.filter-bar input {
    width: 200px;
}

/* 标签栏 */
.tag-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag-bar a {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    background: #fff;
    color: #374151;
    text-decoration: none;
    border: 1px solid #d1d5db;
    transition: all 0.2s;
}

.tag-bar a:hover,
.tag-bar a.active {
    background: #0f766e;
    color: #fff;
    border-color: #0f766e;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 40px 0;
}

.pagination a {
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
}

.pagination a:hover,
.pagination a.active {
    background: #0f766e;
    color: #fff;
    border-color: #0f766e;
}

/* 详情页通用 */
.detail-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 32px 0;
}

.detail-hero {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    margin-bottom: 40px;
}

.hero-cover {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    height: 280px;
}

/* 考试统计网格 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 14px 8px;
    background: #f3f6fb;
    border-radius: 8px;
}

.stat-item .num {
    font-size: 22px;
    font-weight: 700;
    color: #0f766e;
}

.stat-item .label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

/* 章节/课时列表 */
.chapter {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.chapter-header {
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chapter-header:hover {
    background: #f9fafb;
}

.lesson-list {
    padding: 0 20px 12px;
}

.lesson-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    font-size: 13px;
    color: #4b5563;
    border-radius: 6px;
    cursor: pointer;
}

.lesson-item:hover {
    background: #f3f6fb;
}

.lesson-item .tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #ecfdf5;
    color: #0f766e;
}

/* 卡片徽章 */
.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.badge-hot { background: #ef4444; }
.badge-new { background: #0f766e; }
.badge-free { background: #f59e0b; }

/* 推荐课程网格 */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.related-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

.related-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.related-card .rc-body {
    padding: 12px;
}

.related-card .rc-body h4 {
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 6px;
}

.related-card .rc-body h4 a {
    color: inherit;
    text-decoration: none;
}

.related-card .rc-body h4 a:hover {
    color: #0f766e;
}

.related-card .rc-body .rc-price {
    font-size: 14px;
    font-weight: 600;
    color: #0f766e;
}

/* 按钮（首页 Hero 区用） */
.btn-outline {
    padding: 8px 24px;
    border: 1px solid #0f766e;
    border-radius: 6px;
    background: transparent;
    color: #0f766e;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background: #0f766e;
    color: #fff;
}

.btn-light {
    padding: 8px 24px;
    border: 1px solid #fff;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-light:hover {
    background: #fff;
    color: #0f766e;
}

/* 深色页脚 */
.page-footer {
    background: #1f2937;
    color: #9ca3af;
    padding-top: 60px;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    margin-top: 0;
}

.footer-col p {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 10px;
    color: #9ca3af;
}

.footer-col a {
    color: #9ca3af;
    text-decoration: none;
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    background: #1f2937;
}

/* ========== 列表页左右分割布局 ========== */

.page-main {
    width: 100%;
    max-width: 1320px;
    margin: 10px auto;
}

.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    height: fit-content;
    margin-top: 10px;
}

.sidebar-header {
    color: #fff;
    padding: 18px 20px 16px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    background:linear-gradient(135deg, #0f766e 0%, #134e4a 100%)
}

.category-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.category-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.category-item a:hover {
    background: #f0fdf4;
    color: #0f766e;
}

.category-item.active a {
    background: #ecfdf5;
    color: #0f766e;
    border-left-color: #0f766e;
    font-weight: 500;
}

.category-count {
    margin-left: auto;
    font-size: 12px;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 10px;
}

.category-item.active .category-count {
    background: #0f766e;
    color: #fff;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.content-title {
    font-size: 22px;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 12px;
}

.course-grid,.exam-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 32px;
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.card-item:hover .card-img {
    transform: scale(1.05);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}

.card-price {
    color: #0f766e;
    font-weight: 600;
    font-size: 16px;
}

.card-btn {
    padding: 6px 14px;
    background: #0f766e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.card-btn:hover {
    background: #065f46;
}

.seocontent{
    display: none!important;
}