/* ============================================
   TechVision 科技公司官网 - 主样式表
   版本：1.0
   描述：包含所有自定义样式、动画效果、响应式设计

   目录：
   1. CSS变量定义
   2. 全局样式重置
   3. 导航栏样式
   4. Hero区域样式
   5. 通用区块样式
   6. 关于我们样式
   7. 服务项目样式
   8. 产品展示样式
   9. 数字成就样式
   10. 客户Logo墙样式
   11. 新闻动态样式
   12. 联系我们样式
   13. 底部Footer样式
   14. 回到顶部按钮
   15. 响应式媒体查询
   16. 动画关键帧
============================================ */

/* ============================================
   1. CSS变量定义
   修改指南：可在此处统一修改网站配色方案
============================================ */
:root {
    /* 主色调 - 科技蓝 */
    --primary-color: #2563EB;
    --primary-dark: #1E40AF;
    --primary-light: #60A5FA;

    /* 辅助颜色 */
    --secondary-color: #64748B;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;

    /* 背景颜色 */
    --bg-dark: #0F172A;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;

    /* 文字颜色 */
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --text-light: #94A3B8;

    /* 圆角 */
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;

    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* 过渡时间 */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* ============================================
   2. 全局样式重置
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   3. 导航栏样式
   功能：固定顶部、滚动变色、毛玻璃效果
============================================ */
.navbar {
    padding: 1rem 0;
    transition: all var(--transition-normal);
    background-color: transparent;
}

/* 滚动后的导航栏样式 */
.navbar.scrolled {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

/* Logo样式 */
.navbar-brand {
    font-size: 1.5rem;
    color: var(--bg-white) !important;
    transition: color var(--transition-fast);
    margin-right: 0.1rem;
    padding-left: 0;
}

.navbar-brand img {
    height: 150px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-brand:hover {
    color: var(--primary-light) !important;
}

/* 导航链接样式 */
.navbar .nav-link {
    color: var(--bg-white) !important;
    font-weight: 500;
    font-size: 1.73rem;
    padding: 0.5rem 0.8rem !important;
    margin: 0 0.1rem;
    position: relative;
    transition: color var(--transition-fast);
}

/* 导航链接下划线动画 */
.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-light);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 60%;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary-light) !important;
}

/* 汉堡菜单按钮 */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem;
}

.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='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   4. Hero区域样式
   功能：全屏高度、粒子背景、SVG动画
============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a365d 50%, var(--primary-dark) 100%);
    overflow: hidden;
}

/* 粒子背景容器 */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* 粒子样式 */
.particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.4;
    animation: float 15s infinite ease-in-out;
}

/* 粒子位置分布 */
.particles span:nth-child(1) { left: 10%; animation-delay: 0s; }
.particles span:nth-child(2) { left: 20%; animation-delay: 1s; }
.particles span:nth-child(3) { left: 30%; animation-delay: 2s; }
.particles span:nth-child(4) { left: 40%; animation-delay: 3s; }
.particles span:nth-child(5) { left: 50%; animation-delay: 4s; }
.particles span:nth-child(6) { left: 60%; animation-delay: 5s; }
.particles span:nth-child(7) { left: 70%; animation-delay: 6s; }
.particles span:nth-child(8) { left: 80%; animation-delay: 7s; }
.particles span:nth-child(9) { left: 90%; animation-delay: 8s; }
.particles span:nth-child(10) { left: 15%; animation-delay: 9s; }
.particles span:nth-child(11) { left: 25%; animation-delay: 10s; }
.particles span:nth-child(12) { left: 35%; animation-delay: 11s; }
.particles span:nth-child(13) { left: 45%; animation-delay: 12s; }
.particles span:nth-child(14) { left: 55%; animation-delay: 13s; }
.particles span:nth-child(15) { left: 65%; animation-delay: 14s; }
.particles span:nth-child(16) { left: 75%; animation-delay: 15s; }
.particles span:nth-child(17) { left: 85%; animation-delay: 16s; }
.particles span:nth-child(18) { left: 95%; animation-delay: 17s; }
.particles span:nth-child(19) { left: 5%; animation-delay: 18s; }
.particles span:nth-child(20) { left: 50%; animation-delay: 19s; }

/* 粒子上浮动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* ============================================
   数据流背景动画样式
============================================ */
.data-stream {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 数据流线 */
.stream-line {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--primary-light), transparent);
    opacity: 0.6;
    animation: streamFlow 4s linear infinite;
}

