html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

@media (max-width: 991px) {
    html {
        scroll-snap-type: none;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    scroll-snap-align: start;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(96, 165, 250, 0.1) 0%, transparent 40%),
        linear-gradient(135deg, var(--background) 0%, var(--surface) 100%);
    animation: gradientShift 15s ease infinite;
}

/* 渐变光球容器 */
.hero-gradient-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

/* 光球1 - 左上蓝色 */
.orb-1 {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.1) 30%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: orbFloat1 20s ease-in-out infinite;
}

/* 光球2 - 右下深蓝 */
.orb-2 {
    position: absolute;
    bottom: -30%;
    right: -20%;
    width: 70vw;
    height: 70vw;
    max-width: 900px;
    max-height: 900px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0.08) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat2 25s ease-in-out infinite;
}

/* 光球3 - 中心上方浅蓝 */
.orb-3 {
    position: absolute;
    top: 10%;
    right: 20%;
    width: 40vw;
    height: 40vw;
    max-width: 500px;
    max-height: 500px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, rgba(96, 165, 250, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    animation: orbFloat3 18s ease-in-out infinite;
}

/* 光球漂浮动画 */
@keyframes orbFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translate(25%, 30%) scale(1.15);
        opacity: 1;
    }
    50% {
        transform: translate(15%, 50%) scale(1.1);
        opacity: 0.85;
    }
    75% {
        transform: translate(-15%, 25%) scale(1.12);
        opacity: 0.95;
    }
}

@keyframes orbFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    33% {
        transform: translate(-25%, -20%) scale(1.2);
        opacity: 0.9;
    }
    66% {
        transform: translate(-35%, -10%) scale(0.9);
        opacity: 0.75;
    }
}

@keyframes orbFloat3 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-30%, 35%) rotate(220deg) scale(1.25);
        opacity: 1;
    }
}

/* 网格背景 */
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

/* 微光粒子 */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(59, 130, 246, 0.5);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
}

.particle:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 18s; }
.particle:nth-child(2) { left: 12%; animation-delay: 2s; animation-duration: 22s; }
.particle:nth-child(3) { left: 19%; animation-delay: 4s; animation-duration: 20s; }
.particle:nth-child(4) { left: 26%; animation-delay: 1s; animation-duration: 19s; }
.particle:nth-child(5) { left: 33%; animation-delay: 3s; animation-duration: 21s; }
.particle:nth-child(6) { left: 40%; animation-delay: 5s; animation-duration: 17s; }
.particle:nth-child(7) { left: 47%; animation-delay: 7s; animation-duration: 23s; }
.particle:nth-child(8) { left: 54%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(9) { left: 61%; animation-delay: 4s; animation-duration: 20s; }
.particle:nth-child(10) { left: 68%; animation-delay: 6s; animation-duration: 22s; }
.particle:nth-child(11) { left: 75%; animation-delay: 1s; animation-duration: 19s; }
.particle:nth-child(12) { left: 82%; animation-delay: 3s; animation-duration: 21s; }
.particle:nth-child(13) { left: 89%; animation-delay: 8s; animation-duration: 17s; }
.particle:nth-child(14) { left: 96%; animation-delay: 5s; animation-duration: 23s; }
.particle:nth-child(15) { left: 8%; animation-delay: 9s; animation-duration: 20s; }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(10vh) scale(1);
    }
    100% {
        transform: translateY(-10vh) scale(0);
        opacity: 0;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%, 100% 100%, 40% 20%;
    }
    50% {
        background-position: 100% 50%, 0% 0%, 60% 80%;
    }
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 32px;
}

.agent-chat-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 16px;
    margin: 40px auto 24px;
    max-width: 800px;
    min-width: 640px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: stretch;
    gap: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    height: 140px;
}

.agent-chat-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 96, 0.15);
}

.agent-chat-box .agent-chat-input-wrap {
    flex: 1;
    display: flex;
    align-items: stretch;
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    min-width: 0;
}

.agent-chat-box .agent-chat-input-wrap:focus-within {
    border: none;
    box-shadow: none;
}

.agent-chat-input {
    flex: 1;
    width: 100%;
    border: none;
    background: transparent;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    outline: none;
    padding: 0;
    min-width: 0;
    resize: none;
    field-sizing: content;
    font-family: inherit;
    align-self: stretch;
}

.agent-chat-input::placeholder {
    color: var(--text-tertiary);
}

