/* ===== 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 ===== */
.site-header {
    background: #fff;
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.08); */
    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;
}

/* ===== 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(10, 1fr);
    gap: 20px;
}

.cat-item { 
    background: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: 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 ===== */
.site-footer {
    background: #222;
    color: #aaa;
    padding: 50px 0 40px;
    text-align: center;
    font-size: 14px;
    border-top: 3px solid #d4232e;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.site-footer a {
    color: #ccc;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: #fff;
}

.footer-meta {
    font-size: 12px;
    color: #777;
}

.footer-meta a {
    color: #999;
}

/* ===== 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) ===== */
.course-intro {
    /* background: #fff;
    border-radius: 8px;
    padding: 24px 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); */
}

.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;
    }
}
