/* 智眸物流盒子 - 样式文件 */

:root {
    --brand-blue: #2657FD;
    --brand-black: #000000;
    --brand-gray: #666666;
    --brand-light-gray: #999999;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.1rem;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.gradient-text {
    background: linear-gradient(135deg, #2657FD 0%, #64B5F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-effect {
    box-shadow: 0 0 20px rgba(38, 87, 253, 0.3);
}

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

.bento-card {
    background: rgba(38, 87, 253, 0.05);
    border: 1px solid rgba(38, 87, 253, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.bento-card:hover {
    background: rgba(38, 87, 253, 0.1);
    border-color: rgba(38, 87, 253, 0.4);
    transform: translateY(-2px);
}

.hero-bg {
    background: radial-gradient(ellipse at center, rgba(38, 87, 253, 0.1) 0%, transparent 70%);
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(38, 87, 253, 0.5), transparent);
    margin: 4rem 0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #2657FD;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e47d1;
}

/* Scenario tab styles */
.scenario-tab.active {
    background: #2657FD !important;
    color: white !important;
}

.scenario-content {
    display: none;
}

.scenario-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes scaleGentle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

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

@keyframes countUp {
    from { 
        opacity: 0;
        transform: scale(0.5);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gradientBorder {
    0% { border-color: #2657FD; }
    50% { border-color: #64B5F6; }
    100% { border-color: #2657FD; }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-scale-gentle {
    animation: scaleGentle 2s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin 3s linear infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0,-4px,0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

.counter-animation {
    animation: countUp 0.8s ease-out;
}

.animated-border {
    animation: gradientBorder 2s ease-in-out infinite;
}

.parallax-element {
    will-change: transform;
}

/* Video styles */
.hero-bg video {
    min-width: 120%;
    min-height: 120%;
    width: 120%;
    height: 120%;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#hero {
    overflow: hidden;
    position: relative;
}

.product-video {
    width: 80%;
    margin-top: -10vh;
    margin-bottom: -10vh;
    z-index: -1;
}

.product-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 10vh 5vh rgb(0, 0, 0);
    z-index: 1;
    border-radius: 12px;
}

/* Container and layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(38, 87, 253, 0.2);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Section styles */
section {
    padding: 5rem 0;
}

.bg-dark {
    background: rgba(17, 17, 17, 0.3);
}

/* Typography */
.text-super {
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 900;
}

.text-mega {
    font-size: 6rem;
    line-height: 0.9;
    font-weight: 900;
}

.text-hero {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 900;
}

/* Definition box styles */
.definition-box {
    background: linear-gradient(135deg, rgba(38, 87, 253, 0.1) 0%, rgba(100, 181, 246, 0.05) 100%);
    border: 2px solid rgba(38, 87, 253, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.definition-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, var(--brand-blue), transparent, var(--brand-blue));
    border-radius: 16px;
    z-index: -1;
    animation: gradientBorder 3s ease-in-out infinite;
}

/* Timeline styles */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--brand-blue), transparent);
}

.timeline-item {
    position: relative;
    margin: 3rem 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--brand-blue);
    border-radius: 50%;
    border: 4px solid #000;
    z-index: 10;
}

.timeline-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.timeline-content.reverse {
    direction: rtl;
}

.timeline-content.reverse > * {
    direction: ltr;
}

/* Responsive design for wide screens only */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .text-super {
        font-size: 3rem;
    }
    
    .text-mega {
        font-size: 4rem;
    }
    
    .text-hero {
        font-size: 2.5rem;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .timeline-line {
        left: 2rem;
    }
    
    .timeline-dot {
        left: 2rem;
    }
    
    .nav-links {
        display: none;
    }
}

/* 新增内嵌动画效果 */
/* 快递柜对比动画 */
@keyframes packageFlow {
    0% { transform: translateX(-100%) scale(0.8); opacity: 0; }
    50% { transform: translateX(0) scale(1); opacity: 1; }
    100% { transform: translateX(50%) scale(0.8); opacity: 0.7; }
}

@keyframes flexibilityShow {
    0%, 50% { transform: scale(1) rotate(0deg); opacity: 1; }
    25% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* 批量操作动画 */
@keyframes packageDrop {
    0% { transform: translateY(-20px) scale(1.2); opacity: 0; }
    30% { transform: translateY(0) scale(1); opacity: 1; }
    60% { transform: translateY(5px) scale(0.95); }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes scanningCircle {
    0% { transform: scale(0.8); opacity: 0; border-color: #2657FD; }
    50% { transform: scale(1.2); opacity: 1; border-color: #64B5F6; }
    100% { transform: scale(1.5); opacity: 0; border-color: #2657FD; }
}

@keyframes projectionLight {
    0% { transform: scale(0); opacity: 0; background: #2657FD; }
    50% { transform: scale(1); opacity: 0.8; background: #64B5F6; }
    100% { transform: scale(1.2); opacity: 0; background: #2657FD; }
}

/* 寄件功能语音波纹动画 */
@keyframes voiceWave {
    0% { transform: scale(0.8); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(1.8); opacity: 0; }
}

@keyframes microphonePulse {
    0%, 100% { transform: scale(1); color: #64B5F6; }
    50% { transform: scale(1.1); color: #2657FD; }
}

/* SOP云端数据流动画 */
@keyframes cloudDataFlow {
    0% { transform: translateY(-10px) scale(0.9); opacity: 0; }
    50% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(10px) scale(0.9); opacity: 0; }
}

@keyframes dataTransfer {
    0% { transform: translateX(-50px) scale(0); opacity: 0; }
    50% { transform: translateX(0) scale(1); opacity: 1; }
    100% { transform: translateX(50px) scale(0); opacity: 0; }
}

@keyframes arProjection {
    0% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1) rotate(180deg); opacity: 1; }
    100% { transform: scale(1.2) rotate(360deg); opacity: 0; }
}

/* 动画类 */
.animate-package-flow {
    animation: packageFlow 3s ease-in-out infinite;
}

.animate-flexibility {
    animation: flexibilityShow 4s ease-in-out infinite;
}

.animate-package-drop {
    animation: packageDrop 2s ease-out infinite;
    animation-delay: var(--delay, 0s);
}

/* 批量包裹下落动画 */
.animate-batch-packages-drop {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 36px;

    flex-shrink: 0;
    flex-grow: 0;

}

.batch-group {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

}




.package-item {
    position: absolute;
    font-size: 2.2rem;

}

/* 第一批包裹位置 */
.batch-1 .package-item:nth-child(1) { left: -1.5rem; top: -1rem; animation: packageDropInBatch 1.5s ease-out infinite; }
.batch-1 .package-item:nth-child(2) { left: 0rem; top: -0.9rem; animation: packageDropInBatch 1.5s ease-out infinite; animation-delay: 0.06s; }
.batch-1 .package-item:nth-child(3) { left: 1.5rem; top: -0.8rem; animation: packageDropInBatch 1.5s ease-out infinite; animation-delay: 0.12s; }
.batch-1 .package-item:nth-child(4) { left: 3rem; top: -0.7rem; animation: packageDropInBatch 1.5s ease-out infinite; animation-delay: 0.18s; }




@keyframes packageDropInBatch {
    0% { 
        transform: translateY(-20px) ; 
        opacity: 0; 
    }
    50% { 
        transform: translateY(0px) ; 
        opacity: 1; 
    }
    100% { 
        transform: translateY(0px); 
        opacity: 1; 
    }
}

.animate-scanning {
    position: relative;
}



.animate-voice-wave {
    position: relative;
}

.animate-voice-wave::before,
.animate-voice-wave::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #2657FD;
    border-radius: 50%;
    animation: voiceWave 2s ease-out infinite;
}

.animate-voice-wave::after {
    animation-delay: 0.5s;
    border-color: #64B5F6;
}

.animate-microphone {
    animation: microphonePulse 1.5s ease-in-out infinite;
}

.animate-cloud-flow {
    animation: cloudDataFlow 3s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}



.animate-ar-projection {
    position: relative;
}

/* 滚动触发动画类 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 终极愿景 Section 样式 */
#vision {
    position: relative;
    background: linear-gradient(135deg, #000000 0%, #1a1a2e 50%, #16213e 100%);
}

#vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(38, 87, 253, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(147, 51, 234, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

#vision .gradient-text {
    background: linear-gradient(135deg, #2657FD 0%, #64B5F6 50%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#vision .group:hover .animate-float {
    animation-duration: 2s;
    animation-timing-function: ease-in-out;
}

/* ROI计算器样式 */
.roi-calculator input {
    transition: all 0.3s ease;
}

.roi-calculator input:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 2px rgba(38, 87, 253, 0.2);
    outline: none;
}

.roi-calculator .result-display {
    transition: all 0.2s ease;
}

/* ROI结果高亮动画 */
@keyframes roiHighlight {
    0% { 
        transform: scale(1); 
        background: rgba(38, 87, 253, 0.1);
    }
    50% { 
        transform: scale(1.05); 
        background: rgba(38, 87, 253, 0.2);
    }
    100% { 
        transform: scale(1); 
        background: rgba(38, 87, 253, 0.1);
    }
}

.roi-highlight {
    animation: roiHighlight 0.3s ease-out;
}

/* 成本分析卡片特殊样式 */
.cost-analysis-card {
    position: relative;
    overflow: hidden;
}

.cost-analysis-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, currentColor, transparent, currentColor);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.3;
}

/* 表格样式优化 */
.comparison-table {
    backdrop-filter: blur(10px);
}

.comparison-table table {
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table th,
.comparison-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

.comparison-table tr:hover td {
    background-color: rgba(38, 87, 253, 0.05);
}

/* 投资回报强调样式 */
.profit-highlight {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.cost-highlight {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* 响应式动画调整 */
@media (max-width: 768px) {
    .animate-scanning::before {
        width: 60px;
        height: 60px;
    }
    
    .animate-voice-wave::before,
    .animate-voice-wave::after {
        width: 80px;
        height: 80px;
    }
    
    /* ROI计算器移动端优化 */
    .roi-calculator {
        padding: 1rem;
    }
    
    .roi-calculator .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .comparison-table {
        font-size: 0.875rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem 0.25rem;
    }
}