.stream-line:nth-child(1) { left: 10%; animation-delay: 0s; }
.stream-line:nth-child(2) { left: 25%; animation-delay: 0.8s; }
.stream-line:nth-child(3) { left: 40%; animation-delay: 1.6s; }
.stream-line:nth-child(4) { left: 55%; animation-delay: 2.4s; }
.stream-line:nth-child(5) { left: 70%; animation-delay: 3.2s; }
.stream-line:nth-child(6) { left: 85%; animation-delay: 0.4s; }
.stream-line:nth-child(7) { left: 15%; animation-delay: 1.2s; }
.stream-line:nth-child(8) { left: 95%; animation-delay: 2s; }

/* 脉冲圆圈 */
.pulse-circle {
    position: absolute;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    opacity: 0;
    animation: pulseExpand 3s ease-out infinite;
}

.pulse-circle:nth-child(9) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.pulse-circle:nth-child(10) {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 60%;
    animation-delay: 1s;
}

.pulse-circle:nth-child(11) {
    width: 120px;
    height: 120px;
    top: 70%;
    left: 35%;
    animation-delay: 2s;
}

/* 数据流下落动画 */
@keyframes streamFlow {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(calc(100vh + 100px));
        opacity: 0;
    }
}

/* 脉冲扩散动画 */
@keyframes pulseExpand {
    0% {
        transform: scale(0);
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Hero标题样式 */
.hero-title {
    color: var(--bg-white);
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.125rem;
    max-width: 500px;
}

/* Hero按钮样式 */
.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-normal);
}

.hero-buttons .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.hero-buttons .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.hero-buttons .btn-outline-primary {
    color: var(--bg-white);
    border-color: var(--bg-white);
}

.hero-buttons .btn-outline-primary:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border-color: var(--bg-white);
}

/* Hero区域SVG动画容器 */
.hero-svg-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-svg {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* SVG元素动画 */
.svg-ring {
    transform-origin: center;
    animation: rotate 20s linear infinite;
}

.svg-ring-1 { animation-duration: 30s; }
.svg-ring-2 { animation-duration: 25s; animation-direction: reverse; }
.svg-ring-3 { animation-duration: 20s; }

.svg-hexagon {
    animation: pulse 3s ease-in-out infinite;
}

.svg-core {
    animation: pulse 2s ease-in-out infinite;
}

.svg-core-inner {
    animation: blink 1.5s ease-in-out infinite;
}

.svg-node {
    animation: pulse 2s ease-in-out infinite;
}

.svg-line {
    opacity: 0.6;
}

/* SVG旋转动画 */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* SVG脉冲动画 */
@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* SVG闪烁动画 */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 滚动向下箭头 */
.scroll-down-arrow {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--bg-white);
    font-size: 2rem;
    animation: bounce 2s infinite;
    z-index: 1;
}

.scroll-down-arrow:hover {
    color: var(--primary-light);
}

/* 箭头弹跳动画 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   Hero区域二维码按钮样式
============================================ */
.qr-code-btn {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-btn:hover {
    transform: translateY(-50%) scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
    border-color: rgba(255, 255, 255, 0.6);
}

.qr-code-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* 二维码按钮脉冲动画 */
.qr-code-btn::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.5);
    animation: qrPulse 2s infinite;
}

@keyframes qrPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* ============================================
   全局二维码悬浮按钮样式
============================================ */
.floating-qr-btn {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

.qr-float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.qr-float-panel {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.qr-float-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.qr-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    color: #1f2937;
}

.qr-close-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
    transition: color 0.2s;
}

.qr-close-btn:hover {
    color: #ef4444;
}

.qr-panel-body {
    text-align: center;
}

.qr-float-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.qr-panel-text {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .floating-qr-btn {
        right: 1rem;
    }

    .qr-float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .qr-float-panel {
        right: 65px;
        min-width: 240px;
        padding: 1rem;
    }

    .qr-float-img {
        width: 160px;
        height: 160px;
    }
}

/* 复制提示动画 */
@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

/* ============================================
   5. 通用区块样式
============================================ */
.section-padding {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header span {
    display: inline-block;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-header h2 {
    color: var(--text-dark);
}

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

.bg-light {
    background-color: var(--bg-light) !important;
}

.bg-dark {
    background-color: var(--bg-dark) !important;
}

/* ============================================
   6. 关于我们样式
   功能：公司介绍、数据统计卡片
============================================ */
.about-content p {
    line-height: 1.8;
    text-align: justify;
}

/* 统计卡片样式 */
.stat-card {
    background-color: var(--bg-white);
    transition: all var(--transition-normal);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary-light);
}

.stat-card .display-4 {
    font-size: 2.5rem;
}

/* ============================================
   7. 服务项目样式
   功能：服务卡片、悬停上浮效果
============================================ */
.service-card {
    background-color: var(--bg-white);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl) !important;
}

