/* ===== CSS Variables - Light Theme (globalfoodmach style) ===== */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --accent-green: #16a34a;
    --accent-green-light: #22c55e;
    --accent-green-dark: #15803d;
    --accent-gradient: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    --accent-gradient-soft: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
    --shadow-green: 0 10px 30px -10px rgba(22, 163, 74, 0.25);
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Loading Screen ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #064e3b 0%, #065f46 30%, #047857 60%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
}

#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* 科技感网格背景 */
.loading-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.loading-bg-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

.loading-container {
    text-align: center;
    width: 100%;
    max-width: 500px;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.loading-logo {
    margin-bottom: 60px;
    opacity: 0;
    animation: logoFadeIn 0.8s ease forwards;
}

.loading-logo-img {
    height: 50px;
    width: auto;
}

.loading-items {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.loading-item {
    opacity: 0;
    animation: itemFadeIn 0.5s ease forwards;
    text-align: left;
}

.loading-item:nth-child(1) { animation-delay: 0.3s; }
.loading-item:nth-child(2) { animation-delay: 0.5s; }
.loading-item:nth-child(3) { animation-delay: 0.7s; }
.loading-item:nth-child(4) { animation-delay: 0.9s; }

/* 文字灌水填充效果 */
.loading-text-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
}

.loading-text-bg {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 1px;
    display: block;
}

.loading-text-fill {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1px;
    display: block;
    clip-path: inset(100% 0 0 0);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

/* 底部进度细线 */
.loading-progress-line {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    overflow: hidden;
}

.loading-progress-line::before {
    content: '';
    display: block;
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, #4ade80, #86efac);
    border-radius: 1px;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.8);
    transition: width 0.05s linear;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes itemFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .loading-container {
        padding: 0 30px;
        max-width: 100%;
    }
    
    .loading-logo {
        margin-bottom: 40px;
    }
    
    .loading-logo-img {
        height: 80px;
    }
    
    .loading-items {
        gap: 24px;
    }
    
    .loading-text-bg,
    .loading-text-fill {
        font-size: 16px;
    }
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #ffffff;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Loading Screen (keep dark for dramatic effect) ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 4px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.loading-logo-sub {
    font-size: 14px;
    color: #64748b;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-top: -30px;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.loading-bar-container {
    width: 300px;
    height: 2px;
    background: #1e293b;
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    border-radius: 2px;
    animation: loadingProgress 2s ease forwards;
    box-shadow: 0 0 10px rgba(22, 163, 74, 0.5);
}

.loading-percent {
    margin-top: 16px;
    font-size: 12px;
    color: #64748b;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ===== Header / Navigation ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition-fast);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 88px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-img {
    height: 50px;          /* 60 -> 50：给一级菜单腾出横向位置 */
    width: auto;
    display: block;
}

.loading-logo-img {
    height: 120px;
    width: auto;
    opacity: 0;
    animation: logoFadeIn 1s ease forwards;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    opacity: 1;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.nav-menu {
    display: flex;
    gap: 36px;
    align-items: center;
}

/* 导航项变多（8 项）后按视口收紧间距，保证不换行、不溢出 */
@media (max-width: 1280px) {
    .nav-menu { gap: 28px; }
}

@media (max-width: 1100px) {
    .nav-menu { gap: 22px; }
    .nav-menu a { font-size: 13.5px; }
}

@media (max-width: 960px) {
    .nav-menu { gap: 16px; }
    .nav-menu a { font-size: 13px; }
    .logo-img { height: 44px; }
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-fast);
    border-radius: 2px;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Switcher - 平铺式样 */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #f1f5f9;
    border-radius: 20px;
    padding: 3px;
}

.lang-option {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    border-radius: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    display: inline-block;
}

.lang-option,
.nav-right .btn-primary {
    white-space: nowrap;
}




.lang-option:hover {
    color: #0f172a;
    background: #e2e8f0;
}

.lang-option.active-lang {
    background: #16a34a;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.4);
}

/* 首页透明导航栏适配 */
header.transparent .lang-switcher,
.home-header .lang-switcher {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

header.transparent .lang-option,
.home-header .lang-option {
    color: rgba(255, 255, 255, 0.7);
}

header.transparent .lang-option:hover,
.home-header .lang-option:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

header.transparent .lang-option.active-lang,
.home-header .lang-option.active-lang {
    background: #16a34a;
    color: #ffffff;
}

.btn-primary {
    padding: 10px 24px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px -4px rgba(22, 163, 74, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

.btn-secondary {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: #f0fdf4;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
    border-radius: 2px;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0f172a;
}

.hero-video-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    /* 视频未播放时的兜底背景，防止微信等浏览器黑屏 */
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
}

.hero-video-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 0;
    pointer-events: none;
    -webkit-pointer-events: none;
}

.hero-video-slide.active {
    opacity: 1;
    z-index: 1;
}

/* 视频上方透明遮罩：拦截所有触摸点击，防止小米浏览器弹出原生播放器 */
.hero-video-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: transparent;
    pointer-events: auto;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* 强制隐藏视频所有原生控件（兼容各浏览器内核） */
.hero-video-slide::-webkit-media-controls,
.hero-video-slide::-webkit-media-controls-enclosure,
.hero-video-slide::-webkit-media-controls-panel,
.hero-video-slide::-webkit-media-controls-play-button,
.hero-video-slide::-webkit-media-controls-start-playback-button,
.hero-video-slide::-webkit-media-controls-current-time-display,
.hero-video-slide::-webkit-media-controls-time-remaining-display,
.hero-video-slide::-webkit-media-controls-timeline,
.hero-video-slide::-webkit-media-controls-fullscreen-button {
    display: none !important;
    -webkit-appearance: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.hero-carousel-indicators {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0;
    align-items: center;
    padding: 0 20px;
}

.indicator {
    position: relative;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    white-space: nowrap;
}

.indicator:hover {
    color: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    color: #ffffff;
    font-weight: 600;
}

.indicator-progress-bar {
    position: absolute;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    border-radius: 1px;
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    width: 0%;
    animation: progressFill 8s linear forwards;
}

@keyframes progressFill {
    from { width: 0%; }
    to { width: 100%; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.12) 50%, rgba(15, 23, 42, 0.28) 100%);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(22, 163, 74, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50px;
    font-size: 13px;
    color: #86efac;
    margin-bottom: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: #ffffff;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #4ade80 0%, #86efac 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: #cbd5e1;
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn-secondary {
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #64748b;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #22c55e, transparent);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== Section Common ===== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    color: var(--accent-green);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 700;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== Advantages Section ===== */
.advantages {
    background: var(--bg-secondary);
}

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

.advantage-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px 28px;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: var(--transition-slow);
    transform-origin: left;
}

.advantage-card:hover {
    transform: translateY(-8px);
    border-color: rgba(22, 163, 74, 0.2);
    box-shadow: var(--shadow-xl);
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-gradient-soft);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
}

.advantage-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.advantage-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Products Section ===== */
#products {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

#products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    z-index: 0;
}

#products .container {
    position: relative;
    z-index: 1;
}

body.lang-zh #products {
    background-image: url('../images/products-bg-zh.png');
}

