: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);
}

.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;
    cursor: pointer;
}

.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;
    -webkit-font-smoothing: antialiased;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--white) !important;
    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 {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    color: var(--white) !important;
    transform: translateY(-1px);
}
.btn-primary:not(.magnetic-btn):hover {
    transform: translateY(-1px);
}

.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);
}

/* -------- Hero context: override buttons for dark overlay BG -------- */
.hero .btn-primary,
.hero-content .btn.btn-primary,
.hero a.btn.btn-primary,
body.home .hero .btn-primary {
    color: #fff !important;
    background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%) !important;
    background-image: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%) !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: currentColor !important;
    border-color: transparent !important;
    box-shadow: 0 10px 30px -10px rgba(1,136,202,0.65), 0 2px 6px rgba(15,23,42,0.25) !important;
}
.hero .btn-primary:hover,
.hero-content .btn.btn-primary:hover,
.hero a.btn.btn-primary:hover,
body.home .hero .btn-primary:hover {
    box-shadow: 0 16px 40px -10px rgba(1,136,202,0.75), 0 4px 10px rgba(15,23,42,0.3) !important;
    background: linear-gradient(135deg, var(--accent-hover) 0%, #0f766e 100%) !important;
    background-image: linear-gradient(135deg, var(--accent-hover) 0%, #0f766e 100%) !important;
    color: #fff !important;
    transform: translateY(-2px);
}
.hero .btn-secondary,
.hero-content .btn.btn-secondary,
.hero a.btn.btn-secondary,
body.home .hero .btn-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
    box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.45) !important;
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: currentColor !important;
}
.hero .btn-secondary:hover,
.hero-content .btn.btn-secondary:hover,
.hero a.btn.btn-secondary:hover,
body.home .hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #0f172a !important;
    border-color: #ffffff !important;
    box-shadow: 0 14px 36px -10px rgba(15, 23, 42, 0.55) !important;
    transform: translateY(-2px);
}
/* Hero non-home pages (lighter) also get proper contrast */
body:not(.home) .hero .btn-secondary,
body:not(.home) .hero-content .btn-secondary {
    border-color: rgba(15, 23, 42, 0.18) !important;
    color: #0f172a !important;
    background: rgba(255,255,255,0.75) !important;
}
body:not(.home) .hero .btn-secondary:hover,
body:not(.home) .hero-content .btn-secondary:hover {
    background: var(--white) !important;
    color: var(--accent) !important;
    border-color: rgba(1, 136, 202, 0.5) !important;
}

/* Nav contact button - small pill size */
#nav > a.btn.btn-primary,
.nav > a.btn.btn-primary {
    padding: 8px 18px !important;
    font-size: 0.88rem;
    border-radius: 999px;
    letter-spacing: 0.01em;
    text-transform: none;
    color: #fff !important;
    background: linear-gradient(135deg, var(--accent) 0%, #0ea5e9 50%, var(--teal) 100%);
    box-shadow: 0 6px 18px -6px rgba(1, 136, 202, 0.6), 0 1px 3px rgba(15,23,42,0.15);
}
#nav > a.btn.btn-primary:hover,
.nav > a.btn.btn-primary:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -6px rgba(1, 136, 202, 0.72), 0 2px 6px rgba(15,23,42,0.2);
    background: linear-gradient(135deg, var(--accent-hover) 0%, #0284c7 50%, #0f766e 100%);
}

.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;
}

.form-status {
    min-height: 24px;
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-status.is-success {
    color: var(--green);
}

.form-status.is-error {
    color: var(--secondary-hover);
}

.form-status.is-pending {
    color: var(--accent);
}

.form-note {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 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 infinite;
    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;
}

/* ============================================================
 * 模块 4: Linear 风格三层背景（2 blob + SVG noise data URI）
 * pointer-events: none，不影响交互；z-index < 0，不遮挡内容
 * ============================================================ */

/* Layer A: 左上 蓝色 ambient blob */
.hero::before,
.section-bg::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    max-width: 80vw;
    max-height: 80vw;
    left: -160px;
    top: -180px;
    background: radial-gradient(circle at 30% 30%,
        rgba(59, 130, 246, 0.32) 0%,
        rgba(59, 130, 246, 0.12) 45%,
        transparent 70%);
    filter: blur(100px);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.85;
    will-change: transform;
    animation: blob-float-a 22s ease-in-out infinite alternate;
}

