/* ===== CSS Variables - 硅基智能暖色调设计风格 ===== */
:root {
    /* 暖色调渐变调色板 */
    --primary: #ff6b6b;
    --primary-dark: #ee5a5a;
    --primary-light: #ff8585;
    --secondary: #ffd93d;
    --accent: #6bcb77;
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f87171;
    
    /* 暖色背景 */
    --bg-primary: #fef9f3;
    --bg-secondary: #fff5eb;
    --bg-card: #ffffff;
    --bg-hover: #fff0e0;
    
    /* Text colors */
    --text-primary: #2d2a26;
    --text-secondary: #6b6560;
    --text-muted: #a39e99;
    
    /* Border & Shadow - softer, warmer */
    --border-color: rgba(255, 107, 107, 0.15);
    --shadow-sm: 0 2px 8px rgba(255, 107, 107, 0.08);
    --shadow-md: 0 4px 16px rgba(255, 107, 107, 0.12);
    --shadow-lg: 0 8px 32px rgba(255, 107, 107, 0.16);
    --shadow-glow: 0 0 40px rgba(255, 107, 107, 0.25);
    
    /* Larger radius for modern feel */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d, #ff6b6b);
    z-index: 10000;
    transition: width 0.1s ease;
}

/* ===== Back to Top Button - Cherry Style ===== */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9998;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 249, 243, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 107, 107, 0.1);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.logo svg {
    color: var(--primary);
    width: 28px;
    height: 28px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 20px;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(255, 107, 107, 0.08);
}

.nav-links a.active {
    color: var(--primary);
    background: rgba(255, 107, 107, 0.12);
    font-weight: 600;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 16px;
    padding: 8px 0;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ff8585);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    border-radius: 24px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 24px;
}

.btn-ghost:hover {
    background: rgba(255, 107, 107, 0.05);
    color: var(--primary);
    border-color: rgba(255, 107, 107, 0.35);
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-white {
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    color: white;
    font-weight: 600;
    padding: 8px 18px;
    font-size: 14px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.25);
}

.btn-white:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.35);
}

.btn-outline-white {
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 24px;
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.4), transparent 70%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 217, 61, 0.35), transparent 70%);
    top: 50%;
    right: -100px;
    animation-delay: -2s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(107, 203, 119, 0.3), transparent 70%);
    bottom: -50px;
    left: 30%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 100px;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 32px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.3); }
    50% { box-shadow: 0 0 0 10px rgba(255, 107, 107, 0); }
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, #ff6b6b, #ffd93d, #6bcb77);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-subtitle .highlight {
    color: var(--primary);
    font-weight: 600;
}

.hero-subtitle .subtitle-desc {
    color: var(--text-muted);
}

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 48px;
}

.hero-tag {
    padding: 6px 14px;
    background: rgba(255, 107, 107, 0.06);
    border: 1px solid rgba(255, 107, 107, 0.12);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
}

.hero-tag:hover,
.hero-tag.active {
    background: rgba(255, 107, 107, 0.12);
    border-color: rgba(255, 107, 107, 0.25);
    color: var(--primary);
}

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

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

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

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ===== Hero Preview ===== */
.hero-preview {
    margin-top: 64px;
    width: 100%;
    max-width: 900px;
    perspective: 1000px;
}

.preview-window {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 107, 107, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(255, 107, 107, 0.15),
        0 0 0 1px rgba(255, 107, 107, 0.05) inset;
    transform: rotateX(5deg);
    transition: transform 0.5s ease;
    backdrop-filter: blur(10px);
}

.preview-window:hover {
    transform: rotateX(0deg);
}

