:root {
    /* 主题色变量 */
    --primary-color: #00a0ea;
    --primary-dark: #0088c6;
    --primary-light: #E8F4FD;
    --secondary-color: #c91619;
    --accent-color: #c91619;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e9ecef;
    --white: #fff;
    --dark: #343a40;
    --light: #f6f7f9;

    --bs-primary: var(--primary-color);
    --bs-primary-rgb: 0,160,234;

    /* 字体变量 */
    --font-family: 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-xxl: 1.5rem;

    /* 间距变量 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* 边框圆角 */
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 1rem;
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
}
@media (min-width: 1600px) {
    .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
        max-width: 1600px;
    }
}
main {

}
a {
    color: var(--text-color);
    text-decoration: none !important;
}

a:hover {
    color: var(--primary-color);
}


/* 按钮样式 */
.btn {
    border-radius: var(--border-radius);
    padding: var(--spacing-xs) var(--spacing-lg);
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 160, 234, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* 区块通用样式 */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    font-size: var(--font-size-lg);
    color: var(--text-light);
}

/* 产品展示样式 */
.products-section {

}

.product-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.product-icon i {
    font-size: 2rem;
    color: var(--white);
}

.product-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.product-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 关于公司样式 */
.about-section {
    background: var(--white);
}

.about-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.company-stats {
    display: flex;
    justify-content: space-between;
}

.stat-item {
    text-align: start;
    margin-bottom: 20px;
    color: white;
    padding: 0!important;
}

.stat-item h4 {
    font-size: 3rem;
    font-weight: bold;
    margin: var(--spacing-md) 0;
}

.stat-item span {
    font-size: var(--font-size-base);
    display: block;
    position: relative;
}

.stat-item span:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 1rem;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: #e53935;
}

/* 优势展示样式 */
.advantages-section {
    background: var(--secondary-color);
}

.advantage-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.advantage-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.advantage-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.advantage-card h4 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.advantage-card p {
    color: var(--text-light);
    line-height: 1.6;
}


.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* 联系表单样式 */
.contact-section {
    background: var(--secondary-color);
}

.contact-form {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-sm);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 160, 234, 0.25);
}

.contact-info {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-md);
    font-size: 1.25rem;
}

.contact-item h5 {
    margin-bottom: var(--spacing-xs);
    color: var(--text-color);
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

/* 页脚样式 */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer h5 {
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

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

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

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

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

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 移动端菜单图标颜色 */
    .navbar-toggler {
        border: 1px solid var(--primary-color) !important;
    }

    .navbar-toggler .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2300a0ea' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }

    .navbar-nav .nav-link {
        margin: var(--spacing-xs) 0;
    }

    /* 移动端下拉菜单样式 */
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: none !important;
        margin: 0.5rem 0 !important;
        background-color: var(--white) !important;
    }

    .dropdown-item {
        color: var(--text-color) !important;
        padding: 0.75rem 1.5rem !important;
        border-bottom: 1px solid var(--border-color) !important;
    }

    .dropdown-item:last-child {
        border-bottom: none !important;
    }

    .dropdown-item:hover {
        background-color: var(--primary-color) !important;
        color: var(--white) !important;
    }

    .dropdown-toggle::after {
        float: right;
        margin-top: 0.5rem;
    }

    .carousel-content h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .company-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .stat-item {
        margin-bottom: var(--spacing-md);
    }

    .hero-section {
        height: 70vh;
        padding-top: 56px; /* 移动端导航栏高度 */
    }
}

@media (max-width: 576px) {
    .carousel-content {
        padding: var(--spacing-md);
    }

    .carousel-content h1 {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .product-card,
    .advantage-card,
    .news-card {
        padding: var(--spacing-md);
    }

    .contact-form,
    .contact-info {
        padding: var(--spacing-md);
    }
}
.text-indent {
    text-indent: 2em;
}

.text-accent {
    color: var(--accent-color);
}

.bg-accent {
    background-color: var(--accent-color);
}

.border-primary {
    border-color: var(--primary-color)!important;
}

.btn-check:focus + .btn-primary, .btn-primary:focus {
    background-color: var(--primary-color);
}


.scale-hover {
    display: inline-block; /* 必须是 inline-block、block 或 flex item */
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease; /* 平滑过渡 */
}

.scale-hover:hover {
    transform: scale(1.02); /* 放大 1.05 倍（即 5%） */
}

/* 如果你想鼠标离开时也动画回去 */
.scale-hover {
    transform-origin: center; /* 可选：设置缩放中心 */
}

/**
APP BUTTON
 */
.app-button-1 {
    display: block;
    position: relative;
    visibility: visible;
    overflow: visible;
    text-align: center;
    box-sizing: border-box;
    width: 180px;
    height: 45px;
    line-height: 45px;
    border-radius: 22px;
    padding: 0 15px;
    font-size: 16px;
    color: rgba(255, 255, 255, 1);
    background_radio: 1;
    border_radio: 1;
    font_radio: 2;
    radius_radio: 1;
    display-radio: block;
    transition: all 0.3s ease;
    border: none;
    margin-top: 8%;
    background: var(--primary-color);
    margin-left: auto;
    background-color: var(--primary-color);
    margin-right: auto;
    font-family: "3c8e2541-3b58-4d15-ba62-237375ac22b9";
    font-weight: bold
}

.app-button-1:hover {
    color: var(--primary-color);
    background: none;
    border: 1px solid var(--primary-color);
    font-size: 16px;
    font-weight: bold
}

.app-button-1 span {
    position: relative;
    z-index: 2
}

.app-button-1::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(1);
    border: 1px solid var(--primary-color);
    transition: all .5s ease;
    z-index: 0;
    border-radius: 22px
}