body.lang-en #products {
    background-image: url('../images/products-bg-en.png');
}

body.lang-ru #products {
    background-image: url('../images/products-bg-ru.png');
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(22, 163, 74, 0.2);
    box-shadow: var(--shadow-xl);
}

.product-image {
    height: 200px;
    background: #f7f9f7;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.product-image-placeholder {
    font-size: 72px;
    opacity: 0.6;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.1), transparent);
    transition: 0.5s;
}

.product-card:hover .product-image::after {
    left: 100%;
}

/* 产品卡片视频播放按钮 */
.product-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(22, 163, 74, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.4);
}

.product-video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(22, 163, 74, 1);
}

.product-video-play-btn .play-icon {
    color: white;
    font-size: 20px;
    margin-left: 4px;
}

.product-info {
    padding: 28px;
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.product-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--accent-green);
    font-weight: 600;
}

.product-card:hover .product-link {
    gap: 12px;
}

/* ===== Stats Section ===== */
.stats {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ===== Solutions Section ===== */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.solution-card {
    position: relative;
    height: 360px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.solution-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #14532d 0%, #22c55e 100%);
    transition: var(--transition-slow);
}

.solution-card:hover .solution-bg {
    transform: scale(1.05);
}

.solution-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.85) 100%);
    z-index: 1;
}

.solution-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    z-index: 2;
}

.solution-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
}

.solution-desc {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 20px;
    line-height: 1.7;
}

.solution-content .btn-secondary {
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.solution-content .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

/* ===== Agent CTA Section ===== */
.agent-cta {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #f0fdf4 100%);
    position: relative;
    overflow: hidden;
}

.agent-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.agent-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.agent-cta-text {
    flex: 1;
}

.agent-cta-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-primary);
}

.agent-cta-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.agent-cta-features {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}

.agent-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.agent-feature-icon {
    width: 24px;
    height: 24px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--accent-green);
    font-weight: 700;
}

.agent-cta-visual {
    flex: 0 0 400px;
    height: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.agent-cta-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.agent-cta-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.05) 0%, transparent 50%);
}

.agent-visual-icon {
    font-size: 100px;
    opacity: 0.2;
}

