/* 首页特定样式 - FreightQA */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.95) 0%, 
        rgba(101, 126, 234, 0.95) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

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

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-icons {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-icons i {
    position: absolute;
    font-size: 3rem;
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
}

.floating-icons i:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    color: #ff6b6b;
}

.floating-icons i:nth-child(2) {
    top: 50%;
    left: 60%;
    animation-delay: 1s;
    color: #4ecdc4;
}

.floating-icons i:nth-child(3) {
    top: 70%;
    left: 30%;
    animation-delay: 2s;
    color: #ffe66d;
}

.floating-icons i:nth-child(4) {
    top: 40%;
    left: 80%;
    animation-delay: 3s;
    color: #ff9f1c;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.feature-card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #2563eb;
    transition: all 0.3s ease;
}

.feature-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    color: #f59e0b;
}

.feature-stats {
    margin: 15px 0;
}

.feature-stats .badge {
    font-size: 0.9rem;
    padding: 8px 15px;
    border-radius: 20px;
}

.stat-item {
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    margin: 10px 0;
    transition: all 0.3s ease;
    text-align: center;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 10px 0;
    font-family: 'Arial', sans-serif;
}

.stat-label {
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.hero-buttons .btn {
    border-radius: 50px;
    padding: 15px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin: 0 10px 10px 0;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* 统计区域 */
.stats-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 0;
}

.stats-section .stat-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.stats-section .stat-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* 页脚 */
.footer {
    background: rgba(31, 41, 55, 0.95);
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer h5 {
    color: #f59e0b;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #f59e0b;
    transform: translateX(5px);
}

.footer .list-unstyled li {
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 100px 0 50px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons .btn {
        margin: 10px 5px;
        width: 100%;
        max-width: 250px;
    }
    
    .floating-icons {
        height: 300px;
        margin-top: 40px;
    }
    
    .floating-icons i {
        font-size: 2.5rem;
    }
    
    .stat-item {
        margin-bottom: 20px;
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .feature-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-content p.lead {
        font-size: 1.1rem;
    }
    
    .stat-item {
        padding: 20px 10px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
}

/* 动画效果 */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-count {
    animation: countUp 1s ease-out;
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

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

/* 全局搜索样式 */
.search-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.search-input {
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-btn {
    border-radius: 50px;
    padding: 15px 30px;
    background: #2563eb;
    border: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.search-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* 现代化的按钮样式 */
.modern-btn {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 50px;
    padding: 15px 35px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transition: all 0.3s ease;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.modern-btn:hover::before {
    left: 100%;
}

.modern-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.3);
}

/* 渐变文字效果 */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 特性卡片网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.feature-grid-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.feature-grid-icon {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-grid-item:hover .feature-grid-icon {
    transform: scale(1.2) rotate(10deg);
    color: #f59e0b;
}

/* 页面加载动画 */
.page-load-animation {
    opacity: 0;
    transform: translateY(20px);
    animation: pageLoad 0.8s ease-out forwards;
}

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

/* 创新的悬浮效果 */
.hover-3d {
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.hover-3d:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) translateZ(10px);
}