:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #0188ca;
    --accent-hover: #007ab5;
    --secondary: #ff6584;
    --secondary-hover: #e44b6f;
    --teal: #14b8a6;
    --text-main: #0f172a;
    --text-light: #475569;
    --bg-body: #f9fafb;
    --bg-light: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --border: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.75rem;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --max-width: 1280px;
    --overlay-light: 0.65;
}
:root {
    --purple: #6d28d9;
    --orange: #f59e0b;
    --green: #10b981;
    --pink: #ec4899;
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
    --gradient-warm: linear-gradient(135deg, #ff7a59 0%, #ffd166 100%);
    --gradient-cool: linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    animation: fadeIn 0.6s ease-in-out;
}

/* 页面加载渐显动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.i18n-hidden {
    opacity: 0;
    visibility: hidden;
}

body.i18n-ready {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in, visibility 0.3s ease-in;
}

html, body {
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

::selection {
    background: rgba(1, 136, 202, 0.9);
    color: #ffffff;
    text-shadow: none;
}

/* 统一 div 选中态样式 - 更加简洁专业的聚焦效果 */
div:focus-visible, div[tabindex]:focus-visible {
    outline: none;
    border-radius: 4px;
    box-shadow: 0 0 0 3px rgba(1, 136, 202, 0.35);
    background: transparent;
    transition: box-shadow 0.2s ease;
}

/* 为可交互的 div 增加悬停与激活效果 - 移除过度的位移和阴影，保持平稳 */
div[tabindex]:hover {
    background: rgba(1, 136, 202, 0.03);
    border-color: var(--accent);
}

div[tabindex]:active {
    background: rgba(1, 136, 202, 0.08);
    box-shadow: none;
}

a, button, .lang-switch, .card, .mobile-toggle, .badge {
    -webkit-tap-highlight-color: rgba(1, 136, 202, 0.12);
}

.card:active, .lang-switch:active, .nav a:active, .btn:active {
    transform: translateY(1px);
    background: rgba(1, 136, 202, 0.06);
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
p { margin-bottom: 1.5rem; color: var(--text-light); font-size: 1.125rem; }

/* Layout */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-bg {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

/* 装饰性背景纹理 - 增强科技感 */
.section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 复合背景：点阵 + 动态扫描线 */
    background-image: 
        radial-gradient(var(--accent) 1px, transparent 1px),
        linear-gradient(0deg, transparent 24%, rgba(1, 136, 202, 0.05) 25%, rgba(1, 136, 202, 0.05) 26%, transparent 27%, transparent 74%, rgba(1, 136, 202, 0.05) 75%, rgba(1, 136, 202, 0.05) 76%, transparent 77%);
    background-size: 30px 30px, 60px 60px;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
}

/* 漂浮粒子装饰 - 添加到任何 section */
.section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(1, 136, 202, 0.08) 0%, transparent 70%);
    top: 10%;
    right: -100px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: float-slow 10s infinite alternate ease-in-out;
}

/* 额外的漂浮图形类 */
.tech-shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}
.tech-shape-1 {
    width: 100px;
    height: 100px;
    border: 2px solid rgba(1, 136, 202, 0.1);
    top: 20%;
    left: 5%;
    transform: rotate(45deg);
    animation: float-rotate 15s infinite linear;
}
.tech-shape-2 {
    width: 60px;
    height: 60px;
    background: rgba(20, 184, 166, 0.05);
    bottom: 15%;
    right: 8%;
    border-radius: 12px;
    animation: float-bob 8s infinite alternate ease-in-out;
}

@keyframes float-slow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-30px, 20px); }
}
@keyframes float-rotate {
    0% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(180deg) translateY(-20px); }
    100% { transform: rotate(360deg) translateY(0); }
}
@keyframes float-bob {
    0% { transform: translateY(0); }
    100% { transform: translateY(-30px); }
}

  
.section[style*="url("]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(248, 250, 252, var(--overlay-light)), rgba(248, 250, 252, var(--overlay-light)));
    z-index: 0;
    pointer-events: none;
}
.section[style*="url("] > * {
    position: relative;
    z-index: 1;
}

.grid {
    display: grid;
    gap: 40px;
    position: relative;
    z-index: 1;
}

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

/* Card Glow Effect */
.card-glow {
    position: relative;
    overflow: hidden;
}

.card-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(1, 136, 202, 0.1), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.card-glow:hover::before {
    opacity: 1;
}

