/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; line-height: 1.6; color: #333; background: #fff; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1300px; margin: 0 auto; }

/* ===== Top Bar ===== */
.top-bar { background: #ff6e6e; color: #fff; font-size: 15px; padding: 2px 0; }
.top-bar-inner { max-width: 1300px; margin: 0 auto; padding: 8px 20px; display: flex; justify-content: center; gap: 40px; }
.top-bar-item { display: inline-flex; align-items: center; gap: 5px; }
.top-bar-icon { flex-shrink: 0; }

/* ===== Header ===== */
/* box-shadow: 0 2px 10px rgba(0,0,0,0.08); */
.site-header { background: #fff; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 90px; transition: height 0.3s ease; }
.site-header.scrolled .header-inner { height: 80px; }
.logo { display: flex; align-items: center; }
.logo .logo-mobile { display: none; }
.logo img.logo-pc { display: block; height: auto; width: auto; max-height: 70px; transition: max-height 0.3s ease; }
.site-header.scrolled .logo img.logo-pc { max-height: 55px; }
.menu-close { display: none; }
.nav-menu { display: flex; gap: 30px; }
.nav-menu a { font-size: 15px; color: #333; transition: color 0.3s; position: relative; }
.nav-menu a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: #d4232e; transition: width 0.3s; }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-menu a:hover { color: #d4232e; }
.menu-toggle { display: none; background: none; border: none; font-size: 28px; cursor: pointer; color: #333; }

/* ===== Hero / Banner ===== */
.hero { background: #fff; text-align: center; padding: 0; }
.hero .hero-banner { width: 100%; display: block; max-height: 500px; object-fit: cover; }
.hero .hero-link { display: block; line-height: 0; }

/* ===== Section common ===== */
/*
 * 各个区域可独立自定义，修改以下各个 #id 对应的值即可：
 *   padding       — 区域上下内边距
 *   .section-title  — 标题样式（字号、间距等）
 *   .section-subtitle — 副标题样式
 *   .container      — 内容区最大宽度
 */
/* ===== Products / Categories ===== */
#products { padding: 20px 0; background: #f8f9fa; }
#products .section-title { text-align: center; font-size: 32px; font-weight: 700; color: #222; margin-bottom: 10px; }
#products .section-subtitle { text-align: center; font-size: 14px; color: #999; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 50px; }
#products .section-subtitle::after { content: ''; display: block; width: 50px; height: 3px; background: #d4232e; margin: 12px auto 0; }
#products .container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }
.cat-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 20px; }
.cat-item { background: #fff; border-radius: 8px; padding: 8px 12px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; }
.cat-item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.cat-icon { font-size: 20px; line-height: 1; }
.cat-name { font-size: 18px; color: #555; font-weight: 500; }
.cat-item.current { background: #ff6e6e; box-shadow: 0 2px 10px rgba(212, 35, 46, 0.25); }
.cat-item.current .cat-icon, .cat-item.current .cat-name { color: #fff; }

/* ===== Projects ===== */
#projects { padding: 80px 0; background: #fff; }
#projects .section-title { text-align: center; font-size: 32px; font-weight: 700; color: #222; margin-bottom: 10px; }
#projects .section-subtitle { text-align: center; font-size: 14px; color: #999; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 50px; }
#projects .section-subtitle::after { content: ''; display: block; width: 50px; height: 3px; background: #d4232e; margin: 12px auto 0; }
#projects .container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }
.project-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.project-item { background: #f8f9fa; border-radius: 8px; overflow: hidden; text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.project-item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.project-item img { width: 100%; height: 160px; object-fit: cover; }
.project-name { padding: 8px 10px 4px; font-size: 14px; color: #333; }
.project-hot { padding: 0 10px 10px; font-size: 12px; color: #999; }
.project-hot strong { color: #ff6600; font-weight: 700; }

/* ===== About ===== */
#about { padding: 80px 0; background: #fff; }
#about .section-title { text-align: center; font-size: 32px; font-weight: 700; color: #222; margin-bottom: 10px; }
#about .section-subtitle { text-align: center; font-size: 14px; color: #999; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 50px; }
#about .section-subtitle::after { content: ''; display: block; width: 50px; height: 3px; background: #d4232e; margin: 12px auto 0; }
#about .container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }
.about-content { display: flex; align-items: center; gap: 60px; }
.about-text { flex: 1; }
.about-text p { color: #666; line-height: 1.8; margin-bottom: 20px; }
.about-text .more-link { display: inline-block; color: #d4232e; font-weight: 600; border-bottom: 2px solid #d4232e; padding-bottom: 2px; }
.about-image { flex: 1; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }

/* ===== Cases ===== */
#cases { padding: 80px 0; background: #f8f9fa; }
#cases .section-title { text-align: center; font-size: 32px; font-weight: 700; color: #222; margin-bottom: 10px; }
#cases .section-subtitle { text-align: center; font-size: 14px; color: #999; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 50px; }
#cases .section-subtitle::after { content: ''; display: block; width: 50px; height: 3px; background: #d4232e; margin: 12px auto 0; }
#cases .container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.case-item { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: transform 0.3s; }
.case-item:hover { transform: translateY(-4px); }
.case-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.case-item .case-info { padding: 20px; }
.case-item .case-info h3 { font-size: 16px; color: #333; margin-bottom: 6px; text-align: center; font-weight: 500; }
.case-item .case-info p { font-size: 13px; color: #999; }

/* ===== News ===== */
#news { padding: 80px 0; background: #fff; }
#news .section-title { text-align: center; font-size: 32px; font-weight: 700; color: #222; margin-bottom: 10px; }
#news .section-subtitle { text-align: center; font-size: 14px; color: #999; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 50px; }
#news .section-subtitle::after { content: ''; display: block; width: 50px; height: 3px; background: #d4232e; margin: 12px auto 0; }
#news .container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }
.news-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.news-item { display: flex; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid #eee; gap: 20px; }
.news-item:last-child { border-bottom: none; }
.news-item .news-title { flex: 1; font-size: 15px; color: #333; transition: color 0.3s; }
.news-item .news-title:hover { color: #d4232e; }
.news-item .news-detail { font-size: 13px; color: #d4232e; white-space: nowrap; transition: margin-left 0.3s; }
.news-item:hover .news-detail { margin-left: 4px; }

/* ===== Footer ===== */
/* 结构对齐外网 0394：深灰快捷导航条 + 地址/电话/二维码三栏 + 更深的版权条 */
.site-footer { background: #333333; color: #fff; text-align: center; overflow: hidden; }

/* --- 一行快捷导航 --- */
.footer-nav { max-width: 1190px; margin: 0 auto; padding: 30px 20px 0; }
.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; }
.footer-nav li { width: 98px; height: 40px; line-height: 40px; text-align: center; }
.footer-nav li a { display: block; font-size: 15px; color: #b0b0b0; transition: color 0.25s; }
.footer-nav li a:hover { color: #fff; }

/* --- 地址 / 电话 / 微信公众号 --- */
.footer-main { max-width: 1190px; margin: 0 auto; padding: 50px 20px 40px; display: flex; align-items: flex-start; }
.footer-col { flex: 1; text-align: center; padding: 0 10px; }
/* 二维码是 430x430 的方图，用 contain 避免被压扁 */
.footer-col img { width: 116px; height: 117px; margin: 0 auto; object-fit: contain; }
.footer-col span { display: block; height: 40px; line-height: 40px; font-size: 16px; color: #fff; }
.footer-col p { font-size: 14px; line-height: 180%; color: #b0b0b0; }

/* --- 版权 / 备案 --- */
/* 顶部那条细装饰纹（外网的 weigx.jpg） */
.footer-copy { background: #282828 url(../footer-deco.jpg) no-repeat center top; padding: 45px 20px 20px; font-size: 14px; line-height: 1.9; color: #fff; }
.footer-copy a { color: #ccc; transition: color 0.3s; }
.footer-copy a:hover { color: #fff; }

/* 版权 + 备案这一行比区块基准字号小一号 */
.footer-copy .footer-cr { font-size: 13px; line-height: 1.9; }
.footer-copy .footer-meta { font-size: 12px; line-height: 2; color: #888; }

@media (max-width: 768px) {
    .footer-nav { padding: 20px 10px 0; }
    /* 9 项排不下就 3 项一行 */
    .footer-nav li { width: 33.3333%; }
    .footer-nav li a { font-size: 14px; }
    .footer-main { flex-direction: column; padding: 30px 20px 10px; }
    .footer-col { width: 100%; padding: 0 0 24px; }
    .footer-copy { padding: 30px 16px 20px; font-size: 13px; line-height: 1.9; }
    .footer-copy .footer-cr { font-size: 12px; }
    .footer-copy .footer-meta { font-size: 12px; }
}

/* ===== Archive Pages ===== */
.page-header { padding: 20px 0 40px 0; background: #f8f9fa; text-align: center; }
.page-title { font-size: 30px; font-weight: 700; color: #222; margin: 0; }
.page-subtitle { margin: 8px 0 0; font-size: 14px; color: #999; }
.archive-content { padding: 20px 0 80px; background-color: #f8f9fa; }
.archive-tu-content { background: #f8f9fa; }
.archive-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.archive-grid-pxxm { grid-template-columns: repeat(5, 1fr); }
.archive-item { display: block; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.06); transition: transform 0.3s, box-shadow 0.3s; text-decoration: none; }
.archive-item:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.archive-item-img { width: 100%; height: 180px; overflow: hidden; }
.archive-item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.archive-item:hover .archive-item-img img { transform: scale(1.05); }
.archive-item-info { padding: 15px 0; }
.archive-item-title { font-size: 15px; font-weight: 500; color: #333; margin: 0 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.archive-item-meta { font-size: 12px; color: #999; text-align: center; }
.archive-item-hot strong { color: #ff6600; font-weight: 700; }

/* Post List (archive.php) */
.post-list { max-width: 800px; margin: 0 auto; }
.post-item { padding: 25px 0; border-bottom: 1px solid #eee; }
.post-item:first-child { padding-top: 0; }
.post-item-title { font-size: 20px; margin: 0 0 8px; }
.post-item-title a { color: #222; text-decoration: none; transition: color 0.3s; }
.post-item-title a:hover { color: #d4232e; }
.post-item-meta { font-size: 13px; color: #999; margin-bottom: 10px; }
.post-item-meta span { margin-right: 15px; }
.post-item-meta a { color: #999; text-decoration: none; }
.post-item-excerpt { font-size: 14px; color: #666; line-height: 1.8; }
.post-item-link { display: inline-block; margin-top: 10px; font-size: 13px; color: #d4232e; text-decoration: none; }
.post-item-link:hover { text-decoration: underline; }

/* Pagination */
.pagination { text-align: center; margin-top: 40px; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 3px; font-size: 14px; color: #333; background: #f5f5f5; border-radius: 4px; text-decoration: none; transition: background 0.3s, color 0.3s; }
.pagination .page-numbers.current { background: #d4232e; color: #fff; }
.pagination .page-numbers:hover:not(.current) { background: #e0e0e0; }
.pagination .prev, .pagination .next { font-size: 14px; }
.no-posts { text-align: center; color: #999; font-size: 15px; padding: 60px 0; }

/* ===== Single Pages ===== */
.single-project-info { background: #f8f9fa; padding: 0 0 30px 0; }
.single-project-info .container { background: #fff; padding: 20px 20px 30px 20px; }
.single-page { padding: 40px 0 80px; }

/* ===== Breadcrumb ===== */
.breadcrumb-wrap { background: #f8f9fa; padding: 15px 0; }
.breadcrumb { font-size: 14px; color: #999; line-height: 2; }
.breadcrumb .home-icon { display: inline-block; vertical-align: middle; margin-right: 4px; width: 14px; height: 14px; }
.breadcrumb a { color: #888; text-decoration: none; padding: 4px 0; transition: color 0.3s; }
.breadcrumb a:hover { color: #d4232e; }
.breadcrumb-sep { margin: 0 10px; color: #ccc; font-weight: 300; }
.breadcrumb-current { color: #666; }

/* ===== Single Main Layout (single.php) ===== */
.single-main-wrap { background: #f5f5f5; padding: 30px 0 60px; }
.single-article { background: #fff; border-radius: 8px; padding: 30px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.single-header { text-align: center; margin-bottom: 30px; }
.single-title { font-size: 30px; font-weight: 500; color: #222; margin: 0 0 15px; }
.single-meta { font-size: 13px; color: #999; }
.single-meta span { margin-right: 15px; }
.single-divider { width: 80%; height: 1px; background: #ff6e6e; margin: 15px auto 0; border: none; }

/* Single Nav */
.single-nav { margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; display: flex; justify-content: space-between; font-size: 14px; }
.single-nav a { color: #555; text-decoration: none; transition: color 0.3s; padding: 8px 16px; background: #f8f9fa; border-radius: 4px; }
.single-nav a:hover { color: #d4232e; background: #fef0f0; }
.single-nav-prev, .single-nav-next { max-width: 48%; }

/* ===== Recommended Posts (single.php) ===== */
.single-recommend { margin-top: 30px; }
.single-recommend-title { font-size: 20px; font-weight: 700; color: #222; margin: 0 0 20px; padding-bottom: 10px; border-bottom: 2px solid #d4232e; }
.single-recommend-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.single-recommend-item { display: block; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: transform 0.3s, box-shadow 0.3s; text-decoration: none; }
.single-recommend-item:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.single-recommend-img { display: block; width: 100%; height: 180px; overflow: hidden; }
.single-recommend-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.single-recommend-item:hover .single-recommend-img img { transform: scale(1.05); }
.single-recommend-name { display: block; padding: 8px 10px; font-size: 14px; color: #333; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.single-hot strong { color: #ff6600; font-weight: 700; }
.single-top { display: flex; gap: 30px; margin-bottom: 40px; align-items: flex-start; }
.single-top .single-cover { width: 500px; flex-shrink: 0; text-align: center; }
.single-top .course-intro { flex: 1; min-width: 0; margin-bottom: 0; }
.single-cover { text-align: center; }
.single-cover img { max-width: 100%; max-height: 400px; object-fit: contain; }

/* single.php - 文章内容 */
.single-article .single-content { font-size: 15px; color: #333; line-height: 1.9; padding: 0 50px; }
.single-article .single-content p { margin-bottom: 15px; }
.single-article .single-content img { max-width: 100%; height: auto; border-radius: 4px; }

/* single-pxxm.php - 培训详情内容 */
.course-detail .single-content { font-size: 15px; color: #333; line-height: 1.9; padding: 0; }
.course-detail .single-content p { margin-bottom: 15px; }
.course-detail .single-content img { max-width: 100%; height: auto; border-radius: 4px; }
.course-detail .single-content h5 { border-left: 2px solid #ff6e6e; height: 22px; line-height: 22px; padding-left: 12px; font-size: 18px; margin: 20px 0 10px; color: #222; font-weight: 500; }

/* ===== Course Intro (single-pxxm) ===== */
/* background: #fff; border-radius: 8px; padding: 24px 30px; margin-bottom: 40px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); */
.course-intro { }
.course-intro-title { font-size: 22px; font-weight: 500; color: #222; margin: 0 0 20px; padding-bottom: 10px; border-bottom: 1px solid #d4232e; }
.course-intro-body { display: flex; gap: 30px; align-items: flex-start; }
.course-intro-list { list-style: none; padding: 0; margin: 0; flex: 1; max-width: 420px; }
.course-intro-list li { display: flex; align-items: baseline; padding: 10px 0; border-bottom: 1px solid #eee; font-size: 15px; }
.course-intro-list li:last-child { border-bottom: none; }
.course-intro-label { flex-shrink: 0; width: 100px; color: #999; font-weight: 500; }
.course-intro-value { color: #333; flex: 1; }
.hot-count { color: #ff6e6e; font-size: 16px; font-weight: 700; font-style: italic; }
.course-intro-cats a { display: inline-block; padding: 2px 12px; margin: 0 4px 4px 0; font-size: 13px; color: #ff6e6e; background: #fff; border: 1px solid #ff6e6e; border-radius: 4px; text-decoration: none; transition: background 0.3s, color 0.3s; }
.course-intro-cats a:hover { background: #ff6e6e; color: #fff; }

/* ===== Course Intro QR Code ===== */
.course-intro-qr { flex-shrink: 0; text-align: center; }
.course-intro-qr img { width: 200px; height: 200px; border-radius: 6px; display: block; }
.course-intro-qr span { display: block; margin-top: 6px; font-size: 12px; color: #999; }

/* ===== Course Detail (single-pxxm) ===== */
.course-detail-wrap { display: flex; gap: 30px; margin-bottom: 40px; align-items: flex-start; }
.course-detail-main { flex: 1; min-width: 0; }
.course-detail-side { width: 380px; flex-shrink: 0; }
.course-detail { margin-bottom: 0; }
.course-detail-title { font-size: 24px; font-weight: 500; color: #222; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 2px solid #ff6e6e; }

/* ===== Sidebar Recommend (single-pxxm) ===== */
.sidebar-block { background: #f8f9fa; padding: 20px 15px; }
.sidebar-title { font-size: 18px; font-weight: 700; color: #222; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid #d4232e; }
.sidebar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sidebar-grid-item { display: block; background: #fff; overflow: hidden; text-decoration: none; transition: transform 0.3s, box-shadow 0.3s; text-align: center; }
.sidebar-grid-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.sidebar-grid-img { display: block; width: 100%; height: 100px; overflow: hidden; }
.sidebar-grid-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.sidebar-grid-item:hover .sidebar-grid-img img { transform: scale(1.05); }
.sidebar-grid-name { display: block; padding: 12px 2px; font-size: 14px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-grid-hot { display: block; padding: 0 8px 8px; font-size: 12px; color: #999; }
.sidebar-grid-hot strong { color: #ff6600; font-weight: 700; }

/* ===== Below Article (single-pxxm) ===== */
.below-article-wrap { background: #f8f9fa; padding: 40px 0; }
.below-article-wrap .section-title { text-align: center; font-size: 32px; font-weight: 700; color: #222; margin-bottom: 10px; }
.below-article-wrap .section-subtitle { text-align: center; font-size: 14px; color: #999; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 50px; }
.below-article-wrap .section-subtitle::after { content: ''; display: block; width: 50px; height: 3px; background: #d4232e; margin: 12px auto 0; }
.below-article-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.below-article-item { display: block; background: #f8f9fa; border-radius: 8px; overflow: hidden; text-decoration: none; transition: transform 0.3s, box-shadow 0.3s; }
.below-article-item:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.below-article-img { display: block; width: 100%; height: 140px; overflow: hidden; }
.below-article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.below-article-item:hover .below-article-img img { transform: scale(1.05); }
.below-article-name { display: block; padding: 8px 10px 2px; font-size: 14px; color: #333; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.below-article-hot { display: block; padding: 0 10px 10px; font-size: 12px; color: #999; text-align: center; }
.below-article-hot strong { color: #ff6600; font-weight: 700; }

/* ===== Back to Top ===== */
#back-to-top { position: fixed; right: 20px; bottom: 40px; z-index: 999; width: 44px; height: 44px; border: none; border-radius: 50%; background: #d4232e; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(212, 35, 46, 0.3); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s, transform 0.3s; transform: translateY(10px); }
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: #b71c1c; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(212, 35, 46, 0.4); }
#back-to-top svg { display: block; }

/* ===== Mobile Bottom Nav ===== */
.mobile-bottom-nav { display: none; }

/* ===== Responsive ===== */

@media (max-width: 768px) {
    .header-inner { height: 60px; }
    .logo-pc { display: none; }
    .logo-mobile { display: block; }
    .top-bar-item:last-child { display: none; }
    .nav-menu { position: fixed; top: 0; right: 0; width: 280px; height: 100vh; background: #d4232e; flex-direction: column; padding: 80px 30px 30px; gap: 0; transform: translateX(100%); transition: transform 0.3s ease; z-index: 200; }
    .nav-menu.open { transform: translateX(0); }
    .nav-menu a { color: #fff; font-size: 16px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.15); }
    .nav-menu a::after { display: none; }
    .menu-close { display: block; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; align-self: flex-end; padding: 0 0 15px; }
    .menu-toggle { display: block; z-index: 201; padding: 20px; }
    .menu-toggle.open { display: none; }
    .about-content { flex-direction: column; gap: 30px; }
    #cases .case-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    #cases .container { padding: 0 10px; }
    #cases .case-item .case-info h3 { font-size: 14px; font-weight: 500; }
    #cases .case-item .case-info { padding: 10px; }
    #cases .case-item .case-info p { font-size: 12px; }
    .cat-grid { grid-template-columns: repeat(5, 1fr); gap: 5px; }
    .cat-grid .cat-icon { display: none; }
    .cat-grid .cat-item { justify-content: center; }
    #products .container { padding: 0 10px; }
    .project-grid { grid-template-columns: repeat(2, 1fr); }
    .news-list { grid-template-columns: 1fr; }
    #products { padding: 0px 0; }
    #projects { padding: 50px 0; }
    #about { padding: 50px 0; }
    #cases { padding: 30px 0; }
    #news { padding: 50px 0; }
    .page-header { padding: 25px 0 5px; }
    #products .section-title, #projects .section-title, #about .section-title, #cases .section-title, #news .section-title { font-size: 24px; }
    /* Archive responsive */
    .archive-grid { grid-template-columns: repeat(2, 1fr); }
    .page-title { font-size: 24px; }
    .single-nav { flex-direction: column; gap: 20px; }
    .single-nav-prev, .single-nav-next { width: 100%; max-width: 100%; }
    .single-article { padding: 20px; }
    .single-main-wrap { padding: 15px 0 40px; }
    .post-list { max-width: 100%; }
    .single-page .course-detail-wrap { flex-direction: column; gap: 20px; margin-bottom: 10px; }
    .course-detail-side { width: 100%; }
    .single-recommend-grid { grid-template-columns: repeat(2, 1fr); }
    .course-intro { padding: 20px; }
    .course-intro-body { flex-direction: column; gap: 20px; }
    .course-intro-list { max-width: 100%; }
    .course-intro-qr img { width: 100px; height: 100px; }
    .single-top { flex-direction: column; gap: 20px; }
    .single-top .single-cover { width: 100%; }
    /* single-pxxm mobile */
    .single-page { padding: 20px 0 0px; }
    .course-detail-main { padding: 0 10px; }
    .single-project-info .container { padding: 15px 10px; }
    .single-project-info .course-intro { padding: 10px; }
    .single-project-info .course-intro-title { display: none; }
    .single-project-info .course-intro-list { display: flex; flex-wrap: wrap; max-width: 100%; }
    .single-project-info .course-intro-list li { width: 50%; flex-direction: column; gap: 2px; padding: 8px 0; }
    .single-project-info .course-intro-list li:last-of-type { width: 100%; }
    .single-project-info .course-intro-label { width: auto; font-size: 13px; }
    .single-project-info .course-intro-qr { display: none; }
    .below-article-wrap { padding: 30px 10px; }
    .below-article-wrap .section-title { font-size: 24px; }
    .below-article-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .below-article-img { height: 120px; }
    .course-intro-list li { flex-direction: column; gap: 4px; padding: 8px 0; }
    .course-intro-label { width: auto; font-size: 13px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .related-item-img { height: 110px; }
    .single-title { font-size: 20px; }
    .course-intro-title, .course-detail-title { font-size: 18px; }
    /* Hide desktop back-to-top on mobile */
    #back-to-top { display: none !important; }
    /* Mobile bottom nav */
    .mobile-bottom-nav { display: block; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 999; background: #df3333; border-top: 1px solid #e8e8e8; box-shadow: 0 -2px 10px rgba(0,0,0,0.08); padding: 6px 0; }
    .mobile-bottom-nav ul { display: flex; justify-content: space-around; align-items: center; list-style: none; margin: 0; padding: 0; }
    .mobile-bottom-nav li { flex: 1; text-align: center; }
    .mobile-bottom-nav a { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #fff; font-size: 11px; gap: 2px; }
    .mobile-bottom-nav a img { width: 24px; height: 24px; display: block; }
    /* Add bottom padding to body & footer so content isn't hidden behind nav */
    body { padding-bottom: 0; }
    .site-footer { padding-bottom: 70px; }
}

/* ===== Markdown 正文渲染（.single-content，配合文章级「用 Markdown 解析本文」开关）===== */
.single-content { font-size: 16px; line-height: 1.9; color: #333; word-wrap: break-word; overflow-wrap: break-word; }
.single-content p { margin: 0 0 16px; }
.single-content h1, .single-content h2, .single-content h3, .single-content h4 { color: #222; font-weight: 600; margin: 28px 0 14px; line-height: 1.4; }
.single-content h1 { font-size: 24px; }
.single-content h2 { font-size: 21px; }
.single-content h3 { font-size: 18px; }
.single-content h4 { font-size: 16px; }
.single-content ul, .single-content ol { margin: 0 0 16px; padding-left: 26px; }
.single-content li { margin: 4px 0; }
.single-content a { color: #d4232e; }
.single-content img { max-width: 100%; height: auto; display: block; margin: 10px auto; border-radius: 4px; }
.single-content blockquote { margin: 16px 0; padding: 10px 16px; border-left: 4px solid #ff6e6e; background: #faf7f7; color: #666; }
.single-content blockquote p:last-child { margin-bottom: 0; }
.single-content pre { background: #282c34; color: #abb2bf; padding: 14px 16px; border-radius: 6px; overflow-x: auto; margin: 0 0 16px; line-height: 1.6; }
.single-content code { background: #f2f2f2; color: #c7254e; padding: 2px 5px; border-radius: 3px; font-size: 14px; font-family: Consolas, Menlo, monospace; }
.single-content pre code { background: none; color: inherit; padding: 0; font-size: 14px; }
.single-content table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; display: block; overflow-x: auto; }
.single-content th, .single-content td { border: 1px solid #e5e5e5; padding: 8px 10px; text-align: left; }
.single-content th { background: #f8f9fa; font-weight: 600; }
.single-content hr { border: none; border-top: 1px solid #eee; margin: 24px 0; }
