/* ==========================================
   精诚机械 - 样式表（完全手写，无第三方依赖）
   ========================================== */

/* ===== CSS 变量 ===== */
:root {
    --color-primary: #038A03;
    --color-primary-dark: #026702;
    --color-primary-light: #2CBF2E;
    --color-secondary: #026702;
    --color-white: #FFFFFF;
    --color-dark: #333333;
    --color-gray-50: #F5F7FA;
    --color-gray-100: #E8ECF1;
    --color-gray-200: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-text: #333333;
    --color-text-light: #6B7280;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(3,138,3,0.1);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 5px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --max-width: 1480px;
    --header-height: 72px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

strong {
    color: var(--color-primary);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 图标工具类 ===== */
.icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    line-height: 1.4;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}
.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-primary);
}
.btn-white:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}
.btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}
.btn-outline-primary:hover {
    background-color: var(--color-gray-50);
    transform: translateY(-2px);
}

/* ===== 区域公共样式 ===== */
.section {
    padding: 80px 0;
}
.section-white {
    background-color: var(--color-white);
}
.section-gray {
    background-color: var(--color-gray-50);
}
.section-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-dark);
}
.section-title-light {
    color: var(--color-white);
}
.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    margin: 0 auto;
    border-radius: 2px;
}
.section-divider-light {
    background: linear-gradient(90deg, var(--color-white), rgba(255,255,255,0.5));
}
.section-subtitle {
    margin-top: 16px;
    font-size: 18px;
    color: var(--color-text-light);
}

/* ==========================================
   顶部导航
   ========================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.site-header.scrolled {
    box-shadow: var(--shadow-lg);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    flex-shrink: 0;
}
.logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}
.logo-text {
    white-space: nowrap;
}

/* 桌面导航 */
.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: 4px 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}
.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 16px;
    white-space: nowrap;
}

/* 移动端菜单按钮 */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    width: 36px;
    height: 36px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition);
    position: absolute;
    left: 6px;
}
.hamburger {
    top: 17px;
}
.hamburger::before {
    content: '';
    top: -7px;
}
.hamburger::after {
    content: '';
    top: 7px;
}

.mobile-toggle.open .hamburger {
    background-color: transparent;
}
.mobile-toggle.open .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.mobile-toggle.open .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-gray-100);
    animation: slideDown 0.3s ease;
}
.mobile-menu.open {
    display: block;
}
.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}
.mobile-link {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid var(--color-gray-50);
    transition: var(--transition);
}
.mobile-link:hover {
    color: var(--color-primary);
    background-color: var(--color-gray-50);
}
.mobile-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 16px;
    margin-top: 4px;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   Hero / 横幅区域
   ========================================== */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    padding: 80px 0;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.hero-content {
    flex: 1;
    max-width: 560px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.hero-highlight {
    display: inline-block;
    position: relative;
}
.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.hero-desc {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 500px;
}
.hero-img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* ==========================================
   关于我们
   ========================================== */
.about-content {
    display: flex;
    align-items: center;
    gap: 56px;
    max-width:1280px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
}
.about-text p {
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 16px;
    color: var(--color-text);
}
.about-text p:last-child {
    margin-bottom: 0;
}

.about-image {
    flex: 0 0 500px;
}
.about-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ==========================================
   产品中心
   ========================================== */
.product-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.cat-btn {
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--color-gray-200);
    background-color: var(--color-white);
    color: var(--color-text);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}
.cat-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.cat-btn.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}

.product-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}
.product-card.hidden {
    display: none;
}
.product-card.fade-in {
    animation: fadeInUp 0.5s ease both;
}

.product-img-box {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: var(--color-gray-50);
}
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    padding: 16px 18px;
}
.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-dark);
    line-height: 1.4;
}
.product-desc {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   品质工艺 - Features
   ========================================== */
.features-content {
    max-width:1400px;
    margin: 0 auto;
}

.features-intro,
.features-outro {
    font-size: 17px;
    line-height: 1.9;
    color: var(--color-text);
    margin-bottom: 32px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    margin: 36px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius-md);
    background-color: var(--color-gray-50);
    transition: var(--transition);
}
.feature-item:hover {
    background-color: #E8F5E8;
    transform: translateX(4px);
}

.feature-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-text h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-dark);
}
.feature-text p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.features-outro {
    margin-top: 24px;
    margin-bottom: 0;
}

