@charset "utf-8";
/* ============================================
   工友薪家 - 移动端适配样式
   Mobile-First Responsive Design
   ============================================ */

/* ========== 全局基础 ========== */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0 auto;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #585858;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img {
    border: 0;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: #428bca;
    text-decoration: none;
}

a:hover {
    color: #3071a9;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
}

/* ========== 移动端导航 ========== */
#navigation {
    height: 56px;
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    background: #428bca;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* 汉堡菜单按钮 */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    margin: 3px 0;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    -webkit-transform: translateY(5px) rotate(45deg);
    transform: translateY(5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    -webkit-transform: translateY(-5px) rotate(-45deg);
    transform: translateY(-5px) rotate(-45deg);
}

/* 移动端菜单面板 */
.nav-menu-mobile {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    padding: 20px 0;
}

.nav-menu-mobile.active {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

.nav-menu-mobile ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu-mobile ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu-mobile ul li:last-child {
    border-bottom: none;
}

.nav-menu-mobile ul li a {
    display: block;
    padding: 16px 20px;
    color: #fff;
    font-size: 16px;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.nav-menu-mobile ul li a:active {
    background: rgba(66, 139, 202, 0.3);
}

.nav-menu-mobile ul li.active a {
    color: #428bca;
    background: rgba(66, 139, 202, 0.1);
}

/* ========== 登录按钮 - 移动端 ========== */
.login-btn-mobile {
    position: fixed;
    top: 12px;
    right: 60px;
    z-index: 1001;
}

.login-btn-mobile a {
    display: inline-block;
    padding: 8px 16px;
    background: #428bca;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent;
}

/* ========== Banner 区域 ========== */
.banner {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #428bca url('../img/HOME_BG.jpg') center/cover no-repeat;
    padding: 80px 20px 60px;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 0;
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    width: 100%;
    max-width: 600px;
}

.banner-content h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.banner-content h2 {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.banner-content p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.85);
}

.banner-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.btn-primary-mobile {
    background: #428bca;
    color: #fff;
    padding: 14px 36px;
    border-radius: 6px;
    display: inline-block;
    font-size: 15px;
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
    min-width: 180px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(66, 139, 202, 0.4);
}

.btn-primary-mobile:hover {
    background: #3071a9;
    color: #fff;
}

.btn-outline-mobile {
    background: transparent;
    color: #fff;
    padding: 14px 36px;
    border-radius: 6px;
    display: inline-block;
    font-size: 15px;
    font-weight: 500;
    border: 2px solid rgba(255, 255, 255, 0.7);
    -webkit-tap-highlight-color: transparent;
    min-width: 180px;
    text-align: center;
}

.btn-outline-mobile:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* 向下滚动箭头 */
.slide-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 28px;
    height: 16px;
    background: url('../img/arrow-next.png') center/contain no-repeat;
    opacity: 0.8;
    -webkit-animation: flashDown 1.5s ease-out 0s infinite;
    animation: flashDown 1.5s ease-out 0s infinite;
}

@keyframes flashDown {
    0% {
        -webkit-transform: translateX(-50%) translate(0, 0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        -webkit-transform: translateX(-50%) translate(0, 15px);
        opacity: 0;
    }
}

/* ========== 通用 Section 样式 ========== */
.section {
    padding: 60px 20px;
}

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

.section-title h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 8px;
}

.section-title p {
    font-size: 14px;
    color: #999;
    letter-spacing: 1px;
}

/* ========== 产品介绍 ========== */
.product-section {
    background: #f8f9fa;
    padding: 60px 16px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 28px 20px;
    margin-bottom: 20px;
    text-align: center;
    -webkit-transition: transform 0.3s, box-shadow 0.3s;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:last-child {
    margin-bottom: 0;
}

.product-card:active {
    transform: scale(0.98);
}

.product-icon {
    font-size: 44px;
    margin-bottom: 16px;
}

.product-card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 12px;
}

.product-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.product-features {
    text-align: center;
    padding: 0 8px;
}

.product-features li {
    color: #666;
    font-size: 14px;
    line-height: 2;
    list-style: none;
    position: relative;
    padding-left: 0;
}

.product-features li::before {
    content: '✓';
    color: #428bca;
    font-weight: bold;
    margin-right: 6px;
}

/* 为什么选择我们 */
.why-section {
    padding: 50px 16px;
    text-align: center;
    background: #fff;
}

.why-section h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 16px;
}