/* ===== News Section ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-sm);
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: rgba(22, 163, 74, 0.2);
    box-shadow: var(--shadow-xl);
}

.news-image {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image-icon {
    font-size: 48px;
    opacity: 0.3;
}

.news-content {
    padding: 24px;
}

.news-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.news-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.5;
    color: var(--text-primary);
}

.news-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Contact Section ===== */
.contact-section {
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.contact-info p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item-text h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

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

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition-fast);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
    background: var(--bg-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

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

.form-submit {
    width: 100%;
    padding: 14px;
    font-size: 15px;
}

/* ===== Partners Section ===== */
.partners {
    background: var(--bg-secondary);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.partner-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px 16px;
    text-align: center;
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    box-shadow: var(--shadow-sm);
}

.partner-card:hover {
    transform: translateY(-4px);
    border-color: rgba(22, 163, 74, 0.2);
    box-shadow: var(--shadow-lg);
}

.partner-logo {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
    transition: var(--transition-fast);
}

.partner-card:hover .partner-logo {
    color: var(--text-primary);
}

.partner-name {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.partner-card:hover .partner-name {
    color: var(--text-secondary);
}

/* ===== Footer ===== */
footer {
    background: #0f172a;
    padding: 60px 0 30px;
    color: #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 16px;
    display: inline-block;
}

.footer-brand p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #94a3b8;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    border-color: var(--accent-green);
    color: #4ade80;
    background: rgba(22, 163, 74, 0.1);
    transform: translateY(-2px);
}

/* 友情链接 */
.footer-friend-links {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.friend-links-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.friend-link-item {
    width: 56px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.friend-link-item:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.friend-link-facebook {
    background: #1877F2;
}

.friend-link-youtube {
    background: #FF0000;
}

/* 备案通过：境外社交链接已恢复显示 */

.friend-link-1688 {
    background: #FF6A00;
}

/* 简化版Footer */
.footer-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
}

.footer-left {
    flex: 1;
}

.footer-right {
    text-align: right;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a {
    font-size: 14px;
    color: #94a3b8;
    transition: var(--transition-fast);
}

.footer-col ul a:hover {
    color: #4ade80;
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 13px;
    color: #64748b;
}

/* ===== Page Header (Inner Pages) ===== */
.page-header {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('../images/products-bg-zh.png');
    overflow: hidden;
    margin-top: 0;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    margin-bottom: 16px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.page-header p {
    font-size: 16px;
    color: #f1f5f9;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.breadcrumb {
    margin-top: 20px;
    font-size: 14px;
    color: #e2e8f0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.breadcrumb a {
    color: #4ade80;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.breadcrumb a:hover {
    color: #22c55e;
}

body.lang-zh .page-header {
    background-image: url('../images/products-bg-zh.png');
}

body.lang-en .page-header {
    background-image: url('../images/products-bg-en.png');
}

body.lang-ru .page-header {
    background-image: url('../images/products-bg-ru.png');
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    margin-bottom: 16px;
    color: #ffffff;
}

.page-header p {
    font-size: 16px;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 13px;
    color: #94a3b8;
}

.breadcrumb a {
    color: #cbd5e1;
}

.breadcrumb a:hover {
    color: #ffffff;
}

/* ===== Agent Page Specific ===== */
.agent-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}

.agent-benefit {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-sm);
}

.agent-benefit:hover {
    transform: translateY(-6px);
    border-color: rgba(22, 163, 74, 0.2);
    box-shadow: var(--shadow-xl);
}

.agent-benefit-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-gradient-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.agent-benefit h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.agent-benefit p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.agent-process {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-bottom: 60px;
}

.agent-process::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.agent-step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.agent-step-number {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 2px solid var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-green);
    margin: 0 auto 16px;
    box-shadow: 0 4px 14px -4px rgba(22, 163, 74, 0.3);
}

.agent-step h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.agent-step p {
    font-size: 13px;
    color: var(--text-secondary);
}

.agent-form-section {
    background: var(--bg-secondary);
}

.agent-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 48px;
    box-shadow: var(--shadow-lg);
}

.agent-form-wrapper h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    text-align: center;
    color: var(--text-primary);
}

.agent-form-wrapper > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

/* ===== About Page Specific ===== */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    color: var(--text-primary);
}

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

.about-image {
    height: 400px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-icon {
    font-size: 120px;
    opacity: 0.2;
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .agent-cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .agent-cta-visual {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
    }
    
    .agent-cta-features {
        justify-content: center;
    }
    
    .about-hero {
        grid-template-columns: 1fr;
    }
    
    .agent-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 64px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-right .btn-primary {
        display: none;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .partner-card {
        padding: 20px 12px;
        min-height: 80px;
    }
    
    .partner-logo {
        font-size: 14px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .agent-process {
        flex-direction: column;
        gap: 32px;
    }
    
    .agent-process::before {
        display: none;
    }
    
    .agent-benefits {
        grid-template-columns: 1fr;
    }
    
    .agent-form-wrapper {
        padding: 28px 20px;
    }
    
    .contact-form {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .loading-logo {
        font-size: 32px;
    }
    
    .loading-bar-container {
        width: 240px;
    }
    
    .stat-number {
        font-size: 32px;
    }
}

/* ===== 简洁Loading样式（参考globalfoodmach） ===== */
#loading-screen {
    background: #ffffff !important;
}

.loading-container-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.loading-logo-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    opacity: 0;
    animation: loadingLogoFadeIn 0.8s ease forwards;
}

.loading-logo-square {
    width: 200px;
    height: 200px;
    object-fit: contain;
    animation: logoPulse 2s ease-in-out infinite;
}

.loading-progress-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 300px;
}

.loading-progress-bar {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #c41e3a, #e63946);
    border-radius: 2px;
    transition: width 0.05s linear;
}

.loading-percent {
    font-size: 16px;
    font-weight: 500;
    color: #999;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
}

#loading-percent-number {
    display: inline-block;
    min-width: 30px;
    text-align: right;
}