/* Layer B: 右下 深蓝 ambient blob */
.hero::after,
.section-bg::after {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    max-width: 85vw;
    max-height: 85vw;
    right: -200px;
    bottom: -220px;
    background: radial-gradient(circle at 70% 70%,
        rgba(99, 102, 241, 0.28) 0%,
        rgba(30, 64, 175, 0.10) 50%,
        transparent 72%);
    filter: blur(90px);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.8;
    will-change: transform;
    animation: blob-float-b 26s ease-in-out infinite alternate;
}

@keyframes blob-float-a {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(40px, -30px, 0) scale(1.08); }
}
@keyframes blob-float-b {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-50px, 25px, 0) scale(1.1); }
}

/* Layer C: 全站 SVG fractal noise overlay (Linear / Vercel 式肌理） */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.03;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-repeat: repeat;
}

/* 减少动画偏好降级 */
@media (prefers-reduced-motion: reduce) {
    .hero::before, .hero::after,
    .section-bg::before, .section-bg::after {
        animation: none !important;
    }
}

/* ============================================================
 * 模块 5: iOS Pill — 玻璃拟态 + 渐变边框 pill
 * .badge / .badge-light 自动继承 iOS 样式
 * ============================================================ */

.ios-pill,
.badge,
.badge-light {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.4;
    color: var(--text);
    isolation: isolate;
    border: 1px solid transparent;
    background-image:
        linear-gradient(to bottom,
            rgba(255, 255, 255, 0.78),
            rgba(255, 255, 255, 0.55)),
        linear-gradient(135deg,
            rgba(59, 130, 246, 0.65),
            rgba(139, 92, 246, 0.55) 50%,
            rgba(16, 185, 129, 0.55));
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 -1px 0 rgba(15, 23, 42, 0.06) inset,
        0 6px 18px -8px rgba(59, 130, 246, 0.45),
        0 2px 6px -2px rgba(15, 23, 42, 0.12);
    transition: transform 220ms cubic-bezier(.2,.7,.2,1),
                box-shadow 220ms cubic-bezier(.2,.7,.2,1),
                filter 220ms ease;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
}
.ios-pill:hover,
.badge:hover,
.badge-light:hover {
    transform: translateY(-1px);
    filter: saturate(1.1);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 -1px 0 rgba(15, 23, 42, 0.06) inset,
        0 14px 32px -10px rgba(59, 130, 246, 0.55),
        0 4px 10px -3px rgba(15, 23, 42, 0.15);
}
.ios-pill:active,
.badge:active,
.badge-light:active {
    transform: translateY(0) scale(0.96);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 -1px 0 rgba(15, 23, 42, 0.06) inset,
        0 4px 10px -5px rgba(59, 130, 246, 0.35),
        0 1px 3px -1px rgba(15, 23, 42, 0.12);
}
/* Active 态 pill（突出色）*/
.ios-pill-active {
    color: #fff;
    background-image:
        linear-gradient(135deg,
            rgba(59, 130, 246, 0.95),
            rgba(139, 92, 246, 0.95)),
        linear-gradient(135deg, #3b82f6, #8b5cf6 55%, #10b981);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.3) inset,
        0 0 0 1px rgba(255, 255, 255, 0.22) inset,
        0 0 32px -6px rgba(59, 130, 246, 0.75),
        0 8px 22px -10px rgba(59, 130, 246, 0.8);
}

/* 暗色主题兼容 */
@media (prefers-color-scheme: dark) {
    .ios-pill,
    .badge,
    .badge-light {
        color: #e5edff;
        background-image:
            linear-gradient(to bottom,
                rgba(30, 41, 59, 0.72),
                rgba(15, 23, 42, 0.58)),
            linear-gradient(135deg,
                rgba(59, 130, 246, 0.55),
                rgba(139, 92, 246, 0.5) 50%,
                rgba(16, 185, 129, 0.5));
    }
}

/* ============================================================
 * 模块 6: CSS Scroll Timeline reveal + 3D tilt hover card
 * ============================================================ */

@supports (animation-timeline: view()) {
    .fade-in-up {
        opacity: 0;
        transform: translate3d(0, 24px, 0);
        animation-name: reveal-in;
        animation-timeline: view();
        animation-range: entry 0% cover 40%;
        animation-fill-mode: both;
        animation-timing-function: cubic-bezier(.2,.7,.2,1);
    }
    @keyframes reveal-in {
        from { opacity: 0; transform: translate3d(0, 24px, 0); }
        to   { opacity: 1; transform: translate3d(0,  0px, 0); }
    }
}

/* 老浏览器降级：默认直接显示，不做进入动画 */
@supports not (animation-timeline: view()) {
    .fade-in-up { opacity: 1 !important; transform: none !important; }
}

/* 大屏桌面端 3D tilt hover（鼠标有 hover 能力且 ≥1024px） */
@media (hover: hover) and (min-width: 1024px) {
    .card,
    .card-glow,
    .features-grid .card {
        transform-style: preserve-3d;
        perspective: 1200px;
        transition:
            transform 260ms cubic-bezier(.2,.7,.2,1),
            box-shadow 260ms cubic-bezier(.2,.7,.2,1);
        will-change: transform;
    }
    .card:hover,
    .card-glow:hover,
    .features-grid .card:hover {
        transform:
            perspective(1200px)
            rotateX(1.2deg)
            rotateY(-1.2deg)
            translateY(-3px);
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.06) inset,
            0 30px 60px -20px rgba(15, 23, 42, 0.35),
            0 18px 36px -18px rgba(59, 130, 246, 0.25);
    }
}

