/* ============================================================
   德州健之源生物科技有限公司 - 网站样式表
   ============================================================ */

/* ========== 字体：思源黑体 ========== */
@font-face {
    font-family: 'Source Han Sans SC';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url('./fonts/noto-sans-sc-chinese-simplified-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Source Han Sans SC';
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url('./fonts/noto-sans-sc-chinese-simplified-500-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Source Han Sans SC';
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url('./fonts/noto-sans-sc-chinese-simplified-700-normal.woff2') format('woff2');
}

/* ========== CSS 变量 ========== */
:root {
    /* 品牌色 */
    --primary: #0f4c81;
    --secondary: #3a7d44;
    --lightblue: #e8f2fa;
    --cream: #f8f7f2;
    --orange: #e67e22;

    /* 中性色 */
    --slate-700: #334155;
    --slate-900: #0f172a;
    --gray-100: #f3f4f6;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --white: #ffffff;

    /* 半透明色 */
    --black-40: rgba(0, 0, 0, 0.4);
    --white-10: rgba(255, 255, 255, 0.1);
    --white-30: rgba(255, 255, 255, 0.3);
    --white-50: rgba(255, 255, 255, 0.5);
    --white-90: rgba(255, 255, 255, 0.9);
    --primary-10: rgba(15, 76, 129, 0.1);
    --primary-90: rgba(15, 76, 129, 0.9);
    --secondary-10: rgba(58, 125, 68, 0.1);
    --orange-90: rgba(230, 126, 34, 0.9);

    /* 尺寸 */
    --header-height: 70px;
    --container-max: 1280px;

    /* 圆角 */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    /* 阴影 */
    --shadow-card: 0 8px 24px rgba(15, 76, 129, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

    /* 过渡 */
    --transition: all 0.3s ease;
}

/* ========== 基础重置 ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Han Sans SC', 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; font-size: inherit; }

/* ========== 容器 ========== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ========== JS 依赖工具类 ========== */
.hidden { display: none !important; }
.shadow-md { box-shadow: var(--shadow-md); }

/* ========== 按钮 ========== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}
.btn--primary {
    background: var(--primary);
    color: var(--white);
}
.btn--primary:hover { background: var(--primary-90); }
.btn--white {
    background: var(--white);
    color: var(--primary);
}
.btn--white:hover { background: var(--gray-100); }
.btn--white--secondary { color: var(--secondary); }
.btn--white--slate { color: var(--slate-700); }
.btn--outline {
    border: 1px solid var(--white);
    color: var(--white);
}
.btn--outline:hover { background: var(--white-10); }

/* ========== 通用区块 ========== */
.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--primary {
    background: var(--primary);
    color: var(--white);
    padding-bottom: 0;
}
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-label {
    color: var(--orange);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}
.section-title {
    color: var(--primary);
    font-weight: 700;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.section--primary .section-title { color: var(--white); }
.section-desc {
    max-width: 42rem;
    margin: 0.75rem auto 0;
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.6;
}

/* ========== 顶部导航 ========== */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
    background: var(--white-90);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo-text {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
}
.logo-tagline {
    font-size: 0.75rem;
    color: var(--gray-400);
}
.nav-desktop {
    display: none;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
}
.nav-link {
    color: var(--gray-700);
    transition: var(--transition);
}
.nav-link:hover { color: var(--primary); }
.nav-link--active { color: var(--primary); font-weight: 500; }
.nav-cta {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    margin-left: 0.5rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}
.nav-cta:hover { background: var(--primary-90); }
.nav-cta i { margin-right: 0.25rem; }
.nav-toggle {
    display: block;
    font-size: 1.25rem;
    color: var(--primary);
}

/* 桌面端下拉菜单 */
.nav-dropdown { position: relative; }
.nav-arrow {
    margin-left: 0.25rem;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}
.nav-dropdown:hover .nav-arrow { transform: rotate(180deg); }
.nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.75rem;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 0.75rem;
    min-width: 12rem;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 50;
}
.nav-dropdown:hover .nav-menu { display: flex; }
/* 填充链接与下拉菜单之间的间隙，避免鼠标移过时 hover 丢失 */
.nav-menu::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: 0;
    right: 0;
    height: 0.75rem;
}
.nav-menu--wide {
    flex-direction: row;
    gap: 1.5rem;
    min-width: auto;
    width: auto;
    padding: 1.25rem;
}
.nav-menu-col {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 9rem;
}
.nav-menu-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
}
.nav-menu-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    transition: var(--transition);
}
.nav-menu-link:hover {
    background: var(--lightblue);
    color: var(--primary);
}