/* 玻璃态卡片增强 */
.card.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* 动态流光边框 */
.card.gradient-border {
    position: relative;
    background: var(--white);
    background-clip: padding-box;
    border: 2px solid transparent;
}
.card.gradient-border::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, var(--accent), var(--teal), var(--secondary));
    z-index: -1;
    border-radius: 10px;
    background-size: 300% 300%;
    animation: gradient-border 6s ease infinite;
}
@keyframes gradient-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 鼠标跟随视差层 */
.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.header-top {
    background: #1e293b;
    color: #cbd5e1;
    font-size: 13px;
    padding: 8px 0;
}

.header-top .container {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
}

.header-top a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.header-top a:hover {
    color: var(--white);
}

.header-inner {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header.scrolled .header-inner {
    height: 70px;
}

.logo {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    height: 48px !important;
    width: auto;
    max-height: 56px;
    display: block;
}

.header.scrolled .logo img {
    height: 40px !important;
}

.logo span {
    background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1;
    border: 1px solid var(--border);
}
.badge-light {
    background: var(--bg-light);
    color: var(--text-main);
}
.badge-accent {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.badge-success {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}
.badge-warning {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}
.badge-info {
    background: var(--purple);
    color: var(--white);
    border-color: var(--purple);
}
.badge {
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    font-size: 28px;
    line-height: 1;
    font-family: "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji",system-ui,sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    user-select: none;
    overflow: hidden;
}
.flag-xl {
    width: 48px;
    height: 48px;
    font-size: 32px;
}
.flag svg {
    width: 100%;
    height: 100%;
}

/* Lists */
.list-grid {
    margin-top: 24px;
    gap: 16px;
}
.list-check li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.list-check li .tick {
    color: var(--accent);
}

/* Forms */
.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    color: var(--text-main);
    background: var(--white);
}
.form-control::placeholder {
    color: #94a3b8;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-actions {
    margin-top: 16px;
}

/* Accessibility */
a:focus-visible, .btn:focus-visible, .badge:focus-visible, .form-control:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

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

.nav a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding: 8px 10px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--teal));
    transition: width 0.3s ease;
}

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

.nav a:hover, .nav a.active {
    color: var(--accent);
    background: rgba(1,136,202,0.1);
    font-weight: 700;
}

.nav a.active {
    background: rgba(1,136,202,0.12);
    box-shadow: inset 0 -3px 0 rgba(1,136,202,0.8), 0 6px 12px rgba(1,136,202,0.12);
    border-radius: 10px;
}

.nav a:focus-visible {
    box-shadow: 0 0 0 3px rgba(1,136,202,0.2);
}
.lang-switch {
    position: relative;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid var(--border);
    cursor: pointer;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    padding: 4px 0;
}

.lang-current::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--text-light);
    margin-left: 2px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 120px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.lang-switch:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-main);
    text-decoration: none;
    transition: background 0.2s;
}

.lang-dropdown a:hover {
    background: var(--bg-light);
    color: var(--accent);
}

.lang-dropdown a.active {
    color: var(--accent);
    font-weight: 700;
    background: var(--bg-light);
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section - 增强视觉 */
.hero {
    padding: 220px 0 140px;
    /* 默认背景，会被内联样式覆盖，但保留作为兜底 */
    background: linear-gradient(rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.4)), url('../img/chrome_img/observation-urban-building-business-steel.avif');
    background-size: cover;
    background-position: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: calc(var(--vh, 1vh) * 100);
}

.hero h1 {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.hero .subtitle {
    color: #f1f5f9; /* 亮灰白色 */
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    font-weight: 500;
}

/* 动态光效背景 */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.25) 0%, transparent 60%);
    filter: blur(80px);
    animation: float 15s infinite alternate ease-in-out;
    opacity: 0.8;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 70%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 101, 132, 0.2) 0%, transparent 60%);
    filter: blur(80px);
    animation: float 12s infinite alternate-reverse ease-in-out;
    opacity: 0.8;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    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;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(40px, 20px) rotate(2deg); }
}

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

.hero h1 {
    color: #ffffff;
    font-size: 5rem;
    margin-bottom: 32px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    text-shadow: 0 4px 8px rgba(0,0,0,0.8), 0 8px 24px rgba(0,0,0,0.8);
}

.hero .subtitle {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 56px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
    line-height: 1.8;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 4px 12px rgba(0,0,0,0.8);
}

/* Non-home hero spacing */
body:not(.home) .hero .hero-content h1 {
    margin-top: 80px;
    margin-bottom: 48px;
}
/* Buttons - Corporate Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: #f1f5f9;
    color: var(--primary);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 4px;
}
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(37, 99, 235, 0.05);
}
.btn-gradient {
    background: var(--gradient-cool);
    color: var(--white);
}
.btn-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Cards & Features - Corporate Style */
.card {
    background: var(--white);
    border-radius: 8px;
    padding: 40px 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-top: 4px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--border);
    border-top-color: var(--accent);
}
.card.gradient-border {
    border: 1px solid transparent;
    border-image: linear-gradient(135deg, var(--accent), var(--teal)) 1;
}
.card.glass {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(8px);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: #f1f5f9;
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    border: none;
}