/* Scroll Timeline + tilt 的 prefers-reduced-motion 降级 */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up { animation: none !important; opacity: 1 !important; transform: none !important; }
    .card:hover,
    .card-glow:hover,
    .features-grid .card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

/* =========================================================
   Back-to-Top 悬浮按钮（iOS 圆形玻璃 + conic-gradient 进度环）
   ========================================================= */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    z-index: 50;

    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    cursor: pointer;

    /* iOS Pill 双层玻璃渐变边框技术 */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
        linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #10b981 100%);
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;

    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);

    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 0 0 1px rgba(255, 255, 255, 0.25) inset,
        0 10px 30px -10px rgba(15, 23, 42, 0.35),
        0 6px 18px -8px rgba(59, 130, 246, 0.25);

    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.94);
    transition:
        opacity 320ms cubic-bezier(.2,.7,.2,1),
        transform 320ms cubic-bezier(.2,.7,.2,1),
        box-shadow 260ms cubic-bezier(.2,.7,.2,1);
    will-change: opacity, transform;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 0 0 1px rgba(255, 255, 255, 0.3) inset,
        0 18px 40px -12px rgba(15, 23, 42, 0.42),
        0 10px 24px -10px rgba(139, 92, 246, 0.3);
}

.back-to-top:active {
    transform: translateY(0) scale(0.94);
}

/* conic-gradient 进度环容器（内圈 48×48，居中留 4px 间距） */
.btt-ring {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
        #3b82f6 0%,
        #8b5cf6 0%,
        #10b981 0%,
        rgba(15, 23, 42, 0.08) 0% 360deg);
    transition: background 120ms linear;
}

/* 内层圆形（叠在 ring 之上，形成环形镂空效果） */
.btt-ring::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* 向上箭头图标（绝对定位，居中，在 ring 的内层之上） */
.btt-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.btt-icon::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid #1e293b;
    transform: translateY(-1px);
    filter: drop-shadow(0 1px 0 rgba(255,255,255,0.6));
}

/* dark 模式兼容（若用户系统为 dark，内层与箭头适配深色） */
@media (prefers-color-scheme: dark) {
    .back-to-top {
        background-image:
            linear-gradient(rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.78)),
            linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #10b981 100%);
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.06) inset,
            0 0 0 1px rgba(255, 255, 255, 0.08) inset,
            0 14px 36px -12px rgba(0, 0, 0, 0.6),
            0 8px 22px -10px rgba(59, 130, 246, 0.3);
    }
    .btt-ring {
        background: conic-gradient(from 0deg,
            #3b82f6 0%,
            #8b5cf6 0%,
            #10b981 0%,
            rgba(148, 163, 184, 0.12) 0% 360deg);
    }
    .btt-ring::after {
        background: rgba(15, 23, 42, 0.92);
    }
    .btt-icon::before {
        border-bottom-color: #f1f5f9;
        filter: drop-shadow(0 1px 0 rgba(0,0,0,0.3));
    }
}

