/* ========== 导航栏专用样式（覆盖整合版 - 用于详情页面） ========== */
/* 本文件保留 detail.css 中所有非导航样式，仅覆盖导航相关部分 */

/* ========== 以下为 detail.css 中的全局样式和变量（保留不变） ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background: #fefefe;
    color: #1e2f3e;
    line-height: 1.5;
    scroll-behavior: smooth;
}

:root {
    --primary-green: rgb(83, 162, 22);
    --primary-teal: rgb(0, 117, 125);
    --gradient-primary: linear-gradient(120deg, var(--primary-green), var(--primary-teal));
    --gradient-bg: linear-gradient(135deg, rgba(83,162,22,0.05) 0%, rgba(0,117,125,0.05) 100%);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== 导航栏样式（覆盖 detail.css 原有导航样式） ========== */
/* 顶部栏 */
.top-bar {
    background: #f5faf2;
    border-bottom: 1px solid #e2ece4;
    padding: 8px 24px;
    font-size: 0.85rem;
}
.top-bar-container {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.top-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffffcc;
    backdrop-filter: blur(2px);
    padding: 6px 14px;
    border-radius: 40px;
    text-decoration: none;
    color: #2c6a4a;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #d4e2d8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.top-phone i {
    color: #53a216;
    font-size: 0.9rem;
}
.top-phone:hover {
    background: white;
    border-color: #53a216;
    color: #00757d;
    transform: translateY(-1px);
}

/* 导航栏主体 - 覆盖 detail.css 中的 .navbar */
.navbar {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e2ece4;
}

/* 覆盖 detail.css 中的 .nav-container */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px 24px;
    max-width: 1320px;
    margin: 0 auto;
    position: relative;
}

/* 覆盖 detail.css 中的 .logo-area */
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    background: var(--gradient-primary);
    width: 48px;
    height: 48px;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(83,162,22,0.2);
}
/* 覆盖内联样式 white background 的情况，确保 logo 图片正常显示 */
.logo-icon[style*="background: white"] {
    background: white !important;
}
.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.logo-icon i {
    font-size: 28px;
    color: white;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}
.logo-text h1 {
    font-size: 1.45rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}
.logo-text p {
    font-size: 0.7rem;
    color: #00757d;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

/* 导航链接 - 覆盖 detail.css 中的 .nav-links */
.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
}
.nav-item {
    position: relative;
}
.nav-item > a {
    text-decoration: none;
    font-weight: 600;
    color: #2c4a3a;
    padding: 8px 0;
    display: inline-block;
    transition: color 0.2s;
}
.nav-item > a:hover {
    color: #53a216;
}

/* 搜索按钮 */
.search-icon-btn {
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    padding: 8px 4px;
    color: #2c4a3a;
    transition: color 0.2s;
}
.search-icon-btn:hover {
    color: #53a216;
}

/* 子菜单 - 覆盖 detail.css 中的 .submenu */
.submenu {
    position: absolute;
    top: 45px;
    left: 0;
    background: white;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 12px 20px;
    min-width: 380px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 200;
    border: 1px solid #e9f0ec;
    display: flex;
    gap: 24px;
    flex-direction: row;
    white-space: nowrap;
}
.submenu li {
    list-style: none;
}
.submenu li a {
    text-decoration: none;
    color: #3a5e4e;
    font-weight: 500;
    padding: 8px 12px;
    display: block;
    border-radius: 40px;
    font-size: 0.95rem;
}
.submenu li a:hover {
    background: rgba(83,162,22,0.12);
    color: #00757d;
}
.nav-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    top: 38px;
}

/* 汉堡菜单 */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #2c4a3a;
    cursor: pointer;
    margin-left: auto;
    padding: 6px 8px;
}
.hamburger-menu:hover {
    color: #53a216;
}