.card:hover .card-icon {
    background: var(--accent);
    color: var(--white);
    transform: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Step Cards for Process Page */
.step-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.step-card::before {
    /* Gradient Border Top */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--teal));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

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

.step-card::after {
    /* Watermark Number */
    content: attr(data-step);
    position: absolute;
    bottom: -25px;
    right: -10px;
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.03;
    line-height: 1;
    pointer-events: none;
    transition: all 0.5s ease;
    font-family: var(--font-sans);
}

.step-card:hover::after {
    opacity: 0.08;
    transform: translateY(-15px) scale(1.05);
    color: var(--accent);
}

.step-card .card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--bg-light);
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 24px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.step-card:hover .card-icon {
    background: var(--accent);
    color: #ffffff; /* Explicitly set to white */
    border-color: var(--accent);
    transform: rotate(-10deg) scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(1, 136, 202, 0.3);
}

/* Phase Colors */
/* Phase 1: Preparation (1-3) - Blue/Accent */
.step-card.phase-1 .card-icon { color: var(--accent); }
.step-card.phase-1:hover .card-icon { background: var(--accent); color: #ffffff; }
.step-card.phase-1::before { background: linear-gradient(90deg, var(--accent), #38bdf8); }
.step-card.phase-1:hover::after { color: var(--accent); }

/* Phase 2: Production (4-6) - Secondary/Red/Pink */
.step-card.phase-2 .card-icon { color: var(--secondary); }
.step-card.phase-2:hover .card-icon { background: var(--secondary); color: white; border-color: var(--secondary); box-shadow: 0 10px 15px -3px rgba(255, 101, 132, 0.3); }
.step-card.phase-2::before { background: linear-gradient(90deg, var(--secondary), #fb7185); }
.step-card.phase-2:hover::after { color: var(--secondary); }

/* Phase 3: Delivery (7-9) - Teal/Green */
.step-card.phase-3 .card-icon { color: var(--teal); }
.step-card.phase-3:hover .card-icon { background: var(--teal); color: white; border-color: var(--teal); box-shadow: 0 10px 15px -3px rgba(20, 184, 166, 0.3); }
.step-card.phase-3::before { background: linear-gradient(90deg, var(--teal), #34d399); }
.step-card.phase-3:hover::after { color: var(--teal); }

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
    padding: 80px 0;
    background: var(--white);
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin-top: -100px;
    position: relative;
    z-index: 10;
}

.stat-item h3 {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.stat-item p {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 100px 0 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

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

.footer-brand h2 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.footer-brand p {
    color: #64748b;
    font-size: 1rem;
    max-width: 300px;
    line-height: 1.8;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: #94a3b8;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #64748b;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}
.form-group:focus-within .form-label {
    color: var(--accent);
    text-shadow: 0 0 1px rgba(1,136,202,0.25);
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s;
    background: #f8fafc;
    color: var(--primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
}

/* Timeline - 优化 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 29px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent) 0%, var(--teal) 100%);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    padding-bottom: 64px;
}

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 4px solid var(--accent);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    background: var(--accent);
    transform: scale(1.2);
}

/* Utilities */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.bg-light { background-color: var(--bg-light); }

/* Animation classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Fallback: once i18n-ready, ensure content is visible even if IntersectionObserver fails */
body.i18n-ready .fade-in-up,
body.i18n-ready .fade-in,
body.i18n-ready .scale-in,
body.i18n-ready .reveal {
    opacity: 1;
    transform: none;
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
}
.scale-in {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}
.reveal {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.6s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.heading-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid var(--border);
    background: var(--bg-light);
    gap: 6px;
}
.tag-accent { background: rgba(1,136,202,0.1); color: var(--accent); border-color: rgba(1,136,202,0.25); }
.tag-success { background: rgba(16,185,129,0.1); color: var(--green); border-color: rgba(16,185,129,0.25); }
.tag-warning { background: rgba(245,158,11,0.1); color: var(--orange); border-color: rgba(245,158,11,0.25); }
.tag-info { background: rgba(109,40,217,0.1); color: var(--purple); border-color: rgba(109,40,217,0.25); }

/* Scrolling Marquee */
.marquee-section {
    padding: 60px 0;
    background: #ffffff; /* Changed to white to blend with white-bg logos */
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.marquee-container {
    display: flex;
    width: max-content;
    will-change: transform;
    contain: layout paint;
    animation: marquee 60s linear 20;
    animation-fill-mode: forwards;
    animation-play-state: paused;
}

.marquee-container.is-ready {
    animation-play-state: running;
}

.marquee-item {
    flex: 0 0 auto;
    width: 200px;
    height: 120px;
    margin: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    /* Removed card background for cleaner look */
}

.marquee-item:hover {
    opacity: 1;
    filter: none;
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s;
    /* images are pre-processed with pure white backgrounds */
}

.marquee-item:hover img {
    filter: none;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translate3d(calc(var(--marquee-shift, 50%) * -1), 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-container { animation: none; }
    .gallery-track { animation: none; }
}

/* Background Patterns */
.bg-pattern-dots {
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Image Grid Enhancements */
.industry-grid-img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.industry-grid-img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

/* Gallery Enhancements */
.gallery-section {
    padding: 60px 0;
    background: var(--white);
    overflow: hidden;
}

.gallery-scroll {
    display: flex;
    overflow-x: hidden;
    padding-bottom: 24px;
    width: 100%;
    position: relative;
    /* Mask gradient for smooth fade out at edges */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.gallery-track {
    display: flex;
    flex-direction: row; /* Ensure horizontal layout */
    gap: 24px;
    width: max-content;
    animation: gallery-scroll 30s linear infinite;
}

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

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

.gallery-scroll::-webkit-scrollbar {
    display: none; 
}

.gallery-item {
    flex: 0 0 300px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 3.5rem; }
    .stats-grid { margin-top: 40px; }
    .logo img { height: 44px !important; }
}

@media (max-width: 768px) {
    .header-top { display: none; }
    .header { height: auto; min-height: 64px; }
    .header-inner { height: 64px; }
    .nav { 
        display: none; 
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 24px;
        flex-direction: column;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border);
        align-items: flex-start;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    } 
    .nav.active { display: flex; }
    .nav a { width: 100%; }
    .lang-switch { margin-left: 0; padding-left: 0; border-left: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); width: 100%; }
    .lang-dropdown { position: static; box-shadow: none; border: none; padding-left: 16px; display: none; opacity: 1; visibility: visible; transform: none; }
    .lang-switch:hover .lang-dropdown, .lang-switch.active .lang-dropdown { display: block; }
    
    .mobile-toggle { display: block; }
    .hero { padding: 140px 0 60px; }
    .hero h1 { font-size: 2.5rem; }
    .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .actions { flex-direction: column; }
    .btn { width: 100%; }
    .section { padding: 60px 0; }
    .logo img { height: 32px !important; }
    .section { scroll-margin-top: 64px; }
}

@media (max-width: 480px) {
    .logo img { height: 30px !important; }
    .hero { padding: 120px 0 40px; }
    .hero h1 { font-size: 2rem; line-height: 1.2; }
    .hero .subtitle { font-size: 1rem; margin-bottom: 32px; }
}

@media (hover: none) {
    .card:hover { transform: none; box-shadow: var(--shadow-md); }
    .features-grid .card:hover { transform: none; }
    .features-grid .card:hover .card-icon { transform: none; }
    .industry-grid-img:hover { transform: none; box-shadow: var(--shadow-md) !important; }
    .gallery-item:hover { transform: none; box-shadow: var(--shadow-md); }
    .step-card:hover { transform: none; }
}

/* Enhanced Features Grid - Custom Styles */
.features-grid {
    position: relative;
    z-index: 1;
}

/* Decorative background blob behind the grid */
.features-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(ellipse at center, rgba(1, 136, 202, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

.features-grid .card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.02),
        0 2px 4px -1px rgba(0, 0, 0, 0.02),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.features-grid .card::after {
    /* Top gradient line */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--teal));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.features-grid .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    border-color: transparent;
}

.features-grid .card:hover::after {
    transform: scaleX(1);
}

.features-grid .card-icon {
    width: 64px;
    height: 64px;
    background: #f0f9ff;
    color: var(--accent);
    border-radius: 18px;
    font-size: 28px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(1, 136, 202, 0.1);
}

.features-grid .card:hover .card-icon {
    background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
    color: #ffffff;
    transform: rotate(-10deg) scale(1.1);
    box-shadow: 0 10px 20px -5px rgba(1, 136, 202, 0.4);
    border-color: transparent;
}

.features-grid .card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
    transition: color 0.3s ease;
}

.features-grid .card:hover h3 {
    color: var(--accent);
}

.features-grid .card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
}