/* prefers-reduced-motion：无过渡动画，瞬间显示/隐藏，无 smooth scroll（JS 端也会短路） */
@media (prefers-reduced-motion: reduce) {
    .back-to-top,
    .back-to-top.is-visible,
    .back-to-top:hover {
        transition: none !important;
        animation: none !important;
    }
    .btt-ring { transition: none !important; }
}

/* =========================================================
   GEO 本地化：区域卡片置顶 + SVG 世界地图脉冲
   ========================================================= */
.features-grid .card.geo-top {
    position: relative;
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.08) inset,
        0 0 0 1px rgba(59,130,246,0.25),
        0 22px 48px -24px rgba(59,130,246,0.35),
        0 14px 28px -14px rgba(139,92,246,0.28);
}
.features-grid .card.geo-top::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    box-shadow: 0 0 0 4px rgba(59,130,246,0.15);
}

/* 内联 SVG 简化世界地图容器 */
.geo-map-wrap {
    position: relative;
    margin: 32px auto 8px;
    max-width: 1080px;
    padding: 0 16px;
    text-align: center;
}
.geo-map-wrap h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    background: linear-gradient(135deg, #0f172a 0%, #334155 60%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}
.geo-map-wrap p {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 24px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.geo-map-svg {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 20px 40px -20px rgba(15,23,42,0.18));
}
/* 科技感地球：深空海洋 + 微光大陆（明暗主题统一使用，与 Hero 暗色风格呼应） */
.geo-map-svg .ocean {
    fill: url(#oceanGradient);
}
.geo-map-svg .land {
    fill: #334155;
    stroke: #38bdf8;
    stroke-width: 0.7;
    filter: drop-shadow(0 0 6px rgba(56,189,248,0.35));
}
.geo-map-svg .gridline {
    fill: none;
    stroke: rgba(56,189,248,0.22);
    stroke-width: 0.5;
    stroke-dasharray: 2 4;
}

/* 区域 dot + pulse */
.geo-map-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    box-shadow:
        0 0 0 2px rgba(255,255,255,0.9),
        0 4px 12px -4px rgba(59,130,246,0.45);
    cursor: help;
    z-index: 2;
}

/* 大洲名称标注（SVG text） */
.continent-label {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    fill: #7dd3fc;
    paint-order: stroke;
    stroke: rgba(11, 43, 61, 0.8);
    stroke-width: 3px;
    stroke-linejoin: round;
    pointer-events: none;
    text-transform: uppercase;
    font-family: inherit;
}
[data-theme="dark"] .continent-label,
.dark .continent-label {
    fill: #94a3b8;
    stroke: rgba(15, 23, 42, 0.75);
}
@media (max-width: 640px) {
    .continent-label { font-size: 11px; }
}
.geo-map-dot::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(59,130,246,0.35);
    opacity: 0;
    pointer-events: none;
}
.geo-map-dot.is-pulsing {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    box-shadow:
        0 0 0 2px rgba(255,255,255,0.95),
        0 0 0 4px rgba(16,185,129,0.25),
        0 8px 24px -4px rgba(16,185,129,0.45);
}
.geo-map-dot.is-pulsing::after {
    animation: geoPulseRing 1.8s cubic-bezier(.2,.7,.2,1) infinite;
}
@keyframes geoPulseRing {
    0% { transform: scale(0.8); opacity: 0.9; }
    60% { transform: scale(2.4); opacity: 0; }
    100% { transform: scale(2.6); opacity: 0; }
}

/* 区域 label */
.geo-map-labels {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    margin-top: 18px;
    font-size: 0.82rem;
    color: #64748b;
}
.geo-map-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(148,163,184,0.2);
    transition: all 220ms cubic-bezier(.2,.7,.2,1);
}
.geo-map-label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.8);
}
.geo-map-label.is-active {
    background: rgba(16,185,129,0.12);
    color: #047857;
    border-color: rgba(16,185,129,0.4);
    font-weight: 600;
}
.geo-map-label.is-active::before {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.18);
}

/* =========================================================
   Mouse Glow 跟随辉光（body::after 径向渐变 + --mx/--my）
   ========================================================= */
:root {
    --mx: 50vw;
    --my: 50vh;
}
body::after {
    content: '';
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(
        220px 220px at var(--mx, 50vw) var(--my, 50vh),
        rgba(139,92,246,0.10) 0%,
        rgba(59,130,246,0.06) 35%,
        rgba(16,185,129,0.03) 55%,
        transparent 70%
    );
    mix-blend-mode: multiply;
    transition: background 200ms ease-out;
    opacity: 0.9;
}
body > * {
    position: relative;
    z-index: 2;
}

