/* ========================================
   翌日健康 - 前台站点专用样式表
   风格：清新医疗风（白/浅蓝/浅绿）
   特点：响应式设计、专业可信赖
   ======================================== */

/* ---------- CSS变量定义 ---------- */
:root {
    --primary-color: #1a9b7a;
    --primary-light: #e8f5f0;
    --primary-dark: #148266;
    --secondary-color: #2b7cb8;
    --accent-color: #f0a030;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-white: #ffffff;
    --bg-light: #f7faf9;
    --bg-gray: #f0f2f5;
    --border-color: #e8ebe9;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

/* ---------- 全局重置与基础样式 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

/* ---------- 通用容器 ---------- */
.health-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 20px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 15px;
}
/* ========================================
   顶部导航栏
   ======================================== */
.health-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* background: #1a2a38; */
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    height: 70px;
    transition: var(--transition);
}

.health-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.health-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.health-logo img {
    height: 60px;
    width: auto;
}

.health-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

/* 导航菜单 */
.health-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.health-nav-item {
    padding: 8px 18px;
    font-size: 15px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.health-nav-item:hover,
.health-nav-item.active {
    color: var(--primary-color);
    background: var(--primary-light);
}

.health-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* 联系电话 */
.health-hotline {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}

.health-hotline i {
    font-size: 24px;
}

/* 移动端菜单按钮 */
.health-menu-btn {
    display: none;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 24px;
}

/* 移动端遮罩层 */
.health-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

/* ========================================
   首页Banner轮播图区域
   ======================================== */
.health-banner {
    margin-top: 70px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

}

.health-banner .layui-carousel {
    height: 300px !important;
    max-width: var(--max-width);

}

.health-banner .layui-carousel *[carousel-item]>* {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.health-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Banner内容覆盖层 */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 155, 122, 0.75) 0%, rgba(43, 124, 184, 0.65) 100%);
    z-index: 2;
}

.banner-content {
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.banner-content p {
    font-size: 18px;
    opacity: 0.92;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.banner-btns a {
    display: inline-block;
    padding: 12px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    margin: 0 8px;
    transition: var(--transition);
}

.banner-btn-primary {
    background: #fff;
    color: var(--primary-color) !important;
}

.banner-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
}

.banner-btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #fff !important;
}

.banner-btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ========================================
   产品展示区域（通用卡片）
   ======================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-card-img {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-gray);
}

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

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

.product-card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: #fff;
    background: var(--accent-color);
}

.product-card-body {
    padding: 16px;
}

.product-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-subtitle {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-current {
    font-size: 20px;
    font-weight: 700;
    color: #e74c3c;
}

.price-current::before {
    content: '¥';
    font-size: 13px;
    font-weight: normal;
}

.price-original {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px 16px;
    font-size: 12px;
    color: var(--text-light);
}

.product-sales {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========================================
   健康资讯列表
   ======================================== */
.article-list {
    max-width: var(--max-width);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.article-card-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--bg-gray);
}

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

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

.article-card-body {
    padding: 18px;
}

.article-category {
    display: inline-block;
    padding: 2px 10px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.article-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-summary {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
}

.article-author {
    color: var(--text-secondary);
}

/* ========================================
   文章详情页
   ======================================== */
.article-detail-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    max-width: var(--max-width);
    margin: 70px auto 0;
    padding: 80px 0 60px;
    text-align: center;
    color: #fff;
    margin-top: 70px;
}

.article-detail-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.article-detail-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
    opacity: 0.85;
}

.article-detail-body {
    background: var(--bg-white);
    max-width: var(--max-width);
    margin: -30px auto 40px;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
}
.article-detail-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-primary);
}

.article-detail-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}

/* 左浮动图片（紧邻文字左侧） */
.article-detail-content .align-left {
    float: left;          /* 左浮动，让文字环绕右侧 */
    margin: 0 20px 10px 0; /* 右间距20px，下间距10px，避免文字紧贴图片 */
    max-width: 300px;     /* 图片最大宽度，防止过大撑破布局 */
    height: auto;         /* 保持宽高比 */
    border-radius: 8px;   /* 可选：增加圆角美化 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* 可选：增加阴影 */
}

/* 清除浮动影响（确保后续内容正常排版） */
.article-detail-content::after {
    content: "";
    display: table;
    clear: both;
}

.article-detail-content img {
    max-width: 60%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}


/* ========================================
   产品详情页
   ======================================== */
.product-detail-section {
    margin-top: 70px;
    padding: 30px 0;
}

