:root {
    /* ========================================
       Color System - 配色系统
       ======================================== */
    
    /* Brand Colors - 品牌色 */
    --brand-blue: #27418b;
    --brand-blue-dark: #1e3a8a;
    --brand-blue-light: #9ba5c8;
    --brand-blue-lighter: #eff6ff;
    --brand-orange: #ffa425;
    --brand-orange-dark: #d97706;
    --brand-orange-light: #fef3c7;
    
    /* Background Colors - 背景色 */
    --bg-main: #fcfcfc;
    --bg-alt: #f8fafc;
    --bg-white: #ffffff;
    
    /* Text Colors - 文字色 */
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --text-white: #ffffff;
    
    /* Border Colors - 边框色 */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    
    /* Status Colors - 状态色 */
    --color-success: #10b981;
    --color-error: #dc2626;
    --color-warning: #fbbf24;
    --color-info: #3b82f6;
    
    /* Neutral Colors - 中性色 */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* ========================================
       Design Tokens - 设计令牌
       ======================================== */
    
    /* Border Radius - 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 50%;
    
    /* Layout - 布局 */
    --container-width: 1200px;
    --nav-height: 80px;

    /* Shadows - 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

body {
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    font-weight: 700;
    color: var(--brand-blue);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Accessibility - Focus Styles */
*:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -9999px;
    left: -9999px;
    background: var(--brand-blue);
    color: var(--text-white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: var(--radius-sm);
    opacity: 0;
    pointer-events: none;
}

.skip-to-content:focus {
    top: 0;
    left: 0;
    opacity: 1;
    pointer-events: auto;
}

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

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

.mt-5 {
    margin-top: 3rem;
}

.bg-alt {
    background-color: var(--bg-alt);
}

/* Navigation */
.navbar {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: transparent;
    border-bottom: none;
    transition: 0.3s;
    padding-top: 0;
    overflow: visible;
}

/* 导航栏不再固定，移除 scrolled 状态样式 */

.nav-container {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 1001;
    width: 100%;
    /* 使用flex布局，确保logo在左，按钮在右 */
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    height: 40px;
    width: auto;
    flex-shrink: 0;
    margin-right: auto;
    overflow: visible;
    position: relative;
    z-index: 10;
    /* logo不收缩，固定在左侧，推其他元素向右 */
}

.logo-img {
    height: 200%;
    width: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    transform: scale(2.4);
    /* 放大2.4倍，去除留白，让logo更突出 */
    transform-origin: center center;
    max-width: none;
    /* 确保宽度不被限制 */
}

.logo-text {
    display: none;
}

.logo-icon {
    display: none;
}

.nav-center {
    display: flex;
    gap: 40px;
    margin-left: auto;
    margin-right: 32px;
    /* 导航链接靠右对齐，与按钮组保持间距 */
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--brand-blue);
}

.nav-menu-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    margin-left: auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
    /* 按钮组紧跟在nav-center后面，在最右侧 */
}

.hamburger {
    display: none;
    /* 桌面端隐藏汉堡菜单 */
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1002;
    flex-shrink: 0;
    overflow: visible;
    position: relative;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

.lang-switch {
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
    user-select: none;
}

.lang-switch:hover {
    background: var(--bg-alt);
    color: var(--brand-blue);
}

.lang-switch .lang-item {
    transition: all 0.3s ease;
}

.lang-switch .lang-item.active {
    color: var(--brand-blue);
    font-weight: 600;
}

.lang-switch .lang-separator {
    color: var(--border-medium);
    margin: 0 2px;
}

/* Buttons - 按钮系统 */
.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: var(--brand-blue);
    color: var(--text-white);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--brand-blue-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 32px;
    background: var(--bg-white);
    color: var(--brand-blue);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--brand-blue);
    background: var(--bg-alt);
}

.btn-outline {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid var(--brand-blue);
    color: var(--brand-blue);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    background: transparent;
}

.btn-outline:hover {
    background: var(--brand-blue);
    color: var(--text-white);
}

/* Button Sizes - 按钮尺寸 */
.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.link-primary {
    color: var(--brand-blue);
    font-weight: 600;
    border-bottom: 1px solid var(--brand-blue);
}

/* Hero Section (Split) */
.hero {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 60px !important;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        linear-gradient(var(--border-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.4;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 60px 24px 60px;
    position: relative;
    z-index: 10;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    min-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--brand-blue-lighter);
    color: var(--brand-blue);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--brand-blue);
    border-radius: 50%;
}

.hero-title {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.text-highlight {
    color: var(--brand-blue);
    position: relative;
    display: inline-block;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--brand-blue-lighter);
    z-index: -1;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    min-height: 3.84rem;
    /* 保持固定高度，约等于2行文字的高度 */
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.h-stat {
    display: flex;
    flex-direction: column;
}

.h-stat strong {
    font-size: 1.5rem;
    color: var(--brand-blue);
    font-family: 'Noto Serif SC', serif;
}

.h-stat span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.h-divider {
    width: 1px;
    height: 30px;
    background: var(--border-light);
}

/* Carousel Visual - Enhanced */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: transparent;
    perspective: 1200px;
    /* Deeper perspective */
}

.hero-carousel-wrapper {
    position: relative;
    width: 360px;
    height: 520px;
    z-index: 10;
}

/* Base Card Style - High Quality Paper Feel */
.carousel-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle warm paper color */
    background-color: #fcfbf9;
    /* Paper Texture */
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    border-radius: 12px;
    /* Multi-layered shadow for depth */
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.05),
        0 8px 16px rgba(0, 0, 0, 0.05),
        0 20px 40px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: rotateY(-10deg) translateX(40px) scale(0.9);
    transform-origin: center left;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy transition */
    pointer-events: none;
    overflow: hidden;
    padding: 32px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.carousel-card.active {
    opacity: 1;
    transform: rotateY(0) translateX(0) scale(1);
    z-index: 20;
    pointer-events: auto;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.05),
        0 12px 24px rgba(39, 65, 139, 0.08),
        0 30px 60px rgba(39, 65, 139, 0.12);
}