/* =========================================================
   Magnetic 磁吸主按钮（过渡 + will-change）
   ========================================================= */
.magnetic-btn {
    will-change: transform;
    transform-origin: center;
    /* 具体 transform 值由 JS 以 style 写入 */
}
.magnetic-btn:active {
    filter: brightness(0.96);
}

/* =========================================================
   今日新增全局 prefers-reduced-motion 降级（GEO pulse、mouse glow、magnetic）
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    .geo-map-dot.is-pulsing::after,
    .geo-map-dot.is-pulsing {
        animation: none !important;
    }
    body::after { display: none !important; }
    .magnetic-btn,
    .magnetic-btn:hover,
    .magnetic-btn:active {
        transform: none !important;
        transition: none !important;
    }
    .geo-map-label,
    .features-grid .card.geo-top {
        transition: none !important;
        animation: none !important;
    }
}

/* 移动端 / 无 hover 设备：mouse glow 隐藏，geo-pulse 仍保留 */
@media (hover: none), (max-width: 768px) {
    body::after { display: none !important; }
    .geo-map-labels { font-size: 0.72rem; gap: 6px 10px; }
    .geo-map-svg { max-height: none; }
}

/* dark 兼容（geo map + glow 色阶调整） */
@media (prefers-color-scheme: dark) {
    .geo-map-wrap h2 {
        background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 55%, #60a5fa 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
    .geo-map-wrap p { color: #94a3b8; }
    .geo-map-svg .land { fill: #2c3e50; stroke: #7dd3fc; }
    .geo-map-svg .gridline { stroke: rgba(125,211,252,0.18); }
    .geo-map-label {
        background: rgba(15,23,42,0.7);
        border-color: rgba(71,85,105,0.45);
        color: #cbd5e1;
    }
    body::after {
        background: radial-gradient(
            220px 220px at var(--mx, 50vw) var(--my, 50vh),
            rgba(139,92,246,0.18) 0%,
            rgba(59,130,246,0.10) 35%,
            rgba(16,185,129,0.06) 55%,
            transparent 70%
        );
        mix-blend-mode: screen;
    }
}

/* ============================================================
 * Round5 A/B/D (Contact Geo Card / Hero Region Pill / Inquiry Select
 * ============================================================ */

/* A. Contact Geo Card — glassy 玻璃拟态 + 右上指示点 */
.geo-contact-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg,
        rgba(255,255,255,.92) 0%,
        rgba(239,246,255,.82) 60%,
        rgba(240,253,244,.78) 100%);
    border: 1px solid rgba(59,130,246,.18);
    box-shadow:
        0 1px 2px rgba(15,23,42,.04),
        0 18px 45px -18px rgba(59,130,246,.28),
        0 0 0 1px rgba(16,185,129,.08) inset;
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
}
.geo-contact-indicator {
    position: absolute;
    top: 18px; right: 18px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background:
      radial-gradient(circle at 30% 30%, rgba(134,239,172,.95) 0%, rgba(16,185,129,.92) 40%, rgba(4,120,87,.78) 75%);
    box-shadow:
        0 0 0 4px rgba(16,185,129,.12),
        0 0 24px 6px rgba(16,185,129,.24),
        0 0 42px 14px rgba(59,130,246,.18);
    animation: geoPulseRing 2.4s cubic-bezier(.2,.7,.2,1) infinite;
    pointer-events: none;
}
.geo-contact-card::before {
    content: '';
    position: absolute;
    top: -28%; left: -18%;
    width: 68%; aspect-ratio: 1;
    background: radial-gradient(circle, rgba(139,92,246,.16), transparent 62%);
    filter: blur(22px);
    pointer-events: none;
}
.geo-contact-card::after {
    content: '';
    position: absolute;
    right: -10%; bottom: -14%;
    width: 56%; aspect-ratio: 1;
    background: radial-gradient(circle, rgba(16,185,129,.18), transparent 64%);
    filter: blur(26px);
    pointer-events: none;
}
.geo-contact-card > * { position: relative; z-index: 1; }
@media (max-width: 768px) {
    .geo-contact-indicator { width: 34px; height: 34px; top: 14px; right: 14px; }
}

.hero .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 16px;
    align-items: center;
}