/* 移动端菜单 */
.mobile-menu {
    background: var(--white);
    border-top: 1px solid var(--gray-100);
}
.mobile-menu-inner {
    padding-top: 1rem;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.875rem;
}
.mobile-menu .nav-link--active { color: var(--primary); font-weight: 500; }
.mobile-menu .nav-cta {
    text-align: center;
    padding: 0.5rem 1rem;
    margin-left: 0;
}

/* 移动端折叠二级菜单 */
.mobile-dropdown {
    display: flex;
    flex-direction: column;
}
.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0;
    color: var(--gray-700);
    font-size: 0.875rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}
.mobile-dropdown-toggle:hover { color: var(--primary); }
.mobile-arrow { transition: transform 0.2s ease; }
.mobile-dropdown.open .mobile-arrow { transform: rotate(180deg); }
.mobile-dropdown-menu {
    display: none;
    flex-direction: column;
    padding-left: 1rem;
    border-left: 2px solid var(--lightblue);
    margin-left: 0.25rem;
    margin-top: 0.25rem;
    gap: 0.125rem;
}
.mobile-dropdown.open .mobile-dropdown-menu { display: flex; }
.mobile-menu-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0.5rem 0.25rem;
    margin-top: 0.25rem;
}
.mobile-dropdown-menu .nav-menu-link {
    padding: 0.4rem 0.5rem;
    font-size: 0.8125rem;
}

/* ========== 轮播 Banner ========== */
.hero {
    padding-top: 0;
    position: relative;
    height: 85vh;
    max-height: 700px;
    overflow: hidden;
}
.carousel {
    position: relative;
    height: 100%;
}

/* carousel-item / active 类供 JS 切换 */
.carousel-item {
    display: none;
    position: absolute;
    inset: 0;
}
.carousel-item.active { display: block; }
.carousel-item--primary { background: var(--primary); }
.carousel-item--secondary { background: var(--secondary); }
.carousel-item--slate { background: var(--slate-700); }

.carousel-overlay {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: var(--slate-700); /* 图片加载前的占位底色 */
}
.carousel-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* 半透明遮罩，压在图片之上、文字之下，保证文字清晰 */
.carousel-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background:/*  rgba(8, 40, 85, 0.32); 遮罩隐藏*/
}
.carousel-content {
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.carousel-text {
    color: var(--white);
    max-width: 42rem;
    /* 桌面端(≥768px)向左偏移200px，见下方 @media (min-width:768px) */
}
.carousel-label {
    color: var(--orange);
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}
.carousel-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.25;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.25rem;
}
.carousel-desc {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.9;
    margin-bottom: 2rem;
}
.carousel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* prevBtn / nextBtn 类供 JS 绑定 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    background: var(--white-30);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 20;
    font-size: 1.25rem;
}
.carousel-btn:hover { background: var(--white-50); }
.carousel-btn.prevBtn { left: 1rem; }
.carousel-btn.nextBtn { right: 1rem; }

/* ========== 企业简介 ========== */
.about-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}
.about-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
}
.about-paragraph {
    margin-bottom: 1rem;
    line-height: 1.625;
    font-size: 0.875rem;
}
.about-paragraph:last-of-type { margin-bottom: 1.5rem; }
.about-cta { padding: 0.75rem 1.5rem; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-6px); }
.stat-icon {
    color: var(--primary);
    font-size: 2.25rem;
    margin-bottom: 1rem;
}
.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}
.stat-label { color: var(--gray-500); font-size: 1.125rem; }

