:root {
    /* 主色调 - 红色系 */
    --primary-red: #DC2626;
    --primary-red-dark: #B91C1C;
    --primary-red-light: #EF4444;
    
    /* 辅色调 - 橙色系 */
    --secondary-orange: #F97316;
    --secondary-orange-dark: #EA580C;
    --secondary-orange-light: #FB923C;
    
    /* 背景色 */
    --bg-light: #FEF2F2;
    --bg-white: #FFFFFF;
    --bg-gradient-start: #FEE2E2;
    
    /* 主题背景色 - 统一控制整个页面的主背景 */
    --theme-bg: #FFFFFF;
    
    /* 文字颜色 */
    --text-dark: #1F2937;
    --text-muted: #6B7280;
    
    /* 灰色系 */
    --gray-dark: #1F2937;
    --pink-lighter: #FEF2F2;
    --pink-light: #FEE2E2;
    
    /* 更新旧变量以保持兼容 */
    --orange-primary: var(--primary-red);
    --orange-dark: var(--primary-red-dark);
    --yellow-primary: var(--secondary-orange);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #FFFFFF;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Logo样式 */
.logo {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Navbar */
.navbar-custom {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-custom.scrolled {
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-dark) !important;
}

.navbar-brand span {
    color: var(--orange-primary);
}

.nav-link {
    color: var(--gray-dark) !important;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-red) !important;
}

.dropdown-menu {
    background-color: #ffffff;
    border: 1px solid rgba(255, 107, 157, 0.1);
    box-shadow: 0 10px 40px rgba(255, 107, 157, 0.1);
}

.dropdown-item {
    color: var(--gray-dark);
    padding: 0.75rem 1.5rem;
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-red);
}

.btn-orange {
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-orange));
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.4);
    color: #ffffff;
}

.btn-custom {
    background: var(--bg-light);
    color: var(--primary-red);
    border: 1px solid var(--primary-red);
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background: var(--primary-red);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

/* Hero Section - 强调分销商合作 */
.hero-section {
    min-height: 45vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    background: var(--theme-bg);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--primary-red);
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.hero-image {
    position: relative;
}

.hero-image img {
    max-width: 100%;
    border-radius: 16px;
}

.floating-card {
    position: absolute;
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    animation: float 3s ease-in-out infinite;
    color: var(--gray-dark);
}

.floating-card.card-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    bottom: 20%;
    left: -5%;
    animation-delay: 1.5s;
}

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

/* Partners Section */
.partners-section {
    padding: 4rem 0;
    background: var(--theme-bg);
}

.partners-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.partner-logo {
    max-width: 140px;
    max-height: 100px;
}

.partner-logo:hover {
    opacity: 1;
    filter: none;
}

/* Partners Marquee */
.partners-marquee {
    overflow: hidden;
    position: relative;
}

.partners-track {
    display: flex;
    gap: 3rem;
    animation: marquee 30s linear infinite; /* 建议增加时间，让滚动更平缓 */
    will-change: transform;
    /* 防止动画闪烁 */
    backface-visibility: hidden;
    perspective: 1000px;
    /* 添加3D加速 */
    transform: translate3d(0, 0, 0);
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 修复后的关键帧 */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        /* 关键修复：移动一整份内容的宽度 */
        transform: translateX(calc(-100% - 3rem));
    }
}

/* Solutions Section */
.solutions-section {
    padding: 6rem 0;
    background: var(--theme-bg);
}

.section-label {
    color: var(--primary-red);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
}

.solution-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--bg-gradient-start);
}

.solution-card:hover {
    background: var(--bg-light);
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.2);
}

.solution-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-orange));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #ffffff;
}

.solution-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

.solution-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.solution-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: gap 0.3s ease;
}

.solution-link:hover {
    color: var(--primary-red-dark);
    gap: 0.75rem;
}

/* Stats Section - 红橙渐变 */
.stats-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-orange) 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-red);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: var(--theme-bg);
}

.feature-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-red);
    font-size: 1.25rem;
}

.feature-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-dark);
}

.feature-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Features Section Carousel */
.features-section .carousel {
    border-radius: 16px;
    overflow: hidden;
}

.features-section .carousel-item img {
    height: 500px;
    object-fit: cover;
}

.features-section .carousel-indicators {
    margin-bottom: 1rem;
}

.features-section .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-red);
    opacity: 0.5;
    border: none;
}

.features-section .carousel-indicators .active {
    opacity: 1;
}

.features-section .carousel-control-prev,
.features-section .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(220, 38, 38, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.features-section .carousel:hover .carousel-control-prev,
.features-section .carousel:hover .carousel-control-next {
    opacity: 1;
}

.features-section .carousel-control-prev {
    left: 20px;
}

.features-section .carousel-control-next {
    right: 20px;
}

.features-section .carousel-control-prev-icon,
.features-section .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Blog Section */
.blog-section {
    padding: 6rem 0;
    background: var(--theme-bg);
}

.blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--bg-gradient-start);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.15);
    border-color: var(--primary-red);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-category {
    color: var(--primary-red);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.75rem 0;
    line-height: 1.4;
}

.blog-card h5 a {
    color: var(--gray-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card h5 a:hover {
    color: var(--primary-red);
}

.blog-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* CTA Section - 白色背景版本 */
.cta-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background: var(--theme-bg);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.cta-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-cta-primary {
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-orange));
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.4);
    color: #ffffff;
}

/* Footer */
.footer {
    background: var(--gray-dark);
    padding: 4rem 0 2rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-brand span {
    color: var(--orange-primary);
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-red);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-red);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .navbar-collapse {
        background: #ffffff;
        padding: 1rem;
        border-radius: 12px;
        margin-top: 1rem;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .floating-card {
        display: none;
    }
    
    .logo {
        height: 50px;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
    
    .logo {
        height: 45px;
    }
}

/* 为所有锚点目标添加滚动偏移 */
section[id] {
    scroll-margin-top: 80px;
}

#home,
#about,
#partners,
#solutions,
#contact {
    scroll-margin-top: 80px;
}

/* Products Section */
.products-section {
    padding: 6rem 0;
    background: var(--theme-bg);
}

.product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--pink-light);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.2);
    border-color: var(--orange-primary);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-orange));
    color: #ffffff;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    padding: 2rem;
    /*background: var(--pink-lighter);*/
}

.product-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-dark);
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.product-price {
    margin-bottom: 1rem;
    margin-top: auto;
}

.price-from {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
}

.btn-product {
    width: 100%;
    background: var(--bg-light);
    color: var(--primary-red);
    border: 1px solid var(--primary-red);
    padding: 0.6rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-product:hover {
    background: var(--primary-red);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

.page-link {
    color: var(--gray-dark);
    border: 1px solid var(--pink-light);
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--bg-light);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.page-item.active .page-link {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: #ffffff;
}

.page-item.disabled .page-link {
    background: var(--pink-lighter);
    border-color: var(--pink-light);
    color: var(--text-muted);
}

@media (max-width: 767.98px) {
    .product-image {
        height: 140px;
        padding: 1.5rem;
    }
    
    .product-name {
        font-size: 0.95rem;
    }
    
    .price-amount {
        font-size: 1.25rem;
    }
}
