/* ========================================
   英伟成科技官网 - 现代化美化样式
   ======================================== */

/* === 1. 全局配色与字体优化 === */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --tech-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #4facfe;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --shadow-sm: 0 2px 8px rgba(102, 126, 234, 0.1);
    --shadow-md: 0 4px 16px rgba(102, 126, 234, 0.15);
    --shadow-lg: 0 8px 32px rgba(102, 126, 234, 0.2);
    --shadow-xl: 0 12px 48px rgba(102, 126, 234, 0.25);
}

body {
    font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* === 2. 导航栏美化 === */
.header.header-6 {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header.header-6.sticky {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header.header-6 .navbar-brand img {
    transition: transform 0.3s ease;
}

.header.header-6 .navbar-brand:hover img {
    transform: scale(1.05);
}

.header.header-6 .navbar-nav .nav-item a {
    position: relative;
    font-weight: 500 !important;
    color: var(--text-dark) !important;
    transition: all 0.3s ease;
}

.header.header-6 .navbar-nav .nav-item a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.header.header-6 .navbar-nav .nav-item a:hover::before,
.header.header-6 .navbar-nav .nav-item a.active::before {
    width: 60%;
}

.header.header-6 .navbar-nav .nav-item a:hover,
.header.header-6 .navbar-nav .nav-item a.active {
    color: var(--primary-color) !important;
    border-color: transparent !important;
    background: transparent !important;
}

/* === 3. Hero区域美化 === */
.hero-section-wrapper-5 {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.hero-section-wrapper-5::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero-section-wrapper-5::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.hero-section.hero-style-5 {
    position: relative;
    z-index: 1;
}

.hero-content-wrapper h2 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px !important;
}

.hero-content-wrapper p {
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.8;
}

.hero-content-wrapper .button {
    background: var(--primary-gradient);
    border: none;
    padding: 0 40px;
    height: 56px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-content-wrapper .button::before {
    background: rgba(255, 255, 255, 0.2);
}

.hero-content-wrapper .button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.hero-image img {
    filter: drop-shadow(0 20px 40px rgba(102, 126, 234, 0.3));
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* === 4. 产品案例区域美化 === */
.feature-style-5 {
    background: #ffffff;
    position: relative;
}

.section-title h3 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.feature-style-5 .single-feature {
    background: #ffffff;
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-bottom: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-style-5 .single-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.feature-style-5 .single-feature:hover::before {
    opacity: 0.05;
}

.feature-style-5 .single-feature:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
}

.feature-style-5 .single-feature .icon {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 20px;
    transition: all 0.4s ease;
}

.feature-style-5 .single-feature:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-style-5 .single-feature .icon i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-style-5 .single-feature .content {
    position: relative;
    z-index: 1;
}

.feature-style-5 .single-feature .content h5 {
    color: var(--text-dark);
    font-weight: 700;
    transition: color 0.3s ease;
}

.feature-style-5 .single-feature:hover .content h5 {
    color: var(--primary-color);
}

.feature-style-5 .single-feature .content p {
    color: var(--text-light);
    line-height: 1.8;
}

/* === 5. 关于我们区域美化 === */
.about-style-4 {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    position: relative;
}

.about-style-4::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.about-content-wrapper .button {
    background: var(--primary-gradient);
    border: none;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.about-content-wrapper .button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.about-content-wrapper ul li {
    padding: 8px 0;
    transition: transform 0.3s ease;
}

.about-content-wrapper ul li:hover {
    transform: translateX(5px);
}

.about-content-wrapper ul li i {
    color: var(--primary-color);
    font-size: 18px;
}

.about-image img {
    filter: drop-shadow(0 15px 35px rgba(102, 126, 234, 0.2));
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.02);
}

/* === 6. 解决方案区域美化 === */
.gallery-style-4 {
    background: #ffffff;
}

.gallery-style-4 .single-gallery {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.gallery-style-4 .single-gallery:hover {
    transform: translateY(-8px);
}

.gallery-style-4 .single-gallery .image {
    position: relative;
    overflow: hidden;
}

.gallery-style-4 .single-gallery .image img {
    transition: transform 0.5s ease;
}

.gallery-style-4 .single-gallery:hover .image img {
    transform: scale(1.1);
}

.gallery-style-4 .single-gallery .overlay {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
}

.gallery-style-4 .single-gallery .overlay .action a {
    background: #ffffff;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.gallery-style-4 .single-gallery .overlay .action a:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.gallery-style-4 .single-gallery .info {
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.gallery-style-4 .single-gallery:hover .info {
    box-shadow: var(--shadow-xl);
}

.gallery-style-4 .single-gallery .info h5 {
    color: var(--text-dark);
    font-weight: 700;
}

.gallery-style-4 .single-gallery .info p {
    color: var(--text-light);
}

/* === 7. 联系我们区域美化 === */
.contact-style-3 {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.contact-form-wrapper form .single-input input,
.contact-form-wrapper form .single-input textarea {
    border: 2px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.contact-form-wrapper form .single-input input:focus,
.contact-form-wrapper form .single-input textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #ffffff;
}

.contact-form-wrapper form .single-input i {
    color: var(--primary-color);
    font-size: 18px;
}

.contact-form-wrapper form .form-button button {
    background: var(--primary-gradient);
    border: none;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.contact-form-wrapper form .form-button button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.contact-style-3 .left-wrapper .single-item {
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.contact-style-3 .left-wrapper .single-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.contact-style-3 .left-wrapper .single-item .icon {
    background: var(--primary-gradient);
    box-shadow: var(--shadow-sm);
}

/* === 8. 合作伙伴区域美化 === */
.clients-logo-section {
    background: #ffffff;
    position: relative;
}

.client-logo {
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.client-logo img {
    transition: transform 0.3s ease;
}

.client-logo:hover img {
    transform: scale(1.02);
}

/* === 9. 页脚美化 === */
.footer-style-4 {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.footer-style-4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
}

.footer-style-4 .footer-widget h6 {
    color: #ffffff !important;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-style-4 .footer-widget h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.footer-style-4 .footer-widget p.desc {
    color: rgba(255, 255, 255, 0.8);
}

.footer-style-4 .footer-widget .links li a {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-style-4 .footer-widget .links li a:hover {
    color: #ffffff !important;
    transform: translateX(5px);
}

.footer-style-4 .footer-widget .socials li a {
    background: rgba(102, 126, 234, 0.2) !important;
    transition: all 0.3s ease !important;
}

.footer-style-4 .footer-widget .socials li a:hover {
    background: var(--primary-gradient) !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4) !important;
}

.footer-style-4 .footer-widget .download-app li a {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.footer-style-4 .footer-widget .download-app li a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.footer-style-4 .copyright-wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-style-4 .copyright-wrapper p {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-style-4 .copyright-wrapper p a:hover {
    color: var(--accent-color) !important;
}

/* === 10. 滚动到顶部按钮美化 === */
.scroll-top {
    background: var(--primary-gradient);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* === 11. 加载动画美化 === */
.preloader {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.preloader .loader .spinner-circle {
    border-color: #ffffff #ffffff rgba(255, 255, 255, 0.3);
}

/* === 12. 响应式优化 === */
@media (max-width: 991px) {
    .hero-content-wrapper h2 {
        font-size: 36px !important;
    }

    .section-title h3 {
        font-size: 32px !important;
    }

    .feature-style-5 .single-feature {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .hero-content-wrapper h2 {
        font-size: 28px !important;
    }

    .hero-content-wrapper p {
        font-size: 16px;
    }

    .section-title h3 {
        font-size: 28px !important;
    }
}

/* === 13. 微动画效果 === */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wow {
    animation-duration: 1s;
    animation-fill-mode: both;
}

/* === 14. 自定义滚动条 === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* === 15. 选中文本样式 === */
::selection {
    background: var(--primary-color);
    color: #ffffff;
}

::-moz-selection {
    background: var(--primary-color);
    color: #ffffff;
}

/* === 16. 页面进度条 === */
.page-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary-gradient);
    z-index: 9999;
    transition: width 0.2s ease;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* === 17. 自定义光标效果(可选) === */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    transform: translate(-50%, -50%);
    opacity: 0.8;
}

.custom-cursor.cursor-hover {
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--secondary-color);
}

/* === 18. 动画入场效果 === */
.animate-in {
    animation: slideInUp 0.6s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === 19. 表单聚焦效果增强 === */
.single-input.focused {
    transform: translateY(-2px);
}

.single-input.has-value input,
.single-input.has-value textarea {
    border-color: var(--primary-color);
}

/* === 20. 加载状态 === */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === 21. 响应式字体优化 === */
@media (max-width: 1199px) {
    :root {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    :root {
        font-size: 14px;
    }
}

/* === 22. 打印样式优化 === */
@media print {

    .header,
    .scroll-top,
    .page-progress,
    .preloader {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}

/* === 23. 暗色模式支持(可选) === */
@media (prefers-color-scheme: dark) {
    /* 如果需要支持暗色模式,可以在这里添加样式 */
    /* 目前保持亮色主题 */
}

/* === 24. 无障碍优化 === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 键盘导航焦点样式 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* === 25. 性能优化 === */
.page-hidden * {
    animation-play-state: paused !important;
    transition: none !important;
}

/* GPU加速 */
.hero-image img,
.single-feature,
.single-gallery,
.button {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}