@keyframes loadingLogoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .loading-logo-square {
        width: 150px;
        height: 150px;
    }
    
    .loading-progress-wrapper {
        max-width: 240px;
    }
    
    .loading-percent {
        font-size: 14px;
    }
}

/* ===== 合作伙伴自动滚动 ===== */
.partners-marquee {
    overflow: hidden;
    width: 100%;
    margin-top: 40px;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.partners-marquee-track {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: partnersScroll 30s linear infinite;
    width: max-content;
}

.partners-marquee:hover .partners-marquee-track {
    animation-play-state: paused;
}

.partner-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.partner-logo-img {
    height: 90px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.partner-item:hover .partner-logo-img {
    opacity: 1;
    transform: scale(1.05);
}

.partner-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-item:hover .partner-logo-text {
    opacity: 1;
    color: var(--accent-color);
}

@keyframes partnersScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 隐藏原来的partner-card样式 */
.partners-grid {
    display: none !important;
}

@media (max-width: 768px) {
    .partners-marquee-track {
        gap: 40px;
    }
    
    .partner-logo-text {
        font-size: 18px;
    }
}

/* ===== 参考globalfoodmach整体视觉优化 ===== */
.section {
    padding: 100px 0 !important;
}

.section-header {
    margin-bottom: 70px !important;
}

.section-label {
    font-size: 14px !important;
    letter-spacing: 2px !important;
    color: #2563eb !important;
    margin-bottom: 20px !important;
}

.section-title {
    font-size: clamp(32px, 5vw, 52px) !important;
    font-weight: 700 !important;
    letter-spacing: -1px !important;
    margin-bottom: 24px !important;
}

.section-desc {
    font-size: 17px !important;
    max-width: 700px !important;
    line-height: 1.9 !important;
}

/* 优势板块改成深色背景，参考数智赋能风格 */
.advantages {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%) !important;
    position: relative;
    overflow: hidden;
}

.advantages::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.advantages::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.advantages .section-label {
    color: #60a5fa !important;
}

.advantages .section-title {
    color: #ffffff !important;
}

.advantages .section-desc {
    color: #94a3b8 !important;
}

.advantages-grid {
    position: relative;
    z-index: 2;
    gap: 30px !important;
}

.advantage-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    padding: 40px 30px !important;
    transition: all 0.4s ease !important;
}

.advantage-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
    transform: translateY(-5px);
}

.advantage-icon {
    font-size: 48px !important;
    margin-bottom: 24px !important;
    width: 80px !important;
    height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(196, 30, 58, 0.2)) !important;
    border-radius: 20px !important;
}

.advantage-title {
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
}

.advantage-desc {
    color: #94a3b8 !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
}

/* ===== Loading视频全屏 ===== */
#loading-screen {
    background: #000000 !important;
    padding: 0 !important;
}

.loading-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 桌面版默认显示，手机版隐藏 */
.loading-video-desktop {
    display: block;
}

.loading-video-mobile {
    display: none;
}

/* 手机端适配：显示手机版视频，隐藏桌面版 */
@media (max-width: 768px) {
    .loading-video-desktop {
        display: none;
    }
    
    .loading-video-mobile {
        display: block;
    }
    
    /* 移动端整体适配优化 */
    .section {
        padding: 60px 0 !important;
    }
    
    .section-header {
        margin-bottom: 40px !important;
    }
    
    .section-title {
        font-size: clamp(24px, 6vw, 32px) !important;
    }
    
    .section-desc {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }
    
    /* Hero区域移动端适配 */
    .hero-title {
        font-size: clamp(28px, 8vw, 42px) !important;
    }
    
    .hero-subtitle {
        font-size: 15px !important;
        line-height: 1.7 !important;
        margin-bottom: 28px !important;
    }
    
    .hero-badge {
        font-size: 12px !important;
        padding: 6px 14px !important;
    }
    
    .hero-carousel-indicators {
        gap: 12px !important;
        bottom: 80px !important;
    }
    
    .hero-carousel-indicators .indicator {
        font-size: 12px !important;
    }
    
    /* 合作伙伴移动端适配 */
    .partner-logo-img {
        height: 55px !important;
        max-width: 130px !important;
    }
    
    /* 联系表单移动端适配 */
    .contact-form {
        padding: 24px 20px !important;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
    }
    
    /* 页脚移动端适配 */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
    
    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 12px !important;
    }
    
    /* 导航栏移动端 */
    .nav-container {
        height: 60px !important;
    }
    
    .logo-img {
        height: 36px !important;
    }
    
    /* 按钮移动端 */
    .btn-primary, .btn-secondary {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px !important;
    }
    
    .hero-title {
        font-size: clamp(24px, 9vw, 32px) !important;
    }
    
    .hero-subtitle {
        font-size: 14px !important;
    }
    
    .partner-logo-img {
        height: 35px !important;
        max-width: 80px !important;
    }
}

/* ===== 服务优势弧形展示板块 ===== */
.advantages-arc {
    background: #ffffff !important;
    position: relative;
    overflow: hidden;
    padding: 60px 0 30px !important;
}

.arc-bg-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;
    border: 1px dashed rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    pointer-events: none;
}

.arc-bg-decoration::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    border: 1px dashed rgba(59, 130, 246, 0.15);
    border-radius: 50%;
}