/* Background Decoration (Guilloche Pattern) */
.carousel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 50%, rgba(39, 65, 139, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Common Element Refinements */
.c-body {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Refined Text Lines - More organic */
.c-line {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}

.c-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.c-line.thick { height: 10px; border-radius: 5px; background: #cbd5e1; margin-bottom: 18px; }
.c-line.thick-dark { height: 10px; border-radius: 5px; background: #475569; }
.c-line.blue-accent { background: #bfdbfe; }
.c-line.text-sim { height: 8px; margin-bottom: 8px; } /* For dense text */

/* Underlines for form style */
.c-line-u {
    border-bottom: 1px solid #cbd5e1;
    height: 28px;
    margin-bottom: 8px;
    position: relative;
}

/* Helper Classes */
.w-100 { width: 100%; }
.w-90 { width: 90%; }
.w-80 { width: 80%; }
.w-75 { width: 75%; }
.w-70 { width: 70%; }
.w-60 { width: 60%; }
.w-50 { width: 50%; }
.w-40 { width: 40%; }
.w-30 { width: 30%; }

.mt-auto { margin-top: auto; }
.ml-auto { margin-left: auto; }
.mx-auto { margin: 0 auto; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }

/* =========================================
   STYLE 1: Modern Doc with Photo (Refined)
   ========================================= */
/* Color Palette based on Image */
.card-style-1 {
    background-color: #f2efe9; /* Beige/Off-white paper */
    padding: 0;
    overflow: hidden;
    border: none;
    box-shadow: 
        0 1px 2px rgba(0,0,0,0.05),
        0 8px 24px rgba(0,0,0,0.08);
}

.card-style-1 .c-header-bar {
    position: absolute;
    top: 30px;
    left: 20px;
    right: 20px;
    height: 24px;
    background: #535e6c; /* Dark Slate Gray */
    border-radius: 2px;
}

.c-body-p1 {
    margin-top: 70px;
    padding: 0 30px 30px;
    display: flex;
    flex-direction: column;
}

/* Lines - Optimized: Thinner and more elegant */
.c-line-gray {
    height: 7px; /* Reduced from 10px */
    background: #bdc3c7; 
    border-radius: 3px;
    margin-bottom: 0;
}

/* Handwriting Scribble Effect (Not simple wave) */
.c-line-wave {
    height: 12px;
    /* Use a path that mimics cursive handwriting: loops and uneven peaks */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='12' viewBox='0 0 100 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 8 C 5 4, 8 4, 10 8 S 15 12, 18 8 S 22 4, 25 8 S 30 12, 33 8 S 38 4, 40 8 S 45 12, 48 8 S 52 4, 55 8 S 60 12, 63 8 S 68 4, 70 8 S 75 12, 78 8 S 82 4, 85 8 S 90 12, 93 8' stroke='%235480a3' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%; /* Stretch to fit container */
    opacity: 1;
}

/* Variant for longer text to avoid stretching distortion */
.c-line-wave.long {
     background-image: url("data:image/svg+xml,%3Csvg width='200' height='12' viewBox='0 0 200 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 8 Q 5 4, 8 8 T 14 8 T 20 8 T 26 8 T 32 8 T 38 8 T 44 8 T 50 8 T 56 8 T 62 8 T 68 8 T 74 8 T 80 8 T 86 8 T 92 8 T 98 8 T 104 8 T 110 8 T 116 8 T 122 8 T 128 8 T 134 8 T 140 8 T 146 8 T 152 8 T 158 8 T 164 8 T 170 8 T 176 8 T 182 8 T 188 8 T 194 8' stroke='%235480a3' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.c-row-mix {
    display: flex;
    align-items: center;
    gap: 8px; /* Closer gap for natural text flow */
    width: 100%;
}

.mt-2 { margin-top: 12px; }
.mt-4 { margin-top: 20px; }
.mt-6 { margin-top: 28px; }

/* Middle Section */
.c-mid-section {
    display: flex;
    align-items: center;
    position: relative;
    gap: 20px;
}

/* Photo Frame */
.c-photo-frame-simple {
    width: 80px;
    height: 60px;
    border: 2.5px solid #535e6c; /* Slightly thinner border */
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.c-photo-user-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.c-head {
    width: 20px;
    height: 20px;
    border: 2.5px solid #535e6c;
    border-radius: 50%;
}

.c-shoulder {
    width: 30px;
    height: 3px; /* Kept stroke look */
    background: #535e6c;
    border-radius: 2px;
}

/* Signature & Content */
.c-mid-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.c-sig-blue-scribble {
    width: 90px;
    height: 24px;
    /* More signature-like scribbles with loops */
    background-image: url("data:image/svg+xml,%3Csvg width='90' height='24' viewBox='0 0 90 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 15 C 10 10, 15 20, 20 12 S 30 5, 35 15 S 45 20, 50 10 S 60 5, 65 15 S 75 20, 85 10' stroke='%235480a3' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transform: rotate(-2deg); /* Subtle angle */
}

/* Red Seal */
.c-seal-ring-red {
    width: 40px;
    height: 40px;
    border: 3.5px solid #e75f63; /* Thinner seal */
    border-radius: 50%;
    position: absolute;
    right: 0;
    bottom: 0;
    opacity: 0.9;
}

/* Footer Grid */
.c-footer-grid {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.c-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 60%;
}

.c-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.c-sq-box {
    width: 10px;
    height: 10px;
    border: 2px solid #535e6c; /* Thinner */
    border-radius: 2px;
}

.c-corner-box-lg {
    width: 50px;
    height: 60px;
    border: 2.5px solid #535e6c;
    border-radius: 2px;
    margin-bottom: 2px;
}

/* =========================================
   STYLE 2: Ribbon & Table (Fixed Layout)
   ========================================= */
.card-style-2 {
    background-color: #f2efe9;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.c-ribbon-flat-red {
    position: absolute;
    top: -5px; /* Slight overhang */
    left: 24px;
    width: 32px;
    height: 130px; /* Increased to align with right text */
    background-color: #d63031;
    z-index: 5;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.c-body-p2 {
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Top Section (Text beside ribbon) */
.c-top-section {
    padding-left: 44px; /* Space for ribbon */
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.c-line-lgray {
    height: 8px;
    background: #a4b0be; /* slightly darker gray */
    border-radius: 4px;
    margin-bottom: 0;
}

/* Middle Layout: Table (Left) + Content (Right) */
.c-mid-split {
    display: flex;
    gap: 24px; /* Increased gap */
    flex: 1;
    align-items: stretch; /* Stretch to same height */
}

/* Left: Blue Table */
.c-blue-table {
    width: 58%; /* Slightly wider */
    border: 2px solid #8ab6d6; /* Muted Blue */
    border-radius: 3px;
    padding: 0; /* Remove padding to flush borders */
    display: flex;
    flex-direction: column;
    background: rgba(138, 182, 214, 0.05);
    overflow: hidden;
}

.c-table-row {
    display: flex;
    border-bottom: 1px solid #8ab6d6;
    min-height: 36px; /* Fixed height for consistency */
}
.c-table-row:last-child {
    border-bottom: none;
    margin-top: auto; /* Push to bottom if space allows */
}

.c-table-cell {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 6px 8px;
    border-right: 1px solid #8ab6d6;
}
.c-table-cell:last-child {
    border-right: none;
}

/* Specific Row Heights/Alignments */
.align-center {
    align-items: center;
    padding: 4px 8px;
}

.c-seal-ring-red-sm {
    width: 32px;
    height: 32px;
    border: 3px solid #d63031;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 8px;
}

/* Right: Column */
.c-right-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 4px;
}

.c-sig-blue-wave {
    width: 90px;
    height: 20px;
    /* Simplified wave for contrast */
    background-image: url("data:image/svg+xml,%3Csvg width='90' height='20' viewBox='0 0 90 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 10 Q 15 2, 25 10 T 45 10 T 65 10 T 85 10' stroke='%23275d8b' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    margin: 4px 0 0; /* Reduced bottom margin, added top */
    position: relative;
    z-index: 2; /* Sit on top of line */
}

.c-sig-line {
    height: 4px;
    background: #a4b0be;
    border-radius: 2px;
    width: 100%;
    margin-top: -8px; /* Pull up to sit under signature */
    position: relative;
    z-index: 1;
}

.c-seal-sun-gold {
    width: 64px;
    height: 64px;
    background-color: #f9ca24;
    margin: 8px auto 8px 0; /* Align left-ish */
    /* Starburst/Sun shape using clip-path */
    clip-path: polygon(
        50% 0%, 61% 10%, 75% 5%, 80% 18%, 93% 20%, 90% 35%, 100% 45%, 90% 55%, 
        93% 70%, 80% 72%, 75% 85%, 61% 80%, 50% 90%, 39% 80%, 25% 85%, 20% 72%, 
        7% 70%, 10% 55%, 0% 45%, 10% 35%, 7% 20%, 20% 18%, 25% 5%, 39% 10%
    );
    opacity: 0.9;
}

.c-bottom-bar {
    margin-top: 24px;
    height: 10px;
    background: #a4b0be;
    border-radius: 5px;
    width: 45%;
}

/* =========================================
   STYLE 3: Left Long Ribbon & Box (Refined)
   ========================================= */
.card-style-3 {
    background-color: #fcfbf9;
    padding: 0;
    overflow: visible; /* Allow ribbon to hang out if needed, but card has overflow hidden typically */
    overflow: hidden; /* Keep it contained */
    display: flex;
}

.c-ribbon-long-left {
    position: absolute;
    top: -10px; bottom: -20px; /* Extend top and bottom */
    left: 32px;
    width: 36px;
    background-color: #e74c3c;
    z-index: 5;
    /* Ribbon tail effect at bottom */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 95%, 0 100%);
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
}

.c-seal-jagged-red {
    position: absolute;
    bottom: 80px; left: 4px; /* Centered on thin ribbon (center 38px - half width 34px = 4px) */
    width: 68px; height: 68px;
    background-color: #c0392b;
    border-radius: 50%;
    z-index: 6;
    /* Jagged edge */
    clip-path: polygon(
        50% 0%, 61% 10%, 75% 5%, 80% 20%, 95% 25%, 90% 40%, 100% 50%, 
        90% 60%, 95% 75%, 80% 80%, 75% 95%, 61% 90%, 50% 100%, 
        39% 90%, 25% 95%, 20% 80%, 5% 75%, 10% 60%, 0% 50%, 
        10% 40%, 5% 25%, 20% 20%, 25% 5%, 39% 10%
    );
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    display: flex; align-items: center; justify-content: center;
}
/* Removed inner yellow circle per user request */
/* .c-seal-jagged-red::after { ... } */

.c-body-p3 {
    flex: 1;
    padding: 40px 32px 32px 90px; /* Left padding clears ribbon */
    display: flex;
    flex-direction: column;
    position: relative;
}

.c-box-top-right {
    position: absolute;
    top: 40px; right: 32px;
    width: 72px; height: 80px;
    background-color: #57606f;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.c-text-block {
    margin-top: 60px; /* Space for box */
    display: flex; flex-direction: column; gap: 8px;
}

.c-footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: auto;
    gap: 12px;
}

.c-seal-oval-gray {
    width: 80px; height: 44px;
    border: 3px solid #7f8c8d;
    border-radius: 50%;
    transform: rotate(-5deg);
}

.c-sig-blue-wave-sm {
    width: 90px; height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg width='90' height='24' viewBox='0 0 90 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 18 C 15 10, 25 18, 35 12 S 55 5, 65 15 S 85 10, 90 5' stroke='%232980b9' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    margin-right: 10px;
}

/* =========================================
   STYLE 4: Modern List & Ribbon (Refined)
   ========================================= */
.card-style-4 {
    background-color: #fcfbf9;
    padding: 0;
    overflow: hidden;
    position: relative;
    display: flex;
}

.c-ribbon-thin-left {
    position: absolute;
    top: -10px; bottom: -20px;
    left: 28px;
    width: 20px;
    background-color: #e74c3c;
    z-index: 5;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 95%, 0 100%);
    box-shadow: 2px 0 6px rgba(0,0,0,0.1);
}

.c-seal-jagged-red-sm {
    position: absolute;
    bottom: 120px; left: 10px; /* Centered on thin ribbon: left 28 + width 20/2 = 38. Seal width 56/2 = 28. 38-28=10 */
    width: 56px; height: 56px;
    background-color: #c0392b;
    border-radius: 50%;
    z-index: 6;
    clip-path: polygon(
        50% 0%, 61% 10%, 75% 5%, 80% 20%, 95% 25%, 90% 40%, 100% 50%, 
        90% 60%, 95% 75%, 80% 80%, 75% 95%, 61% 90%, 50% 100%, 
        39% 90%, 25% 95%, 20% 80%, 5% 75%, 10% 60%, 0% 50%, 
        10% 40%, 5% 25%, 20% 20%, 25% 5%, 39% 10%
    );
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.c-body-p4 {
    flex: 1;
    padding: 32px 32px 32px 80px; /* Left padding clears ribbon */
    display: flex;
    flex-direction: column;
}

.c-pill-header-dark {
    width: 140px; height: 36px;
    background: #475569;
    border-radius: 18px;
    align-self: flex-start; /* Left aligned relative to content area, which starts after ribbon */
}

.c-line-dark {
    height: 10px;
    background: #57606f;
    border-radius: 5px;
}
.c-line-dark-thin {
    height: 4px;
    background: #57606f;
    border-radius: 2px;
}
.c-line-blue-thin {
    height: 3px;
    background: #2980b9;
    border-radius: 1.5px;
}

.c-list-group {
    display: flex; flex-direction: column; gap: 16px;
}

.c-list-item {
    display: flex; align-items: center; gap: 14px;
}

.c-dot-dark {
    width: 10px; height: 10px;
    background: #57606f;
    border-radius: 50%;
}

.c-footer-area {
    width: 100%;
    text-align: center;
}

.c-sig-blue-wave-md {
    width: 100px; height: 32px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='32' viewBox='0 0 100 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 25 Q 15 10, 25 20 T 45 15 T 65 25 T 85 10 T 95 20' stroke='%232980b9' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* =========================================
   STYLE 5: Chinese Notary (Graphic Style)
   ========================================= */
.card-style-5 {
    background-color: #fcfbf9; /* Warm paper */
    padding: 0;
    display: flex;
}

.c-body-p5 {
    padding: 36px 40px; /* Reduced top padding from 48px */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.c-title-cn-dark {
    font-family: "Noto Serif SC", "SimSun", serif;
    font-size: 36px;
    font-weight: 800;
    color: #4b3621; /* Dark coffee brown */
    letter-spacing: 4px;
    margin-bottom: 16px; /* Reduced margin from 20px */
}

.c-graphic-lines {
    width: 100%;
    display: flex; flex-direction: column;
}

.c-line-row {
    display: flex; align-items: center; gap: 8px;
}

.c-label-brown {
    font-family: "Noto Serif SC", serif;
    font-size: 16px;
    font-weight: 700;
    color: #4b3621;
    white-space: nowrap;
}

.c-line-solid-brown {
    height: 6px;
    background: #8d7d73; /* Taupe/Brown */
    border-radius: 3px;
}

.c-footer-mix {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 20px;
}

.c-sig-blue-en {
    width: 100px; height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='50' viewBox='0 0 100 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 35 Q 20 10, 30 35 T 50 35 T 70 35 T 90 20' stroke='%230984e3' stroke-width='4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    margin-bottom: 10px;
    transform: rotate(-5deg);
}

.c-seal-red-circle {
    width: 80px; height: 80px;
    border: 4px solid #e55039;
    border-radius: 50%;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    background-color: transparent; /* Or #fff if needs to cover lines */
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.5); /* Inner highlight */
    transform: rotate(-10deg);
}

.c-star-solid {
    font-size: 40px;
    color: #e55039;
    margin-bottom: 8px; /* Push up slightly to make room for text */
}

.c-seal-text-curve {
    font-family: "Noto Serif SC", serif;
    font-size: 12px;
    font-weight: 900;
    color: #e55039;
    position: absolute;
    bottom: 8px;
    letter-spacing: 2px;
    /* Use text-shadow to simulate thickness if needed */
}

/* =========================================
   STYLE 6: Certificate (Corner Fold)
   ========================================= */
.card-style-6 {
    background-color: #fbfaf6; /* Beige outer */
    padding: 24px;
    display: flex;
}

.c-inner-frame {
    flex: 1;
    background-color: #ffffff; /* White inner */
    border-radius: 4px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.c-corner-fold-brown {
    position: absolute;
    top: 0; left: 0;
    width: 60px; height: 60px;
    background-color: #8d6e63; /* Brown */
    clip-path: polygon(0 0, 100% 0, 0 100%);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.c-body-p6 {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.c-title-cert-dark {
    font-family: "Noto Sans SC", sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #374151; /* Dark Gray */
    letter-spacing: 4px;
}

.c-text-lines-group {
    width: 100%;
    display: flex; flex-direction: column;
}

.c-line-gray-light {
    height: 8px;
    background-color: #d1d5db; /* Light Gray */
    border-radius: 4px;
}

.c-bottom-box-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 10px;
    padding-bottom: 10px;
}

.c-box-blue-star {
    width: 80px; height: 70px;
    border: 3px solid #3b82f6;
    border-radius: 2px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.c-star-blue-sm {
    color: #3b82f6; font-size: 24px; margin-bottom: 4px;
}
.c-line-blue-xs {
    height: 3px; background-color: #3b82f6; border-radius: 1.5px;
}

.c-sig-group-right {
    position: relative;
    width: 70px; height: 70px;
    display: flex; align-items: flex-end; justify-content: flex-end;
}
.c-square-red-flat {
    width: 60px; height: 60px;
    background-color: #ef4444;
    border-radius: 4px;
}
.c-sig-blue-wave-overlay {
    position: absolute;
    bottom: 5px; right: 10px;
    width: 80px; height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='30' viewBox='0 0 80 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 15 Q 15 5, 25 15 T 45 15 T 65 15 T 75 10' stroke='%231d4ed8' stroke-width='4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 2;
}

/* Indicators Refined */
.carousel-indicators {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.8);
    border-radius: 20px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0,0,0,0.05);
}
.c-indicator {
    width: 8px; height: 8px;
    background: #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.c-indicator.active {
    background: #2563eb;
    width: 24px;
}

/* Hide old stack */
.visual-card-stack { display: none; }


/* Floating Icons - Removed (replaced with subtle background decoration) */
.float-icon {
    display: none;
}

/* Service Strip (Standalone) */
.service-strip {
    width: 100%;
    overflow: hidden;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-light);
    padding: 24px 0;
    position: relative;
}

/* Fade mask for marquee */
.service-strip::before,
.service-strip::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.service-strip::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-alt), transparent);
}

.service-strip::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-alt), transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scrollLeft 40s linear infinite;
}

.marquee-item {
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.7;
    transition: 0.3s;
}

.marquee-item:hover {
    opacity: 1;
    color: var(--brand-blue);
}

.marquee-item i {
    font-size: 1.5rem;
}

@keyframes scrollLeft {
    to {
        transform: translateX(-50%);
    }
}

/* Section General */
.section {
    padding: 100px 0;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Features Grid - 核心优势区 */
.feature-card {
    padding: 40px;
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: featureCardFadeIn 0.6s ease forwards;
}

/* 为每个卡片添加独特的颜色主题 */
.feature-card:nth-child(1) {
    --card-accent: var(--brand-blue);
    --card-accent-light: var(--brand-blue-lighter);
    --card-gradient: linear-gradient(135deg, rgba(39, 65, 139, 0.05) 0%, rgba(155, 165, 200, 0.02) 100%);
}

.feature-card:nth-child(2) {
    --card-accent: var(--brand-orange);
    --card-accent-light: var(--brand-orange-light);
    --card-gradient: linear-gradient(135deg, rgba(255, 164, 37, 0.05) 0%, rgba(254, 243, 199, 0.02) 100%);
}

.feature-card:nth-child(3) {
    --card-accent: var(--brand-blue-light);
    --card-accent-light: var(--brand-blue-lighter);
    --card-gradient: linear-gradient(135deg, rgba(155, 165, 200, 0.05) 0%, rgba(239, 246, 255, 0.02) 100%);
}

.feature-card:nth-child(4) {
    --card-accent: var(--color-success);
    --card-accent-light: rgba(16, 185, 129, 0.1);
    --card-gradient: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(209, 250, 229, 0.02) 100%);
}

.feature-card:nth-child(5) {
    --card-accent: var(--brand-orange);
    --card-accent-light: var(--brand-orange-light);
    --card-gradient: linear-gradient(135deg, rgba(255, 164, 37, 0.05) 0%, rgba(254, 243, 199, 0.02) 100%);
}

.feature-card:nth-child(6) {
    --card-accent: var(--brand-blue);
    --card-accent-light: var(--brand-blue-lighter);
    --card-gradient: linear-gradient(135deg, rgba(39, 65, 139, 0.05) 0%, rgba(155, 165, 200, 0.02) 100%);
}

/* 卡片进入动画 - 错开时间 */
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

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

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

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--card-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

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

.feature-card:hover {
    background: var(--bg-white);
    box-shadow: 0 12px 32px rgba(39, 65, 139, 0.12), 0 4px 12px rgba(39, 65, 139, 0.08);
    border-color: var(--card-accent);
    transform: translateY(-8px);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.feature-icon {
    font-size: 48px;
    color: var(--card-accent);
    background: linear-gradient(135deg, var(--card-accent-light) 0%, rgba(155, 165, 200, 0.1) 100%);
    padding: 16px;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, var(--card-accent), var(--card-accent-light));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--card-accent-light) 0%, rgba(155, 165, 200, 0.2) 100%);
    color: var(--card-accent);
    box-shadow: 0 8px 24px rgba(39, 65, 139, 0.2), 0 0 0 4px var(--card-accent-light);
    filter: brightness(1.1);
}

.feature-card:hover .feature-icon::after {
    opacity: 1;
}

.feature-stats {
    display: flex;
    gap: 16px;
    flex: 1;
    align-items: center;
}

.feature-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 1;
}

.feature-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--card-accent);
    line-height: 1;
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
}