/* D. Inquiry Type Select — iOS-style 样式优化 */
select.form-control {
    -webkit-appearance: none;
    appearance: none;
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px 14px;
    padding-right: 42px;
    cursor: pointer;
}
select.form-control[multiple],
select.form-control:focus,
select.form-control:active {
    background-color: #f8fafc;
    box-shadow: 0 0 0 3px rgba(59,130,246,.18);
    border-color: rgba(59,130,246,.55);
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .geo-contact-card {
        background: linear-gradient(160deg,
            rgba(30,41,59,.92) 0%,
            rgba(15,23,42,.90) 60%,
            rgba(6,78,59,.50) 100%);
        border-color: rgba(16,185,129,.22);
        color: #e2e8f0;
    }
    .geo-contact-card > p { color: #a7f3d0 !important; background: rgba(16,185,129,.14) !important; }
    .geo-contact-meta strong, .geo-contact-region { color: #cbd5e1 !important; }
    select.form-control { background-color: #0f172a; border-color: rgba(148,163,184,.3); color: #e2e8f0; }
    select.form-control[multiple],
    select.form-control:focus,
    select.form-control:active {
        background-color: #0b1220;
        color: #f1f5f9;
        box-shadow: 0 0 0 3px rgba(59,130,246,.28);
    }
}

/* reduced-motion 降级：移除动画、保留静态显示 */
@media (prefers-reduced-motion: reduce) {
    .geo-contact-indicator { animation: none !important; box-shadow: 0 0 0 3px rgba(16,185,129,.18); }
    .geo-contact-card::before,
    .geo-contact-card::after { filter: none; opacity: .5; }
}


/* =========================================================
   Nav: About Dropdown 二级菜单 玻璃拟态
   ========================================================= */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown > a[data-nav-dropdown-trigger] { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.dropdown-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid var(--text-light); transition: transform .2s ease; }
.nav-dropdown.is-open > a[data-nav-dropdown-trigger] .dropdown-caret,
.nav-dropdown:hover > a[data-nav-dropdown-trigger] .dropdown-caret,
.nav-dropdown:focus-within > a[data-nav-dropdown-trigger] .dropdown-caret { transform: rotate(180deg); border-top-color: var(--accent); }
.nav-submenu { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-4px); min-width: 220px; padding: 10px 8px;
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 14px;
  box-shadow: 0 18px 48px -12px rgba(15,23,42,0.18), 0 2px 6px rgba(15,23,42,0.06);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .22s cubic-bezier(.2,.8,.2,1), visibility .18s; z-index: 120; }
.nav-submenu::before { content:''; position:absolute; top:-7px; left:50%; transform: translateX(-50%) rotate(45deg); width:12px; height:12px;
  background: rgba(255,255,255,0.88); border-left:1px solid rgba(15,23,42,0.08); border-top:1px solid rgba(15,23,42,0.08);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius:3px; }
.nav-submenu a { display:block; padding:10px 14px; font-size:14px; font-weight:500; color:var(--text-main);
  border-radius:10px; white-space:nowrap; transition: background .15s, color .15s, transform .15s; text-decoration:none; }
.nav-submenu a:hover { color: var(--accent); background: linear-gradient(135deg, rgba(37,99,235,0.10), rgba(16,185,129,0.08)); transform: translateX(2px); }
.nav-submenu a:focus-visible { outline:none; box-shadow: 0 0 0 3px rgba(1,136,202,0.25); }
.nav-dropdown:hover > .nav-submenu,
.nav-dropdown:focus-within > .nav-submenu,
.nav-dropdown.is-open > .nav-submenu { opacity:1; visibility:visible; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .nav-submenu, .dropdown-caret, .nav-submenu a { transition: none !important; }
}
@media (max-width: 768px) {
  .nav-dropdown { display: block; width: 100%; }
  .nav-dropdown > a[data-nav-dropdown-trigger] { width: 100%; justify-content: space-between; }
  .nav-submenu { position: static; transform: none; opacity:1; visibility: visible;
    background: transparent; border: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    padding: 0 0 4px 14px; margin-top: 6px; display: none; min-width: unset; }
  .nav-submenu::before { display: none; }
  .nav-submenu a { padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--text-sub); }
  .nav-dropdown:hover > .nav-submenu,
  .nav-dropdown:focus-within > .nav-submenu { display: none; }
  .nav-dropdown.is-open > .nav-submenu { display: block; }
}

/* ===== R12 UX+Upgrade: Global Link Gradient & Nav Text Fill ===== */
/* A1. Global `<a>` iOS-style animated underline + gradient fill on hover */
a {
    background-image: linear-gradient(90deg, var(--accent), var(--teal));
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.32s cubic-bezier(.22,.61,.36,1), color 0.25s ease, background-position 0s 0.32s;
}
a:hover {
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(90deg, var(--accent) 0%, #2563eb 45%, var(--teal) 100%);
    background-size: 100% 2px;
    background-position: 100% 100%;
}
a:visited { color: var(--text-main); }
a:visited:hover { -webkit-background-clip: text; background-clip: text; background-image: linear-gradient(90deg, var(--accent) 0%, var(--teal) 100%); }
/* Exclude buttons / nav-dropdown from text-fill (they use dedicated rules below) */
a.btn, .btn a, .nav a, .nav-submenu a, .lang-dropdown a, .mobile-toggle a,
.lang-current, .lang-switch, .lang-switch a,
.nav > a.btn, #nav > a.btn,
.hero a.btn, .hero .btn,
.footer a, .nav-dropdown > a[data-nav-dropdown-trigger], .header-top a,
.card a, .card-title a {
    background-image: none;
    background-size: auto;
    background-position: auto;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: inherit;
}

a.btn.btn-primary {
    background-image: var(--gradient-accent);
    background-size: auto;
    background-position: auto;
    background-clip: border-box;
    color: var(--white) !important;
}

/* A2. Nav pill-style gradient active fill + hover gradient text clip (no displacement) */
.nav a {
    color: var(--text-main) !important;
    font-weight: 600;
    letter-spacing: 0.01em;
    will-change: transform, background, color;
    transform: translate3d(0,0,0);
    border-radius: 12px;
    transition: color 0.28s cubic-bezier(.22,.61,.36,1), background 0.28s cubic-bezier(.22,.61,.36,1), box-shadow 0.28s ease, border-radius 0.28s ease;
}
.nav a::after {
    display: none;
}
.nav a:hover {
    color: var(--accent-hover) !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    background-image: none !important;
    background-color: rgba(1,136,202,0.08);
    border-radius: 12px;
    box-shadow:
        0 8px 22px rgba(1,136,202,0.15),
        0 0 0 1px rgba(1,136,202,0.18);
}
.nav a.active {
    color: var(--accent) !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    background-image: none !important;
    background-color: rgba(2, 132, 199, 0.16);
    box-shadow:
        inset 0 -2px 0 rgba(1, 136, 202, 0.55),
        0 8px 22px rgba(1,136,202,0.15),
        0 0 0 1px rgba(1,136,202,0.18);
    border-radius: 12px;
    -webkit-font-smoothing: antialiased;
}
/* Keep submenu menuitems readable (no text clip in glass dropdown) */
.nav-submenu a {
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    background-image: none !important;
    color: var(--text-main) !important;
}
.nav-submenu a:hover,
.nav-submenu a.active {
    color: var(--accent) !important;
    background-color: rgba(1,136,202,0.1);
    -webkit-background-clip: border-box;
    background-clip: border-box;
    background-image: none;
}

/* B2. Hero h1 gradient text + CSS shine sweep */
.hero h1 {
    color: var(--white) !important;
    background: none !important;
    background-image: none !important;
    background-size: auto !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: currentColor !important;
    -webkit-font-smoothing: antialiased;
    position: relative;
    isolation: isolate;
    text-shadow: 0 3px 10px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.4);
}
.hero h1::after {
    display: none;
}

/* B3. Card/Stat 3D Tilt hover halo + reveal animation base */
.card, .stat-item {
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
}
.card[data-tilted="true"] {
    transform: perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateZ(0) translateY(-6px);
    box-shadow: 0 30px 50px -20px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(1, 136, 202, 0.15);
    border-top-color: transparent;
}
.card[data-tilted="true"]::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(1,136,202,0.55), rgba(20,184,166,0.55) 40%, rgba(124,58,237,0.45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.stat-item[data-tilted="true"] {
    transform: perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateZ(0) translateY(-2px);
}

/* B1. Scroll Reveal base state (applied by JS IntersectionObserver) */
[data-reveal] {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1), filter 0.7s cubic-bezier(.22,.61,.36,1);
    will-change: opacity, transform, filter;
    filter: blur(0);
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0,0,0);
    filter: blur(0);
}
/* === Reveal variants (set automatically by JS initScrollReveal based on parent grid) === */
[data-reveal="left"] { transform: translate3d(-36px, 0, 0); }
[data-reveal="left"].is-visible { transform: translate3d(0,0,0); }
[data-reveal="right"] { transform: translate3d(36px, 0, 0); }
[data-reveal="right"].is-visible { transform: translate3d(0,0,0); }
[data-reveal="zoom"] { transform: translate3d(0, 0, 0) scale(0.94); filter: blur(4px); opacity: 0; }
[data-reveal="zoom"].is-visible { transform: translate3d(0,0,0) scale(1); filter: blur(0); opacity: 1; }
[data-reveal="flip"] { transform: perspective(900px) rotateX(14deg) translate3d(0,18px,0); transform-origin: 50% 100%; }
[data-reveal="flip"].is-visible { transform: perspective(900px) rotateX(0) translate3d(0,0,0); }