.window-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(255, 249, 243, 0.9);
    border-bottom: 1px solid rgba(255, 107, 107, 0.08);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.window-dots span:nth-child(1) { background: #ff6b6b; }
.window-dots span:nth-child(2) { background: #ffd93d; }
.window-dots span:nth-child(3) { background: #6bcb77; }

.window-tabs {
    display: flex;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.window-tabs .tab {
    padding: 6px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(255, 107, 107, 0.06);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.window-tabs .tab.active {
    color: var(--primary);
    background: rgba(255, 107, 107, 0.12);
    font-weight: 500;
}

.preview-content {
    display: flex;
    min-height: 320px;
}

.preview-sidebar {
    width: 180px;
    padding: 16px;
    background: rgba(255, 249, 243, 0.7);
    border-right: 1px solid rgba(255, 107, 107, 0.06);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 4px;
}

.sidebar-item:hover,
.sidebar-item.active {
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary);
}

.sidebar-item svg {
    opacity: 0.7;
}

.preview-main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Hero 预览窗口 Tab 切换面板 */
.hero-panels {
    position: relative;
}

.hero-panel {
    display: none;
    flex-direction: column;
    gap: 16px;
    animation: heroPanelIn 0.35s ease;
}

.hero-panel.active {
    display: flex;
}

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

/* 数字人面板 */
.digital-preview {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 4px;
}

.digital-stage {
    position: relative;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.digital-avatar {
    font-size: 52px;
    z-index: 1;
}

.digital-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 107, 107, 0.4);
    animation: digitalPulse 1.8s ease-out infinite;
}

@keyframes digitalPulse {
    0% { transform: scale(0.85); opacity: 0.8; }
    100% { transform: scale(1.25); opacity: 0; }
}

.digital-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.digital-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.digital-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.digital-stats span {
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(255, 107, 107, 0.06);
    padding: 3px 8px;
    border-radius: 8px;
}

.digital-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

/* 智能营销面板 */
.marketing-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mkt-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 107, 107, 0.04);
    border: 1px solid rgba(255, 107, 107, 0.1);
    border-radius: 12px;
    transition: all 0.2s;
}

.mkt-card:hover {
    background: rgba(255, 107, 107, 0.08);
    transform: translateX(2px);
}

.mkt-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.mkt-body {
    flex: 1;
}

.mkt-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.mkt-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.mkt-up {
    font-size: 13px;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
}

/* 劳务市场预览面板 (Hero 第 4 tab, 真实数据) */
.market-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.market-preview-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.market-live-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.market-preview-title {
    flex: 1;
    font-weight: 500;
}

.market-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.market-more:hover {
    opacity: 0.7;
}

.market-task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.market-task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 107, 107, 0.04);
    border: 1px solid rgba(255, 107, 107, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.market-task-item:hover {
    background: rgba(255, 107, 107, 0.08);
    transform: translateX(2px);
    border-color: rgba(255, 107, 107, 0.2);
}

.market-task-body {
    flex: 1;
    min-width: 0;
}

.market-task-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.market-task-meta {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
    display: flex;
    gap: 10px;
}

.market-task-meta span {
    white-space: nowrap;
}

.market-task-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
    white-space: nowrap;
}

.market-loading-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 13px;
}

.market-loading-inline .spinner {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.market-error-inline {
    padding: 16px;
    color: #c92a2a;
    font-size: 13px;
    text-align: center;
}

.market-error-inline a {
    color: var(--primary);
    text-decoration: underline;
}

/* 侧边栏子视图切换 (智能助手/历史记录/知识库) */
.side-view {
    display: none;
    flex-direction: column;
    gap: 16px;
    animation: heroPanelIn 0.3s ease;
}

.side-view.active {
    display: flex;
}

/* 历史记录列表 */
.history-list,
.kb-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item,
.kb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 107, 107, 0.04);
    border: 1px solid rgba(255, 107, 107, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:hover,
.kb-item:hover {
    background: rgba(255, 107, 107, 0.08);
    transform: translateX(2px);
}

.history-icon,
.kb-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
}

.history-body,
.kb-body {
    flex: 1;
}

.history-title,
.kb-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.history-meta,
.kb-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.chat-bubble {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.chat-bubble.ai {
    justify-content: flex-start;
}

.chat-bubble.user {
    justify-content: flex-end;
}

.bubble-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.bubble-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.6;
}

.chat-bubble.ai .bubble-content {
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.15);
    color: var(--text-primary);
    border-top-left-radius: 4px;
}

.chat-bubble.user .bubble-content {
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    color: white;
    border-top-right-radius: 4px;
}

.bubble-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.action-btn {
    padding: 6px 12px;
    background: rgba(255, 107, 107, 0.06);
    border: 1px solid rgba(255, 107, 107, 0.12);
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.action-btn:hover {
    background: rgba(255, 107, 107, 0.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(8px); }
}

/* ===== Why Choose Us Section ===== */
.why-choose-us {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.why-choose-us .section-title {
    text-align: center;
    margin-bottom: 64px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 107, 0.08);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.06);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(255, 217, 61, 0.15), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.3s;
}

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

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 25px 50px -12px rgba(255, 107, 107, 0.12),
        0 0 30px rgba(255, 107, 107, 0.08);
    background: var(--bg-card);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.04), transparent);
    transition: left 0.5s;
}

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