.agent-chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--primary);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    align-self: flex-end;
}

.agent-chat-send:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
}

.agent-chat-send:active {
    transform: scale(0.95);
}

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

.hero h1 {
    font-size: 80px;
    font-weight: bold;
    margin-bottom: 32px;
    line-height: 1.15;
    font-family: 'Space Grotesk', sans-serif;
}

.hero h1 .title-first-line {
    font-size: 80px;
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease-out 0.3s forwards;
}

.hero h1 .title-second-line {
    font-size: 80px;
    display: block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s ease-out 0.6s forwards;
    position: relative;
}

/* 渐变流光效果 */
.hero h1 .title-second-line::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
    animation-delay: 1.5s;
    pointer-events: none;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 48px;
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.2s forwards;
}

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

.cta-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn {
    padding: 16px 48px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

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

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Hero section ghost buttons - dark mode override */
[data-theme="dark"] .hero .btn-primary,
[data-theme="dark"] .hero .btn-secondary {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

[data-theme="dark"] .hero .btn-primary:hover,
[data-theme="dark"] .hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Scroll Navigation - Hero section arrow */
.scroll-indicator {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    z-index: 100;
    animation: bounce 2s infinite;
}

.scroll-indicator:hover {
    opacity: 0.8;
}

.scroll-indicator svg {
    color: var(--text-secondary);
    transition: color 0.3s ease;
    width: 24px;
    height: 24px;
}

.scroll-indicator:hover svg {
    color: var(--primary);
}

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

/* Section Navigation - Separate containers for up and down arrows */
.section-nav-container {
    position: fixed;
    left: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: opacity 0.3s ease;
}

.section-nav-container svg {
    color: var(--text-secondary);
    transition: color 0.3s ease;
    width: 24px;
    height: 24px;
}

.section-nav-container:hover svg {
    color: var(--primary);
    transform: scale(1.1);
}

/* Up arrow - below nav bar with bounce */
.section-nav-container.up {
    top: 88px;
    animation: bounceUp 2s infinite;
}

/* Down arrow - at bottom with bounce */
.section-nav-container.down {
    bottom: 12px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { 
        transform: translateX(-50%) translateY(0) scale(1); 
        opacity: 0.3;
    }
    50% { 
        transform: translateX(-50%) translateY(-10px) scale(0.7); 
        opacity: 0.9;
    }
}

@keyframes bounceUp {
    0%, 100% { 
        transform: translateX(-50%) translateY(0) scale(1); 
        opacity: 0.3;
    }
    50% { 
        transform: translateX(-50%) translateY(10px) scale(0.7); 
        opacity: 0.9;
    }
}

/* Responsive - hide arrows on small screens or short viewports */
@media (max-width: 768px), (max-height: 600px) {
    .scroll-indicator,
    .section-nav-container {
        display: none !important;
    }
}

/* Section Styles */
section {
    position: relative;
    padding: 128px 32px;
    max-width: 1440px;
    margin: 0 auto;
}

section.hero {
    max-width: unset;
}

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

.section-header h2 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 20px;
    color: var(--text-secondary);
}

/* Product Visualization Modal */
.viz-modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px;
    margin-top: 64px;
}

/* Product Showcase Section Styles - Full Page Scroll */
.product-section {
    background: var(--surface);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border);
}

.product-section h4 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--primary);
}

.product-section p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

[data-theme="dark"] .product-section {
    background: var(--surface);
}

.product-showcase {
    min-height: 100vh;
    min-height: 100dvh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    padding: 80px 60px;
    background: var(--background);
    position: relative;
}

@media (max-width: 991px) {
    .product-showcase {
        min-height: auto;
        scroll-snap-align: none;
        display: block;
        align-items: flex-start;
        padding-top: 120px;
        padding-bottom: 40px;
    }
}

.product-container {
    max-width: 1440px;
    margin: 0 auto;
    width: 98%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2%;
    align-items: center;
}

/* 奇数屏（SAM、SmarTag）：文案左，可视化右 */
#product-sam,
#product-smartag {
    direction: ltr;
}

#product-sam .product-container,
#product-smartag .product-container {
    grid-template-columns: 48% 50%;
}

/* 产业决策智能体（hero后第一屏）：可视化左，文案右 */
#product-agent .product-container {
    grid-template-columns: 42% 56%;
    gap: 2%;
}

#product-agent .product-content {
    order: 2;
}

#product-agent .product-visualization {
    order: 1;
}