/* ========== 响应式布局（覆盖 detail.css 媒体查询中的导航部分） ========== */
@media (max-width: 1024px) {
    .hamburger-menu {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px 28px;
        box-shadow: 0 25px 35px -12px rgba(0, 0, 0, 0.15);
        z-index: 1001;
        border-radius: 0 0 28px 28px;
        gap: 18px;
        border-top: 1px solid #eef3ea;
    }
    .nav-links.show-menu {
        display: flex;
    }
    .nav-item {
        width: 100%;
    }
    .nav-item > a {
        display: block;
        width: 100%;
        padding: 10px 0;
        font-size: 1rem;
        font-weight: 600;
    }
    /* 移动端子菜单改为垂直堆叠 - 覆盖 detail.css 中的固定定位方案 */
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: #f8fbf7;
        border-radius: 24px;
        padding: 12px 16px;
        margin-top: 8px;
        display: none;
        flex-direction: column;
        gap: 8px;
        min-width: auto;
        white-space: normal;
        border: 1px solid #e0ecd8;
    }
    .nav-item.active .submenu {
        display: flex;
    }
    .submenu li a {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    .search-item {
        display: none;
    }
    .nav-container {
        padding: 14px 20px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 6px 16px;
    }
    .top-phone {
        padding: 4px 12px;
        font-size: 0.75rem;
        gap: 6px;
    }
    .top-phone i {
        font-size: 0.8rem;
    }
    .nav-container {
        padding: 12px 16px;
    }
    .nav-links.show-menu {
        padding: 18px 20px 24px;
        gap: 14px;
    }
    .submenu {
        padding: 10px 12px;
        margin-top: 6px;
    }
    .submenu li a {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .top-phone span {
        max-width: 110px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Logo 响应式 */
@media (max-width: 640px) {
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    .logo-icon i {
        font-size: 22px;
    }
    .logo-text h1 {
        font-size: 1rem;
    }
    .logo-text p {
        font-size: 0.55rem;
    }
}

/* 修复移动端导航容器布局 - 覆盖 detail.css 中的 flex-direction: column */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* ========== 以下为 detail.css 中原有的非导航样式（保持不变） ========== */

/* 静态 Banner */
.hero-static {
    width: 100%;
    height: 480px;
    background-image: linear-gradient(0deg, rgba(0,0,0,0.5), rgba(0,0,0,0.3)), url('/assets/img/image/banner01.jpg');
    background-size: cover;
    background-position: center 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
.hero-static-content {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    padding: 28px 40px;
    border-radius: 60px;
    max-width: 750px;
}
.hero-static-content h2 {
    font-size: 2.4rem;
    margin-bottom: 12px;
}
@media (max-width: 768px) {
    .hero-static { height: 340px; }
    .hero-static-content h2 { font-size: 1.8rem; }
    .hero-static-content { padding: 20px 24px; }
}

/* 面包屑 */
.breadcrumb {
    background: var(--gradient-bg);
    padding: 14px 0;
    border-bottom: 1px solid #eef2e9;
}
.breadcrumb .container {
    font-size: 0.85rem;
    color: #4f6b5e;
}
.breadcrumb a {
    color: var(--primary-teal);
    text-decoration: none;
}

/* 布局调整：移除左侧导航，内容区域全宽 */
.about-layout {
    padding: 60px 0 70px;
    background: #ffffff;
}
/* 原两栏容器调整为单栏宽幅布局 */
.single-content-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
/* 右侧卡片（现在作为唯一核心内容） */
.display-card {
    width: 100%;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.03);
    border: 1px solid #edf4ea;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.3s ease;
}
/* 底部流动边框动画 - 主色调渐变流动 */
.display-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
    transparent 0%,
    rgb(83, 162, 22) 25%,
    rgb(0, 117, 125) 50%,
    rgb(83, 162, 22) 75%,
    transparent 100%);
    background-size: 200% 100%;
    animation: flowBorder 2.5s linear infinite;
    pointer-events: none;
    z-index: 3;
    border-radius: 0 0 32px 32px;
}
@keyframes flowBorder {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.display-content {
    padding: 32px 36px;
}

/* 详情页标题区域 */
.detail-header {
    margin-bottom: 28px;
    border-bottom: 2px solid rgba(83,162,22,0.2);
    padding-bottom: 20px;
}
.detail-title {
    font-size: 1.9rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 18px;
    line-height: 1.3;
}
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 0.9rem;
    color: #5c7768;
    align-items: center;
}
.detail-meta span i {
    margin-right: 6px;
    color: var(--primary-green);
}
.detail-category {
    background: rgba(83,162,22,0.12);
    padding: 4px 14px;
    border-radius: 40px;
    font-weight: 500;
    color: var(--primary-teal);
}
/* 富文本内容样式 */
.rich-content {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #1f2f2a;
}
.rich-content p {
    margin-bottom: 1.2em;
}
.rich-content h3 {
    font-size: 1.5rem;
    margin: 1.2em 0 0.6em;
    color: var(--primary-teal);
    font-weight: 700;
    border-left: 4px solid var(--primary-green);
    padding-left: 18px;
}
.rich-content h4 {
    font-size: 1.25rem;
    margin: 1.2em 0 0.5em;
    color: #2d6a4f;
}
.rich-content img {
    max-width: 100%;
    border-radius: 28px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    margin: 20px 0;
    display: block;
    border: 1px solid #e3f0dc;
}
/* ========== 视频播放样式（HTML5 video + iframe 嵌入） ========== */
.rich-content video {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    margin: 24px auto;
    display: block;
    background: #000;
}
/* 第三方视频 iframe（B站/腾讯视频/优酷/抖音等）响应式容器 */
.rich-content iframe {
    display: block;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    margin: 24px auto;
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    background: #000;
}
/* 如果 iframe 被外部包裹了固定尺寸，强制响应 */
.rich-content [style*="width"] iframe,
.rich-content [style*="height"] iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
}
@media (max-width: 768px) {
    .rich-content iframe {
        max-width: 100%;
        border-radius: 12px;
    }
    .rich-content video {
        border-radius: 12px;
    }
}
.rich-content blockquote {
    background: var(--gradient-bg);
    border-left: 5px solid var(--primary-green);
    padding: 16px 24px;
    margin: 1.5em 0;
    border-radius: 28px;
    font-style: normal;
    color: #2d4e3c;
    font-weight: 500;
}
.rich-content ul, .rich-content ol {
    margin: 0.8em 0 1.2em 1.8em;
}
.rich-content li {
    margin: 0.5em 0;
}
.rich-content a {
    color: var(--primary-teal);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.rich-content .stat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #f9fff7;
    border-radius: 28px;
    padding: 20px;
    margin: 30px 0;
    border: 1px solid #d9ecd0;
}
.rich-content .stat-item {
    flex: 1;
    text-align: center;
    background: white;
    border-radius: 24px;
    padding: 16px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.rich-content .stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.rich-content .stat-label {
    font-size: 0.85rem;
    color: #557c66;
}
@media (max-width: 768px) {
    .display-content {
        padding: 24px 20px;
    }
    .detail-title {
        font-size: 1.5rem;
    }
    .rich-content .stat-grid {
        flex-direction: column;
        gap: 12px;
    }
}
.back-to-list {
    margin-top: 40px;
    text-align: center;
}
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1.5px solid var(--primary-green);
    color: var(--primary-green);
    padding: 10px 28px;
    border-radius: 60px;
    font-weight: 600;
    transition: all 0.25s;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
}
.back-btn i {
    transition: transform 0.2s;
}
.back-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(83,162,22,0.2);
}
.back-btn:hover i {
    transform: translateX(-4px);
}

/* 页脚 */
.footer {
    background: #1f2e28;
    color: #cbdcd2;
    text-align: center;
    padding: 40px 0;
    font-size: 0.85rem;
}
.footer a {
    color: #9bc48b;
    text-decoration: none;
}
/* ========== 移动端优化：详情页排版 ========== */
@media (max-width: 768px) {
    .single-content-wrapper {
        padding: 0 12px;
    }
    .about-layout {
        padding: 24px 0 44px;
    }
    .display-card {
        border-radius: 20px;
    }
    .display-content {
        padding: 18px 16px;
    }
    .detail-title {
        font-size: 1.35rem;
        line-height: 1.35;
    }
    .detail-meta {
        gap: 12px;
        font-size: 0.8rem;
    }
    .rich-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    .rich-content img {
        border-radius: 14px;
    }
    .rich-content h3 {
        font-size: 1.2rem;
    }
}