/* ==========================================
   核心优势
   ========================================== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1460px;
    margin: 0 auto;
}

.advantage-card {
    text-align: center;
    padding: 36px 24px;
    background-color: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    backdrop-filter: blur(4px);
}
.advantage-card:hover {
    background-color: rgba(255,255,255,0.18);
    transform: translateY(-6px);
}

.advantage-icon {
    color: var(--color-white);
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.advantage-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-white);
}

.advantage-desc {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.85;
}

/* ==========================================
   客户案例
   ========================================== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.case-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.case-img-box {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: var(--color-gray-50);
}
.case-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.case-card:hover .case-img {
    transform: scale(1.08);
}

.case-info {
    padding: 16px;
}
.case-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-dark);
    line-height: 1.5;
}
.case-tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-full);
}
.case-tag.export {
    background-color: #FFF0E6;
    color: #E67E22;
}
.case-tag.domestic {
    background-color: #E8F5E8;
    color: var(--color-primary);
}

/* ==========================================
   经营理念
   ========================================== */
.philosophy {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.philosophy .section-title {
    margin-bottom: 12px;
}
.philosophy .section-divider {
    margin-bottom: 32px;
}

.philosophy-content {
    font-size: 17px;
    line-height: 2;
    margin-bottom: 36px;
}
.philosophy-content p {
    margin-bottom: 12px;
}
.philosophy-content .text-primary {
    color: var(--color-primary);
}

.philosophy-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ==========================================
   页脚
   ========================================== */
.site-footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding-top: 56px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-company {
    flex: 2;
    min-width: 280px;
}
.footer-logo {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}
.footer-company p {
    font-size: 14px;
    opacity: 0.75;
    line-height: 1.8;
}
.footer-cert {
    margin-top: 8px;
    color: #F5A623 !important;
    opacity: 1 !important;
    font-weight: 500;
}

.footer-contact {
    flex: 2;
    min-width: 280px;
}
.footer-contact h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    opacity: 0.85;
}

.footer-qr {
    flex: 1;
    text-align: center;
    min-width: 120px;
}
.qr-img {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    margin: 0 auto 8px;
    background-color: var(--color-white);
    padding: 4px;
}
.footer-qr p {
    font-size: 12px;
    opacity: 0.7;
}

.footer-bottom {
    margin-top: 48px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.footer-bottom p {
    font-size: 13px;
    opacity: 0.6;
}

/* ==========================================
   左侧浮动推广卡片
   ========================================== */
.float-left-card {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 800;
    transition: var(--transition);
}
.float-left-card.hidden {
    transform: translateY(-50%) translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

.float-left-body {
    width: 110px;
    background: var(--color-white);
    border-radius: 0 10px 10px 0;
    box-shadow: 2px 0 20px rgba(0,0,0,0.18);
    padding: 30px 10px 16px;
    text-align: center;
    position: relative;
}

.float-left-close {
    position: absolute;
    top: 4px;
    right: 6px;
    z-index: 2;
    width: 18px;
    height: 18px;
    background-color: rgba(0,0,0,0.08);
    color: #999;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 0;
    line-height: 1;
}
.float-left-close:hover {
    background-color: rgba(0,0,0,0.18);
    color: #333;
}

.float-left-icon {
    margin-bottom: 6px;
}

.float-left-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1.5;
    margin-bottom: 12px;
}

.float-left-btn {
    display: block;
    width: 100%;
    padding: 8px 0;
    border: none;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 8px;
    font-family: inherit;
}
.float-left-btn:last-child {
    margin-bottom: 0;
}

.btn-promote {
    background-color: var(--color-primary);
    color: var(--color-white);
}
.btn-promote:hover {
    background-color: var(--color-primary-dark);
    transform: scale(1.04);
}

.btn-register {
    background-color: #FF6B00;
    color: var(--color-white);
}
.btn-register:hover {
    background-color: #E05A00;
    transform: scale(1.04);
}

/* ==========================================
   微信二维码弹窗
   ========================================== */
.qr-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.55);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.qr-modal-overlay.open {
    display: flex;
}

.qr-modal {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 36px 32px 28px;
    text-align: center;
    position: relative;
    width: 320px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.qr-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.06);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: var(--transition);
}
.qr-modal-close:hover {
    background: rgba(0,0,0,0.12);
    color: #333;
}

.qr-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 6px;
}

.qr-modal-subtitle {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.qr-modal-img {
    width: 180px;
    height: 180px;
    margin: 0 auto 16px;
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-md);
    padding: 8px;
    background: var(--color-white);
}
.qr-code-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-modal-footer {
    padding-top: 12px;
    border-top: 1px solid var(--color-gray-100);
    font-size: 14px;
    color: var(--color-text-light);
}
.qr-modal-footer strong {
    color: var(--color-primary);
    font-size: 16px;
}