.feature-stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.3s ease;
}

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

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Features Alternative Layout - 对比版本 */
.features-alt {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.feature-alt-item {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
    padding: 32px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-alt-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--brand-blue), var(--brand-blue-light));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.feature-alt-item:hover::before {
    transform: scaleY(1);
}

.feature-alt-item:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.feature-alt-item.reverse {
    grid-template-columns: 1.5fr 1fr;
}

.feature-alt-item.reverse .feature-alt-visual {
    order: 2;
}

.feature-alt-item.reverse .feature-alt-content {
    order: 1;
}

.feature-alt-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.feature-alt-icon-large {
    font-size: 72px;
    color: var(--brand-blue);
    opacity: 0.15;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.feature-alt-item:hover .feature-alt-icon-large {
    opacity: 0.25;
    transform: scale(1.1);
}

.feature-alt-number {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 48px;
    font-weight: 900;
    color: var(--brand-blue-lighter);
    line-height: 1;
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    z-index: 0;
}

.feature-alt-item.reverse .feature-alt-number {
    left: auto;
    right: 10px;
}

.feature-alt-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.feature-alt-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.feature-alt-stats {
    display: flex;
    gap: 32px;
    margin-top: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brand-blue);
    line-height: 1;
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 1024px) {
    .feature-alt-item,
    .feature-alt-item.reverse {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }
    
    .feature-alt-item.reverse .feature-alt-visual,
    .feature-alt-item.reverse .feature-alt-content {
        order: 0;
    }
    
    .feature-alt-visual {
        min-height: 120px;
    }
    
    .feature-alt-icon-large {
        font-size: 56px;
    }
    
    .feature-alt-number {
        font-size: 36px;
    }
    
    .feature-alt-content h3 {
        font-size: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

/* Testimonials (Minimalist) */
.testimonials-slider {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.testimonials-track {
    display: flex;
    gap: 32px;
    animation: scrollTestimonials 30s linear infinite;
    width: max-content;
}

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

/* 移动端优化：支持触摸滑动 */
@media (max-width: 768px) {
    .testimonials-slider {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 20px;
    }
    
    .testimonials-track {
        animation: none;
    }
    
    .testimonial-item {
        scroll-snap-align: center;
    }
}

@keyframes scrollTestimonials {
    0% {
        transform: translateX(0);
    }

    100% {
        /* 滚动到第一组卡片的末尾（即第二组卡片的开始位置） */
        /* 复制了所有5个卡片，总共10个，滚动50%正好到第二组的开始 */
        transform: translateX(-50%);
    }
}

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

.testimonial-item {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    min-width: 260px;
    max-width: 360px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.t-quote {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    font-size: 2.75rem;
    color: var(--border-light);
    line-height: 0.5;
    margin-bottom: 14px;
}

.t-text {
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 14px;
    line-height: 1.6;
    font-size: 0.92rem;
    flex-grow: 1;
}

.t-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    margin-top: auto;
}

.t-rating .star {
    font-size: 1.2rem;
    color: var(--gray-300);
}

.t-rating .star.filled {
    color: var(--brand-orange);
    /* 使用品牌橙色 */
}

.t-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 8px;
    text-align: right;
    order: 3;
}

.t-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    margin-bottom: 8px;
    order: 2;
}

.t-avatar {
    width: 44px;
    height: 44px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 男性头像 - 方形剪影 */
.t-avatar.male {
    background: var(--gray-300);
}

.t-avatar.male::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    background: var(--gray-400);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    top: 20%;
    left: 20%;
}

/* 女性头像 - 圆形剪影，带长发 */
.t-avatar.female {
    background: var(--gray-200);
}

.t-avatar.female::before {
    content: '';
    position: absolute;
    width: 50%;
    height: 50%;
    background: var(--gray-400);
    border-radius: var(--radius-full);
    top: 25%;
    left: 25%;
}

.t-avatar.female::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 40%;
    background: var(--gray-400);
    border-radius: 0 0 var(--radius-full) var(--radius-full);
    bottom: 0;
    left: 10%;
}

