/*
Theme Name: 我的动画首页
Author: Your Name
Description: 专为单个动画首页定制的极简主题
Version: 1.0
*/
/* 导航栏基础样式 */
    .main-header {
        background-color: #07142B;
        border-bottom: 2px solid #F0CD73;
        position: sticky; /* 固定在顶部，方便单页滚动 */
        top: 0;
        z-index: 999;
        width: 100%;
        box-sizing: border-box;
    }
    /* 新增：修复 WordPress 登录后顶部工具条遮挡的问题 */
body.admin-bar .main-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .main-header {
        top: 46px; /* WordPress 在移动端的工具条高度是 46px */
        border-top: none;
        border-left: none;
        border-right: none;
    }
}
/* 解决顶部悬浮导航栏遮挡锚点跳转标题的问题 */
section, 
.category-section {
    /* 这个数值请根据你实际导航栏的高度来调整 */
    /* 建议比你的导航栏高度多出 20px 左右，这样标题上方会有一些呼吸空间 */
    scroll-margin-top: 120px; 
}
/* 在原本的 nav-menu 样式下方添加 */
.mobile-menu-toggle {
    display: none; /* PC端默认隐藏 */
}
    .header-container {
        max-width: 1200px; /* 限制主体内容宽度并居中 */
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }

    /* Logo 样式 */
    .logo img {
        height: 50px; /* 根据实际视觉调整高度 */
        width: auto;
        display: block;
    }

    /* 菜单列表样式 */
    .nav-menu {
        list-style: none;
        display: flex;
        gap: 35px; /* 菜单项之间的间距 */
        margin: 0;
        padding: 0;
    }

    /* 菜单链接样式 */
    .nav-menu li a {
        color: #ffffff;
        text-decoration: none;
        font-size: 16px;
        font-family: sans-serif;
        padding-bottom: 8px; /* 给底部边框留出空间 */
        border-bottom: 2px solid transparent; /* 默认透明边框防止跳动 */
        transition: all 0.3s ease;
    }

    /* 悬停和激活状态：文字变色及底部黄线 */
    .nav-menu li a:hover,
    .nav-menu li a.active {
        color: #F0CD73;
        border-bottom: 2px solid #F0CD73;
    }
    
    /* ==========================================
   Banner 模块样式
========================================== */
.hero-banner {
    background-image: url('/wp-content/uploads/2026/10/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh; 
    max-height: 636px; /* 新增：最高不能超过 636px */
    min-height: 500px; /* 稍微调小最小高度以防小屏幕溢出 */
    display: flex;
    align-items: center; 
    position: relative;
    margin-top: -2px; 
}

/* 渐变遮罩层，确保背景图不会干扰白色文字阅读 */
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(to right, rgba(7, 20, 43, 0.8) 0%, rgba(7, 20, 43, 0) 100%);*/
    z-index: 1;
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
    z-index: 2; /* 确保内容显示在遮罩层上方 */
    box-sizing: border-box;
}

/* 标题基础设置 */
.banner-title {
    font-size: 40px;
    margin:0;
    font-weight: bold;
    line-height: 1.3;
}

/* 上半部分黄色文字 */
.banner-title.highlight {
    color: #F0CD73;
}

/* 下半部分白色文字 */
.banner-title.white {
    color: #ffffff;
    margin-bottom: 40px; /* 标题与按钮的间距 */
}

/* 按钮组容器 */
.banner-buttons {
    display: flex;
    gap: 20px;
}

/* 按钮基础公共样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* 左侧实心按钮 */
.btn-primary {
    background-color: #F0CD73;
    color: #07142B;
    border: 2px solid #F0CD73;
}

.btn-primary:hover {
    background-color: #e5bd5e;
    border-color: #e5bd5e;
}

/* 右侧透明线框按钮 */
.btn-outline {
    background-color: #10264B80; /* 微微的透明底色 */
    color: #F0CD73;
    border: 1px solid #5a6b8c; /* 参考设计图的暗色细边框 */
}