[data-reveal][data-reveal-delay="1"] { transition-delay: 60ms; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 120ms; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 180ms; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 240ms; }
[data-reveal][data-reveal-delay="5"] { transition-delay: 300ms; }
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; filter: blur(0) !important; }
}

/* Hero Parallax */
.hero .hero-inner, .hero::after {
    will-change: transform;
}
.hero[data-parallax="true"]::after {
    background-position-y: calc(var(--hero-parallax, 0) * 1px);
}
.hero[data-parallax="true"] .hero-content {
    transform: translate3d(0, calc(var(--hero-parallax, 0) * 0.5 * 1px), 0);
}

/* ===== R13-3 UX Add-ons: Scroll progress bar + Button ripple wave ===== */
/* Progress bar - native CSS scroll-timeline on supported browsers, JS fallback otherwise */
.scroll-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 9999;
    background: linear-gradient(90deg, var(--accent) 0%, #2563eb 50%, var(--teal) 100%);
    transform-origin: left center;
    transform: scaleX(0);
    pointer-events: none;
    will-change: transform;
}
@supports (animation-timeline: scroll()) and (animation-range: 0% 100%) {
    .scroll-progress {
        animation-name: scroll-progress-x;
        animation-timing-function: linear;
        animation-fill-mode: both;
        animation-timeline: scroll(root);
        animation-range: 0% 100%;
    }
    @keyframes scroll-progress-x {
        from { transform: scaleX(0); }
        to   { transform: scaleX(1); }
    }
}