.t-info {
    display: flex;
    flex-direction: column;
}

.t-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.t-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Cases Grid */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* 最后一行只有2个卡片时，居中显示（11个案例：4+4+3，最后3个会居中） */
.cases-grid .case-card:nth-last-child(2):nth-child(4n+1) {
    grid-column: 2;
}

.cases-grid .case-card:nth-last-child(1):nth-child(4n+2) {
    grid-column: 3;
}

.case-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
}

.case-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--brand-blue);
    transform: translateY(-4px);
}

.case-img {
    height: 320px;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: visible;
}

/* 文档要求：统一容器比例 3:4 (A4比例)，强调"实物感" */
.doc-preview {
    width: 100%;
    height: 100%;
    max-width: 100%;
    aspect-ratio: 3 / 4;
    background: var(--bg-white);
    /* 文档要求：添加轻微的拟物投影，使其看起来像真实文件 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 
                0 2px 4px rgba(0, 0, 0, 0.04);
    padding: 0;
    position: relative;
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 2px;
}

.case-card:hover .view-icon {
    opacity: 1;
    transform: scale(1);
}

/* 真实图片样式 */
.doc-preview.has-image {
    padding: 0;
    background: transparent;
}

.doc-preview .case-image {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

/* 文档要求：海牙认证 - 必须露出顶部的 APOSTILLE 标题和特定的边框 */
/* 使用contain确保完整显示，优先显示顶部 */
.doc-preview.case-type-apostille .case-image {
    object-fit: contain;
    object-position: center top;
}

/* 文档要求：英国/香港公证 - 必须露出红色的丝带和红色的火漆印/晶片（通常在底部） */
/* 使用contain确保完整显示，优先显示底部 */
.doc-preview.case-type-hk-uk .case-image {
    object-fit: contain;
    object-position: center bottom;
}

/* 文档要求：国内公证 - 露出红色的公证处印章和钢印（通常在底部或中间） */
/* 使用contain确保完整显示，优先显示底部 */
.doc-preview.case-type-domestic .case-image {
    object-fit: contain;
    object-position: center bottom;
}

/* 如果没有类型标识，使用contain确保完整显示 */
.doc-preview.has-image:not([class*="case-type-"]) .case-image {
    object-fit: contain;
    object-position: center center;
}

/* 文档要求：悬停时图片稍微放大或浮起 */
.case-card:hover .doc-preview {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12), 
                0 4px 8px rgba(0, 0, 0, 0.08);
}

.case-card:hover .case-image {
    transform: scale(1.05);
}

.view-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 48px;
    height: 48px;
    background: var(--brand-blue);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.doc-lines {
    height: 2px;
    background: var(--border-light);
    width: 100%;
    box-shadow: 0 6px 0 var(--border-light), 0 12px 0 var(--border-light);
}

.doc-seal {
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-error);
    border-radius: var(--radius-full);
    position: absolute;
    bottom: 10px;
    right: 10px;
    opacity: 0.5;
}

.doc-stamp {
    width: 30px;
    height: 15px;
    border: 1px solid var(--color-error);
    position: absolute;
    bottom: 10px;
    left: 10px;
    opacity: 0.5;
}

.doc-header {
    font-size: 6px;
    border: 1px solid var(--text-primary);
    padding: 1px;
    text-align: center;
    margin-bottom: 5px;
}

.case-info {
    padding: 20px;
}

.case-info h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    font-weight: 600;
}