.arc-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.arc-label {
    font-size: 16px;
    color: #60a5fa;
    letter-spacing: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

.arc-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: 2px;
}

.arc-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    min-height: auto;
}

/* 左侧详情 */
.arc-detail {
    flex: 0 0 320px;
    color: #0f172a;
}

.arc-detail-icon {
    width: 80px;
    height: 80px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.arc-detail-icon svg {
    width: 40px;
    height: 40px;
    color: #60a5fa;
}

.arc-detail-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #0f172a;
}

.arc-detail-desc {
    font-size: 17px;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 32px;
}

.arc-detail-arrow {
    width: 56px;
    height: 56px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.arc-detail-arrow:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.4);
}

.arc-detail-arrow svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

/* 弧形卡片容器 */
.arc-cards-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 480px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 0 auto;
}

.arc-center-circle {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 150px;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 150px 150px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.arc-center-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    font-weight: 600;
    margin-top: 25px;
}

.arc-center-text span:first-child {
    font-size: 24px;
}

.arc-center-text span:last-child {
    font-size: 20px;
}

/* 弧形卡片 */
.arc-cards {
    position: relative;
    width: 100%;
    height: 460px;
}

.arc-card {
    position: absolute;
    width: 190px;
    height: 290px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
    transform-origin: bottom center;
    text-decoration: none;
    display: block;
}

.arc-card:hover {
    transform: translateY(-12px) scale(1.05) rotate(var(--rotate)) !important;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
    z-index: 20;
    border-color: rgba(96, 165, 250, 0.6);
}

.arc-card.active {
    transform: translateY(-20px) scale(1.08) rotate(var(--rotate)) !important;
    box-shadow: 0 25px 50px rgba(16, 185, 129, 0.4);
    z-index: 25;
    border-color: rgba(16, 185, 129, 0.8);
}

.arc-card.active .arc-card-label {
    background: linear-gradient(180deg, transparent, rgba(16, 185, 129, 0.95));
}

.arc-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.arc-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.arc-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.95));
    color: #ffffff;
    padding: 32px 12px 16px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    z-index: 2;
    transition: background 0.3s ease;
}

/* 6个卡片真正扇形排列 - 中间高两边低，呈圆弧 */
.arc-card-1 {
    bottom: 10px;
    left: 3%;
    --rotate: -36deg;
    transform: rotate(-36deg);
    z-index: 1;
}

.arc-card-2 {
    bottom: 70px;
    left: 16%;
    --rotate: -22deg;
    transform: rotate(-22deg);
    z-index: 2;
}

.arc-card-3 {
    bottom: 140px;
    left: 32%;
    --rotate: -8deg;
    transform: rotate(-8deg);
    z-index: 3;
}

.arc-card-4 {
    bottom: 140px;
    right: 32%;
    --rotate: 8deg;
    transform: rotate(8deg);
    z-index: 3;
}

.arc-card-5 {
    bottom: 70px;
    right: 16%;
    --rotate: 22deg;
    transform: rotate(22deg);
    z-index: 2;
}

.arc-card-6 {
    bottom: 10px;
    right: 3%;
    --rotate: 36deg;
    transform: rotate(36deg);
    z-index: 1;
}

/* 移动端适配 */
@media (max-width: 1024px) {
    .arc-showcase {
        flex-direction: column;
        gap: 40px;
    }
    
    .arc-detail {
        flex: none;
        text-align: center;
        max-width: 400px;
    }
    
    .arc-detail-icon {
        margin: 0 auto 24px;
    }
    
    .arc-detail-arrow {
        margin: 0 auto;
    }
    
    .arc-cards-container {
        width: 100%;
        height: auto;
        display: block;
    }
    
    .arc-cards {
        width: 100%;
        height: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 16px;
    }
    
    .arc-card {
        position: relative;
        width: 100%;
        height: 180px;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        transform-origin: center;
    }
    
    .arc-center-circle {
        display: none;
    }
    
    .arc-bg-decoration {
        display: none;
    }
}

@media (max-width: 480px) {
    .arc-cards {
        grid-template-columns: 1fr;
    }
    
    .arc-card {
        height: 160px;
    }
}

/* ===== 确保每个板块全屏铺满，避免半白半蓝割裂感 ===== */
section {
    width: 100%;
    margin: 0;
}

/* Hero板块 - 视频背景 */
.hero {
    background: #0f172a;
    min-height: 100vh;
}

/* 弧形服务优势板块 - 纯白色 */
.advantages-arc {
    background: #ffffff !important;
    min-height: auto !important;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding-bottom: 30px !important;
}

/* 去掉深蓝色光晕效果 */
.advantages-arc::before {
    display: none !important;
}

.advantages-arc::after {
    display: none !important;
}

/* 合作伙伴板块 - 纯白色 */
.partners {
    background: #ffffff !important;
    min-height: auto !important;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom-right-radius: 120px;
    z-index: 2;
    padding: 60px 0 !important;
}

/* 联系我们板块 - 浅灰白色 */
.contact {
    background: #f8fafc !important;
    min-height: auto !important;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom-right-radius: 100px;
    z-index: 2;
    padding: 60px 0 !important;
}