.btn-outline:hover {
    background-color: rgba(240, 205, 115, 0.1);
    border-color: #F0CD73;
}
/* ==========================================
   时间线模块样式 (Timeline)
========================================== */
.timeline-section {
    background-color: #07142B; /* 整体背景色 */
    padding: 80px 20px;
    box-sizing: border-box;
}

.timeline-container {
    max-width: 1000px; /* 时间线不需要占满全宽，收拢一点更利于阅读 */
    margin: 0 auto;
}

/* 时间线主轴 */
.timeline {
    position: relative;
    padding-left: 40px; /* 给左侧线框留出空间 */
}

/* 贯穿始终的垂直线 */
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: -15px; /* 将 top 改为负数，让线条从第一个圆点上方开始延伸 */
    bottom: 0;
    width: 1px;
    background-color: rgba(240, 205, 115, 0.4); 
}

/* 每个时间线节点 */
.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* 节点圆圈指示器 (根据设计图带外圈效果) */
.timeline-dot {
    position: absolute;
    left: -43.5px; /* 精准计算：40px内边距 + 4px圆点半径 - 0.5px线条中心点 = 43.5px，完美居中线条 */
    top: 10px; /* 根据 24px 的标题字号和行高，下调 top 值使其与标题垂直居中对齐 */
    width: 8px;
    height: 8px;
    background-color: #F0CD73;
    border-radius: 50%;
    outline: 1px solid #F0CD73;
    outline-offset: 4px; 
}

/* 标题样式 */
.timeline-title {
    color: #F0CD73;
    font-size: 24px;
    margin: 0 0 15px 0;
    font-weight: bold;
}

/* 简介文字样式 */
.timeline-desc {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
    opacity: 0.9;
}

/* --- 图文混排布局 --- */
/* 左文右图的布局 (节点 2) */
.content-with-right-img {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.content-with-right-img .text-column {
    flex: 1.2;
}

.content-with-right-img .img-column {
    flex: 1;
    display: flex;
    justify-content: flex-end; /* 保持图片整体靠右对齐 */
    gap: 20px; /* 这就是图片之间的空隙，可根据你的视觉感受调大或调小 */
    flex-wrap: nowrap; /* 当屏幕变小、空间不够时允许图片换行 */
}

/* 确保图片在并排时宽度自适应且不会撑破容器（原来的 img 样式可以略作调整） */
.content-with-right-img .img-column img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain; /* 保证图片比例不失真 */
}


/* 底部图片的布局 (节点 3) */
.bottom-img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 8px;
}
/* 底部多图网格容器 (节点 6) */
.bottom-img-grid {
    display: flex;
    gap: 20px; /* 图片之间的间距 */
    margin-top: 20px;
    flex-wrap: wrap; /* 允许在屏幕较小时换行 */
}

/* 让里面的图片平分宽度 */
.bottom-img-grid img {
    flex: 1; /* 每张图片占据相同宽度 */
    min-width: 200px; /* 防止屏幕太小时图片缩得过小 */
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}
/* ==========================================
   文章列表模块
========================================== */
.post-lists-section {
    background-color: #ffffff; /* 整个大模块的外层背景色 */
    padding: 20px;
}

.post-lists-container {
    max-width: 1200px;
    margin: 0 auto;
}

.category-section {
    margin-bottom: 80px;
}

/* 分类大标题及横线 */
.section-title {
    text-align: center;
    color: #10264B;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 280px;
    height: 2px;
    background-color: #10264B;
    margin: 15px auto 0;
}

/* 网格布局：一行 3 个 */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 修改：单个文章卡片基础样式，增加边框和阴影的过渡属性 */
.post-card {
    background-color: #10264B;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* 默认给一个透明边框或极暗的边框，防止 hover 时增加边框导致卡片抖动 */
    border: 1px solid rgba(240, 205, 115, 0.1); 
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; 
}

