/* AnRui Bio - B2B Homepage Styles */

/* Hero Section Styles */
.hero-section {
    /* 50% 半透明渐变叠加在背景图片上 */
    background: linear-gradient(45deg, rgba(28, 32, 54, 0.7) 0%, rgba(12, 1, 23, 0.6) 100%), url('/static/images/website/cover.webp') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px; /* 为固定导航栏留出空间 */
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Feature Cards */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Statistics Section */
.stats-section {
    background: #f8f9fa;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
}

/* Contact Form */
.contact-form {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 2rem;
}

/* Buttons */
.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Certification Badges */
.certification-badge {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #667eea;
    margin: 0 auto 1rem;
}

/* Product Category Cards */
.product-category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
}

.product-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .product-category-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

/* Navigation Styles */
.navbar-custom {
    background: rgba(102, 126, 234, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Contact Section Benefits */
.contact-benefits {
    padding: 1rem 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.benefit-icon {
    font-size: 1.5rem;
    color: #667eea;
    margin-right: 1rem;
    min-width: 2rem;
}

/* Form Animations */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Success/Error States */
.alert-custom {
    border-radius: 10px;
    border: none;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        text-align: center;
        padding-top: 80px; /* 增加手机端的顶部间距 */
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .certification-badge {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .contact-form {
        margin-top: 2rem;
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 90px; /* 小屏幕更多间距 */
    }

    .hero-section h1 {
        font-size: 1.75rem; /* 稍微缩小以适应小屏幕 */
        line-height: 1.3;
    }

    .hero-section .lead {
        font-size: 0.95rem;
    }

    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .certification-badge {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    /* 优化 badge 在小屏幕的显示 */
    .hero-section .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem !important;
    }
}