/* ============================================
   ZBOM Thailand Factory - 主站 dzomhome.com 样式
   紫色渐变主题，响应式设计
   ============================================ */

/* ---------- CSS 变量 - 浅色模式 ---------- */
:root {
    --primary: #6B5B95;
    --primary-dark: #4A3F6B;
    --primary-light: #8B7CB3;
    --primary-lighter: #A99BD1;
    --secondary: #7C6DA0;
    --accent: #9B8EC4;
    --gradient: linear-gradient(135deg, #6B5B95 0%, #8B7CB3 50%, #A99BD1 100%);
    --gradient-dark: linear-gradient(135deg, #4A3F6B 0%, #6B5B95 100%);
    --gradient-hero: linear-gradient(135deg, #4A3F6B 0%, #5B4B85 30%, #7B6BA5 60%, #9B8EC4 100%);
    --white: #FFFFFF;
    --light-bg: #F8F7FC;
    --gray-100: #F3F2F7;
    --gray-200: #E8E6F0;
    --gray-300: #D0CCE0;
    --gray-500: #8E8BA0;
    --gray-700: #5A5770;
    --gray-900: #2D2A3E;
    --text: #333333;
    --text-light: #666666;
    --bg-body: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-section: #F8F7FC;
    --border-color: #E8E6F0;
    --shadow-sm: 0 2px 8px rgba(107, 91, 149, 0.1);
    --shadow-md: 0 4px 16px rgba(107, 91, 149, 0.15);
    --shadow-lg: 0 8px 32px rgba(107, 91, 149, 0.2);
    --shadow-xl: 0 12px 48px rgba(107, 91, 149, 0.25);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(20px) saturate(180%);
}

/* ---------- CSS 变量 - 深色模式 ---------- */
[data-theme="dark"] {
    --primary: #8B7CB3;
    --primary-dark: #6B5B95;
    --primary-light: #A99BD1;
    --primary-lighter: #C4B8E0;
    --gradient: linear-gradient(135deg, #6B5B95 0%, #8B7CB3 50%, #A99BD1 100%);
    --gradient-dark: linear-gradient(135deg, #4A3F6B 0%, #6B5B95 100%);
    --gradient-hero: linear-gradient(135deg, #2D1F4F 0%, #3D2F6F 30%, #5B4B85 60%, #7B6BA5 100%);
    --white: rgba(255, 255, 255, 0.9);
    --light-bg: #12101A;
    --gray-100: #1E1A2E;
    --gray-200: #2A2540;
    --gray-300: #3D3659;
    --gray-500: #7A7399;
    --gray-700: #A8A0C8;
    --gray-900: #E0DAF0;
    --text: #E8E4F5;
    --text-light: #A8A0C8;
    --bg-body: #0D0B14;
    --bg-card: #1A1625;
    --bg-section: #12101A;
    --border-color: #2A2540;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* ---------- 全局重置 ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* 只在 html 层设置 overflow-x 才能截住根滚动：body 上的 overflow-x:hidden
       会让 body 成为滚动容器，但溢出元素仍会撑开 documentElement.scrollWidth，
       移动端照样能横向拖动。用 clip 而非 hidden —— clip 不创建滚动容器，
       不会破坏 position: sticky 的顶部导航。 */
    overflow-x: clip;
}

body {
    font-family: 'Noto Sans SC', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- 导航栏- 液态玻璃---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(74, 63, 107, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 0;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

[data-theme="dark"] .navbar {
    background: rgba(30, 26, 46, 0.85);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 32px;
    width: auto !important;
    max-width: none;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .logo-img {
    opacity: 0.9;
}

.nav-center {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links li a {
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 400;
    transition: var(--transition);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.15);
}

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

.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.9);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lang-switcher {
    display: flex;
    gap: 4px;
}

.lang-btn {
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 12px; /* 点击区 29px → 33px */
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    /* 缺了这条，"中文" 在窄容器里会被逐字竖排成 中/文 两行 */
    white-space: nowrap;
}

/* 窄屏语言切换面板：桌面端不显示（导航栏内已有横向切换） */
.lang-switcher-mobile {
    display: none;
}

.lang-btn:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.15);
}

.lang-btn.active {
    color: var(--primary);
    background: var(--bg-card);
    font-weight: 600;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    /* 触屏最小点击区：原来 26px 高，手指容易点不中 */
    min-width: 40px;
    min-height: 40px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero 区域 ---------- */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    padding-top: 70px;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(255,255,255,0.03) 0%, transparent 35%);
    z-index: 0;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
    50% { transform: translateY(-30px) scale(1.1); opacity: 0.8; }
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.hero-sm {
    min-height: 300px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.hero-badge i {
    color: #FFD700;
}

.hero-title {
    color: #FFFFFF;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    line-height: 1.3;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-sm .hero-title {
    font-size: 36px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
}

.hero-stat .stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    animation: bounce 2s infinite;
}

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

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--gradient);
    color: #FFFFFF;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-bounce);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(107, 91, 149, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
    color: #FFFFFF;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-outline {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-white {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

/* ---------- 通用区块 ---------- */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 48px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    margin: 12px auto 0;
}

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

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- 关于我们 ---------- */
.about-section {
    background: var(--bg-section);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

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

.about-image {
    position: relative;
}

.image-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-card-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 3;
    background: var(--gradient);
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-md);
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1240 / 753;
    background: var(--gradient-hero);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    gap: 12px;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 30% 40%, rgba(255,255,255,0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(255,255,255,0.05) 0%, transparent 35%);
}

.image-placeholder i {
    font-size: 64px;
    opacity: 0.6;
    position: relative;
    z-index: 1;
}

.image-placeholder span {
    position: relative;
    z-index: 1;
    font-weight: 500;
    letter-spacing: 1px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 500;
    margin-top: 8px;
}

.link-arrow:hover {
    gap: 12px;
    color: var(--primary-dark);
}

/* ---------- 数据统计区 ---------- */
.stats-section {
    background: var(--gradient-dark);
    color: #FFFFFF;
    padding: 60px 0;
}

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

.stat-item {
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* ---------- 服务卡片 ---------- */
.services-section {
    background: var(--bg-body);
}

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

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

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

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: #FFFFFF;
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: var(--shadow-lg);
}

.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 0; /* 点击区 22px → 34px */
}

.service-link:hover {
    gap: 10px;
    color: var(--primary-dark);
}

/* ---------- 信任标识 ---------- */
.trust-section {
    background: var(--bg-section);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.trust-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.trust-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.trust-item i {
    font-size: 28px;
    color: var(--primary);
    transition: var(--transition);
}

.trust-item:hover i {
    transform: scale(1.2);
}

.trust-item span {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
}

/* ---------- 联系我们 ---------- */
.contact-section {
    background: var(--bg-section);
}

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

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

/* 标题与内容必须由 body 包裹后纵向排列。
   若 h4 与 p 直接做 .contact-item 的 flex 子项，两者会并排且 h4 被压窄到
   一个字宽 —— 中文标题就会逐字竖排（"地/址"竖着出现）。 */
.contact-item-body {
    flex: 1;
    min-width: 0; /* flex 子项默认 min-width:auto，长邮箱地址会撑破容器 */
}

.contact-item-body h4 {
    white-space: nowrap;
}

.contact-icon-circle {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #FFFFFF;
    box-shadow: var(--shadow-sm);
}

.contact-item-body h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.contact-item-body p {
    color: var(--text-light);
    font-size: 14px;
}

.contact-item-body a {
    color: var(--primary);
}

.contact-item-body a:hover {
    text-decoration: underline;
}

.map-links {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.map-links h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text);
    transition: var(--transition);
}

.map-btn:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.map-embed {
    margin-top: 24px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-controls {
    display: flex;
    gap: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.map-toggle-btn {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.map-toggle-btn:hover {
    background: var(--gray-100);
    color: var(--text);
}

.map-toggle-btn.active {
    background: var(--gradient);
    color: #FFFFFF;
}

/* ---------- 表单 ---------- */
.contact-form-panel {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 6px;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(107, 91, 149, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-500);
}

.captcha-group {
    display: flex;
    flex-direction: column;
}

.captcha-row {
    display: flex;
    gap: 8px;
}

.captcha-row input {
    flex: 1;
}

.btn-refresh {
    width: 44px;
    height: 44px;
    background: var(--gray-100);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.btn-refresh:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

.form-message {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    display: none;
}

.form-message.success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-message.error {
    display: block;
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* ---------- 页脚 ---------- */
.footer {
    background: linear-gradient(180deg, #2a2340 0%, var(--gray-900) 30%);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 24px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-lighter) 40%, transparent 90%);
    opacity: 0.9;
}

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

.footer-col h3 {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-col h3::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    margin-top: 8px;
    background: var(--primary-lighter);
    border-radius: 2px;
    opacity: 0.85;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

.footer-col ul li {
    /* 原为 10px；链接本身上下加了 6px padding（点击区 22px → 34px），
       这里相应收窄，保持整体节奏不变但触屏更好点 */
    margin-bottom: 2px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    transition: var(--transition);
    display: inline-block;
    position: relative;
    padding: 6px 0;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: #FFFFFF;
    padding-left: 8px;
}

.footer-col ul li a::after {
    content: '';
    position: absolute;
    /* 链接加了 6px 下 padding，下划线要跟着贴回文字底部 */
    bottom: 8px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-lighter);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-col ul li a:hover::after {
    width: 100%;
}

/* 品牌列注册徽章 */
.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12.5px;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.footer-badge i {
    color: var(--primary-lighter);
    font-size: 13px;
}

.footer-badge:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
}

/* 页脚地址正体(浏览器默认 italic 不自然) */
.footer address {
    font-style: normal;
}

/* 页脚联系方式：原先没有任何样式，走浏览器默认（图标与文字挤在一起、行高不齐） */
.footer .contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.6;
}

.footer .contact-info li i {
    margin-top: 5px;
    flex-shrink: 0;
    color: var(--primary-lighter);
}

.footer .contact-info li a {
    /* li 改成 flex 后，链接必须自己撑起点击区（原来只有 20px 高） */
    display: inline-block;
    padding: 5px 0;
    color: rgba(255, 255, 255, 0.75);
}

.footer .contact-info li a:hover {
    color: #FFFFFF;
}

.footer .contact-info li address {
    display: inline;
    margin: 0;
}

/* 联系列营业时间 */
.footer-hours {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    font-size: 13.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

.footer-hours i {
    margin-top: 4px;
    color: var(--primary-lighter);
}

.footer-hours strong {
    color: #FFFFFF;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.footer-hours span {
    white-space: pre-line;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p.footer-copy {
    margin: 0;
}

/* ---------- 关于页面详细 ---------- */
.about-detail-section {
    background: var(--bg-section);
}

.about-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-detail-text h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.about-detail-text p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

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

.about-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.about-feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-light);
}

.about-feature-item i {
    font-size: 20px;
    color: var(--primary);
    margin-top: 2px;
}

.about-feature-item div h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.about-feature-item div p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

/* ---------- 服务页面详细 ---------- */
.services-detail-section {
    background: var(--bg-body);
}

.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-detail-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-color);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.service-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-detail-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

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

.service-detail-card .service-icon {
    margin: 0 0 20px 0;
}

.service-detail-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.service-detail-card > p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text);
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li:hover {
    padding-left: 8px;
    color: var(--primary);
}

.service-features li i {
    color: var(--primary);
    font-size: 14px;
}

/* ---------- 加载动画 ---------- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.scale-in {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ---------- 视差效果 ---------- */
.parallax-wrapper {
    overflow: hidden;
    position: relative;
}

.parallax-img {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ---------- 页面进度条---------- */
.page-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent), var(--primary));
    z-index: 9999;
    transition: width 0.2s ease;
    box-shadow: 0 0 8px rgba(107, 91, 149, 0.5);
}

/* ---------- 页面进入动画 ---------- */
.page-enter {
    animation: pageEnter 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* ---------- 无障碍返回顶部 ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #FFFFFF;
    padding: 8px 24px;
    border-radius: 0 0 8px 8px;
    z-index: 9999;
    font-size: 14px;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 70px;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--gradient);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    text-decoration: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ---------- 图片懒加载---------- */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"][src] {
    opacity: 1;
}

/* ---------- 响应式设计---------- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .footer-col-brand {
        grid-column: 1 / -1;
    }
    .hero-stats {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .nav-center {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--gradient-dark);
        padding: 20px;
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }

    .nav-center.show {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        gap: 4px;
    }

    .nav-links li a {
        display: block;
        padding: 12px 16px;
        border-radius: var(--radius-sm);
    }

    .hamburger {
        display: flex;
    }

    /* 导航栏内的语言切换在移动端收起，避免与 logo / 主题 / 汉堡挤成一行 */
    .nav-right > .lang-switcher {
        display: none;
    }

    /* 改在汉堡展开面板里提供，点击区放大到 36px 便于手指操作 */
    .lang-switcher-mobile {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .lang-switcher-mobile .lang-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        min-width: 56px;
        padding: 8px 14px;
        font-size: 13px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: var(--radius-sm);
    }

    .lang-switcher-mobile .lang-btn.active {
        background: rgba(255, 255, 255, 0.22);
        color: #FFFFFF;
    }

    .nav-right {
        gap: 6px;
    }

    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .hero {
        min-height: 500px;
    }

    .hero-title {
        font-size: 28px;
        /* 避免末行只剩一两个字（"东南亚家居智造基地" 曾在 390px 下把"地"挤成孤行） */
        text-wrap: balance;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    /* 从右侧 40px 滑入会把元素推出窄屏视口，制造横向滚动；窄屏改为自下淡入 */
    .fade-in-right {
        transform: translateY(24px);
    }

    /* 装饰性光斑在窄屏会把 scrollWidth 撑大，且视觉价值低，直接隐藏 */
    .hero-particles {
        display: none;
    }

    /* 两个 CTA 按钮保持横向排列：改成 column 后移动端会堆成两行，
       占据过多首屏高度且视觉断裂。放不下时由 flex-wrap 自然换行。 */
    .hero-actions {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat .stat-number {
        font-size: 24px;
    }

    .hero-sm .hero-title {
        font-size: 26px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 32px;
    }

    .about-grid,
    .about-detail-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .services-detail-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-item {
        padding: 16px;
    }

    .stat-value {
        font-size: 28px;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .trust-item {
        padding: 16px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-reg {
        text-align: left;
    }

    .contact-form-panel {
        padding: 24px;
    }

    .map-btns {
        flex-direction: column;
    }
}

/* ---------- Cookie 同意横幅 ---------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
    padding: 20px 24px;
    z-index: 9998;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 250px;
}

.cookie-banner-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.cookie-banner-text p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.cookie-btn-primary {
    background: var(--gradient);
    color: #FFFFFF;
}

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

.cookie-btn-secondary {
    background: var(--gray-100);
    color: var(--text);
    border: 1px solid var(--border-color);
}

.cookie-btn-secondary:hover {
    background: var(--gray-200);
}

.cookie-btn-link {
    background: transparent;
    color: var(--primary);
    text-decoration: underline;
    padding: 10px 8px;
}

.cookie-btn-link:hover {
    color: var(--primary-dark);
}

/* ---------- 法律页面样式 ---------- */
.legal-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
    flex-wrap: wrap;
}

.legal-tab {
    padding: 14px 28px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: -2px;
    white-space: nowrap;
}

.legal-tab:hover {
    color: var(--primary);
    background: var(--gray-100);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.legal-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.legal-content {
    animation: fadeInUp 0.4s ease;
}

.legal-content.hidden {
    display: none;
}

.legal-content h2 {
    font-size: 28px;
    color: var(--text);
    margin-bottom: 8px;
}

.legal-content h3 {
    font-size: 20px;
    color: var(--text);
    margin-top: 32px;
    margin-bottom: 12px;
    font-weight: 600;
}

.legal-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-content ul {
    margin: 12px 0;
    padding-left: 24px;
}

.legal-content ul li {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 6px;
}

.legal-date {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
    font-style: italic;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cookie-table th,
.cookie-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cookie-table th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.cookie-table td {
    color: var(--text-light);
    font-size: 14px;
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

.cookie-table tr:hover td {
    background: var(--gray-100);
}

/* ---------- 页脚法律链接 ---------- */
.footer-logo {
    display: inline-block;
    margin-bottom: 12px;
}

.footer-logo-img {
    height: 28px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-logo:hover .footer-logo-img {
    opacity: 1;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 22px;
}

.footer-legal a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
    padding: 5px 2px; /* 点击区 21px → 31px */
}

.footer-legal a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* ---------- 深色模式 Cookie 横幅 ---------- */
[data-theme="dark"] .cookie-banner {
    background: var(--bg-card);
    border-top-color: var(--border-color);
}

[data-theme="dark"] .cookie-btn-secondary {
    background: var(--gray-700);
    color: var(--white);
    border-color: var(--gray-500);
}

[data-theme="dark"] .cookie-btn-secondary:hover {
    background: var(--gray-500);
}

/* ---------- 响应式 Cookie 横幅 ---------- */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 16px;
    }
    .cookie-banner-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-banner-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .legal-tabs {
        gap: 4px;
    }
    .legal-tab {
        padding: 10px 16px;
        font-size: 14px;
    }
    .cookie-table {
        font-size: 13px;
    }
    .cookie-table th,
    .cookie-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 60px;
    }

    .logo-img {
        height: 28px;
    }

    .hero {
        padding-top: 60px;
        min-height: 450px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-stat .stat-number {
        font-size: 20px;
    }

    .hero-stat .stat-label {
        font-size: 11px;
    }

    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    .service-card {
        padding: 24px 16px;
    }

    .service-detail-card {
        padding: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-value {
        font-size: 24px;
    }

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

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }

    /* 键盘快捷键提示在触屏设备上没有意义，且悬浮圆钮会遮挡正文内容 */
    .keyboard-fab,
    .keyboard-hint {
        display: none !important;
    }
}

/* ============================================
   智能功能增强样式
   ============================================ */

/* ---------- 打字机效果 ---------- */
/* 光标用伪元素实现，绝不能把标题改成 display:inline ——
   hero 里 .hero-badge 是 inline-flex，标题一旦变行内就会和徽章挤在同一行，
   打字结束（约 2 秒）后又变回 block，整块首屏内容会跳动一次。
   曾因此在 390px 下把"东南亚家居智造基地"折成"……智造基 / 地"。 */
.typewriter {
    border-right: none;
    padding-right: 0;
}

.typewriter::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 0.9em;
    margin-left: 3px;
    vertical-align: -0.08em;
    background: rgba(255, 255, 255, 0.8);
    animation: blink-caret 0.8s step-end infinite;
}

@keyframes blink-caret {
    50% { opacity: 0; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* ---------- 智能表单验证 ---------- */
.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
    border-color: #4caf50;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234caf50' stroke-width='2'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: #f44336;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f44336' stroke-width='2'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-group .validation-msg {
    font-size: 12px;
    margin-top: 4px;
    min-height: 18px;
    transition: all 0.3s ease;
}

.form-group .validation-msg.error {
    color: #f44336;
}

.form-group .validation-msg.success {
    color: #4caf50;
}

/* ---------- 复制按钮 ---------- */
.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--gray-100);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    margin-left: 8px;
    vertical-align: middle;
}

.copy-btn:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

.copy-btn.copied {
    background: #4caf50;
    color: #FFFFFF;
    border-color: #4caf50;
}

.copy-btn.copied i::before {
    content: '\f00c';
}

/* ---------- 页面加载动画 ---------- */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-body);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    font-size: 14px;
    color: var(--text-light);
    letter-spacing: 2px;
}

/* ---------- 键盘快捷键浮动按钮 ---------- */
.keyboard-fab {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 997;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition-bounce);
}