/* 修改：鼠标悬停在卡片上时的整体效果 (整体上移 + 出现指定颜色边框) */
.post-card:hover {
    transform: translateY(-10px) !important; /* 整体向上移动 10px */
    border-color: #F0CD73; /* 边框变成你要求的颜色 */
    box-shadow: 0 10px 25px rgba(7, 20, 43, 0.3); /* 补充一点底部阴影，让上浮更有立体感 */
}

/* 修改：封面图基础样式，增加缩放的过渡属性 */
.post-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease; /* 图片缩放时间比卡片移动稍微长一点，显得更柔和 */
}

/* 新增：鼠标悬停在卡片上时，内部的图片放大 */
.post-card:hover .post-img img {
    transform: scale(1.08); /* 图片放大到 1.08 倍 */
}

/* 文字内容区 */
.post-content {
    padding:15px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* 保证高度一致时，按钮能沉到底部 */
}

.post-link {
    text-decoration: none;
}

/* 文章标题 */
.post-title {
    color: #F0CD73;
    font-size: 18px;
    margin: 0 0 5px 0;
    line-height: 1.5;
}

/* 日期和简介 */
.post-date,
.post-excerpt {
    color: #8FA0B8;
}

.post-date {
    font-size: 12px;
    margin-bottom: 10px;
}