/* 页脚 - 深色 */
footer {
    background: #0f172a !important;
}

/* 确保容器不影响背景铺满 */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* 移动端：不强制全屏高度，让内容自适应 */
@media (max-width: 768px) {
    .advantages-arc,
    .partners,
    .contact {
        min-height: auto !important;
        display: block !important;
        padding: 40px 0 !important;
    }
}

/* ===== 手机端深度优化 ===== */
@media (max-width: 768px) {
    /* 容器左右边距 */
    .container {
        padding: 0 16px !important;
    }
    
    /* 弧形服务板块移动端 */
    .advantages-arc {
        padding: 40px 0 30px !important;
    }
    
    .arc-header {
        margin-bottom: 30px !important;
    }
    
    .arc-title {
        font-size: clamp(24px, 7vw, 32px) !important;
    }
    
    .arc-label {
        font-size: 13px !important;
        letter-spacing: 2px !important;
        margin-bottom: 12px !important;
    }
    
    /* 弧形卡片 - 2列网格，确保图片显示 */
    .arc-showcase {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .arc-cards-container {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .arc-cards {
        width: 100% !important;
        height: auto !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 !important;
    }
    
    .arc-card {
        position: relative !important;
        width: 100% !important;
        height: 200px !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        transform-origin: center !important;
        border-radius: 12px !important;
    }
    
    .arc-card-bg {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background-size: cover !important;
        background-position: center !important;
    }
    
    .arc-card-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(180deg, rgba(15,23,42,0.1) 0%, rgba(15,23,42,0.7) 100%) !important;
    }
    
    .arc-card-label {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 20px 10px 12px !important;
        font-size: 13px !important;
        text-align: center !important;
    }
    
    .arc-center-circle,
    .arc-bg-decoration {
        display: none !important;
    }
    
    /* Hero区域移动端优化 */
    .hero {
        min-height: 100vh !important;
    }
    
    .hero-content {
        padding: 0 16px !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        text-align: center !important;
        margin: 0 auto !important;
    }
    
    .hero-badge {
        font-size: 11px !important;
        padding: 5px 12px !important;
        margin-bottom: 16px !important;
    }
    
    .hero-title {
        font-size: clamp(26px, 8vw, 36px) !important;
        line-height: 1.3 !important;
        margin-bottom: 16px !important;
    }
    
    .hero-subtitle {
        font-size: 14px !important;
        line-height: 1.7 !important;
        margin-bottom: 24px !important;
        max-width: 100% !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        text-align: center !important;
    }
    
    /* Hero轮播指示器 */
    .hero-carousel-indicators {
        bottom: 100px !important;
        gap: 8px !important;
    }
    
    .hero-carousel-indicators .indicator {
        font-size: 11px !important;
        padding: 6px 12px !important;
    }
    
    /* 向下滚动提示 */
    .hero-scroll {
        bottom: 30px !important;
    }
    
    /* 合作伙伴板块 */
    .partners {
        padding: 40px 0 !important;
    }
    
    .partners-marquee {
        margin-top: 24px !important;
    }
    
    .partners-marquee-track {
        gap: 30px !important;
    }
    
    .partner-item {
        padding: 0 10px !important;
    }
    
    .partner-logo-img {
        height: 50px !important;
        max-width: 120px !important;
    }
    
    /* 联系我们板块 */
    .contact {
        padding: 40px 0 !important;
    }
    
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    /* 页脚 */
    footer {
        padding: 40px 0 20px !important;
    }
    
    .footer-logo-img {
        height: 45px !important;
    }
}

/* 小屏手机进一步优化 */
@media (max-width: 480px) {
    .arc-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .arc-card {
        height: 180px !important;
    }
    
    .arc-card-label {
        font-size: 12px !important;
        padding: 16px 8px 10px !important;
    }
    
    .hero-title {
        font-size: clamp(24px, 9vw, 32px) !important;
    }
    
    .partner-logo-img {
        height: 45px !important;
        max-width: 100px !important;
    }
}

/* ===== Loading明亮遮罩+域名 ===== */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.35);
    z-index: 2;
    pointer-events: none;
}

.loading-domain {
    position: absolute;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .loading-domain {
        font-size: 16px;
        bottom: 15%;
        letter-spacing: 1px;
    }
}

/* ===== 首页解决方案板块 ===== */
.solutions-section {
    background: #ffffff;
}

.home-solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.home-solution-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.home-solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
}

.home-solution-imgs {
    display: flex;
    gap: 12px;
    padding: 16px 16px 0;
}

.home-solution-img {
    flex: 1;
    width: 50%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.home-solution-card:hover .home-solution-img {
    transform: scale(1.02);
}

.home-solution-content {
    padding: 24px;
}

.home-solution-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.home-solution-content p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 16px;
}

.home-solution-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-solution-points li {
    font-size: 12px;
    color: #2563eb;
    background: #eff6ff;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.home-solutions-cta {
    text-align: center;
    margin-top: 50px;
}

.home-solutions-cta .btn-primary {
    padding: 14px 40px;
    font-size: 16px;
}