.case-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Process Container (Left/Right Layout) */
.process-container {
    display: flex;
    gap: 40px;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left: Steps List */
.process-steps-list {
    flex: 1.1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step-list-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: 0.3s;
    background: var(--bg-white);
    border: 2px solid transparent;
}

.step-list-item:hover {
    background: var(--bg-alt);
    border-color: var(--border-light);
}

.step-list-item.active {
    background: var(--brand-blue-lighter);
    border-color: var(--brand-blue);
}

.step-list-item.active .step-number {
    background: var(--brand-blue);
    color: white;
}

.step-list-item:not(.active) {
    opacity: 0.7;
}

.step-list-item:not(.active) .step-content h4 {
    color: var(--text-secondary);
}

.step-list-item:not(.active) .step-content p {
    color: var(--text-tertiary);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--border-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: 0.3s;
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.step-list-item.active .step-content h4 {
    color: var(--brand-blue);
    font-weight: 700;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.step-list-item.active .step-content p {
    color: var(--text-primary);
    opacity: 0.8;
}

/* Right: Animation Window */
.process-animation {
    flex: 0.9;
    min-width: 480px;
    max-width: 560px;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.animation-window {
    width: 100%;
    max-width: 520px;
    height: 100%;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.step-animation>* {
    margin: 0 auto;
}

.step-animation.active {
    opacity: 1;
    pointer-events: all;
}

/* Ensure animations restart when step becomes active */
.step-animation:not(.active) * {
    animation: none !important;
}

/* Force animations to play when step is active */
.step-animation.active * {
    animation-play-state: running !important;
}

/* Step 1 Animation: Select Service - Enhanced */
.step-1-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Centered wrapper per step */
.step-stage {
    position: relative;
    width: 360px;
    height: 360px;
    max-width: 90%;
    max-height: 90%;
    min-width: 280px;
    min-height: 280px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-sizing: border-box;
}

.step-4-animation .step-stage {
    flex-direction: row;
    gap: 28px;
}

/* Step 1 Animation: Select Service - Enhanced */
.step-1-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.anim-grid-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 240px;
    height: 240px;
    position: relative;
    margin: 0 auto;
}

/* 计算卡片中心位置：网格240x240，gap 16px，每个卡片 (240-16)/2 = 112px
   第三个卡片（左下角）中心：left: 56px, top: 112+8 = 120px
   相对于网格中心(120, 120)：margin-left: 56-120 = -64px, margin-top: 120-120 = 0px */

.anim-grid-menu .grid-item {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: gridItemAppear 0.4s ease 0.2s forwards;
}

.anim-grid-menu .grid-item::before {
    content: '';
    width: 60%;
    height: 60%;
    background: #cbd5e1;
    border-radius: 6px;
    opacity: 0.3;
}

.anim-grid-menu .grid-item:nth-child(1) {
    animation-delay: 0.2s;
}

.anim-grid-menu .grid-item:nth-child(2) {
    animation-delay: 0.2s;
}

.anim-grid-menu .grid-item:nth-child(3) {
    animation-delay: 0.2s;
}

.anim-grid-menu .grid-item:nth-child(4) {
    animation-delay: 0.2s;
}

@keyframes gridItemAppear {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.anim-cursor {
    position: absolute;
    width: 36px;
    height: 36px;
    opacity: 0;
    z-index: 10;
    animation: cursorMove 2.8s ease 0.8s forwards;
    transform-origin: center center;
    top: 50%;
    left: 50%;
    margin-top: -18px;
    margin-left: -18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.anim-cursor svg {
    width: 32px;
    height: 32px;
    transform: rotate(-15deg);
}

@keyframes cursorMove {
    0% {
        opacity: 0;
        margin-top: -136px;
        margin-left: -136px;
        transform: rotate(-15deg) scale(0.6);
    }

    20% {
        opacity: 1;
        margin-top: -136px;
        margin-left: -136px;
        transform: rotate(-15deg) scale(1);
    }

    60% {
        margin-top: 0px;
        margin-left: -64px;
        transform: rotate(-15deg) scale(1);
    }

    80% {
        margin-top: 0px;
        margin-left: -64px;
        transform: rotate(-15deg) scale(1.1);
    }

    90% {
        margin-top: 0px;
        margin-left: -64px;
        transform: rotate(-15deg) scale(0.95);
    }

    100% {
        opacity: 1;
        margin-top: 0px;
        margin-left: -64px;
        transform: rotate(-15deg) scale(1);
    }
}

.anim-grid-menu .grid-item-3 {
    animation: gridItemAppear 0.4s ease 0.2s forwards;
}

.anim-grid-menu .grid-item-3.hovered {
    animation: gridItemAppear 0.4s ease 0.2s forwards, gridItemHover 0.4s ease 0s forwards, gridItemClick 0.3s ease 0.8s forwards;
}

.anim-grid-menu .grid-item-3.clicked .grid-check {
    animation: checkAppear 0.6s ease 0s forwards;
}

@keyframes gridItemHover {
    to {
        background: var(--brand-blue-lighter);
        border-color: var(--brand-blue);
        border-width: 3px;
        transform: translateY(-8px) scale(1.05);
        box-shadow: var(--shadow-md);
    }
}

@keyframes gridItemClick {
    from {
        transform: translateY(-8px) scale(1.05);
    }

    50% {
        transform: translateY(-4px) scale(1.02);
    }

    to {
        transform: translateY(-8px) scale(1.05);
    }
}

.grid-item {
    position: relative;
    overflow: visible;
}

.grid-check {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-size: 18px;
    opacity: 0;
    z-index: 5;
    line-height: 1;
}

@keyframes checkAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }

    50% {
        transform: scale(1.2) rotate(10deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* ========================================
   Step 2 Animation: Submit Order
   ======================================== */
.step-2-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.anim-form-container {
    width: 320px;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    position: relative;
    opacity: 0;
    animation: formContainerAppear 0.5s ease 0.3s forwards;
}

@keyframes formContainerAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-lines {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.form-line {
    height: 12px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    width: 0;
    position: relative;
    overflow: hidden;
}

.form-line:nth-child(1) {
    animation: lineGrow 0.6s ease 0.8s forwards;
}

.form-line:nth-child(2) {
    animation: lineGrow 0.6s ease 1.2s forwards;
}

.form-line:nth-child(3) {
    animation: lineGrow 0.6s ease 1.6s forwards;
}

.form-line:nth-child(4) {
    animation: lineGrow 0.6s ease 2.0s forwards;
}

@keyframes lineGrow {
    to {
        width: 100%;
        background: var(--brand-blue);
    }
}

.rush-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--brand-orange-light);
    color: var(--brand-orange-dark);
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    border: 2px solid var(--brand-orange);
    box-shadow: var(--shadow-md);
    animation: rushBadgeAppear 0.5s ease 2.4s forwards;
}

.rush-badge i {
    font-size: 16px;
    animation: lightningFlash 1s ease 2.9s infinite;
}

@keyframes rushBadgeAppear {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes lightningFlash {

    0%,
    100% {
        transform: scale(1);
        color: var(--brand-orange-dark);
    }

    50% {
        transform: scale(1.2);
        color: var(--brand-orange);
    }
}

.submit-button {
    width: 100%;
    height: 44px;
    background: var(--gray-300);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    /* 2.8s appear, 3.3s click, 3.5s activate */
    animation: submitButtonAppear 0.4s ease 2.8s forwards, submitButtonClick 0.2s ease 3.3s forwards, submitButtonActivate 0.3s ease 3.5s forwards;
}

@keyframes submitButtonAppear {
    to {
        opacity: 1;
    }
}

@keyframes submitButtonClick {
    0% {
        transform: scale(1);
        background: var(--gray-300);
    }

    50% {
        transform: scale(0.95);
        background: var(--gray-400);
    }

    100% {
        transform: scale(0.95);
        background: var(--gray-400);
    }
}

@keyframes submitButtonActivate {
    0% {
        transform: scale(0.95);
        background: var(--gray-400);
    }

    100% {
        background: var(--brand-blue);
        box-shadow: var(--shadow-lg);
        transform: scale(1);
    }
}

.anim-hand-cursor {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 32px;
    height: 32px;
    z-index: 10;
    opacity: 0;
    animation: handMove 1.5s ease 2.8s forwards;
    pointer-events: none;
}

.anim-hand-cursor svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes handMove {
    0% {
        opacity: 0;
        transform: translate(40px, 40px) scale(1);
    }

    20% {
        opacity: 1;
    }

    40% {
        /* Move to button center */
        transform: translate(-200px, -94px) scale(1);
        /* Adjust based on container size */
    }

    50% {
        /* Click down */
        transform: translate(-200px, -94px) scale(0.8);
    }

    60% {
        /* Click up */
        transform: translate(-200px, -94px) scale(1);
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-200px, -94px) scale(1);
    }
}

/* ========================================
   Step 3 Animation: Upload File
   ======================================== */
.step-3-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.upload-container {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cloud-icon {
    font-size: 120px;
    color: var(--border-medium);
    opacity: 0;
    animation: cloudAppear 0.6s ease 0.3s forwards;
}

@keyframes cloudAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.document-file {
    position: absolute;
    bottom: 30%;
    font-size: 80px;
    color: var(--color-info);
    opacity: 0;
    animation: documentFloat 1.5s ease 0.8s forwards;
}

@keyframes documentFloat {
    0% {
        opacity: 0;
        bottom: 10%;
        transform: scale(0.5);
    }

    60% {
        opacity: 1;
        bottom: 50%;
        transform: scale(1);
    }

    100% {
        opacity: 0.3;
        bottom: 55%;
        transform: scale(0.8);
    }
}

.upload-progress {
    position: absolute;
    bottom: 15%;
    width: 200px;
    height: 8px;
    background: var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    opacity: 0;
    animation: progressBarAppear 0.3s ease 2.3s forwards;
}

@keyframes progressBarAppear {
    to {
        opacity: 1;
    }
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-blue), var(--color-info));
    width: 0;
    border-radius: var(--radius-sm);
    animation: progressFill 1.2s ease 2.6s forwards;
}

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

.progress-text {
    position: absolute;
    top: -24px;
    right: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-blue);
    opacity: 0;
    animation: progressTextUpdate 1.2s ease 2.6s forwards;
}

@keyframes progressTextUpdate {
    0% {
        opacity: 1;
        content: '0%';
    }

    100% {
        opacity: 1;
        content: '100%';
    }
}

.step-3-animation.active .progress-text::after {
    content: '100%';
    animation: countUp 1.2s ease 2.6s forwards;
}

.success-check {
    position: absolute;
    bottom: 10%;
    font-size: 60px;
    color: var(--color-success);
    opacity: 0;
    animation: successCheckAppear 0.6s ease 3.8s forwards;
}

@keyframes successCheckAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }

    60% {
        transform: scale(1.2) rotate(10deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* ========================================
   Step 4 Animation: Verify
   ======================================== */
.step-4-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.verify-container {
    position: relative;
    width: 360px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verify-items {
    display: flex;
    gap: 60px;
    align-items: center;
}

.verify-doc,
.verify-user {
    width: 90px;
    height: 110px;
    background: var(--bg-white);
    border: 3px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-secondary);
    box-shadow: var(--shadow-md);
    opacity: 0;
}

.verify-doc {
    animation: verifyItemAppear 0.5s ease 0.3s forwards;
}

.verify-user {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-full);
    animation: verifyItemAppear 0.5s ease 0.6s forwards;
}

@keyframes verifyItemAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--brand-blue), transparent);
    opacity: 0;
    top: 20%;
    box-shadow: 0 0 20px rgba(39, 65, 139, 0.5);
    animation: scanMove 1.8s ease 1.0s forwards;
}

@keyframes scanMove {
    0% {
        opacity: 1;
        top: 20%;
    }

    50% {
        opacity: 1;
        top: 50%;
    }

    100% {
        opacity: 0;
        top: 80%;
    }
}

.shield-icon {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--border-light) 0%, var(--border-medium) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--brand-blue);
    opacity: 0;
    box-shadow: var(--shadow-md);
    animation: shieldAppear 0.6s ease 2.5s forwards;
}

@keyframes shieldAppear {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.5) rotate(-15deg);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) scale(1) rotate(0deg);
    }
}

.shield-check {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--color-success);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 24px;
    font-weight: bold;
    opacity: 0;
    box-shadow: var(--shadow-md);
    animation: shieldCheckAppear 0.6s ease 3.0s forwards;
}

@keyframes shieldCheckAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }

    60% {
        transform: scale(1.2) rotate(10deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.stamp-approved {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 24px;
    background: transparent;
    border: 4px solid var(--color-error);
    color: var(--color-error);
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    opacity: 0;
    transform-origin: center;
    animation: stampAppear 0.8s ease 3.6s forwards;
}

@keyframes stampAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0) rotate(-15deg);
    }

    60% {
        transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
    }

    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1) rotate(-3deg);
    }
}

/* ========================================
   Step 5 Animation: Receive
   ======================================== */
.step-5-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.receive-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    min-width: 500px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    margin: 0 auto;
}

.envelope {
    position: relative;
    width: 200px;
    height: 140px;
    opacity: 0;
    animation: envelopeAppear 0.6s ease 0.3s forwards;
}

@keyframes envelopeAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.envelope-body {
    width: 100%;
    height: 100%;
    background: var(--brand-orange-light);
    border: 3px solid var(--brand-orange-dark);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: var(--brand-orange);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: top center;
    border: 3px solid var(--brand-orange-dark);
    border-bottom: none;
    animation: flapOpen 1s ease 1.0s forwards;
}

@keyframes flapOpen {
    to {
        transform: rotateX(180deg);
    }
}

.certificate {
    position: absolute;
    width: 140px;
    height: 180px;
    background: var(--bg-white);
    border: 3px solid var(--border-light);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    bottom: 30%;
    animation: certificateSlideOut 1.2s ease 1.8s forwards;
}