.product-detail-wrapper {
    display: flex;
    gap: 40px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

/* 左侧图片区 */
.product-gallery {
    flex: 0 0 420px;
}

.product-main-image {
    width: 100%;
    height: 380px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-gray);
    margin-bottom: 15px;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumb-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.product-thumb-item {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
    background: var(--bg-gray);
}

.product-thumb-item.active,
.product-thumb-item:hover {
    border-color: var(--primary-color);
}

.product-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右侧信息区 */
.product-info {
    flex: 1;
}

.product-info-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.product-info-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.product-price-block {
    background: linear-gradient(135deg, #fff5f5, #fff0f0);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.product-price-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.product-price-value {
    font-size: 32px;
    font-weight: 700;
    color: #e74c3c;
}

.product-price-value::before {
    content: '¥';
    font-size: 18px;
    font-weight: normal;
}

.product-price-original {
    font-size: 15px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 12px;
}

/* 产品属性标签 */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.product-tag {
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 13px;
}

/* 小程序引导购买区 */
.product-qrcode-area {
    margin-top: 25px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px dashed var(--border-color);
}

.product-qrcode-area p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.product-qrcode-area .qrcode-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 13px;
}

.product-qrcode-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 10px;
}

/* 产品详情Tab切换 */
.product-detail-tabs {
    margin-top: 30px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.product-description {
    padding: 30px;
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-secondary);
}

.product-description img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 10px 0;
}

/* ========================================
   关于我们页面
   ======================================== */