/* ========== 生产基地 ========== */
.factory-grid {
    display: grid;
    gap: 1.5rem;
}
.feature-card {
    background: var(--lightblue);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    overflow: hidden;
}
.feature-card:hover { transform: translateY(-6px); }
.feature-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.feature-card:hover .feature-image img { transform: scale(1.06); }
.feature-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 76, 129, 0.92), rgba(15, 76, 129, 0.65));
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.feature-card:hover .feature-overlay { opacity: 1; }
.feature-overlay p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
}
.feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-800);
    text-align: center;
    padding: 1.25rem 1rem;
}

/* ========== 剂型中心 ========== */
.dosage-grid {
    display: grid;
    gap: 1.5rem;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}
.product-card:hover { transform: translateY(-6px); }
.product-icon {
    height: 11rem;
    position: relative;
    overflow: hidden;
}
/* 用实拍图替代图标，图片铺满图标区 */
.product-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* 隐藏原有的 font-awesome 图标（已被实拍图替代） */
.product-icon i {
    display: none;
}
.product-icon--primary {
    background: var(--primary-10);
    color: var(--primary);
}
.product-icon--secondary {
    background: var(--secondary-10);
    color: var(--secondary);
}
.product-body { padding: 1.5rem; }
.product-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}
.product-desc {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* ========== 代工方案 ========== */
.service-steps {
    display: grid;
    gap: 1rem;
    margin-bottom: 4rem;
}
.step-item {
    text-align: center;
    padding: 1rem;
}
.step-number {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.step-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.step-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
}
.coop-panel {
    background: var(--lightblue);
    border-radius: var(--radius-lg);
    padding: 2rem;
}
.coop-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}
.coop-grid {
    display: grid;
    gap: 1.5rem;
    text-align: center;
}
/* OEM/ODM/CDMO 卡片：与全站 stat-card/feature-card 风格统一 */
.coop-item {
    background: var(--white);
    padding: 2rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border-top: 4px solid var(--primary);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-800);
    letter-spacing: 0.05em;
    transition: var(--transition);
}
/* 三张卡片用不同品牌色顶条加以区分 */
.coop-item:nth-child(2) { border-top-color: var(--secondary); }
.coop-item:nth-child(3) { border-top-color: var(--orange); }
.coop-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(15, 76, 129, 0.15);
}

/* ========== 资质认证 ========== */
/* ========== 资质认证 ========== */
.cert-slider {
    position: relative;
}
.cert-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0.5rem;
    margin: 0 3rem;
}
.cert-track::-webkit-scrollbar { display: none; }
.cert-card {
    flex: 0 0 260px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 2rem 1.25rem;
    text-align: center;
    transition: var(--transition);
}
.cert-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(15, 76, 129, 0.15);
}
.cert-badge {
    width: 6.25rem;
    height: 6.25rem;
    margin: 0 auto 1.25rem;
    border-radius: var(--radius-full);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
    line-height: 1.25;
    text-align: center;
}
.cert-badge--primary { background: var(--primary); }
.cert-badge--secondary { background: var(--secondary); }
.cert-badge--orange { background: var(--orange); }