/* 服务图标容器 */
.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(96, 165, 250, 0.1) 100%);
    border-radius: 50%;
    transition: all var(--transition-normal);
}

/* 悬停时图标背景变化 */
.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.service-card:hover .service-icon i {
    color: var(--bg-white) !important;
}

/* ============================================
   8. 产品展示样式
   功能：Tab切换、产品卡片
============================================ */
.nav-tabs {
    gap: 0.5rem;
}

.nav-tabs .nav-link {
    color: var(--text-dark);
    background-color: transparent;
    border: 2px solid transparent;
    border-radius: var(--border-radius-lg);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    border-color: rgba(37, 99, 235, 0.3);
}

.nav-tabs .nav-link.active {
    color: var(--bg-white);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Tab内容动画 */
.tab-content .tab-pane {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 产品图片悬停效果 */
.tab-content img {
    transition: transform var(--transition-normal);
}

.tab-content img:hover {
    transform: scale(1.02);
}

/* 产品展示轮播样式优化 */
#product1Carousel {
    overflow: hidden;
}

#product1Carousel .carousel-item img {
    transition: all 0.6s ease-in-out;
}

#product1Carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    transition: all 0.3s ease;
}

#product1Carousel .carousel-indicators button.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

#product1Carousel .carousel-control-prev,
#product1Carousel .carousel-control-next {
    width: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#product1Carousel:hover .carousel-control-prev,
#product1Carousel:hover .carousel-control-next {
    opacity: 1;
}

#product1Carousel .carousel-control-prev-icon,
#product1Carousel .carousel-control-next-icon {
    width: 30px;
    height: 30px;
    background-color: rgba(37, 99, 235, 0.8);
    border-radius: 50%;
    padding: 8px;
}

/* ============================================
   9. 数字成就样式
   功能：深色背景、优势卡片
============================================ */
.advantage-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.advantage-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

/* 优势图标容器 */
.advantage-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(96, 165, 250, 0.2) 100%);
    border-radius: 50%;
}

/* ============================================
   11. 新闻动态样式
   功能：新闻卡片、悬停效果
============================================ */
.news-card {
    transition: all var(--transition-normal);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl) !important;
}

/* 新闻图片容器 */
.news-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

/* 新闻卡片悬停时图片放大 */
.news-card:hover .news-image img {
    transform: scale(1.1);
}

/* 新闻日期标签 */
.news-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    line-height: 1.2;
}

.news-date .day {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
}

.news-date .month {
    display: block;
    font-size: 0.75rem;
}

/* ============================================
   12. 联系我们样式
   功能：联系信息卡片、表单样式
============================================ */
.contact-info-card {
    background-color: var(--bg-white);
    height: 100%;
}

.contact-item {
    align-items: flex-start;
}

/* 联系图标容器 */
.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-form-card {
    background-color: var(--bg-white);
}

/* 表单控件样式 */
.form-control,
.form-select {
    padding: 0.75rem 1rem;
    border: 1px solid #E2E8F0;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
    border-color: var(--danger-color);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* 主按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* 边框按钮样式 */
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all var(--transition-normal);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
}

/* 地图容器 */
.map-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

/* ============================================
   13. 底部Footer样式
   功能：4列布局、社交媒体、版权信息
============================================ */
.footer {
    background-color: var(--bg-dark);
    color: var(--bg-white);
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-white);
}

/* 社交媒体链接 */
.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border-radius: 50%;
    font-size: 1.25rem;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-3px);
}

/* Footer链接列表 */
.footer-links {
    padding: 0;
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

/* Footer联系信息 */
.footer-contact li {
    align-items: flex-start;
}

.footer-contact i {
    margin-top: 3px;
}

/* ============================================
   14. 回到顶部按钮
   功能：滚动显示、平滑滚动
============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    transform: translateY(-3px);
}

/* ============================================
   音乐控制按钮
   功能：固定位置、点击播放/暂停背景音乐
============================================ */
.music-toggle-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.music-toggle-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.music-toggle-btn.playing {
    animation: musicPulse 1.5s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 99, 235, 0);
    }
}

/* ============================================
   15. 响应式媒体查询
============================================ */

/* 平板端 (768px - 1200px) */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .stat-card .display-4 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 4rem 0;
    }
}