.feature-icon {
    font-size: 40px;
    margin-bottom: 8px;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s;
}

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

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.15);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

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

/* ===== Stats Section ===== */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-top: 1px solid rgba(255, 107, 107, 0.06);
    border-bottom: 1px solid rgba(255, 107, 107, 0.06);
}

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

.stat-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 107, 107, 0.08);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.04);
}

.stat-card:hover {
    background: var(--bg-card);
    border-color: rgba(255, 107, 107, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.1);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.stat-card .stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-card .stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 0;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .stat-card .stat-number {
        font-size: 36px;
    }
}

/* ===== Products Section ===== */
.products {
    padding: 120px 0;
    background: var(--bg-primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

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

/* ===== 3D 卡片倾斜效果(鼠标跟随) ===== */
/* 给任意卡片加 .tilt-card 即可启用;兼容 .product-card / .agent-card / .task-card 等 */
.tilt-card,
.product-card,
.agent-card,
.task-card,
.agent-market-card {
    transform-style: preserve-3d;
    will-change: transform;
}
/* 拖动时去掉过渡,保证跟手;松手时恢复过渡,平滑复位 */
.tilting {
    transition: none !important;
}
.tilt-card > * {
    transform: translateZ(20px); /* 子元素轻微浮起,增强立体感(仅显式 opt-in 的卡片) */
}
/* 关闭用户偏好减少动画时的倾斜 */
@media (prefers-reduced-motion: reduce) {
    .tilt-card,
    .tilt-card > * {
        transform: none !important;
        transition: none !important;
    }
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.product-card:hover {
    border-color: rgba(255, 107, 107, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.1);
}

.product-card.featured {
    border-color: rgba(255, 107, 107, 0.2);
    background: linear-gradient(135deg, var(--bg-card), rgba(255, 107, 107, 0.04));
}

.product-card.wide {
    grid-column: span 2;
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.product-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

.hr-icon { background: linear-gradient(135deg, #ff6b6b, #ffd93d); }
.agent-icon { background: linear-gradient(135deg, #ff6b6b, #ff8585); }
.erp-icon { background: linear-gradient(135deg, #6bcb77, #4ade80); }
.crm-icon { background: linear-gradient(135deg, #ff6b6b, #ff8585); }
.labor-icon { background: linear-gradient(135deg, #ffd93d, #ff6b6b); }
.nookai-icon { background: linear-gradient(135deg, #ff6b6b, #ffd93d); }
.notebook-icon { background: linear-gradient(135deg, #ffd93d, #6bcb77); }
.geo-icon { background: linear-gradient(135deg, #6bcb77, #4ade80); }

.product-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-card > p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    margin-bottom: 20px;
}

.feature-list li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-list li::before {
    content: '→';
    color: var(--primary);
    font-weight: 600;
}

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

.product-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

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

.product-link-secondary {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.product-link-secondary:hover {
    color: var(--text-primary);
}

/* ===== Product Showcase Section ===== */
.product-showcase {
    padding: 120px 0;
    background: var(--bg-primary);
}

.showcase-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.showcase-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid rgba(255, 107, 107, 0.08);
    border-radius: var(--radius-xl);
    padding: 48px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.04);
}

.showcase-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.04) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

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

.showcase-card:hover {
    border-color: rgba(255, 107, 107, 0.15);
    box-shadow: 0 20px 60px rgba(255, 107, 107, 0.1);
}

.showcase-card.reverse {
    direction: rtl;
}

.showcase-card.reverse > * {
    direction: ltr;
}

.showcase-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
}

.showcase-icon {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(255, 107, 107, 0.2);
    transition: transform 0.5s ease;
}

.showcase-card:hover .showcase-icon {
    transform: scale(1.05) rotate(2deg);
}

.nookai-gradient {
    background: linear-gradient(135deg, #ff6b6b, #ffd93d, #ff8585);
}

.notebook-gradient {
    background: linear-gradient(135deg, #ffd93d, #6bcb77, #4ade80);
}

.geo-gradient {
    background: linear-gradient(135deg, #6bcb77, #4ade80, #ff6b6b);
}

.showcase-preview {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.preview-tag {
    padding: 8px 16px;
    background: var(--bg-hover);
    border: 1px solid rgba(255, 107, 107, 0.1);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.showcase-card:hover .preview-tag {
    border-color: rgba(255, 107, 107, 0.2);
    color: var(--primary);
}

.showcase-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.showcase-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.showcase-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-secondary);
}

.feature-check {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #6bcb77, #4ade80);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    flex-shrink: 0;
}

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

.showcase-actions .btn {
    padding: 14px 32px;
    font-size: 15px;
}

/* ===== Solutions Section ===== */
.solutions {
    padding: 120px 0;
}

.solutions-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    border-radius: 24px;
    background: transparent;
    border: 1px solid rgba(255, 107, 107, 0.15);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    background: rgba(255, 107, 107, 0.06);
    color: var(--primary);
    border-color: rgba(255, 107, 107, 0.25);
}

.tab-btn.active {
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.solution-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid rgba(255, 107, 107, 0.08);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.04);
}

.solution-info h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.solution-info > p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.solution-metrics {
    display: flex;
    gap: 32px;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.solution-card .solution-visual {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.solution-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 100%;
    max-width: 360px;
}

.visual-card.dark {
    background: var(--bg-secondary);
}

.visual-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.avatar-group {
    display: flex;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    border: 2px solid var(--bg-card);
    margin-left: -8px;
}

.avatar:first-child {
    margin-left: 0;
}

.status-badge {
    padding: 4px 12px;
    background: rgba(107, 203, 119, 0.1);
    border: 1px solid rgba(107, 203, 119, 0.3);
    border-radius: 100px;
    font-size: 12px;
    color: var(--accent);
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
}

.task-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.task-check.checked {
    background: var(--accent);
    border-color: var(--accent);
}

/* Factory Scene */
.factory-scene {
    padding: 20px;
}

.machine-line {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.machine {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--bg-hover);
    border: 2px solid var(--border-color);
    position: relative;
}

.machine.active {
    border-color: var(--accent);
    background: rgba(107, 203, 119, 0.1);
}

.machine.active::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

.machine.warning {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    animation: pulse-warning 1s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(251, 191, 36, 0); }
}

.data-overlay {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.data-point {
    padding: 8px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
}

.data-point.alert {
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Retail Dashboard */
.retail-dashboard {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 160px;
    padding: 20px;
}

.chart-bar {
    flex: 1;
    height: var(--height);
    background: linear-gradient(to top, #ff6b6b, #ff8585);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
    position: relative;
}

.chart-bar.highlight {
    background: linear-gradient(to top, #ffd93d, #ff6b6b);
}

.chart-bar::after {
    content: attr(data-value);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chart-bar:hover::after {
    opacity: 1;
}

/* Security Radar */
.security-radar {
    width: 200px;
    height: 200px;
    position: relative;
    margin: 0 auto;
}

.radar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--border-color);
    border-radius: 50%;
}

.radar-ring:nth-child(1) { width: 60px; height: 60px; }
.radar-ring:nth-child(2) { width: 120px; height: 120px; }
.radar-ring:nth-child(3) { width: 180px; height: 180px; }

.radar-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.radar-dot.safe { background: var(--accent); }
.radar-dot.alert { background: #f87171; animation: pulse 2s ease-in-out infinite; }

.radar-dot:nth-child(4) { top: 30%; left: 40%; }
.radar-dot:nth-child(5) { top: 60%; left: 70%; }
.radar-dot:nth-child(6) { top: 40%; left: 30%; }

.radar-scan {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90px;
    height: 90px;
    transform-origin: 0 0;
    border-right: 2px solid var(--primary);
    border-radius: 0 90px 0 0;
    animation: radar-scan 3s linear infinite;
}

@keyframes radar-scan {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== Agents Section ===== */
.agents {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

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

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    transition: height 0.3s ease;
}

.agent-card:hover::before {
    height: 4px;
}

.agent-card:hover {
    border-color: rgba(255, 107, 107, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.1);
}

.agent-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotate 4s linear infinite;
}

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

.agent-avatar span {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.agent-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.agent-card > p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.agent-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    background: var(--bg-hover);
    border: 1px solid rgba(255, 107, 107, 0.1);
    border-radius: 100px;
    font-size: 12px;
    color: var(--text-secondary);
}

.tag.primary {
    background: rgba(255, 107, 107, 0.08);
    border-color: rgba(255, 107, 107, 0.2);
    color: var(--primary);
}

/* ===== Labor Market Section ===== */
.labor-market {
    padding: 120px 0;
    background: var(--bg-primary);
}

.labor-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.labor-info h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.labor-info > p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.labor-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.labor-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.labor-feature h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.labor-feature p {
    font-size: 14px;
    color: var(--text-secondary);
}

.labor-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.labor-visual {
    display: flex;
    justify-content: center;
}

.market-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 107, 107, 0.1);
    border-radius: var(--radius-xl);
    padding: 24px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.08);
}

.market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.market-header h4 {
    font-size: 18px;
    font-weight: 600;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--accent);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.task-row:hover {
    background: var(--bg-hover);
}

.task-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.task-type {
    font-size: 14px;
    font-weight: 500;
}

.task-price {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

.task-status {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}

.task-status.open {
    background: rgba(107, 203, 119, 0.1);
    color: var(--accent);
}

.task-status.progress {
    background: rgba(255, 107, 107, 0.08);
    color: var(--primary);
}

/* ===== Testimonials ===== */
.testimonials {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 107, 107, 0.08);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.04);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 80px;
    color: rgba(255, 107, 107, 0.08);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    border-color: rgba(255, 107, 107, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.08);
}

.testimonial-stars {
    color: #ffd93d;
    font-size: 18px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.author-info h4 {
    font-size: 15px;
    font-weight: 600;
}

.author-info span {
    font-size: 13px;
    color: var(--text-muted);
}

.testimonial-metrics {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.testimonial-metrics span {
    padding: 6px 12px;
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.15);
    border-radius: 100px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

/* ===== Partners ===== */
/* ===== About Section ===== */
.about {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-info h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.about-info > p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-milestones {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.milestone {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 107, 107, 0.08);
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.04);
}

.milestone:hover {
    border-color: rgba(255, 107, 107, 0.2);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.06);
}

.milestone-year {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    min-width: 48px;
}

.milestone-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.about-visual {
    display: flex;
    justify-content: center;
    position: sticky;
    top: 100px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 107, 107, 0.08);
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.04);
}

.about-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.about-avatars {
    display: flex;
}

.about-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
    border: 2px solid var(--bg-card);
    margin-left: -10px;
}

.about-avatar:first-child {
    margin-left: 0;
}

.about-avatar-more {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.about-team-label {
    font-size: 13px;
    color: var(--text-muted);
}

.about-stats-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.about-stat-item {
    text-align: center;
}

.about-stat-num {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.about-stat-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.about-offices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.office-tag {
    padding: 6px 12px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 120px 0;
    background: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

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

.contact-info .contact-intro {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: -20px;
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 107, 107, 0.08);
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.04);
}

.contact-method:hover {
    border-color: rgba(255, 107, 107, 0.2);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.06);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(255, 107, 107, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-detail h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-detail span {
    font-size: 14px;
    color: var(--text-secondary);
}

.wechat-qr {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px;
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 107, 107, 0.08);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.wechat-qr:hover {
    border-color: rgba(255, 107, 107, 0.2);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.06);
}

.qr-image-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-hover);
    border: 1px dashed rgba(255, 107, 107, 0.3);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.qr-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

.qr-hint {
    font-size: 11px;
    opacity: 0.7;
    line-height: 1.4;
}

.qr-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qr-info h4 {
    font-size: 15px;
    font-weight: 600;
}

.qr-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 107, 107, 0.08);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.04);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 107, 107, 0.12);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

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

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

.form-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: -8px;
}

/* ===== 飞书问卷嵌入 ===== */
.feishu-form-wrap {
    position: relative;
    width: 100%;
    min-height: 580px;
}

.feishu-form-iframe {
    width: 100%;
    min-height: 580px;
    border: none;
    border-radius: var(--radius-md);
    display: none;
    background: var(--bg-primary);
}

.form-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    color: var(--text-muted);
}

.form-loading,
.form-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.form-fallback {
    gap: 6px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 107, 107, 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 8px;
}

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

.form-placeholder h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 12px;
}

.form-placeholder p {
    font-size: 14px;
    color: var(--text-secondary);
}

.form-placeholder-hint {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 18px;
}

/* ===== CTA Section ===== */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    animation: rotate 30s linear infinite;
}

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

.cta-content h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.cta-content > p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

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

.cta-feature {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
}

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

/* ===== Testimonials Section ===== */
.testimonials {
    padding: 100px 0;
    background: var(--bg-primary);
}

.testimonials .section-title {
    text-align: center;
    margin-bottom: 64px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 107, 107, 0.08);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.04);
}

.testimonial-card:hover {
    border-color: rgba(255, 107, 107, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.08);
}

.testimonial-text {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.author-title {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== Footer ===== */
.footer {
    padding: 80px 0 32px;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 107, 107, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

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

.footer-brand > p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.social-link {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 107, 107, 0.1);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    border-color: rgba(255, 107, 107, 0.2);
    color: var(--primary);
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 107, 107, 0.08);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

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

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

/* ===== Enhanced Animations & Effects ===== */

/* Glow effect for featured cards */
.product-card.featured::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d, #6bcb77);
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card.featured:hover::after {
    opacity: 0.3;
}

/* Stagger animation delays */
.product-card:nth-child(1) { transition-delay: 0s; }
.product-card:nth-child(2) { transition-delay: 0.05s; }
.product-card:nth-child(3) { transition-delay: 0.1s; }
.product-card:nth-child(4) { transition-delay: 0.15s; }
.product-card:nth-child(5) { transition-delay: 0.2s; }
.product-card:nth-child(6) { transition-delay: 0.25s; }
.product-card:nth-child(7) { transition-delay: 0.3s; }
.product-card:nth-child(8) { transition-delay: 0.35s; }

.agent-card:nth-child(1) { transition-delay: 0s; }
.agent-card:nth-child(2) { transition-delay: 0.05s; }
.agent-card:nth-child(3) { transition-delay: 0.1s; }
.agent-card:nth-child(4) { transition-delay: 0.15s; }
.agent-card:nth-child(5) { transition-delay: 0.2s; }
.agent-card:nth-child(6) { transition-delay: 0.25s; }
.agent-card:nth-child(7) { transition-delay: 0.3s; }
.agent-card:nth-child(8) { transition-delay: 0.35s; }

/* Enhanced hover states */
.testimonial-card:hover .author-avatar {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.author-avatar {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Smooth card transitions */
.product-card, .showcase-card, .agent-card, .testimonial-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.4s ease, 
                border-color 0.3s ease;
}

/* Button ripple effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

/* Gradient border animation */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-badge {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

/* Enhanced showcase card hover */
.showcase-card:hover .showcase-content h3 {
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Live indicator pulse */
.live-indicator {
    animation: pulse 2s ease-in-out infinite;
}

/* Smooth tab transitions */
.tab-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Enhanced form focus states */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.1), 0 0 0 3px rgba(255, 107, 107, 0.08);
}

/* Milestone timeline connector */
.about-milestones {
    position: relative;
}

.about-milestones::before {
    content: '';
    position: absolute;
    left: 39px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #ff6b6b, #ffd93d);
    opacity: 0.3;
}

.milestone {
    position: relative;
    z-index: 1;
}

/* Contact method icon glow */
.contact-method:hover .contact-icon {
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    color: white;
}

.contact-icon {
    transition: all 0.3s ease;
}

/* Footer link underline animation */
.footer-links a {
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* ===== Particle Canvas ===== */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

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

/* ===== Enhanced Hero Badge ===== */
.hero-badge {
    position: relative;
    overflow: hidden;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: badge-shine 3s ease-in-out infinite;
}

@keyframes badge-shine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* ===== Enhanced Card Glow ===== */
.product-card::before,
.showcase-card::before,
.agent-card::before,
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 107, 107, 0.05), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.product-card:hover::before,
.showcase-card:hover::before,
.agent-card:hover::before,
.testimonial-card:hover::before {
    opacity: 1;
}

/* ===== Task Row Enhanced Styles ===== */
.task-row {
    position: relative;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.task-row:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

/* ===== Partner Logo Float Animation ===== */
@keyframes logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ===== Enhanced Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff6b6b, #ffd93d);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff8585, #ffd93d);
}

/* ===== Selection Color ===== */
::selection {
    background: rgba(255, 107, 107, 0.2);
    color: var(--text-primary);
}

/* ===== Enhanced Focus States ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ===== Loading Skeleton Animation ===== */
@keyframes skeleton-loading {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-hover) 50%, var(--bg-card) 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* ===== Enhanced Mobile Menu ===== */
.mobile-menu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ===== Smooth Image Loading ===== */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

/* Toast animation enhancement */
.toast {
    animation: toast-slide-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes toast-slide-in {
    from {
        transform: translateX(-50%) translateY(100px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-card.wide {
        grid-column: span 2;
    }
    
    .showcase-card {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .showcase-card.reverse {
        direction: ltr;
    }
    
    .solution-card {
        grid-template-columns: 1fr;
    }
    
    .labor-content {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card.wide {
        grid-column: span 1;
    }
    
    .showcase-content h3 {
        font-size: 24px;
    }
    
    .showcase-icon {
        width: 80px;
        height: 80px;
    }
    
    .solution-metrics {
        flex-direction: column;
        gap: 16px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .stat-item {
        min-width: 120px;
    }
    
    .about-milestones::before {
        left: 31px;
    }
    
    .milestone-year {
        font-size: 16px;
        min-width: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-card {
        padding: 24px;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 12px;
    }
    
    .showcase-actions {
        flex-direction: column;
    }
    
    .showcase-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-desc {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .product-card,
    .showcase-card,
    .solution-card,
    .testimonial-card {
        padding: 24px;
    }
    
    .showcase-icon {
        width: 64px;
        height: 64px;
    }
    
    .agent-card {
        padding: 24px 16px;
    }
    
    .market-card {
        padding: 16px;
    }
    
    .task-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .about-card {
        padding: 24px;
    }
    
    .about-stats-row {
        gap: 16px;
    }
    
    .about-stat-num {
        font-size: 20px;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .gradient-orb {
        animation: none;
    }
    
    .avatar-ring {
        animation: none;
    }
    
    .radar-scan {
        animation: none;
    }
    
    .mouse::before {
        animation: none;
    }
}

/* ===== Reduce Motion Class (JS toggled) ===== */
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* ===== Image Loading States ===== */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .hero-bg,
    .scroll-indicator,
    .back-to-top,
    .scroll-progress,
    .page-loader,
    .cta,
    .footer {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .product-card,
    .showcase-card,
    .testimonial-card {
        break-inside: avoid;
        border: 1px solid #ddd;
        box-shadow: none !important;
    }
}

/* ===== High Contrast Mode Support ===== */
@media (prefers-contrast: high) {
    :root {
        --border-color: rgba(255,255,255,0.3);
        --text-secondary: #b0b8c4;
        --text-muted: #8a94a3;
    }
    
    .product-card,
    .showcase-card,
    .agent-card,
    .testimonial-card {
        border-width: 2px;
    }
}

/* ===== Dark Mode Support (System) ===== */
@media (prefers-color-scheme: dark) {
    /* Already dark by default, but ensure consistency */
    :root {
        color-scheme: dark;
    }
}

/* ===== Touch Device Optimizations ===== */
.touch-device .product-card:hover,
.touch-device .showcase-card:hover,
.touch-device .agent-card:hover {
    transform: none !important;
}

.touch-device .product-card.touch-active,
.touch-device .showcase-card.touch-active,
.touch-device .agent-card.touch-active {
    transform: scale(0.98) !important;
    transition: transform 0.15s ease !important;
}

.touch-device .partner-logo {
    animation: none;
}

/* ===== Keyboard Navigation Styles ===== */
.keyboard-navigation a:focus,
.keyboard-navigation button:focus,
.keyboard-navigation input:focus {
    outline: 3px solid var(--primary) !important;
    outline-offset: 3px !important;
}

/* ===== Tab Hidden - Pause Animations ===== */
.tab-hidden .gradient-orb,
.tab-hidden .avatar-ring,
.tab-hidden .radar-scan,
.tab-hidden .live-indicator,
.tab-hidden .ticker-content {
    animation-play-state: paused !important;
}

/* ===== Page Loader ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary, #0f0f23);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

/* ===== Skip to Content Link (Accessibility) ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    z-index: 100000;
    transition: top 0.3s ease;
}

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