@keyframes certificateSlideOut {
    0% {
        opacity: 0;
        bottom: 30%;
    }

    50% {
        opacity: 1;
        bottom: 45%;
    }

    100% {
        opacity: 1;
        bottom: 50%;
    }
}

.cert-seal {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 40px;
    color: var(--color-error);
    opacity: 0;
    animation: sealAppear 0.6s ease 2.8s forwards;
}

@keyframes sealAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }

    60% {
        transform: scale(1.2) rotate(10deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.delivery-truck {
    position: absolute;
    bottom: 10%;
    left: 0;
    font-size: 50px;
    color: var(--brand-blue);
    opacity: 0;
    animation: truckAppear 0.6s ease 3.2s forwards, truckMoveToDestination 2.5s ease 3.8s forwards;
    z-index: 10;
    will-change: transform;
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes truckMoveToDestination {
    0% {
        transform: translateX(0) scale(1);
    }
    
    10% {
        transform: translateX(0) scale(1.2);
    }
    
    50% {
        /* 移动到右侧目的地：从 left: 0 移动到 right: 5% 的位置 */
        /* 容器宽度约 500px，移动距离 = 500px - 50px(图标) - 25px(右边距) = 425px */
        transform: translateX(425px) scale(1.1);
    }
    
    90% {
        transform: translateX(425px) scale(1.2);
    }
    
    100% {
        transform: translateX(425px) scale(1);
    }
}

.location-pin {
    position: absolute;
    bottom: 10%;
    right: 5%;
    font-size: 50px;
    color: var(--color-success);
    opacity: 0;
    animation: pinAppear 0.6s ease 3.6s forwards, pinPulse 1.5s ease 6.3s infinite;
    z-index: 5;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pinPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ========================================
   Section 5: Partners (Global Network)
   ======================================== */
.partners-section {
    position: relative;
    overflow: hidden;
    background-color: #f8fafc;
    /* Light background */
}

/* World Map Background Silhouette */
.world-map-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-width: 1400px;
    background-image: url("data:image/svg+xml,%3Csvg width='1000' height='500' viewBox='0 0 1000 500' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M842 165c-3 3-8 4-10 1-3-4 1-9 5-10 3-1 8 5 5 9zm-38-16c-3 1-4 5-2 8 2 2 6 1 7-2 1-3-2-6-5-6zm-64 25c-4 2-5 7-2 10 3 3 8 2 9-2 2-3-3-8-7-8zm-20-35c-3 0-5 4-4 7 1 3 5 4 7 1 2-2-1-7-3-8zm-45 45c-4 1-6 6-3 9 2 3 7 2 9-1 1-3-3-8-6-8zm-35-15c-3 1-4 5-2 8 2 2 6 1 7-2 1-3-2-6-5-6zm-55 35c-4 2-5 7-2 10 3 3 8 2 9-2 2-3-3-8-7-8zm-25-45c-3 0-5 4-4 7 1 3 5 4 7 1 2-2-1-7-3-8zm-75 55c-4 1-6 6-3 9 2 3 7 2 9-1 1-3-3-8-6-8zm-45-25c-3 1-4 5-2 8 2 2 6 1 7-2 1-3-2-6-5-6zm-65 45c-4 2-5 7-2 10 3 3 8 2 9-2 2-3-3-8-7-8zm-35-55c-3 0-5 4-4 7 1 3 5 4 7 1 2-2-1-7-3-8zm-85 65c-4 1-6 6-3 9 2 3 7 2 9-1 1-3-3-8-6-8zm-55-35c-3 1-4 5-2 8 2 2 6 1 7-2 1-3-2-6-5-6zm-75 55c-4 2-5 7-2 10 3 3 8 2 9-2 2-3-3-8-7-8zm-45-65c-3 0-5 4-4 7 1 3 5 4 7 1 2-2-1-7-3-8z' fill='%23cbd5e1' opacity='0.3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

/* Partners Showcase Grid */
.partners-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
    margin-bottom: 60px;
}

/* Partner Profile Card */
.partner-profile-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.partner-profile-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--brand-blue);
}

/* Avatar Wrapper */
.pp-header {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.pp-avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.pp-avatar {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    background-color: var(--bg-alt);
    background-size: cover;
    background-position: center;
    /* filter: grayscale(100%); */
    transition: 0.3s;
    border: 3px solid var(--bg-white);
    box-shadow: var(--shadow-sm);
}

/* Flags */
.flag-uk {
    background-image: url('https://flagcdn.com/w160/gb.png');
}

.flag-hk {
    background-image: url('https://flagcdn.com/w160/hk.png');
}

.flag-us {
    background-image: url('https://flagcdn.com/w160/us.png');
}

.flag-cn {
    background-image: url('https://flagcdn.com/w160/cn.png');
}

.partner-profile-card:hover .pp-avatar {
    /* filter: grayscale(0%); */
    /* Color on hover */
    transform: scale(1.05);
}

/* Placeholder Avatars (CSS Gradients simulating professional headshots) */
.pp-avatar-1 {
    background-image: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fff"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
    background-blend-mode: overlay;
    background-size: cover, 60%;
    background-repeat: no-repeat;
}

.pp-avatar-2 {
    background-image: linear-gradient(135deg, #94a3b8 0%, #64748b 100%), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fff"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
    background-blend-mode: overlay;
    background-size: cover, 60%;
    background-repeat: no-repeat;
}

.pp-avatar-3 {
    background-image: linear-gradient(135deg, #64748b 0%, #475569 100%), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fff"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
    background-blend-mode: overlay;
    background-size: cover, 60%;
    background-repeat: no-repeat;
}

.pp-avatar-4 {
    background-image: linear-gradient(135deg, #475569 0%, #334155 100%), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fff"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
    background-blend-mode: overlay;
    background-size: cover, 60%;
    background-repeat: no-repeat;
}

.pp-flag {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--bg-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--bg-white);
}

/* Card Body */
.pp-role {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-family: 'Noto Serif SC', serif;
}

.pp-count {
    font-size: 0.9rem;
    color: var(--brand-blue);
    font-weight: 600;
    margin-bottom: 12px;
    background: var(--brand-blue-lighter);
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-lg);
}

.pp-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Logo Wall */
.partners-logo-wall {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    padding: 12px;
    border-radius: var(--radius-md);
}

.logo-item i {
    font-size: 24px;
}

.logo-item:hover {
    color: var(--brand-blue);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .partners-showcase {
        grid-template-columns: repeat(2, 1fr);
    }

    .partners-logo-wall {
        /* grid-template-columns: repeat(3, 1fr); */
        gap: 20px;
    }
}

@media (max-width: 768px) {

    /* Mobile Carousel for Cards */
    .partners-showcase {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 20px;
        /* Space for scrollbar/shadow */
        margin-right: -24px;
        /* Bleed to edge */
        padding-right: 24px;
    }

    .partner-profile-card {
        min-width: 280px;
        scroll-snap-align: center;
    }

    /* Mobile Logo Wall */
    .partners-logo-wall {
        /* grid-template-columns: repeat(2, 1fr); */
        gap: 16px;
    }

    .logo-item {
        font-size: 0.9rem;
        /* width: 100%; */
        justify-content: center;
        flex: 1 1 40%; /* Auto grow, min 40% width */
    }
}

/* ========================================
   Section 6: FAQ
   ======================================== */
.faq-section {
    background-color: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
}

.faq-item:last-child {
    border-bottom: none;
}

/* FAQ Header */
.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 20px;
    /* Added horizontal padding for hover bg */
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    /* Rounded corners for hover bg */
}

.faq-header:hover {
    background-color: var(--bg-alt);
}

.faq-header:hover .faq-question {
    color: var(--brand-blue);
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    padding-right: 20px;
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-orange);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    /* Rotate caret 180 degrees */
}

/* FAQ Body */
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.faq-item.active .faq-body {
    opacity: 1;
    /* max-height is set by JS */
}

.faq-content {
    padding-bottom: 24px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.faq-content p {
    margin-bottom: 12px;
}

.faq-content p:last-child {
    margin-bottom: 0;
}

/* Highlight Box */
.faq-highlight {
    background-color: var(--brand-orange-light);
    border-left: 4px solid var(--brand-orange);
    padding: 16px;
    margin: 16px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--brand-orange-dark);
}

.faq-highlight p {
    margin: 0;
}

/* Lists in FAQ */
.faq-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.faq-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.faq-list li::before {
    content: '•';
    color: var(--brand-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.note {
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
    margin-top: 8px;
}

/* FAQ Footer */
.faq-footer {
    margin-top: 48px;
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.faq-footer p {
    color: var(--text-secondary);
    font-weight: 500;
}

.faq-footer .btn-outline {
    border: 2px solid var(--brand-blue);
    color: var(--brand-blue);
    padding: 10px 24px;
    border-radius: 0;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.faq-footer .btn-outline:hover {
    background: var(--brand-blue);
    color: var(--text-white);
}

/* Footer */
.footer {
    background-color: var(--brand-orange);
    color: var(--text-white);
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

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

.footer-col h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
}

/* Brand Col */
.footer-brand .footer-logo {
    margin-bottom: 20px;
    margin-left: 0;
    /* logo左侧与文字对齐 */
}

.footer-brand .footer-logo .logo-img {
    transform-origin: left center;
    /* logo从左侧中心点缩放，确保左侧对齐 */
}

.footer-brand .logo-img {
    filter: brightness(0) invert(1);
    /* 将logo转为白色，适用于深色背景 */
}

.footer-desc {
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 300px;
}

/* Footer QR Codes */
.footer-qr-codes {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qr-img {
    width: 90px;
    height: 90px;
    border-radius: 4px;
    background-color: #fff;
    padding: 4px; /* White border effect */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.qr-text {
    font-size: 0.85rem;
    color: var(--text-white);
}

/* Links Col */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--text-white);
    transition: color 0.3s;
    display: inline-block;
}

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

/* Contact Col */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.contact-list i {
    color: #ffffff;
    font-size: 1.2rem;
    margin-top: 2px;
}

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

.legal-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.legal-links a {
    color: var(--text-white);
    transition: color 0.3s;
}

.legal-links a:hover {
    color: var(--text-white);
}

.legal-links .divider {
    color: var(--text-white);
    opacity: 0.3;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
    }
    
    /* 品牌列占满一行 */
    .footer-top .footer-col:first-child {
        grid-column: 1 / -1;
    }
    
    /* 服务项目和帮助中心并排显示 */
    .footer-top .footer-col:nth-child(2),
    .footer-top .footer-col:nth-child(3) {
        grid-column: auto;
    }
    
    /* 联系我们列占满一行 */
    .footer-top .footer-col:last-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-primary);
    transition: 0.3s;
    z-index: 10;
}

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

.lightbox-img {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.lightbox-img .doc-preview {
    width: 100%;
    max-width: 85vw;
    max-height: 75vh;
    height: auto;
    aspect-ratio: 3 / 4;
    transform: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

.lightbox-img img,
.lightbox-img .lightbox-image {
    max-width: 85vw;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.lightbox-info {
    text-align: center;
    flex-shrink: 0;
    margin-top: auto;
}

.lightbox-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.lightbox-info p {
    font-size: 1rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .lightbox {
        padding: 10px;
    }

    .lightbox-content {
        padding: 15px 10px;
        max-width: 98vw;
        max-height: 98vh;
    }

    .lightbox-img .doc-preview {
        max-width: 95vw;
        max-height: 80vh;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

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

/* Notification Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ========================================
   Services Section - 全方位公证认证解决方案
   ======================================== */

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

.services-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.service-nav-item {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.service-nav-item:hover {
    border-color: var(--brand-blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-nav-item.active {
    background: var(--brand-blue-lighter);
    border-color: var(--brand-blue);
    box-shadow: var(--shadow-md);
}

.service-nav-icon {
    font-size: 2rem;
    color: var(--brand-blue);
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-nav-item.active .service-nav-icon {
    color: var(--brand-blue);
}

.service-nav-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.service-nav-item.active .service-nav-content h3 {
    color: var(--brand-blue);
}

.service-nav-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.service-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.service-content.active {
    display: block;
}

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

.service-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.service-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.service-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.service-title-en {
    display: block;
    width: fit-content;
    font-size: 1rem;
    font-weight: 500;
    color: var(--brand-orange);
    background-color: var(--gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 8px;
    font-style: normal;
}

.service-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

.service-features {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.service-feature-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-alt);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.service-feature-card:hover {
    background: var(--brand-blue-lighter);
    transform: translateY(-2px);
}

.service-feature-icon {
    font-size: 1.5rem;
    color: var(--brand-blue);
    display: flex;
    align-items: center;
}

.service-feature-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.service-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Service Actions Buttons - Yellow/Orange Theme */
.service-actions .btn-primary {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
}

.service-actions .btn-primary:hover {
    background-color: var(--brand-orange-dark);
    border-color: var(--brand-orange-dark);
}

.service-actions .btn-outline {
    color: var(--brand-orange);
    border-color: var(--brand-orange);
}

.service-actions .btn-outline:hover {
    background-color: var(--brand-orange);
    color: var(--text-white);
}

.service-file-types {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.file-types-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
}

.file-types-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.file-type-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.file-type-item i {
    color: var(--brand-blue);
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.file-type-item span {
    flex: 1;
}

/* File Types Button - Yellow/Orange Theme */
.file-types-btn-container .btn-outline {
    color: var(--brand-orange);
    border-color: var(--brand-orange);
}

.file-types-btn-container .btn-outline:hover {
    background-color: var(--brand-orange);
    color: var(--text-white);
}

/* Responsive - Services Section */
@media (max-width: 1024px) {
    .services-nav {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .services-nav {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .service-nav-item {
        padding: 20px 16px;
    }
    
    .service-nav-icon {
        font-size: 1.5rem;
    }
    
    .service-title {
        font-size: 1.5rem;
    }
    
    .service-features {
        flex-direction: column;
    }
    
    .service-feature-card {
        width: 100%;
    }
    
    .service-actions {
        flex-direction: column;
    }
    
    .service-actions .btn-primary,
    .service-actions .btn-outline {
        width: 100%;
        justify-content: center;
    }
    
    .service-file-types {
        padding: 24px 20px;
    }
}

/* Responsive */
@media (max-width: 1024px) {

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

    .testimonials-slider {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .testimonials-track {
        animation: none;
    }

    .testimonial-item {
        min-width: calc(50vw - 60px);
        max-width: calc(50vw - 60px);
    }

    .cases-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    /* 重置最后一行居中逻辑 */
    .cases-grid::after {
        content: '';
        grid-column: span 1;
    }
    
    .cases-grid .case-card:nth-last-child(2):nth-child(4n+1),
    .cases-grid .case-card:nth-last-child(1):nth-child(4n+2) {
        grid-column: auto;
    }

    .process-container {
        flex-direction: column;
        gap: 40px;
    }

    .process-steps-list {
        flex: none;
        width: 100%;
    }

    .process-animation {
        order: -1;
        /* Animation on top for mobile */
        flex: none;
        min-width: auto;
        max-width: 100%;
        width: 100%;
    }

    .animation-window {
        height: 300px;
    }

    .process-steps-list {
        order: 1;
        /* Steps list on bottom for mobile */
    }
}

/* Tablet (992px and below) */
@media (max-width: 992px) {
    .hero {
        min-height: auto;
        padding: 60px 0;
    }

    .hero-split {
        flex-direction: column;
        gap: 50px;
        padding: 20px 24px 50px;
        align-items: center;
    }

    .hero-text {
        flex: none;
        max-width: 100%;
        min-width: 0;
        width: 100%;
        text-align: center;
        order: 1;
    }

    .hero-visual {
        order: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-carousel-wrapper {
        width: 300px;
        height: 430px;
        transform: scale(0.85);
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 5px 12px;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 3rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .text-highlight::after {
        height: 10px;
        bottom: 4px;
    }

    .hero-desc {
        font-size: 1.1rem;
        margin-bottom: 32px;
        min-height: auto;
    }

    .hero-actions {
        justify-content: center;
        gap: 14px;
        margin-bottom: 36px;
    }

    .hero-stats {
        justify-content: center;
        gap: 24px;
        padding-top: 28px;
    }
}

/* Tablet and Mobile (768px and below) */
@media (max-width: 768px) {
    /* Hero Section 移动端适配 */
    .hero {
        min-height: auto;
        padding: 30px 0 40px;
    }

    .hero-split {
        flex-direction: column;
        gap: 40px;
        padding: 15px 16px 40px;
        align-items: stretch;
    }

    .hero-text {
        flex: none;
        max-width: 100%;
        min-width: 0;
        width: 100%;
        order: 1;
        text-align: center;
    }

    .hero-visual {
        order: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    .hero-carousel-wrapper {
        width: 280px;
        height: 400px;
        transform: scale(0.75);
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 5px 10px;
        margin-bottom: 16px;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    .text-highlight::after {
        height: 8px;
        bottom: 3px;
    }

    .hero-desc {
        font-size: 1rem;
        margin-bottom: 24px;
        min-height: auto;
        line-height: 1.6;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 32px;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 14px 24px;
        font-size: 1rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
        padding-top: 24px;
        justify-content: space-around;
    }

    .h-stat {
        flex: 1;
        min-width: 80px;
        text-align: center;
    }

    .h-stat strong {
        font-size: 1.2rem;
    }

    .h-stat span {
        font-size: 0.75rem;
    }

    .h-divider {
        display: none;
        /* 移动端隐藏分隔线，使用间距代替 */
    }

    /* 移动端导航菜单样式 */
    .nav-center,
    .nav-right {
        display: none;
    }

    /* 移动端显示汉堡菜单 */
    .hamburger {
        display: flex;
    }

    /* 移动端调整logo大小 */
    .logo {
        height: 32px;
        margin-right: 0;
    }

    .logo-img {
        transform: scale(1.8);
    }

    /* 确保导航容器布局正确 */
    .nav-container {
        justify-content: space-between;
        max-width: 100%;
        margin: 0;
        padding: 0 24px;
    }

    /* 移动端菜单容器 - 包含菜单和语言切换 */
    .nav-menu-wrapper {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg-white);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        max-height: calc(100vh - var(--nav-height));
    }

    .nav-container.menu-open .nav-menu-wrapper {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* 移动端菜单（展开时显示） */
    .nav-container.menu-open .nav-center {
        display: flex;
        flex-direction: column;
        padding: 20px 24px;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-container.menu-open .nav-right {
        display: flex;
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
    }

    .nav-link {
        padding: 12px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-light);
        display: block;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-right .lang-switch {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    .nav-right .btn-primary {
        width: 100%;
        text-align: center;
    }
    
    /* 移动端菜单中隐藏免费咨询按钮 */
    .nav-container.menu-open .nav-right .btn-primary {
        display: none;
    }


    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-right {
        padding-top: 0;
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
    }

    .nav-right .lang-switch {
        width: 100%;
        justify-content: center;
        padding: 12px;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
    }
    
    /* 确保移动端菜单中语言切换按钮显示 */
    .nav-container.menu-open .nav-right .lang-switch {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        justify-content: center !important;
        padding: 12px !important;
        height: auto !important;
        min-height: auto !important;
        margin: 0 !important;
    }
    
    /* 确保语言切换按钮的子元素也显示 */
    .nav-container.menu-open .nav-right .lang-switch .lang-item,
    .nav-container.menu-open .nav-right .lang-switch .lang-separator {
        display: inline !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* 移动端菜单中隐藏免费咨询按钮 */
    .nav-container.menu-open .nav-right .btn-primary {
        display: none !important;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .hero {
        padding: 25px 0 30px;
    }

    .hero-split {
        gap: 30px;
        padding: 15px 12px 30px;
    }

    .hero-text {
        padding: 0;
    }

    .hero-visual {
        margin-bottom: 15px;
    }

    .hero-carousel-wrapper {
        width: 240px;
        height: 340px;
        transform: scale(0.65);
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
        margin-bottom: 12px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 14px;
        line-height: 1.3;
    }

    .text-highlight::after {
        height: 7px;
        bottom: 2px;
    }

    .hero-desc {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .hero-actions {
        gap: 10px;
        margin-bottom: 24px;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        max-width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .hero-stats {
        gap: 12px;
        padding-top: 20px;
    }

    .h-stat {
        min-width: 70px;
    }

    .h-stat strong {
        font-size: 1.1rem;
    }

    .h-stat span {
        font-size: 0.7rem;
    }

    /* 移动端显示汉堡菜单 */
    .hamburger {
        display: flex;
    }

    /* 移动端调整logo大小 */
    .logo {
        height: 32px;
        margin-right: 0;
        /* 移动端不需要margin-right: auto，因为使用justify-content: space-between */
    }

    .logo-img {
        transform: scale(1.8);
        /* 移动端缩小logo，避免挤压汉堡菜单 */
    }

    /* 确保导航容器布局正确 */
    .nav-container {
        justify-content: space-between;
        max-width: 100%;
        margin: 0;
        padding: 0 24px;
        /* logo在左，汉堡菜单在右 */
    }

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

    .testimonial-item {
        min-width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
    }

    .process-container {
        flex-direction: column;
        gap: 30px;
    }

    .process-steps-list {
        order: 1;
        flex: none;
        width: 100%;
        gap: 16px;
    }

    .process-animation {
        order: -1;
        flex: none;
        min-width: auto;
        max-width: 100%;
        width: 100%;
    }

    .animation-window {
        height: 250px;
    }

    .step-list-item {
        padding: 16px;
    }

    .step-content h4 {
        font-size: 1rem;
    }

    .step-content p {
        font-size: 0.85rem;
    }

    .testimonial-item {
        min-width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
    }

    .cases-grid {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 20px;
        padding-bottom: 20px;
        gap: 16px;
    }

    .case-card {
        min-width: 200px;
        scroll-snap-align: center;
        flex-shrink: 0;
    }
    
    /* 添加滑动提示 */
    .cases-grid::after {
        content: '';
        flex-shrink: 0;
        width: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    font-family: 'Inter', sans-serif;
}

/* Floating Capsule */
.chat-capsule {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    padding: 6px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid var(--border-light);
}

.chat-capsule:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--brand-blue);
}

.chat-avatar {
    width: 44px;
    height: 44px;
    background: transparent;
    color: var(--text-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
    overflow: hidden;
}

.avatar-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

.avatar-image svg {
    width: 100%;
    height: 100%;
    display: block;
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: var(--color-success);
    border: 2px solid var(--bg-white);
    border-radius: var(--radius-full);
}

.chat-hint {
    padding: 0 12px 0 20px;
    /* Reversed: now avatar is on right */
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 400px;
    height: 600px;
    max-height: 80vh;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chat-header {
    background: var(--brand-blue);
    color: var(--text-white);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.ch-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ch-avatar {
    width: 36px;
    height: 36px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ch-avatar .avatar-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.ch-avatar .avatar-image svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ch-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.ch-status {
    font-size: 0.7rem;
    opacity: 0.8;
}

.ch-close {
    cursor: pointer;
    opacity: 0.8;
    transition: 0.2s;
}

.ch-close:hover {
    opacity: 1;
}

.chat-body {
    flex: 1;
    padding: 12px 16px;
    background: #f8fafc;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.msg {
    max-width: 75%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    margin-bottom: 8px;
    line-height: 1.4;
    word-wrap: break-word;
}

.msg-bot {
    background: white;
    border: 1px solid var(--border-light);
    border-top-left-radius: 2px;
    color: var(--text-primary);
}

.msg-user {
    background: var(--brand-blue);
    color: var(--text-white);
    border-bottom-right-radius: 2px;
    margin-left: auto;
}

.chat-footer {
    padding: 12px 16px;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.chat-footer input {
    flex: 1;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 10px 16px;
    outline: none;
    font-family: inherit;
    font-size: 0.875rem;
    transition: 0.3s;
}

.chat-footer input:focus {
    border-color: var(--brand-blue);
}

.chat-send {
    width: 36px;
    height: 36px;
    background: var(--brand-blue);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.chat-send:hover {
    background: var(--brand-blue-dark);
}

/* Chat Widget Mobile Responsive */
@media (max-width: 768px) {
    .chat-widget {
        bottom: 20px;
        right: 20px;
        left: auto;
    }

    .chat-capsule {
        max-width: calc(100vw - 40px);
        justify-content: flex-end;
    }

    .chat-window {
        position: fixed;
        bottom: 20px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(20px) scale(0.95);
        width: calc(100vw - 32px);
        max-width: 400px;
        height: calc(100vh - 100px);
        max-height: 600px;
    }

    .chat-window.active {
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .chat-widget {
        bottom: 16px;
        right: 16px;
        left: auto;
    }

    .chat-capsule {
        max-width: calc(100vw - 32px);
        justify-content: flex-end;
    }

    .chat-window {
        bottom: 16px;
        width: calc(100vw - 32px);
        max-width: none;
        height: calc(100vh - 80px);
        max-height: calc(100vh - 80px);
    }
    
    .chat-body {
        padding: 10px 12px;
    }
    
    .msg {
        max-width: 85%;
        padding: 7px 10px;
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
}

/* Chat Tags */
.chat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

.chat-tag {
    padding: 6px 12px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
    color: var(--text-secondary);
}

.chat-tag:hover {
    background: var(--brand-blue-lighter);
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

/* Responsive Chat */
@media (max-width: 768px) {
    .chat-widget {
        bottom: 20px;
        right: 20px;
        left: auto;
    }

    .chat-capsule {
        max-width: calc(100vw - 40px);
        justify-content: flex-end;
    }

    .chat-window {
        position: fixed;
        bottom: 20px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(20px) scale(0.95);
        width: calc(100vw - 32px);
        max-width: 400px;
        height: calc(100vh - 100px);
        max-height: 600px;
    }

    .chat-window.active {
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .chat-widget {
        bottom: 16px;
        right: 16px;
        left: auto;
    }

    .chat-capsule {
        max-width: calc(100vw - 32px);
        justify-content: flex-end;
    }

    .chat-window {
        bottom: 16px;
        width: calc(100vw - 32px);
        max-width: none;
        height: calc(100vh - 80px);
        max-height: calc(100vh - 80px);
    }
    
    .chat-body {
        padding: 10px 12px;
    }
    
    .msg {
        max-width: 85%;
        padding: 7px 10px;
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
}

/* Modal Styles - 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-blue);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    line-height: 1;
}

.modal-close:hover {
    color: var(--brand-blue);
    background: var(--brand-blue-lighter);
    transform: rotate(90deg);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
    color: var(--text-primary);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px var(--brand-blue-lighter);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

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

.modal-submit-btn {
    width: 100%;
    background: var(--brand-blue);
    color: var(--text-white);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-md);
}

.modal-submit-btn:hover {
    background: var(--brand-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.modal-submit-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        max-width: 90%;
        margin: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
}

/* ========================================
   报价弹窗样式 - Pricing Modal
   ======================================== */
.pricing-modal-content {
    max-width: 600px;
    width: 90%;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 0;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.pricing-modal-header {
    position: relative;
    padding: 32px 32px 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
}

.pricing-logo {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    height: 50px;
    overflow: hidden;
}

.pricing-logo img {
    height: 200%;
    width: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    transform: scale(1.6);
    /* 放大1.6倍，去除留白，让logo更突出 */
    transform-origin: center center;
    max-width: none;
}

.pricing-header-text {
    margin-bottom: 0;
}

.pricing-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--premium-dark);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.pricing-subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    font-weight: 600;
}

.pricing-badge {
    position: absolute;
    top: 24px;
    right: 60px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.pricing-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #64748b;
    transition: all 0.3s ease;
}

.pricing-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--premium-dark);
    transform: rotate(90deg);
}

.pricing-modal-body {
    padding: 32px;
}

.pricing-intro {
    margin-bottom: 32px;
}

.pricing-intro-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--premium-dark);
    margin: 0 0 12px 0;
}

.pricing-intro-text {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.pricing-table-wrapper {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.pricing-table thead {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.pricing-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.pricing-table th:last-child {
    text-align: right;
}

.pricing-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

.pricing-table tbody tr:last-child {
    border-bottom: none;
}

.pricing-table tbody tr:hover {
    background: #f8fafc;
}

.pricing-table td {
    padding: 16px 20px;
    color: var(--premium-dark);
    font-size: 0.95rem;
}

.pricing-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--brand-blue);
}

.pricing-contact {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.pricing-contact-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--premium-dark);
    margin: 0 0 12px 0;
}

.pricing-contact-info {
    font-size: 0.95rem;
    color: #64748b;
    margin: 6px 0;
    line-height: 1.6;
}

.pricing-cta-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.pricing-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.pricing-cta-btn:active {
    transform: translateY(0);
}

/* 报价弹窗响应式 */
@media (max-width: 768px) {
    .pricing-modal-content {
        max-width: 95%;
        margin: 1rem;
    }
    
    .pricing-modal-header {
        padding: 24px 20px 20px;
    }
    
    .pricing-title {
        font-size: 1.6rem;
    }
    
    .pricing-badge {
        top: 20px;
        right: 50px;
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    .pricing-modal-body {
        padding: 24px 20px;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .pricing-cta-btn {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

/* Hero Carousel Styles */
.main-hero-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-slides-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    width: 200%; /* 两个slide，每个100%，总共200% */
}

.hero-slide {
    min-width: 50%; /* 每个slide占wrapper的50%，即容器的100% */
    flex-shrink: 0;
    width: 50%;
    position: relative;
    box-sizing: border-box;
    /* 确保slide内的内容占满整个slide */
    display: flex;
    flex-direction: column;
}

.hero-slide section {
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    display: block;
    flex: 1;
}