.app-button-1:hover::before {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0;
    z-index: 0
}

.app-button-1::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    background: #fff;
    transition: all .5s ease;
    z-index: 1;
    border-radius: 22px
}

.app-button-1:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1
}

.app-button-2 {
    display: block;
    position: relative;
    visibility: visible;
    overflow: visible;
    text-align: center;
    box-sizing: border-box;
    width: 180px;
    height: 45px;
    line-height: 45px;
    border-radius: 22px;
    padding: 0 15px;
    font-size: 16px;
    color: var(--primary-color);
    background_radio: 1;
    border_radio: 1;
    font_radio: 2;
    radius_radio: 1;
    display-radio: block;
    transition: all 0.3s ease;
    border: none;
    margin-top: 8%;
    margin-left: auto;
    margin-right: auto;
    font-family: "3c8e2541-3b58-4d15-ba62-237375ac22b9";
    font-weight: bold
}

.app-button-2:hover {
    color: #ffffff;
    font-size: 16px;
    font-weight: bold
}

.app-button-2 span {
    position: relative;
    z-index: 2
}

.app-button-2::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(1);
    border: 1px solid var(--primary-color);
    transition: all .5s ease;
    z-index: 0;
    border-radius: 22px
}

.app-button-2:hover::before {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0;
    z-index: 0
}

.app-button-2::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    background: var(--primary-color);
    transition: all .5s ease;
    z-index: 1;
    border-radius: 22px
}

.app-button-2:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1
}

.app-button-3 {
    line-height: normal;
    font_radio: 2;
    cursor: pointer;
}

.app-button-3 a {
    display: inline-block;
    padding: 10px 40px;
    background: none;
    color: var(--primary-color);
    border-radius: 50px;
    border: 1px solid var(--primary-color);
    font-size: 16px;
    position: relative;
    overflow: hidden;
    transition: all .5s ease;
    z-index: 1
}

.app-button-3 a:after {
    content: '';
    position: absolute;
    z-index: -1;
    right: -25%;
    top: 0;
    transform: translateY(50%);
    width: 150%;
    height: 220%;
    border-radius: 50%;
    background: var(--primary-color);
    transition: all .5s
}

.app-button-3 a:hover {
    color: #fff!important;
}

.app-button-3 a:hover:after {
    transform: translateY(-20%)
}

.app-button-3 a.on {
    background: var(--primary-color);
    color: #fff
}

@media screen and (max-width: 768px) {
    .app-button-3 a {
        font-size: 14px;
        text-align: center;
        padding: 6px 22px
    }
}

.arrow-right {
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform 0.3s ease;
}


.arrow-right::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translate(-50%, -50%) rotate(-45deg);
    transition: transform 0.3s ease;
}

.pagination {
    gap: 0.5rem;
    display: flex;
    justify-content: center;
}

.page-link {
    border: 1px solid #dee2e6;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

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

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

.object-fit-cover{
    object-fit: cover;
}

.object-fit-contain{
    object-fit: contain;
}

.ratio-a4 {
    aspect-ratio: 1 / 1.414;
}

/* 通用的“悬停抬升”效果 */
.hover-elevate {
    /* 基础样式：轻微阴影，圆角（如果需要） */
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.08);
    border-radius: 0.375rem; /* 可选：与 Bootstrap 的 rounded-* 保持一致 */

    /* 核心：定义过渡动画 */
    transition:
        transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* 性能提示 */
    will-change: transform, box-shadow;
}

/* 悬停状态：统一的抬升效果 */
.hover-elevate:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.text-preserve-newlines {
    white-space: pre-line;
}