/* 资质圆形：从品牌蓝→品牌绿 左至右渐变，统一色调消除杂乱 */
.cert-track .cert-card:nth-child(1) .cert-badge { background: #0f4c81; }
.cert-track .cert-card:nth-child(2) .cert-badge { background: #155378; }
.cert-track .cert-card:nth-child(3) .cert-badge { background: #1b5a70; }
.cert-track .cert-card:nth-child(4) .cert-badge { background: #226167; }
.cert-track .cert-card:nth-child(5) .cert-badge { background: #28685e; }
.cert-track .cert-card:nth-child(6) .cert-badge { background: #2e6f55; }
.cert-track .cert-card:nth-child(7) .cert-badge { background: #34764d; }
.cert-track .cert-card:nth-child(8) .cert-badge { background: #3a7d44; }
.cert-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-full);
    padding: 0.25rem;
    background: var(--white);
}
.cert-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.cert-desc {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.5;
}
.cert-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}
.cert-arrow:hover { background: var(--primary); color: var(--white); }
.cert-arrow--prev { left: 0; }
.cert-arrow--next { right: 0; }

/* ========== 联系咨询 ========== */
.contact-grid {
    display: grid;
    gap: 3rem;
}
.contact-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.contact-desc {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.625;
}
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.contact-item p {
    font-size: 1rem;
    margin: 0;
}
.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-full);
    background: var(--white-10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.contact-label {
    font-size: 1rem;
    opacity: 0.8;
}
.contact-value {
    font-size: 1rem;
    font-weight: 600;
}
.form-panel {
    background: rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-lg);
    padding: 2rem;
}
.form-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}
.form-row {
    display: grid;
    gap: 0.875rem;
    grid-template-columns: 1fr;
}
.form-row--2 {
    grid-template-columns: repeat(2, 1fr);
}
.form-row--captcha {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.form-input--captcha {
    flex: 1 1 120px;
    min-width: 120px;
}
.captcha-img {
    height: 48px;
    border-radius: var(--radius-md);
    cursor: pointer;
    background: var(--white);
    display: block;
}
.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--gray-800);
    border: none;
    outline: none;
    transition: var(--transition);
    font-size: 0.9375rem;
    font-family: inherit;
}
.form-input::placeholder,
.form-textarea::placeholder {
    color: #9ca3af;
}
.form-input:focus,
.form-textarea:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}
.form-textarea { resize: none; min-height: 110px; }
.btn--submit {
    width: 100%;
    background: var(--orange);
    color: var(--white);
    padding: 0.95rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    margin-top: 0.25rem;
}
.btn--submit:hover { background: var(--orange-90); transform: translateY(-1px); }

/* 表单字段组 */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.form-group label {
    font-size: 0.875rem;
    color: var(--white);
    opacity: 0.9;
}
.form-group .required {
    color: var(--orange);
}

/* ========== 页脚 ========== */
.site-footer {
    background: var(--white);
    color: var(--gray-600);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
}
.footer-inner p + p { margin-top: 0.5rem; }
.footer-inner a { color: var(--gray-600); text-decoration: none; }
.footer-inner a:hover { color: var(--primary); }

/* ========== 右侧悬浮客服（由老站 /skin/ecms282/css/style.css 控制） ========== */
/* 补充：确保"联系电话"项展开显示号码 */
body .right-bar ul li.rtbar-li3 {
    width: 230px;
}
body .right-bar ul li.rtbar-li3 p {
    display: inline;
    font-size: 20px;
    line-height: 76px;
    color: #fff;
    font-weight: 500;
}
/* 鼠标放到联系电话上，左侧弹出图片 */
body .right-bar ul li.rtbar-li3 .rtbar_shwx {
    display: none;
    position: absolute;
    right: 230px;
    top: 0;
    width: 120px;
    height: auto;
    padding: 10px;
    background: #fff;
    box-shadow: 0 2px 21px rgba(108,108,108,.19);
    z-index: 20;
}
body .right-bar ul li.rtbar-li3:hover .rtbar_shwx {
    display: block;
}
body .right-bar ul li.rtbar-li3 .rtbar_shwx img {
    max-width: 100%;
    display: block;
}

/* ========== 手机底部导航 ========== */
.kf_bottom {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}
.kf_bottom ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}
.kf_bottom li {
    flex: 1;
    text-align: center;
    background: rgba(15, 76, 129, 0.95);
    border-right: 1px solid rgba(255,255,255,0.1);
}
.kf_bottom li:last-child { border-right: none; }
.kf_bottom a {
    display: block;
    padding: 8px 0;
    color: #fff;
    font-size: 0.75rem;
    text-decoration: none;
}
.kf_bottom i {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0 auto 2px;
    background-size: contain;
    background-repeat: no-repeat;
}
.kf_bottom .f1 i { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E"); }
.kf_bottom .f2 i { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E"); }
.kf_bottom .f3 i { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 3v2H7v14h10V5h-2V3h4v18H5V3h4z'/%3E%3C/svg%3E"); }

/* ========== 微信弹窗 ========== */
#wxnr {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}
#wxnr.show { display: flex; }
#wxnr .nrdf {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    position: relative;
}
#wxnr .nrdf > i {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 28px;
    height: 28px;
    line-height: 28px;
    background: #333;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-style: normal;
    font-size: 0.875rem;
}
#wxnr .nrdf img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}
#wxnr .nrdf p {
    margin: 8px 0 0;
    font-size: 0.875rem;
    color: #333;
}
#wxnr .nrdf .wx {
    display: inline-block;
    padding: 6px 16px;
    background: #07c160;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}