/* 偶数屏（供应链、财报）：可视化左，文案右 */
#product-supply,
#product-financial {
    direction: ltr;
}

#product-supply .product-container,
#product-financial .product-container {
    grid-template-columns: 42% 56%;
    gap: 2%;
}

/* 偶数屏交换左右顺序 */
#product-supply .product-content,
#product-financial .product-content {
    order: 2;
}

#product-supply .product-visualization,
#product-financial .product-visualization {
    order: 1;
}

.product-content {
    order: 1;
}

.product-actions {
    text-align: right;
}

.product-visualization {
    order: 2;
}

.product-header {
    margin-bottom: 12px;
}

.product-title {
    font-size: 34px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.2;
    position: relative;
    padding-left: 20px;
}

/* 标题左侧装饰线 */
.product-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 2px;
}

#product-agent .product-title::before {
    background: linear-gradient(180deg, #EC4899 0%, #BE185D 100%);
}

#product-sam .product-title::before {
    background: linear-gradient(180deg, #3B82F6 0%, #1E3A8A 100%);
}

#product-supply .product-title::before {
    background: linear-gradient(180deg, #10B981 0%, #059669 100%);
}

#product-smartag .product-title::before {
    background: linear-gradient(180deg, #8B5CF6 0%, #6D28D9 100%);
}

#product-financial .product-title::before {
    background: linear-gradient(180deg, #F59E0B 0%, #D97706 100%);
}

.product-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding: 14px;
    background: var(--surface);
    border-radius: 12px;
}

.product-features {
    margin-bottom: 24px;
}

.product-features h3 {
    display: none;
}

/* Agent Scenarios - Tag style */
.agent-scenarios {
    margin-bottom: 20px;
}

.scenarios-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scenarios-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.scenario-tag {
    padding: 6px 14px;
    background: rgba(248, 251, 255);
    border: 1px solid var(--primary-dark);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary-dark);
    transition: all 0.3s ease;
}

.scenario-tag:hover {
    background: var(--primary-dark);
    border-color:var(--primary-dark);
    color: white;
}

/* Agent Tools - Card style */
.agent-tools {
    margin-bottom: 24px;
}

.tools-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.tool-card:hover {
    border-color: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.08);
    transform: translateY(-2px);
}

.tool-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-dark);
    flex-shrink: 0;
}

.tool-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
    padding-left: 10px;
    padding-right: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
}

.feature-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

#product-sam .feature-dot {
    background: #3B82F6;
}

#product-supply .feature-dot {
    background: #10B981;
}

#product-smartag .feature-dot {
    background: #8B5CF6;
}

#product-financial .feature-dot {
    background: #F59E0B;
}

#product-agent .feature-dot {
    background: #3B82F6;
}

.feature-text {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.4;
}

.product-detail-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    background: transparent;
    border: 1px solid var(--primary);
    text-decoration: none;
    margin-top: 20px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.product-detail-link:hover {
    background: var(--primary);
    color: white;
}

.product-use-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: white;
    background: var(--primary);
    text-decoration: none;
    margin-top: 20px;
    margin-left: 12px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.product-use-link:hover {
    opacity: 0.85;
}

.product-services h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-tag {
    font-size: 11px;
    font-weight: 500;
    color: var(--primary);
    text-transform: none;
    letter-spacing: 0;
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

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

.service-card {
    padding: 8px 12px;
    background: var(--surface);
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.08);
}

.service-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.service-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

.product-visualization {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
}

.viz-container {
    position: relative;
    width: 100%;
    padding-top: 55.73%;
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.agent-showcase-card {
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.agent-showcase-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.agent-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #6366F1 100%);
    border-radius: 12px;
    color: white;
}

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

.agent-showcase-messages {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agent-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.agent-message.agent-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary) 0%, #6366F1 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.agent-message.agent-bot {
    align-self: flex-start;
    background: rgba(59, 130, 246, 0.1);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.agent-showcase-input {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

.agent-showcase-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    background: var(--background);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.agent-showcase-input input:focus {
    border-color: var(--primary);
}

.agent-showcase-input button {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #6366F1 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.agent-showcase-input button:hover {
    transform: scale(1.05);
}

.agent-showcase-input button:active {
    transform: scale(0.95);
}

.viz-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.viz-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.viz-slide .viz-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.viz-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
}

.viz-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.viz-nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.4;
    cursor: pointer;
    transition: all 0.3s ease;
}