.keyboard-fab:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

[data-theme="dark"] .keyboard-fab {
    background: var(--gradient-dark);
}

/* ---------- 键盘快捷键提示 ---------- */
.keyboard-hint {
    position: fixed;
    bottom: 150px;
    right: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 998;
    font-size: 13px;
    color: var(--text-light);
    max-width: 220px;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s ease;
    pointer-events: none;
}

.keyboard-hint.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.keyboard-hint h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.keyboard-hint kbd {
    display: inline-block;
    padding: 2px 6px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 11px;
    font-family: monospace;
    color: var(--gray-700);
    margin: 0 2px;
}

.keyboard-hint ul {
    list-style: none;
    padding: 0;
}

.keyboard-hint ul li {
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---------- 智能导航隐藏 ---------- */
.navbar.smart-hide {
    transform: translateY(-100%);
}

/* ---------- 滚动指示器增强 ---------- */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.scroll-indicator:hover {
    color: rgba(255, 255, 255, 0.9);
}

.scroll-indicator i {
    font-size: 16px;
    animation: bounce 2s infinite;
}

/* ---------- 图片灯箱 ---------- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* ---------- 服务搜索 ---------- */
.service-search {
    margin-bottom: 32px;
    position: relative;
}

.service-search input {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: block;
    padding: 14px 20px 14px 48px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    background: var(--bg-card);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.service-search input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(107, 91, 149, 0.1);
}

.service-search i {
    position: absolute;
    left: calc(50% - 220px);
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 16px;
}

.service-search input:focus + i,
.service-search input:not(:placeholder-shown) + i {
    color: var(--primary);
}

/* ---------- 暗色模式适配 ---------- */
[data-theme="dark"] .form-group input.valid,
[data-theme="dark"] .form-group select.valid,
[data-theme="dark"] .form-group textarea.valid {
    background-color: rgba(76, 175, 80, 0.1);
}

[data-theme="dark"] .form-group input.invalid,
[data-theme="dark"] .form-group select.invalid,
[data-theme="dark"] .form-group textarea.invalid {
    background-color: rgba(244, 67, 54, 0.1);
}

[data-theme="dark"] .keyboard-hint {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .keyboard-hint kbd {
    background: var(--gray-200);
    border-color: var(--gray-300);
    color: var(--gray-700);
}

/* ============================================
   缺失样式补全 + 可访问性增强（全站优化）
   ============================================ */

/* ---------- 服务详情页图标（原缺失样式，与首页 .service-icon 视觉一致） ---------- */
.service-detail-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 20px 0;
    font-size: 28px;
    color: #FFFFFF;
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
}

.service-detail-card:hover .service-detail-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: var(--shadow-lg);
}