/* 解决方案板块移动端适配 */
@media (max-width: 1024px) {
    .home-solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-solutions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .home-solution-img {
        height: 140px;
    }
    
    .home-solution-content {
        padding: 18px;
    }
    
    .home-solution-content h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .home-solution-imgs {
        flex-direction: column;
        gap: 10px;
    }
    
    .home-solution-img {
        width: 100%;
        height: 160px;
    }
}

/* ===== Loading 纯CSS文字灌注动画 ===== */
#loading-screen {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 50%, #f0f7ff 100%) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    z-index: 9999 !important;
}

.loading-text-wrap {
    position: relative;
    display: inline-block;
}

.loading-text {
    font-size: clamp(56px, 18vw, 220px);
    font-weight: 400;
    letter-spacing: 14px;
    font-family: "STXingkai", "华文行楷", "STKaiti", "KaiTi", "Ma Shan Zheng", "ZCOOL KuaiLe", cursive;
    display: block;
    line-height: 1.2;
}

.loading-text-base {
    color: #94a3b8;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.loading-text-fill {
    position: absolute;
    top: 0;
    left: 0;
    color: transparent;
    /* 透明水液体效果：半透明蓝色渐变 + 高光条纹，颜色加深 */
    background: linear-gradient(
        180deg,
        rgba(80, 160, 230, 0.7) 0%,
        rgba(40, 110, 190, 0.85) 25%,
        rgba(70, 145, 220, 0.75) 45%,
        rgba(200, 230, 255, 0.9) 50%,
        rgba(50, 120, 200, 0.88) 70%,
        rgba(90, 165, 235, 0.72) 100%
    );
    background-size: 100% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px rgba(60, 140, 220, 0.45));
    clip-path: inset(100% 0 0 0);
    -webkit-clip-path: inset(100% 0 0 0);
    animation: loadingFill 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
               waterFlow 1.5s linear infinite;
}

@keyframes waterFlow {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

@keyframes loadingFill {
    0% {
        clip-path: inset(100% 0 0 0);
        -webkit-clip-path: inset(100% 0 0 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
        -webkit-clip-path: inset(0 0 0 0);
    }
}

/* 灌满后水液体发光 */
.loading-text-fill {
    animation: loadingFill 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
               waterFlow 1.5s linear infinite,
               loadingGlow 0.6s ease-out 1.8s forwards;
}

@keyframes loadingGlow {
    0% {
        filter: drop-shadow(0 0 10px rgba(100, 180, 255, 0.35));
    }
    100% {
        filter: drop-shadow(0 0 25px rgba(100, 180, 255, 0.6)) drop-shadow(0 0 50px rgba(100, 180, 255, 0.3));
        transform: scale(1.03);
    }
}

/* Loading英文副标题 - 与中文相同的水液体填充效果 */
.loading-english-wrap {
    position: relative;
    display: inline-block;
    margin-top: 20px;
    text-align: center;
}

.loading-english {
    font-size: clamp(14px, 2vw, 24px);
    font-weight: 600;
    letter-spacing: 6px;
    text-transform: uppercase;
    display: block;
    line-height: 1.4;
    text-align: center;
}

.loading-english-base {
    color: #94a3b8;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.loading-english-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: transparent;
    background: linear-gradient(
        180deg,
        rgba(80, 160, 230, 0.7) 0%,
        rgba(40, 110, 190, 0.85) 25%,
        rgba(70, 145, 220, 0.75) 45%,
        rgba(200, 230, 255, 0.9) 50%,
        rgba(50, 120, 200, 0.88) 70%,
        rgba(90, 165, 235, 0.72) 100%
    );
    background-size: 100% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    clip-path: inset(100% 0 0 0);
    animation: loadingEnglishFill 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards,
               waterFlow 1.5s linear infinite,
               loadingEnglishGlow 0.6s ease-out 2.1s forwards;
}

@keyframes loadingEnglishFill {
    0% {
        clip-path: inset(100% 0 0 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes loadingEnglishGlow {
    0% {
        filter: drop-shadow(0 0 8px rgba(100, 180, 255, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 15px rgba(100, 180, 255, 0.5));
    }
}

/* 确保loading内容整体居中 */
#loading-screen {
    text-align: center;
}

.loading-text-wrap {
    text-align: center;
}

@media (max-width: 768px) {
    /* ===== Loading 画面移动端自适应：防止“天下佰工”横向溢出屏幕 ===== */
    #loading-screen {
        overflow: hidden;
    }
    .loading-text-wrap,
    .loading-english-wrap {
        max-width: 100%;
    }
    .loading-text {
        font-size: clamp(48px, 16vw, 96px);
        letter-spacing: 4px;
    }
    .loading-english-wrap {
        margin-top: 12px;
    }
    .loading-english {
        font-size: 12px;
        letter-spacing: 3px;
    }

    /* ===== Hero 移动端自适应：海报满屏铺底、标题/副标题缩放、防止超出视口 ===== */
    .hero {
        height: 100vh;
        height: 100svh;
        min-height: auto;
    }
    .hero-video-carousel {
        height: 100% !important;
        background: url('../images/hero-poster-1.jpg') center center / cover no-repeat !important;
    }
    .hero-content {
        padding: 0 20px;
    }
    .hero-title {
        font-size: clamp(26px, 7vw, 40px);
        line-height: 1.35;
        margin-bottom: 16px;
    }
    .hero-subtitle {
        font-size: 14px !important;
        line-height: 1.6;
        margin-bottom: 24px;
    }
    .hero-carousel-indicators {
        bottom: 56px;
    }
}

/* 隐藏旧的视频和遮罩元素 */
.loading-video,
.loading-video-desktop,
.loading-video-mobile,
.loading-overlay,
.loading-domain {
    display: none !important;
}

/* ===== 导航栏下拉菜单 ===== */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

/* 桥接触发器与菜单之间的间隙，防止鼠标移向菜单时菜单收起 */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    min-width: 180px;
    height: 16px;
}

.nav-dropdown > a {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
    min-width: 140px;
    z-index: 1000;
    padding: 8px 0;
    margin-top: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    transform: translateX(-50%);
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-align: center;
}

.dropdown-menu a:hover {
    color: #2563eb;
    background: #f0f7ff;
}

/* 移动端下拉菜单 */
@media (max-width: 768px) {
    .nav-menu {
        align-items: center;
    }

    .nav-menu > a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 4px 0;
    }

    .nav-dropdown {
        display: block;
        width: 100%;
        text-align: center;
    }

    .nav-dropdown > a {
        display: inline-block;
        text-align: center;
        padding: 4px 0;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: #f8fafc;
        margin-top: 0;
        padding: 0;
        min-width: auto;
        display: none;
        opacity: 1;
        visibility: visible;
    }

    .nav-dropdown:hover .dropdown-menu {
        transform: none;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 12px 20px 12px 40px;
        text-align: left;
        font-size: 14px;
    }
}

/* ===== 全产业链食品机械板块 ===== */
.industry-chain-section {
    background: #ffffff;
    padding: 100px 0;
}

.industry-chain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.industry-card {
    position: relative;
    border-radius: 20px;
    padding: 40px 24px;
    text-align: center;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.25) 0%, transparent 60%);
    pointer-events: none;
}