/* 移动端 (< 768px) */
@media (max-width: 768px) {
    /* 导航栏移动端优化 */
    .navbar {
        padding: 0.5rem 0.8rem;
        background-color: rgba(15, 23, 42, 0.95) !important;
        backdrop-filter: blur(10px);
    }

    .navbar-brand img {
        height: 50px !important;
    }

    /* 汉堡菜单按钮优化 */
    .navbar-toggler {
        border: 1px solid rgba(255, 255, 255, 0.5);
        padding: 0.4rem 0.6rem;
        font-size: 1rem;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
        outline: none;
    }

    .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='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    /* 移动端菜单展开后的样式 */
    .navbar-collapse {
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(15px);
        margin-top: 0.5rem;
        border-radius: 8px;
        padding: 0.8rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }

    .navbar-nav {
        padding: 0.5rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.8rem 1rem !important;
        margin: 0.3rem 0;
        border-radius: 6px;
        transition: all 0.3s ease;
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: rgba(37, 99, 235, 0.2);
        color: #fff !important;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    /* Hero区域移动端样式 */
    .hero-section {
        text-align: center;
    }

    .hero-section .container {
        padding-top: 80px;
    }

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

    .hero-subtitle {
        margin: 0 auto 2rem;
    }

    /* Hero按钮垂直排列 */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* 隐藏SVG动画 */
    .hero-svg-container {
        display: none;
    }

    /* 隐藏滚动箭头 */
    .scroll-down-arrow {
        display: none;
    }

    /* 区块标题样式 */
    .section-header {
        margin-bottom: 2rem;
    }

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

    .section-padding {
        padding: 3rem 0;
    }

    /* 统计卡片样式 */
    .stat-card {
        padding: 1.5rem !important;
    }

    /* 产品展示轮播移动端适配 */
    #product1Carousel .carousel-item img {
        height: 250px !important;
    }

    #product1Carousel .carousel-control-prev,
    #product1Carousel .carousel-control-next {
        opacity: 1;
        width: 40px;
    }

    #product1Carousel .carousel-indicators button {
        width: 8px;
        height: 8px;
    }

    .stat-card .display-4 {
        font-size: 1.75rem;
    }

    /* 服务卡片样式 */
    .service-card {
        padding: 1.5rem !important;
    }

    /* Tab导航垂直排列 */
    .nav-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-tabs .nav-link {
        text-align: center;
    }

    /* 优势卡片样式 */
    .advantage-card {
        padding: 1.5rem !important;
    }

    /* 新闻图片高度 */
    .news-image {
        height: 180px;
    }

    /* 产品展示图片自适应 */
    .placeholder-img,
    .placeholder-img img {
        max-width: 100%;
        height: auto !important;
    }

    /* 联系信息卡片 */
    .contact-info-card {
        padding: 1.5rem !important;
    }

    /* 联系表单自适应 */
    .contact-form-card {
        margin-top: 2rem;
    }

    /* Footer居中 */
    .footer {
        text-align: center;
    }

    .footer-links,
    .footer-contact {
        align-items: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    /* 回到顶部按钮 */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    /* 音乐控制按钮移动端适配 */
    .music-toggle-btn {
        bottom: 1rem;
        left: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    /* 二维码按钮移动端适配 */
    .qr-code-btn {
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        width: 65px;
        height: 65px;
        font-size: 2rem;
    }

    .qr-code-btn:hover {
        transform: translateY(-50%) scale(1.1) rotate(5deg);
    }

    .qr-code-btn:active {
        transform: translateY(-50%) scale(0.95);
    }

    /* 移动端独立二维码按钮 */
    .qr-code-btn-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.75rem 1.5rem;
        background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50px;
        color: white;
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    }

    .qr-code-btn-mobile:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
        border-color: rgba(255, 255, 255, 0.6);
    }

    .qr-code-btn-mobile:active {
        transform: translateY(0);
    }

    .qr-code-btn-mobile i {
        font-size: 1.25rem;
    }
}

/* 小屏幕手机 (< 576px) */
@media (max-width: 576px) {
    /* 导航栏进一步优化 */
    .navbar {
        padding: 0.4rem 0.6rem;
    }

    .navbar-brand img {
        height: 45px !important;
    }

    .navbar-toggler {
        padding: 0.3rem 0.5rem;
        font-size: 0.9rem;
    }

    .navbar-collapse {
        margin-top: 0.4rem;
        padding: 0.5rem;
    }

    .navbar-nav .nav-link {
        padding: 0.7rem 0.8rem !important;
        font-size: 0.95rem;
    }
}

/* 超小屏幕 (< 576px) */
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }

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

    .stat-card .display-4 {
        font-size: 1.5rem;
    }

    .news-image {
        height: 150px;
    }
}

/* PC端 (1200px+) */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-svg {
        max-width: 500px;
    }
}

/* ============================================
   16. 动画关键帧
============================================ */

/* AOS动画自定义设置 */
[data-aos="fade-right"] {
    transform: translateX(30px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
    opacity: 1;
}

[data-aos="fade-left"] {
    transform: translateX(-30px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

/* 数字滚动动画 */
.counter {
    display: inline-block;
}

/* 加载动画 */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}
