:root {
    --primary-green: #2d7d46;
    --dark-green: #1a5c30;
    --light-green: #e8f5e9;
    --accent-gold: #c9a227;
    --text-dark: #333;
    --text-gray: #666;
    --text-light: #999;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
    padding-left: 6px;
}

/* 所有标题、导航等用黑体 */
h1, h2, h3, h4, h5, h6, .header-nav a, .section-title-main,
.channel-banner h1, .nav-parent, .sub-nav a,
.herbs-title, .index-product-name, .product-banner-more-btn,
.news-title-text, .news-title-sub,
.video-title, .video-subtitle, .banner-content h1,
.herb-detail-hero h1, .ing-detail-box h1 {
    font-family: 'Noto Sans SC', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== 滚动条===== */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-thumb { background: #137ddf; border-radius: 4px; }
::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }

/* ===== 顶部固定区域 ===== */
.site-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    padding-left: 6px;
    transition: background 0.32s ease;
}

.site-top-spacer {
    height: 160px;
    flex-shrink: 0;
}

/* ===== 顶部横幅条（图片作底，文字覆盖）===== */
.top-banner {
    position: relative;
    width: 100%;
    z-index: 1001;
    line-height: 0;
}

.top-banner-img {
    width: 100%;
    display: block;
}

.top-banner-txt {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0px;
    z-index: 2;
    display: none;
}
.top-banner-txt.active {
    display: flex;
}

@media (max-width: 768px) {
    .top-banner-txt { font-size: 16px; letter-spacing: 3px; }
    .site-top-spacer { height: 110px; }
}

/* ===== 头部：Logo左 / 导航中 / 热线右 ===== */
.header {
    background: #fff;
    position: relative;
    z-index: 1000;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: transform 0.32s ease, opacity 0.32s ease;
}
/* ===== 全站滚动隐藏导航：滚动中只留顶部横幅条，滚动停止恢复 ===== */
.site-top.nav-scroll-hide {
    background: transparent;
}
.site-top.nav-scroll-hide .header {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.header-inner {
    max-width: 1470px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    height: 100px;
}

/* Logo 左侧 */
.header-left {
    display: flex;
    align-items: center;
    //width: 260px;
    flex-shrink: 0;
	//margin-top: -30px;
    //margin-left: -100px;
}

.header-logo {
    display: block;
}

.header-logo img {
    height: 46px;
    width: auto;
    display: block;
}

/* 导航居中 */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-left:21px;
}

.header-nav ul {
    display: flex;
    list-style: none;
}

.header-nav li {
    position: relative;
}

.header-nav a {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Noto Sans SC', sans-serif;
    transition: color 0.3s;
    white-space: nowrap;
}

.header-nav a:hover {
    color: #2e7d32;
}
.header-nav a.active {
    color: #2e7d32;
}
.header-nav a.active::after {
    width: 100%;
}
.header-nav li.active > a {
    color: #2e7d32;
}
.header-nav li.active > a::after {
    width: 100%;
}
/* 走进润生下拉子菜单 */
.header-nav .nav-parent {
    position: relative;
}
.header-nav .sub-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    min-width: 120px;
    z-index: 100;
    text-align: center;
    padding-top: 2px;
}
.header-nav .nav-parent:hover .sub-nav {
    display: block;
}
.header-nav .sub-nav a {
    display: block;
    padding: 10px 24px;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid #eee;
    text-align: center;
    text-decoration: none;
    transition: color 0.3s;
}
.header-nav .sub-nav a:hover {
    color: #2e7d32;
}
.header-nav .sub-nav li:last-child a {
    border-bottom: none;
}

/* 热线右侧 */
.header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
	//margin-top: -30px;
   // margin-right: -70px;
   margin-left:13px;
}

.hotline-icon {
    color: var(--primary-green);
    font-size: 28px;
    margin-right: 9px;
    display: flex;
    align-items: center;
}

.hotline-info {
    display: flex;
    flex-direction: column;
}

.hotline-label {
    font-size: 13px;
    color: #666;
    line-height: 1.3;
}

.hotline-number {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

@media (max-width: 1200px) {
    .header-nav a { padding: 12px 10px; font-size: 14px; }
    .header-inner { padding: 0 20px; }
    .header-left { width: 200px; }
    .header-logo img { height: 44px; }
    .hotline-number { font-size: 20px; }
}

@media (max-width: 768px) {
    .top-banner-con { height: 40px; }
    .top-banner-txt { font-size: 16px; letter-spacing: 3px; }
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 20px;
    }
    .header-left { width: auto; }
    .header-nav {
        order: 3;
        flex-basis: 100%;
        margin-top: 8px;
        overflow-x: auto;
        justify-content: flex-start;
    }
    .header-nav a { padding: 8px 10px; font-size: 13px; }
    .header-right { margin-left: auto; }
    .hotline-icon { font-size: 24px; margin-right: 10px; }
    .hotline-number { font-size: 18px; }
}

/* 二级菜单 */
.sub-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    min-width: 180px;
    z-index: 100;
}

.has-submenu {
}
.header-nav li:hover .sub-nav,
.has-submenu:hover .sub-nav {
    display: block;
}

.sub-nav li {
    list-style: none;
}

.sub-nav a {
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
}