/* ==========================================
   右侧浮动咨询表单
   ========================================== */
.float-form-wrapper {
    position: fixed;
    bottom: 94px;
    right: 24px;
    z-index: 500;
}

/* 触发按钮 - 与电话按钮统一为圆形样式（无脉冲动画） */
.float-form-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    padding: 0;
}
.float-form-trigger:hover {
    background-color: var(--color-primary-dark);
    transform: scale(1.1);
}
.float-form-wrapper.open .float-form-trigger {
    display: none;
}

/* 表单面板 */
.float-form-panel {
    display: none;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 320px;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: slideInRight 0.3s ease;
}
.float-form-wrapper.open .float-form-panel {
    display: block;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.float-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background-color: var(--color-primary);
    color: var(--color-white);
}

.float-form-title {
    font-size: 17px;
    font-weight: 600;
}

.float-form-close {
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.float-form-close:hover {
    background-color: rgba(255,255,255,0.2);
}

.float-form-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 14px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
    font-family: inherit;
    background-color: var(--color-gray-50);
    color: var(--color-text);
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: 0 0 0 2px rgba(3,138,3,0.1);
}
.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 12px 0;
}

.float-form-contact {
    padding: 12px 20px;
    background-color: var(--color-gray-50);
    text-align: center;
    font-size: 13px;
    color: var(--color-text-light);
}
.float-form-contact strong {
    color: var(--color-primary);
    font-size: 15px;
}

/* ==========================================
   浮动按钮（原有）
   ========================================== */
.float-phone {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 500;
}
.float-phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    animation: pulse 2s infinite;
}
.float-phone-btn:hover {
    background-color: var(--color-primary-dark);
    transform: scale(1.1);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(3,138,3,0.4); }
    50% { box-shadow: 0 0 0 14px rgba(3,138,3,0); }
}

/* 返回顶部 */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 50px;
    right: 24px;
    z-index: 500;
    width: 56px;
    height: 56px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    align-items: center;
    justify-content: center;
}
.back-to-top.visible {
    display: flex;
}
.back-to-top:hover {
    background-color: var(--color-primary-dark);
    transform: scale(1.1);
}

/* ==========================================
   响应式
   ========================================== */

/* 平板及以下 */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 34px;
    }
    .hero-inner {
        gap: 32px;
    }
    .hero-image {
        max-width: 400px;
    }
    .about-content {
        gap: 36px;
    }
    .about-image {
        flex: 0 0 300px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* 手机端 */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    /* 左侧浮动卡片 - 移动端缩小 */
    .float-left-body {
        width: 90px;
        padding: 10px 8px 12px;
    }
    .float-left-title {
        font-size: 12px;
    }
    .float-left-btn {
        font-size: 11px;
        padding: 6px 0;
    }

    /* 右侧表单 - 移动端 */
    .float-form-wrapper {
        bottom: 94px;
        right: 12px;
    }

    /* 返回顶部 - 移动端 */
    .back-to-top {
        bottom: 100px;
        right: 12px;
    }

    .section {
        padding: 56px 0;
    }
    .section-title {
        font-size: 26px;
    }
    .section-header {
        margin-bottom: 32px;
    }

    /* 导航 */
    .main-nav {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }

    /* Hero */
    .hero {
        padding: 48px 0;
    }
    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-desc {
        font-size: 16px;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-image {
        max-width: 100%;
    }
    .hero-img {
        max-height: 250px;
    }

    /* 关于 */
    .about-content {
        flex-direction: column-reverse;
        gap: 24px;
    }
    .about-image {
        flex: 0 0 auto;
        max-width: 100%;
    }
    .about-text p {
        font-size: 15px;
    }

    /* 产品 */
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    .product-img-box {
        height: 200px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }
    .features-intro,
    .features-outro {
        font-size: 15px;
    }

    /* 优势 */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* 案例 */
    .cases-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }
    .case-img-box {
        height: 160px;
    }

    /* 理念 */
    .philosophy-content {
        font-size: 15px;
    }

    /* 页脚 */
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    .contact-item {
        justify-content: center;
    }

    /* 浮动 */
    .float-phone {
        display: block;
        right: 12px;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
    .hero-desc {
        font-size: 14px;
    }
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    .product-grid {
        grid-template-columns: 1fr 1fr;
    }
    .product-img-box {
        height: 160px;
    }
    .product-name {
        font-size: 14px;
    }
    .product-desc {
        font-size: 12px;
    }
    .product-info {
        padding: 12px;
    }
    .cases-grid {
        grid-template-columns: 1fr 1fr;
    }
}