.viz-nav-dot:hover {
    opacity: 0.7;
}

.viz-nav-dot.active {
    opacity: 1;
    transform: scale(1.2);
}

.viz-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--text-secondary);
}

.viz-placeholder svg {
    opacity: 0.5;
    margin-bottom: 16px;
}

.viz-placeholder p {
    font-size: 14px;
    opacity: 0.7;
}

.viz-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.viz-modal.active {
    display: flex;
}

.viz-modal img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 8px;
}

.viz-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.viz-modal-close:hover {
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .product-showcase {
        padding: 60px 40px;
    }

    .product-container {
        gap: 40px;
    }

    .viz-container {
        height: auto;
    }

    .product-title {
        font-size: 28px;
    }
}

@media (max-width: 991px) {
    .product-showcase {
        padding: 48px 32px;
    }

    .product-container {
        grid-template-columns: 1fr !important;
        gap: 32px;
    }

    .product-content {
        order: 1 !important;
    }

    .product-visualization {
        order: 2 !important;
        display: none;
    }

    .viz-container {
        height: auto;
    }

    .product-title {
        font-size: 28px;
    }

    .feature-grid,
    .service-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .product-showcase {
        padding: 40px 20px;
    }

    .viz-container {
        height: auto;
    }

    .product-title {
        font-size: 28px;
        padding-left: 16px;
    }

    .product-title::before {
        width: 3px;
        top: 6px;
        bottom: 6px;
    }

    .product-description {
        padding: 16px;
        font-size: 14px;
    }

    .feature-item {
        padding: 6px 0 6px 24px;
    }

    .feature-text {
        font-size: 13px;
    }

    .feature-dot {
        width: 5px;
        height: 5px;
    }

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

/* Footer - 首页特有补充 */
footer {
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
}

.footer-bottom p a {
    color: inherit;
    font-size: inherit;
    text-decoration: none;
    font-family: inherit;
}

/* Footer Responsive */
@media (max-width: 991px) {
    footer {
        min-height: auto;
        scroll-snap-align: none;
        display: block;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 48px 20px 24px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 48px;
    }

    .hero h1 .title-first-line,
    .hero h1 .title-second-line {
        font-size: 48px;
    }

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

    .hero-content {
        padding: 0 16px;
    }

    .agent-chat-box {
        margin: 24px 0;
        padding: 12px;
        min-width: 380px;
    }

    .agent-chat-input {
        font-size: 15px;
    }

    .agent-chat-send {
        width: 36px;
        height: 36px;
    }

    .section-header h2 {
        font-size: 36px;
    }

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

    .demo-content {
        padding: 24px;
    }

    .demo-content.has-product-detail {
        padding: 16px;
    }

    .product-section {
        padding: 16px;
    }

    .product-section h4 {
        font-size: 18px;
    }

    .product-section p {
        font-size: 14px;
    }

    .data-sample-grid {
        grid-template-columns: 1fr;
    }

    .use-case-item {
        padding: 16px;
    }

    .use-case-item h5 {
        font-size: 15px;
    }

    .use-case-item p {
        font-size: 13px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 36px;
        line-height: 1.2;
    }

    .hero h1 .title-first-line,
    .hero h1 .title-second-line {
        font-size: 36px;
        margin-bottom: 4px;
    }

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

    .hero-content {
        padding: 0 12px;
    }

    .hero {
        min-height: 100vh;
        padding: 0 16px;
    }

    .product-showcase {
        padding: 40px 12px !important;
    }

    .product-title {
        font-size: 24px !important;
        padding-left: 12px !important;
    }

    .product-description {
        padding: 12px !important;
        font-size: 13px !important;
    }

    .service-card {
        padding: 12px !important;
    }

    .service-card h4 {
        font-size: 13px !important;
    }

    .service-card p {
        font-size: 11px !important;
    }

    .feature-text {
        font-size: 12px !important;
    }
}

@media (max-width: 768px) {
    .viz-nav-dot {
        width: 14px;
        height: 14px;
    }

    .viz-nav {
        gap: 12px;
        margin-top: 16px;
    }

    .product-detail-link,
    .product-use-link {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .viz-nav-dot:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

@media (max-width: 480px) {
    .product-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        text-align: left;
    }

    .product-detail-link,
    .product-use-link {
        width: 100%;
        margin-left: 0;
        margin-top: 0;
        padding: 14px 20px;
    }
}

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

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