.post-excerpt {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    /* 下面这 4 行是实现“最多显示两行，末尾加 ...”的核心代码 */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制最多显示 2 行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 按钮基础样式 */
.post-btn {
    font-size: 14px;
    text-decoration: none;
    margin-top: auto; /* 始终贴在底部 */
    display: inline-block;
    transition: opacity 0.3s ease;
}

.post-btn:hover {
    opacity: 0.8;
}

/* 第一类按钮颜色 */
.btn-market {
    color: #FFFFFF;
}

/* 第二类按钮颜色 */
.btn-training {
    color: #F0CD73;
}
/* ==========================================
   Đào tạo (Education) 文章模块
========================================== */
.education-section {
    background-color: #07142B; /* 整体深色背景 */
    padding: 80px 20px;
}

.education-container {
    max-width: 1200px; /* 让两列图片紧凑一点，不要太宽 */
    margin: 0 auto;
}

/* 标题和自适应宽度的下划线 */
.edu-title-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.edu-section-title {
    color: #F0CD73;
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #F0CD73;
    display: inline-block; /* 保证底边框宽度刚好等于文字宽度 */
}

/* 一行 2 个的网格布局 */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* 卡片基础样式与交互 */
.edu-card {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(240, 205, 115, 0.2); 
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #10264B; /* 底色 */
}

/* 鼠标悬停时的上浮及边框变色 (使用 !important 覆盖 AOS) */
.edu-card:hover {
    transform: translateY(-10px) !important;
    border-color: #F0CD73;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.edu-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

/* 图片容器 (相对定位，供遮罩层绝对定位) */
.edu-img-wrapper {
    position: relative;
    width: 100%;
    height: 380px; /* 固定卡片高度 */
    overflow: hidden;
}

/* 图片铺满容器并实现悬停放大 */
.edu-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.edu-card:hover .edu-img-wrapper img {
    transform: scale(1.08);
}

/* 渐变遮罩层 (绝对定位覆盖在图片下方) */
.edu-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%; /* 遮罩层占图片的一半高度 */
    background: linear-gradient(180deg, rgba(11, 28, 54, 0) 0%, #10264B 68%);
    display: flex;
    align-items: flex-end; /* 文字对齐到底部 */
    padding: 25px;
    box-sizing: border-box;
    z-index: 2; /* 确保在图片之上 */
}

/* 叠加的文字标题 */
.edu-title {
    color: #ffffff;
    font-size: 20px;
    margin: 0;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* 鼠标悬停卡片时，内部标题文字变色 */
.edu-card:hover .edu-title {
    color: #F0CD73;
}
/* ==========================================
   Khám phá (Discovery) 模块
========================================== */
.kham-pha-section {
    background-color: #07142B; /* 模块整体底色 */
    position: relative; /* 确保内部绝对定位元素以此为基准 */
}
/* 新增：贯穿全宽的顶部黄色分割线 */
.kham-pha-top-line {
    width: 100%;
    height: 1px; /* 细线 */
    background-color: #F0CD73; /* 黄色 */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10; /* 确保显示在最上层 */
}
/* --- 上半部分：背景区域 --- */
.kham-pha-top {
    position: relative;
    background-image: url('/wp-content/uploads/2026/10/vantage-bg-1.webp');
    background-size: cover;
    background-position: center;
    height: 600px; /* 控制上半部分高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 顶部向下渐变 */
.gradient-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(180deg, #07142B 0%, rgba(7, 20, 43, 0) 100%);
    z-index: 1;
}

/* 底部向上渐变 */
.gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(0deg, #07142B 0%, rgba(7, 20, 43, 0) 100%);
    z-index: 1;
}

/* 上半部分内容层 */
.kham-pha-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 80px; /* 【新增】给顶部留出足够空间，把 Logo 和按钮整体往下压，绝对不会再重叠 */
}

/* 标题样式 */
.kham-pha-title {
    color: #F0CD73;
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 40px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #F0CD73;
    display: inline-block;
    /* 强力绝对定位 */
    position: absolute;
    top: 50px; /* 距离顶部分割线 50px，高高在上且避开所有元素 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 5; /* 确保在背景图和遮罩上方 */
}

/* Logo 样式 */
.vantage-logo-wrapper img {
    max-width: 350px;
    height: auto;
    margin-bottom: 30px;
}

/* 按钮样式 */
.vantage-btn {
    background-color: #07142BED; /* 带透明度的底色 */
    border: 2px solid #F0CD73;
    color: #F0CD73;
    padding: 12px 35px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px; /* 胶囊形状 */
    transition: all 0.3s ease;
}

.vantage-btn:hover {
    background-color: #F0CD73;
    color: #07142B;
}

/* --- 下半部分：视频卡片列表 --- */
.kham-pha-bottom {
    padding: 60px 20px 100px;
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 视频卡片基础样式 */
.video-card {
    background-color: #10264B;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    border: 1px solid rgba(240, 205, 115, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* 卡片悬停效果 */
.video-card:hover {
    transform: translateY(-8px) !important;
    border-color: #F0CD73;
}

/* 视频封面图容器 (16:9 比例) */
.video-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-img-wrapper img {
    transform: scale(1.05);
}

/* 播放按钮 (默认透明 + 黄色边框 + 黄色三角形) */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 2px solid #F0CD73;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

/* 播放按钮的三角形 */
.play-btn::after {
    content: '';
    display: block;
    border-left: 14px solid #F0CD73;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 5px; /* 修正三角形视觉居中 */
    transition: all 0.3s ease;
}

/* 卡片悬停时 -> 播放按钮变色 */
.video-card:hover .play-btn {
    background-color: #F0CD73;
}

/* 卡片悬停时 -> 内部三角形变成黑色 */
.video-card:hover .play-btn::after {
    border-left-color: #000000;
}

/* 卡片文本区域 */
.video-info {
    padding: 20px;
}

.video-tag {
    color: #F0CD73;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.video-title {
    color: #ffffff;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}
/* ==========================================
   Đối tác (Partner) 模块
========================================== */
/* 外层大背景 */
.partner-section {
    background-image: url('/wp-content/uploads/2026/10/hezuo-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 20px 120px; /* 上下留出足够的呼吸空间 */
    position: relative;
}

.partner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 顶部标题样式 */
.partner-title {
    color: #F0CD73;
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 50px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #F0CD73;
    display: inline-block;
    text-align: center;
}

/* 中间的小背景卡片 */
.partner-card {
    background-image: url('/wp-content/uploads/2026/10/hezuo-bg-1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    max-width: 786px; /* 限制卡片的最大宽度 */
    border: 1px solid rgb(240 205 115 / 66%);
    border-radius: 8px;
    padding: 125px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6); /* 增加较深的阴影让卡片浮在背景上 */
    box-sizing: border-box;
}

/* 卡片内部的 Logo */
.partner-logo {
    max-width: 260px;
    height: auto;
    margin-bottom: 25px;
}

/* 卡片内部的文案 */
.partner-text {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 40px 0;
    max-width: 550px; /* 控制文字宽度使其自动换行且不显得空旷 */
}

/* 底部按钮 */
.partner-btn {
    background-color: #F0CD73;
    color: #07142B;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px; /* 胶囊形状 */
    transition: all 0.3s ease;
}

.partner-btn:hover {
    background-color: #e5bd5e;
    transform: translateY(-3px); /* 悬停时微微上浮 */
    box-shadow: 0 5px 15px rgba(240, 205, 115, 0.3);
}
/* ==========================================
   页脚模块 (Footer)
========================================== */
.site-footer {
    background-color: #10264B; /* 页脚底色 */
    padding: 60px 20px 40px;
    color: #ffffff;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 上半部分：免责声明 */
.footer-disclaimer {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85); /* 稍微降低一点透明度，让底部的加粗文字更突出 */
    margin-bottom: 30px;
    text-align: justify;
}

/* 分割线 */
.footer-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15); /* 半透明的白色分割线 */
    margin-bottom: 30px;
}

/* 下半部分布局 */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* 允许在屏幕较小时换行 */
    gap: 20px;
}

/* 左侧：链接和版权 */
.footer-links {
    font-size: 14px;
    font-weight: bold; /* 字体加粗 */
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links a,
.footer-links span {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #F0CD73; /* 悬停时变黄 */
}

/* 竖线分隔符 */
.sep {
    color: rgba(255, 255, 255, 0.3) !important; /* 让竖线显得柔和一些 */
    font-weight: normal;
}

/* 右侧：社交图标 */
.footer-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 修改：社交图标的基础容器（去除原 svg 专用的尺寸） */
.social-icon {
    display: inline-flex; /* 使得垂直居中更容易控制 */
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 新增：专门控制自定义 webp 图片的大小和垂直对齐 */
.social-icon img {
    width: 24px;       /* 限制图标的宽度为 24px */
    height: 24px;      /* 限制图标的高度为 24px，确保正方形 */
    object-fit: contain; /* 防止图片在比例不同时被挤压变形 */
    display: block;
}

/* 悬浮交互：悬停时微微上滑和稍微透明，比变色更自然 */
.social-icon:hover {
    transform: translateY(-3px); /* 向上浮动 3px */
    opacity: 0.8; /* 微微变淡，暗示可点击 */
}
/* ==========================================
   文章详情页 (Single Post) & 侧边栏
========================================== */
/* 整体双栏布局 */
.single-layout-container {
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 20px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
/* 专门为文章详情页、分类列表页、搜索页恢复深蓝背景色 */
body.single,
body.archive,
body.search {
    background-color: #07142B;
    color: #ffffff;
}
/* 左侧内容区 */
.single-main-content {
    flex: 1; /* 占据剩余的大部分空间 */
    min-width: 0; /* 防止内容过大撑破容器 */
}


.single-title {
    color: #F0CD73;
    font-size: 32px;
    border-bottom: 2px solid #F0CD73;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.single-meta {
    font-size: 14px;
    color: #8FA0B8;
    margin-bottom: 30px;
}
.single-meta a {
    color: #F0CD73;
    text-decoration: none;
}
.single-content {
    line-height: 1.8;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}
.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* ---------------- 右侧边栏样式 ---------------- */
.site-sidebar {
    width: 340px; /* 固定右侧边栏的宽度 */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 30px; /* 两个 widget 之间的间距 */
    padding-top: 40px;
}

/* 侧边栏卡片基础样式 */
.sidebar-widget {
    background-color: #10264B;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid rgba(240, 205, 115, 0.2);
}

.widget-title {
    color: #F0CD73;
    font-size: 18px;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(240, 205, 115, 0.3);
}

/* 相关文章列表 (图文左右布局) */
.related-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-post-link {
    display: flex;
    gap: 15px;
    text-decoration: none;
    align-items: center;
    transition: transform 0.3s ease;
}

.related-post-link:hover {
    transform: translateX(5px); /* 悬停时整体微微右移 */
}

.related-post-thumb {
    width: 70px;
    height: 55px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-title {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.related-post-link:hover .related-post-title {
    color: #F0CD73;
}

/* 分类列表 */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0;
}

.category-list a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.category-list li:last-child a {
    border-bottom: none;
}

.category-list a:hover {
    color: #F0CD73;
    padding-left: 8px; /* 悬停时文字微微向右缩进 */
}
/* ==========================================
   分类归档与搜索页 (Archive & Search)
========================================== */
/* 因为左侧容器宽度有限，强制改为一行两列 (取决于你的首页 post-grid 是怎么写的) */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* 统一卡片底色，确保和首页一致 */
.archive-grid .post-card {
    background-color: #10264B;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(240, 205, 115, 0.2);
    display: flex;
    flex-direction: column;
}

/* 分页导航样式 */
.theme-pagination {
    margin-top: 50px;
    text-align: center;
}

.theme-pagination .nav-links {
    display: inline-flex;
    gap: 10px;
}

.theme-pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    background-color: #10264B;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid rgba(240, 205, 115, 0.2);
    transition: all 0.3s ease;
}

.theme-pagination .page-numbers.current,
.theme-pagination .page-numbers:hover {
    background-color: #F0CD73;
    color: #07142B;
    border-color: #F0CD73;
    font-weight: bold;
}
/* ==========================================
   侧边栏搜索框样式
========================================== */
.search-widget {
    padding: 20px; /* 搜索模块上下留白稍微紧凑一点 */
}

/* 搜索表单容器 */
.sidebar-search-form {
    display: flex;
    align-items: center;
    background-color: #07142B; /* 使用最深色的背景让输入框凹陷下去，产生层次感 */
    border: 1px solid rgba(240, 205, 115, 0.3); /* 默认半透明黄边框 */
    border-radius: 30px; /* 圆角胶囊形状 */
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 当用户点击输入框时，边框高亮并发光 */
.sidebar-search-form:focus-within {
    border-color: #F0CD73; 
    box-shadow: 0 0 10px rgba(240, 205, 115, 0.2);
}

/* 输入框本体 */
.sidebar-search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: #ffffff;
    font-size: 15px;
    outline: none; /* 去除浏览器默认的黑框 */
}

/* 输入框里的提示文字颜色 */
.sidebar-search-input::placeholder {
    color: #8FA0B8;
}

/* 搜索提交按钮 (放大镜) */
.sidebar-search-submit {
    background: transparent;
    border: none;
    color: #F0CD73;
    padding: 0 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.sidebar-search-submit svg {
    width: 20px;
    height: 20px;
}

/* 鼠标悬停在放大镜上时稍微放大并变亮 */
.sidebar-search-submit:hover {
    transform: scale(1.15);
    color: #ffffff;
}
/* ==========================================
   移动端响应式适配 (手机 & 平板)
========================================== */
@media screen and (max-width: 768px) {
   /* --- 1. 导航栏专业移动端适配 --- */
   .main-header {
        position: relative; 
        top: 0 !important; /* 强制归零，防止受到后台 admin-bar 的 top 值影响而产生白边 */
    }
    .header-container {
        flex-direction: row; /* 保持左右排列 */
        justify-content: space-between;
        flex-wrap: wrap; /* 允许菜单项掉到下一行 */
        padding: 15px 20px;
    }
    
    /* 显示汉堡菜单按钮 */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        cursor: pointer;
        padding: 5px;
    }
    
    /* 汉堡按钮的三根线条 */
    .mobile-menu-toggle span {
        display: block;
        width: 28px;
        height: 3px;
        background-color: #F0CD73;
        border-radius: 2px;
        transition: 0.3s ease;
    }
    
    /* 默认隐藏移动端菜单，并设置为绝对定位下拉样式 */
    .nav-menu {
        display: none; 
        width: 100%;
        flex-direction: column;
        text-align: center;
        gap: 0;
        padding: 10px 0;
        margin-top: 15px;
        border-top: 1px solid rgba(240, 205, 115, 0.2);
    }
    
    /* 当 JS 添加 active 类时显示菜单 */
    .nav-menu.active {
        display: flex;
        animation: fadeInDown 0.3s ease forwards;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
        border-bottom: none; /* 移动端去掉底边框 */
    }
    
    .nav-menu li a:hover,
    .nav-menu li a.active {
        color: #F0CD73;
        background-color: rgba(255,255,255,0.05);
        border-bottom: none;
    }
    
    /* 简单的下拉动画 */
    @keyframes fadeInDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* 2. Banner 移动端适配 */
    .banner-title {
        font-size: 32px; /* 缩小标题字体 */
    }
    
    .banner-title.white {
        margin-bottom: 30px;
    }
    
    .banner-buttons {
        flex-direction: column; /* 按钮改为上下排列 */
        gap: 15px;
    }
    
    .btn {
        text-align: center;
        width: 60%; /* 按钮占满屏幕宽度 */
        box-sizing: border-box;
    }
    /* 3. 时间线移动端适配 */
    .timeline {
        padding-left: 25px; /* 缩小左侧留白 */
    }
    .timeline-dot {
        left: -28.5px; /* 精准对齐移动端的线条 (25px + 4px - 0.5px) */
        top: 8px; /* 移动端标题字号变小，圆点高度也相应往上微调 */
    }
    .timeline-title {
        font-size: 20px;
    }
    .timeline-desc {
        font-size: 14px;
    }
    /* 移动端将“左文右图”强制改为上下堆叠 */
    .content-with-right-img {
        flex-direction: column;
        gap: 20px;
    }
    .content-with-right-img .img-column {
        width: 100%;
        text-align: left;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    /* 文章列表移动端适配 */
    .post-grid {
        grid-template-columns: 1fr; /* 手机端改为一行一个 */
        gap: 20px;
    }
    .post-img img {
        height: 200px;
    }
    /* Đào tạo 模块移动端 */
    .edu-grid {
        grid-template-columns: 1fr; /* 手机端改为单列 */
        gap: 20px;
    }
    .edu-img-wrapper {
        height: 250px; /* 手机端稍微减小图片高度 */
    }
    /* Khám phá 模块移动端适配 */
    .kham-pha-top {
        height: 450px; /* 手机端减小上半部分高度 */
    }
    .vantage-logo-wrapper img {
        max-width: 250px; /* 手机端缩小 logo */
    }
    .video-grid {
        grid-template-columns: 1fr; /* 手机端改为单列排列 */
        gap: 20px;
    }
    /* Đối tác 模块移动端适配 */
    .partner-card {
        padding: 40px 20px; /* 缩小内边距 */
    }
    .partner-logo {
        max-width: 200px; /* 缩小 Logo */
    }
    .partner-text {
        font-size: 14px; /* 缩小字号 */
        margin-bottom: 30px;
    }
    /* 页脚移动端适配 */
    .footer-bottom {
        flex-direction: column; /* 手机端上下堆叠 */
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    .footer-links {
        justify-content: center;
        line-height: 2;
    }
    /* 详情页移动端：强制上下排布 */
    .single-layout-container {
        flex-direction: column;
    }
    .site-sidebar {
        width: 100%;
    }
    .archive-grid {
        grid-template-columns: 1fr;
    }
    .hide-image{
        width: 240px;
    }
}

/* 针对非常小的手机屏幕（如 iPhone SE）进一步优化 */
@media screen and (max-width: 480px) {
    .banner-title {
        font-size: 26px;
    }
}