/* ---------- CTA 区块（原缺失样式，services/about 页转化区） ---------- */
.cta-section {
    background: var(--gradient-dark);
    color: #FFFFFF;
}

.cta-box {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 24px;
}

.cta-box h2 {
    color: #FFFFFF;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    margin-bottom: 28px;
}

/* ---------- 联系页外层（原缺失样式） ---------- */
.contact-full-section {
    background: var(--bg-section);
}

/* ---------- 关于详情图高度增强 ---------- */
.image-placeholder.large {
    aspect-ratio: 1240 / 753;
}

/* ---------- 渐进增强：禁用 JS 时保证关键内容可见 ---------- */
.no-js .fade-in-up,
.no-js .fade-in-left,
.no-js .fade-in-right,
.no-js .scale-in {
    opacity: 1 !important;
    transform: none !important;
}

.no-js .page-loader {
    display: none !important;
}

.no-js [data-typewriter] {
    visibility: visible !important;
}

/* ---------- 打字机防闪烁：JS 接管前先隐藏，避免标题闪一下消失再打字 ---------- */
.js [data-typewriter] {
    visibility: hidden;
}

.js [data-typewriter].typewriter {
    visibility: visible;
}

/* ---------- 可访问性：尊重用户的「减少动效」系统偏好（WCAG 2.3.3） ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .hero-particles,
    .hero-particle,
    .hero-scroll-hint,
    .scroll-indicator i,
    .page-loader {
        display: none !important;
    }

    .fade-in-up,
    .fade-in-left,
    .fade-in-right,
    .scale-in {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ---------- Google 地图懒加载（点击才注入 iframe，泰国/中国网络下首屏不加载重型 iframe） ---------- */