.sub-nav a:hover {
    background: var(--light-green);
}

/* ===== 面包屑 ===== */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    font-size: 14px;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--primary-green);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .sep {
    margin: 0 8px;
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--text-dark);
}

/* ===== 分页 ===== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
}

.page-btn,
.page-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.page-btn {
    background: var(--white);
    border: 1px solid #ddd;
    color: var(--text-dark);
    cursor: pointer;
}

.page-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.page-btn.current {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

.page-info {
    color: var(--text-light);
    border: none;
    background: transparent;
}

/* ===== 页脚 ===== */
.footer {
    background: #1e6db5;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-inner {
    max-width: 1200px;
    /* ===== 页脚 ===== */
    .footer {
        background: linear-gradient(180deg, #1a237e 0%, #0d1642 100%);
        color: #fff;
        padding: 60px 0 30px;
    }

    .footer-inner {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 30px;
        margin-bottom: 40px;
    }

    .footer-col-title {
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 15px;
        color: #fff;
    }

    .footer-links {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a {
        color: #90caf9;
        text-decoration: none;
        font-size: 13px;
        transition: color 0.3s;
    }

    .footer-links a:hover {
        color: #fff;
    }

    .footer-qr {
        width: 100px;
        height: 100px;
        background: #fff;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #333;
        font-size: 12px;
        margin-bottom: 10px;
        margin-top: 15px;
    }

    .footer-qr img {
        max-width: 100%;
        max-height: 100%;
        border-radius: 8px;
    }

    .footer-qr-text {
        font-size: 12px;
        color: #90caf9;
    }

    .footer-bottom {
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 20px;
        text-align: center;
        font-size: 12px;
        color: #90caf9;
    }

/* ===== 右侧快捷导航 ===== */
.quick-links {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    box-shadow: -2px 0 15px rgba(0,0,0,0.1);
    border-radius: 12px 0 0 12px;
    overflow: hidden;
    z-index: 999;
}

.quick-links a {
    display: block;
    padding: 15px 20px;
    color: var(--text-dark);
    font-size: 13px;
    border-bottom: 1px solid #eee;
    text-align: center;
    min-width: 80px;
    transition: all 0.3s;
}

.quick-links a:last-child {
    border-bottom: none;
}

.quick-links a:hover {
    background: var(--primary-green);
    color: var(--white);
}

/* ===== 通用容器 ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.section-title { text-align: center; margin-bottom: 50px; }
.section-title-main { font-family: 'Noto Sans SC', sans-serif; font-size: 32px; font-weight: 700; color: #333; }
.section-title-main span { color: #2d7d46; }
.section-title-sub { font-size: 14px; color: #888; margin-top: 8px; }

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h3 {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 32px;
    color: var(--dark-green);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
}

.section-header p {
    color: var(--text-gray);
    margin-top: 20px;
    font-size: 15px;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 16px;
}

/* ===== 栏目 Banner ===== */
.channel-banner {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.banner-content h1 {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 40px;
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 16px;
    opacity: 0.9;
}

.banner-content .breadcrumb {
    margin-top: 15px;
    color: rgba(255,255,255,0.8);
}

.banner-content .breadcrumb a {
    color: var(--accent-gold);
}

/* tybanner 轮播（新闻栏目等）统一风格 */
.tybanner-swiper { width: 100%; height: 500px; }
.tybanner-swiper .swiper-pagination-bullet {
    width: 14px; height: 14px; border-radius: 50%;
    background: rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
    opacity: 1; display: inline-block; margin: 0 4px;
}
.tybanner-swiper .swiper-pagination-bullet-active {
    background: #fff; border-color: #fff;
}
.tybanner-swiper .swiper-button-prev,
.tybanner-swiper .swiper-button-next {
    width: 44px !important; height: 44px !important;
    background: rgba(0,0,0,0.35) !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255,255,255,0.9) !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(0,0,0,0.3) !important;
}
.tybanner-swiper .swiper-button-prev::after,
.tybanner-swiper .swiper-button-next::after {
    font-size: 24px !important; font-weight: 700 !important; color: #fff !important;
}

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .header-inner { padding: 0 20px; }
    .header-nav a { padding: 12px 10px; font-size: 14px; }
    .container { padding: 0 20px; }
    .section-inner { padding: 0 15px; }
}
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .header-left { width: 200px; margin-left: -60px; }
    .header-logo img { height: 44px; }
    .hotline-number { font-size: 20px; }
    .container { padding: 0 15px; }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 10px;
        height: auto;
        padding: 10px 15px;
    }
    .header-left { width: auto; margin-left: 0; }
    .header-nav {
        order: 3;
        flex-basis: 100%;
        margin-top: 8px;
        overflow-x: auto;
        justify-content: flex-start;
    }
    .header-nav ul {
        flex-wrap: nowrap;
    }
    .header-nav a {
        padding: 10px 10px;
        font-size: 13px;
    }
    .header-right { margin-left: auto; }
    .hotline-icon { font-size: 24px; margin-right: 10px; }
    .hotline-number { font-size: 18px; }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .quick-links {
        display: none;
    }
    .channel-banner {
        height: 200px;
    }
    .banner-content h1 {
        font-size: 28px;
    }
    .container { padding: 0 12px; }
    .section-inner { padding: 0 12px; }
}