#weixin {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    z-index: 10002;
    font-size: 0.875rem;
}

/* ========== 响应式 ========== */

/* 移动端：触摸设备无 hover，让简介常显 */
@media (max-width: 767px) {
    .feature-overlay {
        opacity: 1;
        position: relative;
        background: var(--primary);
        padding: 1rem 1.25rem;
    }
    .right-bar { display: none !important; }
    .kf_bottom { display: block !important; }

    /* 手机端轮播文字缩小，防止长标题换行溢出 */
    .carousel-content {
        align-items: flex-start;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 15vh;
    }
    .carousel-text {
        max-width: 100%;
        padding-right: 1rem;
    }
    .carousel-label {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .carousel-title {
        font-size: 1.5rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        word-break: break-word;
    }
    .carousel-desc {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
    }
    .carousel-actions {
        gap: 0.75rem;
    }
    .carousel-actions .btn {
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
    }
}

/* sm: ≥640px */
@media (min-width: 640px) {
    .dosage-grid { grid-template-columns: repeat(2, 1fr); }
    .product-card--wide { grid-column: span 2; }
    .coop-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: repeat(2, 1fr); }
}

/* md: ≥768px */
@media (min-width: 768px) {
    .nav-desktop { display: flex; }
    .nav-toggle { display: none; }
    .mobile-menu { display: none !important; }
    .factory-grid { grid-template-columns: repeat(2, 1fr); }
    .service-steps { grid-template-columns: repeat(5, 1fr); }
    .carousel-text { margin-left: 0; } /* 中大屏默认不偏移，避免标题被裁切；≥1440px大屏再偏移200px */
    .kf_bottom { display: none !important; }
    .right-bar { display: block; }
}

/* lg: ≥1024px */
@media (min-width: 1024px) {
    .container { padding-left: 2rem; padding-right: 2rem; }
    .about-grid { grid-template-columns: repeat(2, 1fr); }
    .factory-grid { grid-template-columns: repeat(4, 1fr); }
    .dosage-grid { grid-template-columns: repeat(3, 1fr); }
    .product-card--wide { grid-column: span 1; }
    .coop-grid { grid-template-columns: repeat(3, 1fr); max-width: 60rem; margin-left: auto; margin-right: auto; }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

/* xl: ≥1280px */
@media (min-width: 1280px) {
    .dosage-grid { grid-template-columns: repeat(4, 1fr); }
    .product-card--wide { grid-column: span 2; }
}

/* xxl: ≥1440px 轮播文字向左偏移200px */
@media (min-width: 1440px) {
    .carousel-text { margin-left: -200px; }
}


/* 验证码区块样式 */
.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.captcha-wrapper input {
    flex: 1;
    min-width: 120px;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 14px;
}
.captcha-img {
    cursor: pointer;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}