.about-hero {
    max-width: var(--max-width);
    margin: 70px auto 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.about-hero h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.about-hero p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 公司简介 */
.about-intro {
    display: flex;
    gap: 50px;
    align-items: center;
    padding: 60px 0;
}

.about-intro-image {
    flex: 0 0 45%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-intro-image img {
    width: 100%;
    height: auto;
}

.about-intro-text {
    flex: 1;
}

.about-intro-text h2 {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.about-intro-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.about-intro-text p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* 核心价值观 */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.value-item {
    text-align: center;
    padding: 35px 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.value-icon i {
    font-size: 28px;
    color: #fff;
}

.value-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.value-item p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}



/* 联系我们 */
.about-contact {
    background: var(--bg-white);
    padding: 60px 0;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.contact-card {
    text-align: center;
    padding: 35px 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-card i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========================================
   列表页筛选栏
   ======================================== */
.filter-bar {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 18px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.filter-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-gray);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.filter-tag:hover,
.filter-tag.active {
    color: var(--primary-color);
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.filter-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-search input {
    width: 200px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0 16px;
    font-size: 13px;
    outline: none;
    transition: var(--transition);
}

.filter-search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 155, 122, 0.1);
}

.filter-search button {
    height: 36px;
    padding: 0 18px;
    border: none;
    border-radius: 20px;
    background: var(--primary-color);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-search button:hover {
    background: var(--primary-dark);
}

/* 排序栏 */
.sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sort-options {
    display: flex;
    gap: 6px;
}

.sort-btn {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-white);
    cursor: pointer;
    transition: var(--transition);
}

.sort-btn:hover,
.sort-btn.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.result-count {
    font-size: 13px;
    color: var(--text-light);
}

/* 分页容器 */
.pagination-wrap {
    text-align: center;
    padding: 30px 0 10px;
}

/* ==================== 自定义分页样式（完全避免Layui冲突） ==================== */
.health-pagination {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

/* 分页数字 */
.health-page-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 8px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.health-page-num:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(26, 155, 122, 0.2);
}

/* 当前页码 */
.health-page-curr {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(26, 155, 122, 0.35);
}

/* 导航按钮（首页/上一页/下一页/尾页） */
.health-page-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.health-page-nav:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 统计信息 */
.health-page-count {
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 400;
}

/* ========================================
   底部Footer
   ======================================== */
.health-footer {
    background: #1a2a38;
    color: #fff;
    margin-top: 0px;
}

.footer-top {
    display: flex;
    gap: 50px;
    padding: 50px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    flex: 0 0 300px;
}

.footer-logo {
    height: 44px;
    margin-bottom: 12px;
}

.footer-brand h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.8;
    opacity: 0.75;
}

.footer-hotline {
    margin-top: 15px;
    font-size: 16px !important;
    color: var(--primary-color) !important;
    font-weight: 600;
}

.footer-hotline i {
    font-size: 18px;
}

.footer-links {
    flex: 1;
    display: flex;
    gap: 40px;
}

.footer-link-group h4 {
    font-size: 15px;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-link-group a,
.footer-link-group p {
    display: block;
    font-size: 13px;
    color: #8899aa;
    margin-bottom: 8px;
    transition: var(--transition);
}

.footer-link-group a:hover {
    color: var(--primary-color);
}

.footer-link-group p {
    opacity: 0.75;
    line-height: 1.7;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    opacity: 0.6;
}

.footer-bottom p {
    margin-bottom: 4px;
}

/* 回到顶部按钮 */
.health-gotop {
    position: fixed;
    right: 30px;
    bottom: 40px;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 900;
    box-shadow: 0 4px 12px rgba(26, 155, 122, 0.35);
}

.health-gotop.show {
    opacity: 1;
    visibility: visible;
}

.health-gotop:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.health-gotop i {
    font-size: 20px;
}

/* ========================================
   首页企业优势区块
   ======================================== */
.home-advantages {
    background: var(--bg-white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.advantage-home-card {
    text-align: center;
    padding: 35px 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    transition: var(--transition);
}

.advantage-home-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--bg-white);
}

.advantage-home-card .adv-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), #d0efe6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.advantage-home-card .adv-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.advantage-home-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.advantage-home-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}


/* ========================================
   响应式设计 - 平板 (<=1024px)
   ======================================== */
@media screen and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .article-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .about-intro {
        flex-direction: column;
    }

    .about-intro-image {
        flex: none;
        width: 100%;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        flex-direction: column;
        gap: 30px;
    }

    .footer-brand {
        flex: none;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .product-detail-wrapper {
        flex-direction: column;
    }

    .product-gallery {
        flex: none;
    }
}

/* ========================================
   响应式设计 - 手机 (<=768px)
   ======================================== */
@media screen and (max-width: 768px) {

    /* 导航栏移动端适配 */
    .health-menu-btn {
        display: block;
    }

    .health-hotline {
        display: none;
    }

    .health-nav {
        position: fixed;
        top: 0;
        right: -280px;
        width: 260px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 80px 20px 30px;
        gap: 4px;
        box-shadow: var(--shadow-lg);
        transition: right 0.35s ease;
        z-index: 999;
    }

    .health-nav.show {
        right: 0;
    }

    .health-nav-item {
        padding: 12px 18px;
        font-size: 16px;
        border-radius: var(--radius-md);
    }

    .health-mask.show {
        display: block;
    }

    /* Banner */
    .health-banner .layui-carousel {
        height: 280px !important;
    }

    .health-banner .layui-carousel *[carousel-item]>* {
        height: 280px;
    }

    .banner-content h1 {
        font-size: 24px;
    }

    .banner-content p {
        font-size: 14px;
    }

    .banner-btns a {
        padding: 10px 24px;
        font-size: 14px;
    }

    /* 分类 */
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .category-item {
        padding: 15px 8px;
    }

    .category-icon {
        width: 46px;
        height: 46px;
    }

    .category-icon i {
        font-size: 22px;
    }

    /* 产品网格 */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .article-list {
        grid-template-columns: 1fr;
    }

    /* 标题 */
    .section-title h2 {
        font-size: 22px;
    }

    .section-padding {
        padding: 30px 0;
    }

    /* 筛选栏 */
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-search {
        margin-left: 0;
        width: 100%;
    }

    .filter-search input {
        flex: 1;
        width: 100%;
    }

    /* 文章详情 */
    .article-detail-header {
        padding: 50px 0 40px;
        margin-top: 70px;
    }

    .article-detail-header h1 {
        font-size: 20px;
    }

    .article-detail-body {
        padding: 20px;
        margin-top: -20px;
    }

    .article-detail-content {
        font-size: 15px;
    }
    .article-detail-content img {
        width: 100%;
        height: auto;
    }


    /* 产品详情 */
    .product-gallery {
        flex: none;
    }

    .product-main-image {
        height: 260px;
    }

    .product-info-name {
        font-size: 18px;
    }

    .product-price-value {
        font-size: 26px;
    }

    /* 关于我们 */
    .about-hero {
        padding: 50px 0;
    }

    .about-hero h1 {
        font-size: 26px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .advantage-list {
        grid-template-columns: 1fr;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    /* 底部 */
    .footer-links {
        flex-direction: column;
        gap: 24px;
    }

    .footer-link-group {
        text-align: center;
    }

    /* 统计 */
    .stat-item h3 {
        font-size: 28px;
    }

    /* 回到顶部 */
    .health-gotop {
        right: 16px;
        bottom: 20px;
        width: 38px;
        height: 38px;
    }
}

/* ========================================
   响应式设计 - 小屏手机 (<=480px)
   ======================================== */
@media screen and (max-width: 480px) {
    .health-logo-text {
        font-size: 18px;
    }

    .health-header {
        height: 60px;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sort-bar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}