/* ========================================
   全局变量 & 基础样式
   ======================================== */
:root {
    --primary: #008b56;
    --primary-dark: #007548;
    --primary-light: #E8F5F0;
    --accent: #10B981;
    --text-dark: #1a1a2e;
    --text: #4a4a5a;
    --text-light: #7a7a8a;
    --bg-white: #ffffff;
    --bg-alt: #f7faf9;
    --border: #e4e9ec;
    --shadow-sm: 0 2px 8px rgba(10, 124, 106, 0.06);
    --shadow-md: 0 4px 24px rgba(10, 124, 106, 0.1);
    --shadow-lg: 0 12px 48px rgba(10, 124, 106, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* 禁止浏览器自动放大字体（华为等安卓浏览器） */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg-white);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   通用区块样式
   ======================================== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-line {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin: 0 auto;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   顶部导航
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    max-height: 72px;
    overflow: hidden;
}

.logo:hover {
    color: var(--text-dark);
}

/* 顶部导航 Logo 图片（支持方形和横版） */
.logo-img {
    height: 38px !important;
    width: auto;
    max-width: 180px;
    max-height: 38px;
    object-fit: contain;
    display: block;
}

/* 底部 Logo 图片 */
.footer-logo-img {
    height: 36px;
    width: auto;
    display: block;
    /* filter: brightness(0) invert(1); /* 白色版，适配深色背景 */
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    border-radius: 8px;
    transition: all var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 20px;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 1px;
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   首页 Hero
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 背景图片 */
.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    animation: heroFadeIn 0.8s ease-out both;
}

@keyframes heroFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 背景图上的暗色遮罩，保证文字可读性 */
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, rgba(10, 60, 50, 0.55) 0%, rgba(10, 100, 80, 0.35) 100%);
    z-index: 1;
    animation: heroFadeIn 0.8s ease-out both;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(10, 124, 106, 0.05) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 120px 24px 80px;
    z-index: 2;
    transform: translateY(5vh);
}

/* 了解更多按钮块级居中，保证电话卡片始终在其正下方 */
.hero-content .btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    letter-spacing: 2px;
    z-index: 2;
}

/* Hero 送药电话卡片 */
.hero-phone-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 20px;
    width: fit-content;
    margin: 0 auto;
    padding: 16px 32px;
    border-radius: var(--radius);
}

.hero-phone-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    padding-right: 20px;
    flex-shrink: 0;
}

.hero-phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.hero-phone-numbers a {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.hero-phone-numbers a:hover {
    color: #fff;
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.6);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    transform: rotate(45deg);
    margin: 8px auto 0;
    animation: scrollDown 1.5s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes scrollDown {
    0% { transform: rotate(45deg) translate(0, 0); opacity: 0.6; }
    50% { transform: rotate(45deg) translate(5px, 5px); opacity: 1; }
    100% { transform: rotate(45deg) translate(0, 0); opacity: 0.6; }
}

/* ========================================
   企业简介
   ======================================== */
.section-about {
    background: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    object-fit: cover;
    display: block;
}

.about-text h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-unit {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 6px;
}

/* ========================================
   企业文化
   ======================================== */
.section-culture {
    background: var(--bg-alt);
}

.culture-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.culture-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px 28px;
    text-align: center;
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.culture-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.culture-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.culture-card:hover .culture-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.culture-icon svg {
    width: 28px;
    height: 28px;
}

.culture-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.culture-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light);
}

/* ========================================
   服务内容
   ======================================== */
.section-services {
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.service-body {
    padding: 28px;
}

.service-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.service-body p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 16px;
}

/* ========================================
   人才招聘
   ======================================== */
.section-careers {
    background: var(--bg-alt);
}

.careers-intro {
    text-align: center;
    margin-bottom: 48px;
}

.careers-intro p {
    font-size: 18px;
    color: var(--text);
    font-weight: 300;
}

/* 招聘热线胶囊按钮 */
.careers-hotline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 24px;
    background: var(--primary-light);
    border: 1px solid rgba(10, 124, 106, 0.2);
    border-radius: 50px;
    color: var(--primary);
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition);
}

.careers-hotline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.careers-hotline strong {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hotline-icon {
    font-size: 16px;
}

.careers-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.career-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 32px;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.career-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.career-info {
    flex: 0 0 240px;
}

.career-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* 岗位名 + 全职标签 同一行 */
.career-title-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    white-space: nowrap;
}

.career-title-row h3 {
    margin-bottom: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.career-title-row .career-type {
    flex-shrink: 0;
}

.career-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--text-light);
}

.career-type {
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.career-desc {
    flex: 1;
    min-width: 0;
}

.career-desc p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

.careers-cta {
    text-align: center;
    margin-top: 48px;
    padding: 32px;
    background: var(--primary-light);
    border-radius: var(--radius);
}

.careers-cta p {
    font-size: 16px;
    color: var(--text);
}

.careers-cta strong {
    color: var(--primary);
}

/* ========================================
   底部 Footer
   ======================================== */
.footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4,
.footer-qr h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    padding: 5px 0;
    transition: all var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 10px;
}

/* 底部微信公众号二维码 */
.footer-qr-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 6px;
    display: block;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* ========================================
   回到顶部
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ========================================
   滚动动画
   ======================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   响应式 - 平板 (≤1024px)
   ======================================== */
@media (max-width: 1024px) {
    .about-grid {
        gap: 40px;
    }

    .culture-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* ========================================
   响应式 - 手机横屏 (≤768px)
   ======================================== */
@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .section-header {
        margin-bottom: 48px;
    }

    /* 导航 */
    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px;
        gap: 4px;
        transition: right var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav.open {
        right: 0;
    }

    .nav-link {
        width: 100%;
        font-size: 16px;
        padding: 12px 16px;
    }

    .nav-link::after {
        left: 16px;
        transform: none;
        bottom: 8px;
    }

    /* Hero */
    .hero {
        min-height: 85vh;
    }

    .hero-scroll-hint {
        bottom: 24px;
    }

    /* 企业简介 */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 企业文化 */
    .culture-cards {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .culture-card {
        padding: 28px 20px;
    }

    /* 服务内容 */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* 人才招聘 */
    .career-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 24px;
    }

    .career-info {
        flex: none;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* 手机端隐藏快速导航 */
    .footer-links {
        display: none;
    }

    /* 手机端 Logo 和二维码居中 */
    .footer-brand {
        text-align: center;
    }

    .footer-logo-img {
        margin: 0 auto;
    }

    .footer-qr {
        text-align: center;
    }

    .footer-qr-img {
        margin: 0 auto;
    }
}

/* ========================================
   响应式 - 手机竖屏 (≤480px)
   ======================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .hero-content {
        padding: 100px 16px 60px;
    }

    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    .culture-cards {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-number {
        font-size: 28px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* 遮罩层 */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}