.map-lazy {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light, #8a7bb5), var(--primary, #6B5B95));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
    padding: 20px;
}

.map-lazy-info {
    color: #fff;
    max-width: 320px;
}

.map-lazy-info i {
    font-size: 34px;
    margin-bottom: 10px;
    color: #ffd54f;
}

.map-lazy-info p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

.map-lazy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fff;
    color: var(--primary, #6B5B95);
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.map-lazy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.map-lazy-btn i {
    color: #e53935;
}

.map-lazy iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}

/* ---------- 真实照片叠加层：把照片放到 static/img/ 即自动显示，加载失败回退到渐变占位符 ---------- */
.about-detail-image {
    position: relative;
}

.photo-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}


.about-note {
    border-left: 3px solid var(--primary-color, #2b5cff);
    padding-left: 14px;
    margin-top: 12px;
    opacity: 0.85;
}

/* ============ 公司注册档案卡片（About） ============ */
.reg-section { background: var(--bg-alt, #f7f8fa); }
.reg-card {
    max-width: 760px; margin: 0 auto; padding: 28px 32px;
    background: var(--bg-color, #fff); border-radius: 12px;
    border: 1px solid var(--border-color, #e5e7eb);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.reg-card-header {
    display: flex; align-items: center; gap: 10px;
    padding-bottom: 14px; margin-bottom: 14px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    font-size: 1.15rem; font-weight: 600; color: var(--text-color, #1a1a2e);
}
.reg-card-header i { color: var(--primary-color, #5b2d8f); }
.reg-rows { margin: 0; }
.reg-row {
    display: flex; gap: 16px; padding: 9px 0;
    border-bottom: 1px dashed var(--border-color, #e5e7eb);
    font-size: 0.95rem;
}
.reg-row:last-child { border-bottom: none; }
.reg-row dt { flex: 0 0 140px; color: var(--text-muted, #6b7280); }
.reg-row dd { margin: 0; color: var(--text-color, #1a1a2e); line-height: 1.6; word-break: break-word; }
.reg-card-footer { margin-top: 18px; text-align: center; }
.reg-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 22px; border-radius: 8px; text-decoration: none;
    border: 1.5px solid var(--primary-color, #5b2d8f);
    color: var(--primary-color, #5b2d8f); font-size: 0.92rem;
    transition: background 0.2s, color 0.2s;
}
.reg-btn:hover { background: var(--primary-color, #5b2d8f); color: #fff; }
.reg-source {
    max-width: 760px; margin: 12px auto 0; text-align: center;
    font-size: 0.8rem; color: var(--text-muted, #9ca3af);
}
.footer-reg {
    margin-top: 14px;
    font-size: 0.78rem; color: rgba(255, 255, 255, 0.55);
    text-align: center; letter-spacing: 0.02em;
}
.footer-reg p { margin: 0; }
@media (max-width: 640px) {
    .reg-card { padding: 20px 18px; }
    .reg-row { flex-direction: column; gap: 2px; }
    .reg-row dt { flex-basis: auto; }
}


/* ============ 上市公司形象 UI 完善（2026.0.2） ============ */
/* --- Hero 官方信任条 --- */
.hero-trust-bar {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    margin-top: 36px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.hero-trust-item i {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}
.hero-trust-item strong {
    color: #FFFFFF;
    font-weight: 600;
    letter-spacing: 0.03em;
    font-variant-numeric: tabular-nums;
}
.hero-trust-sep {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.25);
}
@media (max-width: 768px) {
    .hero-trust-bar {
        border-radius: var(--radius-md);
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 16px 20px;
        margin-top: 28px;
    }
    .hero-trust-sep { display: none; }
}

/* --- Stats 数字墙升级 --- */
.stat-item {
    position: relative;
    overflow: hidden;
}
.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    opacity: 0.6;
    transition: opacity 0.3s;
}
.stat-item:hover { transform: translateY(-4px); }
.stat-item:hover::before { opacity: 1; }
.stat-value {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
@media (max-width: 768px) {
    .stat-value { font-size: 34px; }
}

/* --- Trust 资质区升级 --- */
.trust-item i {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--primary);
    font-size: 18px;
    transition: var(--transition);
}
.trust-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.trust-item:hover i { background: var(--primary); color: #fff; }
.trust-item span { font-size: 0.9rem; font-weight: 500; color: var(--gray-700); }

/* --- 注册档案卡片官方感 --- */
.reg-card { position: relative; overflow: hidden; }
.reg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C9A961 0%, #E3C888 50%, #C9A961 100%);
}
.reg-official-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: rgba(201, 169, 97, 0.12);
    border: 1px solid rgba(201, 169, 97, 0.45);
    color: #A08434;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.reg-official-badge i { font-size: 11px; }
.dark-mode .reg-official-badge {
    background: rgba(201, 169, 97, 0.15);
    color: #E3C888;
}
@media (max-width: 640px) {
    .reg-card-header { flex-wrap: wrap; gap: 8px; }
    .reg-official-badge { margin-left: 0; }
}

/* ============ 打印样式（2026.1.0 最终版） ============ */
@media print {
    .navbar, .footer, .back-to-top, .keyboard-fab, .keyboard-hint,
    .cookie-banner, .lightbox-overlay, .page-loader, .page-progress,
    .skip-link, .lang-switcher, .theme-toggle, .hero-video-controls,
    .scroll-indicator, .map-btns, .contact-form-panel, .hero-trust-bar {
        display: none !important;
    }
    html, body {
        background: #FFFFFF !important;
        color: #111111 !important;
        font-size: 12pt;
    }
    body, main, section, .container, .hero-content, [data-theme="dark"] body {
        background-image: none !important;
        box-shadow: none !important;
    }
    a { color: #111111 !important; text-decoration: none; }
    h1, h2, h3 { color: #111111 !important; page-break-after: avoid; }
    section, .service-card, .reg-card { page-break-inside: avoid; }
    img { max-width: 100% !important; }
}