.industry-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
}

.industry-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: all 0.35s ease;
}

.industry-card:hover .industry-icon {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1) rotate(-5deg);
}

.industry-icon svg {
    width: 44px;
    height: 44px;
}

.industry-card h3 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

/* 各卡片配色 - 契合关键词 */
.industry-baking {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
}

.industry-canning {
    background: linear-gradient(135deg, #64748b 0%, #475569 50%, #334155 100%);
}

.industry-molding {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
}

.industry-freezing {
    background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 50%, #0891b2 100%);
}

.industry-puffing {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
}

.industry-frying {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
}

/* 响应式 */
@media (max-width: 768px) {
    .industry-chain-section {
        padding: 60px 0;
    }
    
    .industry-chain-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .industry-card {
        padding: 28px 16px;
        min-height: 140px;
        gap: 12px;
    }
    
    .industry-icon {
        width: 56px;
        height: 56px;
    }
    
    .industry-icon svg {
        width: 34px;
        height: 34px;
    }
    
    .industry-card h3 {
        font-size: 17px;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .industry-chain-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .industry-card {
        min-height: 120px;
        padding: 24px 20px;
    }
}


/* 同一会话二次访问直接隐藏loading，避免卡住 */
html.loading-seen #loading-screen {
    display: none !important;
}


/* about页浅色卡片标题深色，避免白字白底 */
.advantages-grid .advantage-title {
    color: #1e293b !important;
}
.advantages-grid .advantage-desc {
    color: #64748b !important;
}


/* ===== 隧道炉3D展示 ===== */
.tunnel-3d-section {
    background: var(--bg-secondary);
    padding: 80px 0;
}

.tunnel-3d-wrapper {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* 3D 懒加载占位层（模型加载完成后隐藏） */
.tunnel-3d-ph {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, #0b1220 0%, #16233a 50%, #0b1220 100%);
    background-size: 200% 200%;
    animation: tunnel3dShimmer 2.4s ease-in-out infinite;
    transition: opacity 0.4s ease;
}
.tunnel-3d-ph.hide { opacity: 0; pointer-events: none; }
@keyframes tunnel3dShimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.tunnel-3d-iframe { position: relative; z-index: 2; }

.tunnel-3d-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ===== About 页厂房照片移动端适配：公司名称显示完整 ===== */
@media (max-width: 768px) {
    .about-image {
        height: 320px;
    }
    .about-photo {
        object-position: left center;
    }
}

@media (max-width: 768px) {
    .tunnel-3d-section {
        padding: 40px 0;
    }
    .tunnel-3d-wrapper {
        height: 60vh;
        min-height: 400px;
        border-radius: 12px;
    }
}


/* 小米/红米浏览器：强制 hero 视频不响应指针事件、隐藏系统控件 */
.xiaomi-browser .hero-video-slide,
.miui-browser .hero-video-slide {
    pointer-events: none !important;
    -webkit-pointer-events: none !important;
}
.xiaomi-browser .hero-video-slide::-webkit-media-controls,
.miui-browser .hero-video-slide::-webkit-media-controls {
    display: none !important;
}
