/* ==========================================
   首页专用样式
   ========================================== */

/* 英雄区域 */
.vm-hero {
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
    background: linear-gradient(135deg, #FF6A00 0%, #FF8533 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
}

/* Hero 加载动画 */
.vm-hero-title {
    opacity: 0;
    animation: slideInLeft 0.8s ease-out 0.2s forwards;
    will-change: opacity, transform;
}

.vm-hero-subtitle {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
    will-change: opacity, transform;
}

.vm-search-box {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
    will-change: opacity, transform;
}

.vm-hero-tags {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.1s forwards;
    will-change: opacity, transform;
}

.vm-hero-image {
    opacity: 0;
    animation: slideInRight 0.8s ease-out 0.4s forwards;
    will-change: opacity, transform;
}

@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 fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vm-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.vm-hero .container {
    position: relative;
    z-index: 1;
}

.vm-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.vm-hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: white;
    margin-bottom: 20px;
}

.vm-hero-title .highlight {
    background: linear-gradient(135deg, #FFB800, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vm-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* 搜索框 */
.vm-search-box {
    margin-bottom: 25px;
}

.search-input-wrapper {
    display: flex;
    background: white;
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: var(--shadow-xl);
    align-items: center;
    transition: all 0.3s ease;
}

.search-icon {
    font-size: 20px;
    padding: 0 15px;
}

.vm-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 12px 10px;
}

.vm-search-btn {
    background: linear-gradient(135deg, var(--primary-color), #FF8533);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.25);
}

.vm-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.35);
}

/* 热门标签 */
.vm-hero-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tag-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.hero-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 英雄图片 */
.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 4 / 3;
    background: rgba(255, 255, 255, 0.1);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.hero-image-wrapper:hover img {
    transform: scale(1.05);
}

.hero-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 15px 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
    opacity: 0;
    animation: fadeInScale 0.6s ease-out 1.4s forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.badge-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.badge-text {
    display: block;
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 5px;
}

/* 数据统计 */
.vm-stats {
    background: white;
    padding: 60px 0;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.vm-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-gray);
}

/* 通用区块标题 */
.vm-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
}

/* 产品分类 */
.vm-categories {
    padding: 80px 0;
    background: var(--bg-light);
}

.vm-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.category-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.category-desc {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.category-arrow {
    font-size: 20px;
    color: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover .category-arrow {
    opacity: 1;
}

/* 产品展示 */
.vm-products {
    padding: 80px 0;
    background: white;
}

.vm-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FF6A00, #FF8533);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-info {
    padding: 25px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-title a {
    color: var(--text-dark);
    transition: var(--transition);
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-desc {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-link {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.product-link:hover {
    color: var(--primary-dark);
}

/* 特色功能 */
.vm-features {
    padding: 80px 0;
    background: var(--bg-light);
}

.vm-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    font-size: 36px;
    color: white;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* 行业资讯 */
.vm-news {
    padding: 80px 0;
    background: white;
}

.vm-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.news-image {
    position: relative;
    /* height: 240px; */
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: white;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.date-day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
    margin-top: 2px;
}

.news-content {
    padding: 25px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.news-category {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.news-time {
    font-size: 12px;
    color: var(--text-light);
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-title a {
    color: var(--text-dark);
    transition: var(--transition);
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-readmore {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.news-readmore:hover {
    gap: 10px;
}

.news-readmore .arrow {
    transition: var(--transition);
}

/* 更多按钮 */
.section-more {
    text-align: center;
    margin-top: 40px;
}

/* ==========================================
   响应式设计
   ========================================== */

@media (max-width: 1024px) {
    .vm-hero {
        min-height: 500px;
    }
    
    .vm-hero-title {
        font-size: 40px;
    }
    
    .vm-categories-grid,
    .vm-products-grid,
    .vm-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vm-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vm-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .vm-hero {
        padding: 60px 0;
        min-height: auto;
    }
    
    .vm-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .vm-hero-title {
        font-size: 32px;
    }
    
    .vm-hero-subtitle {
        font-size: 16px;
    }
    
    .vm-hero-image {
        order: -1;
    }
    
    .hero-image-wrapper {
        aspect-ratio: 16 / 9;
    }
    
    .vm-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .vm-categories-grid,
    .vm-products-grid,
    .vm-features-grid,
    .vm-news-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
}


@media (max-width: 480px) {
    .vm-hero-title {
        font-size: 28px;
    }
    
    .search-input-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .vm-search-input {
        width: 100%;
    }
    
    .vm-search-btn {
        width: 100%;
    }
}