.why-section p {
    font-size: 14px;
    color: #666;
    line-height: 1.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== 功能特性 ========== */
.features-section {
    background: #fff;
    padding: 60px 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.feature-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    -webkit-transition: transform 0.3s, box-shadow 0.3s;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:active {
    transform: scale(0.98);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 17px;
    color: #333;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
}

/* 更多功能标签 */
.more-features {
    padding: 40px 16px;
    background: #f0f4f8;
    border-radius: 12px;
    margin-top: 40px;
    text-align: center;
}

.more-features h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.more-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.more-tag {
    background: #428bca;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
}

/* ========== 关于我们 ========== */
.about-section {
    background: #f8f9fa;
    padding: 60px 16px;
}

.about-intro {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.about-intro h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 16px;
}

.about-intro p {
    font-size: 14px;
    color: #555;
    line-height: 2;
    text-align: left;
}

/* 联系方式卡片 */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-card .contact-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.contact-card h4 {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
    font-weight: normal;
}

.contact-card p {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 微信二维码 */
.wechat-qr {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.wechat-qr img {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.wechat-qr p {
    font-size: 12px;
    color: #999;
}

/* 公司简介 */
.company-desc {
    font-size: 15px;
    color: #555;
    line-height: 2;
    text-align: center;
    padding: 0 10px;
    margin-bottom: 40px;
}

/* 价值观 */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.value-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.value-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.value-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* ========== Footer ========== */
.footer {
    background: #333;
    color: #fff;
    padding: 30px 20px;
    text-align: center;
}

.footer p {
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.8;
}

.footer a {
    color: #fff;
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

/* ========== 客服微信悬浮按钮 ========== */
.kefu-float {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 900;
}

.kefu-float-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #07C160;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.4);
    -webkit-tap-highlight-color: transparent;
}

.kefu-float-btn:active {
    transform: scale(0.95);
}

.kefu-float-btn svg {
    display: block;
}

.kefu-float-panel {
    position: absolute;
    right: 0;
    bottom: 60px;
    width: 180px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.kefu-float.active .kefu-float-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.kefu-float-panel-title {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.kefu-float-panel img {
    width: 148px;
    height: 148px;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.kefu-float-panel p {
    font-size: 11px;
    color: #999;
    margin: 8px 0 0;
}

/* ========== 回到顶部按钮 ========== */
.goup-container {
    position: fixed !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    display: none !important;
    bottom: 80px !important;
    right: 20px !important;
    z-index: 900 !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.goup-arrow {
    width: 0;
    height: 0;
    margin: 0 auto;
    padding-top: 12px;
    border-style: solid;
    border-width: 0 8px 8px;
    border-color: transparent transparent #fff;
}

/* ========== 平板适配 (>= 640px) ========== */
@media (min-width: 640px) {
    .banner-content h1 {
        font-size: 48px;
    }

    .banner-content h2 {
        font-size: 22px;
    }

    .banner-btns {
        flex-direction: row;
        justify-content: center;
    }

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

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

    .contact-cards {
        flex-direction: row;
        justify-content: center;
    }

    .contact-card {
        flex: 1;
        max-width: 300px;
    }

    .product-section .product-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-section .product-card {
        margin-bottom: 0;
    }
}

/* ========== 大平板/小桌面适配 (>= 768px) ========== */
@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu-mobile {
        position: static;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
        width: auto;
    }

    .nav-menu-mobile ul {
        display: flex;
        gap: 0;
    }

    .nav-menu-mobile ul li {
        border-bottom: none;
        width: auto;
    }

    .nav-menu-mobile ul li a {
        padding: 0 20px;
        height: 56px;
        line-height: 56px;
        font-size: 14px;
    }

    .nav-menu-mobile ul li a:active {
        background: transparent;
    }

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

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

    .section-title h2 {
        font-size: 32px;
    }

    .section-title p {
        font-size: 16px;
    }
}

/* ========== 桌面端适配 (>= 1024px) ========== */
@media (min-width: 1024px) {
    .product-section .product-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .section {
        padding: 80px 20px;
    }

    .product-section {
        padding: 80px 20px;
    }
}

/* ========== 安全区域适配 (iPhone X 等) ========== */
@supports (padding: max(0px)) {
    .kefu-float {
        bottom: max(24px, env(safe-area-inset-bottom));
    }

    .goup-container {
        bottom: max(80px, calc(env(safe-area-inset-bottom) + 30px)) !important;
    }

    .login-btn-mobile {
        top: max(12px, env(safe-area-inset-top));
    }
}

/* ========== 触摸滚动优化 ========== */
.banner,
.features-grid,
.values-grid,
.product-section .product-row {
    -webkit-overflow-scrolling: touch;
}

/* ========== 动画 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

.section {
    -webkit-animation: fadeInUp 0.6s ease-out;
    animation: fadeInUp 0.6s ease-out;
}

/* 隐藏桌面端导航 */
.nav-menu {
    display: none;
}