/* Ripple wave - injected inside buttons / .btn / .nav a / .lang-current on pointerdown */
.ripple-host { position: relative; overflow: hidden; isolation: isolate; }
.ripple-wave {
    position: absolute;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(255,255,255,0.55) 0%, rgba(1,136,202,0.32) 45%, rgba(20,184,166,0.0) 70%);
    pointer-events: none;
    mix-blend-mode: screen;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple-pop 620ms cubic-bezier(.22,.61,.36,1) forwards;
    will-change: transform, opacity;
    z-index: 5;
}
@keyframes ripple-pop {
    0%   { transform: translate(-50%,-50%) scale(0);   opacity: 0.9; }
    60%  { opacity: 0.55; }
    100% { transform: translate(-50%,-50%) scale(6);   opacity: 0; }
}
/* Neutralize ripple on dark buttons so wave is readable (not too bright) */
.btn-primary .ripple-wave, .nav-submenu a .ripple-wave, .back-to-top .ripple-wave {
    background: radial-gradient(circle, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 72%);
}
@media (prefers-reduced-motion: reduce) {
    .ripple-wave { animation-duration: 1ms !important; opacity: 0 !important; }
    .scroll-progress { height: 2px; }
}

/* Section titles: gradient underline sweep once when [data-reveal].is-visible fires */
section h2[data-reveal], .section-title[data-reveal] { position: relative; padding-bottom: 0; }
section h2[data-reveal]::after, .section-title[data-reveal]::after {
    content: '';
    display: block;
    width: 0;
    height: 4px;
    border-radius: 999px;
    margin-top: 14px;
    background: linear-gradient(90deg, var(--accent), #2563eb 50%, var(--teal));
    transition: width 0.9s cubic-bezier(.22,.61,.36,1) 0.15s;
}
section h2[data-reveal].is-visible::after,
.section-title[data-reveal].is-visible::after {
    width: 96px;
}
