/*-----------------------------------------------------------------------------------
    Template Name: 智慧安防科技官网
    Description: 智慧安防公司官方网站 - 安防监控、人脸门禁、智慧停车系统
    Author: AI Assistant
    Version: 2.0
    Last Updated: 2024-01-15
-----------------------------------------------------------------------------------*/

/*-----------------------------------------------------------------------------------
    CSS INDEX
    ===================
    1. 基础样式 & CSS变量
    2. 预加载动画
    3. 顶部信息栏
    4. 导航菜单
    5. 移动端菜单
    6. 轮播图
    7. 按钮样式
    8. 标题样式
    9. 服务卡片
    10. 关于我们
    11. 数据统计
    12. 案例展示
    13. 客户评价
    14. 合作伙伴
    15. 联系预览
    16. 页脚
    17. 动画效果
    18. 现代化交互效果
    19. 性能优化
    20. 响应式设计增强
-----------------------------------------------------------------------------------*/

/*-----------------------------------------------------------------------------------
    1. 基础样式
-----------------------------------------------------------------------------------*/
:root {
    /* 主色调 */
    --primary-color: #0056b3;
    --secondary-color: #00a0e9;
    --accent-color: #ff6b6b;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    
    /* 文本颜色 */
    --text-color: #555555;
    --text-light: #777777;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --text-white: #ffffff;
    
    /* 边框和背景 */
    --border-color: #e9e9e9;
    --border-light: #f1f1f1;
    --border-dark: #dee2e6;
    --overlay-color: rgba(0, 86, 179, 0.85);
    --overlay-dark: rgba(26, 26, 26, 0.8);
    --overlay-light: rgba(255, 255, 255, 0.9);
    
    /* RGB颜色值（用于透明度） */
    --primary-rgb: 0, 86, 179;
    --secondary-rgb: 0, 160, 233;
    --accent-rgb: 255, 107, 107;
    --success-rgb: 40, 167, 69;
    --warning-rgb: 255, 193, 7;
    --dark-rgb: 26, 26, 26;
    --light-rgb: 248, 249, 250;
    
    /* 渐变色 */
    --gradient-primary: linear-gradient(135deg, #0056b3 0%, #00a0e9 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    --gradient-light: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    
    /* 阴影效果 */
    --box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --box-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --box-shadow-md: 0 5px 20px rgba(0, 0, 0, 0.12);
    --box-shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.15);
    --box-shadow-xl: 0 25px 80px rgba(0, 0, 0, 0.2);
    --box-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
    --box-shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    
    /* 过渡动画 */
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.6s ease;
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* 边框圆角 */
    --border-radius: 12px;
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    --border-radius-pill: 50px;
    --border-radius-circle: 50%;
    
    /* 间距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;
    
    /* 字体大小 */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* 字体权重 */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* 行高 */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    --line-height-loose: 2;
    
    /* Z-index层级 */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
    
    /* 断点 */
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-xxl: 1400px;
}

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

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: var(--text-color);
    background-color: var(--white-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
    /* 性能优化 */
    will-change: scroll-position;
    /* 现代浏览器优化 */
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    font-variant-ligatures: common-ligatures;
    /* 减少重绘 */
    backface-visibility: hidden;
    perspective: 1000px;
}

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

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

ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

[class*="col-"] {
    padding: 0 15px;
}

.col-md-5 {
    width: 41.66%;
}

.col-md-6 {
    width: 50%;
}

.col-md-7 {
    width: 58.33%;
}

.col-lg-2 {
    width: 16.66%;
}

.col-lg-3 {
    width: 25%;
}

.col-lg-4 {
    width: 33.33%;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mt-5 {
    margin-top: 3rem;
}

section {
    padding: 100px 0;
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
    z-index: 1;
}

/*-----------------------------------------------------------------------------------
    2. 预加载动画
-----------------------------------------------------------------------------------*/
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 50px;
    height: 50px;
    position: relative;
}

.circular {
    animation: rotate 2s linear infinite;
    height: 50px;
    width: 50px;
    position: relative;
}

.path {
    stroke: var(--primary-color);
    stroke-dasharray: 150, 200;
    stroke-dashoffset: -10;
    animation: dash 1.5s ease-in-out infinite;
    stroke-linecap: round;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124;
    }
}

/*-----------------------------------------------------------------------------------
    3. 顶部信息栏
-----------------------------------------------------------------------------------*/
.top-bar {
    background-color: var(--dark-color);
    padding: 10px 0;
    color: #ffffff;
    font-size: 14px;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info {
    display: flex;
}

.top-bar-info li {
    margin-right: 20px;
}

.top-bar-info li:last-child {
    margin-right: 0;
}

.top-bar-info li i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.top-bar-info li a {
    color: #ffffff;
}

.top-bar-info li a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
}

.social-icons li {
    margin-left: 15px;
}

.social-icons li:first-child {
    margin-left: 0;
}

.social-icons a {
    color: #ffffff;
    font-size: 14px;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--secondary-color);
}

/*-----------------------------------------------------------------------------------
    4. 导航菜单
-----------------------------------------------------------------------------------*/
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header.sticky {
    background-color: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header.transparent {
    position: absolute;
    background-color: transparent;
    box-shadow: none;
}

.header.transparent .main-logo {
    display: none;
}

.header.transparent .white-logo {
    display: block;
}

.header.transparent .nav-menu > li > a {
    color: #ffffff;
}

.header.transparent.sticky {
    position: fixed;
    background-color: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header.transparent.sticky .main-logo {
    display: block;
}

.header.transparent.sticky .white-logo {
    display: none;
}

.header.transparent.sticky .nav-menu > li > a {
    color: var(--dark-color);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 50px;
}

.white-logo {
    display: none;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
}

.nav-menu > li {
    position: relative;
    margin: 0 15px;
}

.nav-menu > li:last-child {
    margin-right: 0;
}

.nav-menu > li > a {
    display: block;
    padding: 30px 0;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 16px;
    position: relative;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu > li:hover > a::after,
.nav-menu > li.active > a::after {
    width: 100%;
}

.nav-menu > li.active > a {
    color: var(--primary-color);
}

.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background-color: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 99;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    position: relative;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 20px;
    color: var(--text-color);
    font-size: 14px;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    color: var(--primary-color);
    background-color: #f8f9fa;
    padding-left: 25px;
}

.header-right {
    display: flex;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    width: 30px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--dark-color);
    margin-bottom: 5px;
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu-toggle span:last-child {
    margin-bottom: 0;
}

/*-----------------------------------------------------------------------------------
    5. 移动端菜单
-----------------------------------------------------------------------------------*/
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    overflow-y: auto;
    transition: var(--transition);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-header .logo img {
    max-height: 40px;
}

.mobile-menu-close {
    font-size: 20px;
    cursor: pointer;
    color: var(--dark-color);
}

.mobile-nav {
    padding: 20px;
}

.mobile-menu-list li {
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-list li:last-child {
    border-bottom: none;
}

.mobile-menu-list li a {
    display: block;
    padding: 12px 0;
    color: var(--dark-color);
    font-weight: 500;
}

.mobile-menu-list li.active > a {
    color: var(--primary-color);
}

.mobile-menu-list li.has-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-list li.has-dropdown > a i {
    font-size: 12px;
    transition: var(--transition);
}

.mobile-menu-list li.has-dropdown.active > a i {
    transform: rotate(180deg);
}

.mobile-dropdown {
    display: none;
    padding-left: 15px;
}

.mobile-dropdown li {
    border-bottom: none;
}

.mobile-dropdown li a {
    padding: 8px 0;
    font-size: 14px;
}

.mobile-contact-info {
    padding: 20px;
    background-color: #f8f9fa;
}

.mobile-contact-info .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

/*-----------------------------------------------------------------------------------
    18. 现代化交互效果
-----------------------------------------------------------------------------------*/

/* 滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: var(--z-fixed);
    transition: width 0.1s ease;
    border-radius: 0 3px 3px 0;
}

/* 鼠标跟随效果 */
.mouse-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(var(--primary-rgb), 0.3);
    border-radius: var(--border-radius-circle);
    pointer-events: none;
    z-index: var(--z-tooltip);
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
    backdrop-filter: blur(2px);
}

.mouse-follower.active {
    transform: scale(2);
    background: rgba(var(--accent-rgb), 0.5);
}

/* 懒加载图片效果 */
.lazy-image {
    opacity: 0;
    transition: opacity 0.6s ease;
    filter: blur(5px);
}

.lazy-image.loaded {
    opacity: 1;
    filter: blur(0);
}

/* 视差滚动效果 */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

.parallax-slow {
    transform: translate3d(0, 0, 0);
}

/* 页面加载动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* 悬浮卡片效果 */
.hover-card {
    transition: var(--transition);
    transform: translateY(0);
    box-shadow: var(--box-shadow-sm);
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

/* 渐变边框效果 */
.gradient-border {
    position: relative;
    background: var(--white-color);
    border-radius: var(--border-radius);
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius);
    padding: 2px;
    background: var(--gradient-primary);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
}

/* 脉冲动画 */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 呼吸灯效果 */
.breathing {
    animation: breathing 3s ease-in-out infinite;
}

@keyframes breathing {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* 浮动动画 */
.floating {
    animation: floating 3s ease-in-out infinite;
}

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

/* 旋转动画 */
.rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 闪烁效果 */
.shimmer {
    position: relative;
    overflow: hidden;
}

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

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

/*-----------------------------------------------------------------------------------
    19. 性能优化
-----------------------------------------------------------------------------------*/

/* GPU加速 */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* 减少重绘 */
.no-repaint {
    contain: layout style paint;
}

/* 优化滚动性能 */
.smooth-scroll {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* 图片优化 */
.optimized-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

/* 字体渲染优化 */
.optimized-text {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern' 1, 'liga' 1;
}

/* 减少布局抖动 */
.stable-layout {
    contain: layout;
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/*-----------------------------------------------------------------------------------
    20. 响应式设计增强
-----------------------------------------------------------------------------------*/

/* 容器查询支持 */
@container (min-width: 768px) {
    .container-responsive {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--spacing-md);
    }
}

/* 现代网格布局 */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    align-items: start;
}

/* Flexbox增强 */
.flex-modern {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    align-items: stretch;
}

.flex-modern > * {
    flex: 1 1 300px;
    min-width: 0;
}

/* 响应式字体 */
.responsive-text {
    font-size: clamp(1rem, 2.5vw, 2rem);
    line-height: 1.4;
}

.responsive-heading {
    font-size: clamp(1.5rem, 4vw, 3rem);
    line-height: 1.2;
}

/* 响应式间距 */
.responsive-spacing {
    padding: clamp(1rem, 5vw, 3rem);
    margin: clamp(0.5rem, 2vw, 2rem) 0;
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #e9ecef;
        --text-light: #adb5bd;
        --text-dark: #f8f9fa;
        --border-color: #495057;
        --light-color: #212529;
        --white-color: #1a1a1a;
    }
    
    .dark-mode-invert {
        filter: invert(1) hue-rotate(180deg);
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .parallax {
        transform: none !important;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --box-shadow: none;
        --border-color: #000000;
    }
    
    .hover-card {
        border: 2px solid var(--primary-color);
    }
}

/* 打印样式优化 */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-before: always;
    }
    
    .print-avoid-break {
        page-break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000000;
        background: #ffffff;
    }
    
    a {
        color: #000000;
        text-decoration: underline;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

.mobile-contact-info .contact-item:last-child {
    margin-bottom: 0;
}

.mobile-contact-info .contact-item i {
    margin-right: 10px;
    color: var(--primary-color);
}

.mobile-contact-info .social-icons {
    display: flex;
    margin-top: 20px;
}

.mobile-contact-info .social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    margin-right: 10px;
}

.mobile-contact-info .social-icons a:hover {
    background-color: var(--secondary-color);
}

/*-----------------------------------------------------------------------------------
    6. 轮播图
-----------------------------------------------------------------------------------*/
.hero-slider {
    position: relative;
    height: 700px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    width: 100%;
    padding: 0 15px;
    z-index: 1;
}

.slide-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
}

.slide-content .btn {
    opacity: 0;
    transform: translateY(20px);
}

.slide.active .animate-text {
    animation: fadeInUp 0.5s ease forwards;
}

.slide.active .delay-1 {
    animation-delay: 0.3s;
}

.slide.active .delay-2 {
    animation-delay: 0.6s;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    z-index: 10;
}

.prev-slide,
.next-slide {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.prev-slide:hover,
.next-slide:hover {
    background-color: var(--primary-color);
}

.slider-dots {
    display: flex;
    margin: 0 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

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

/*-----------------------------------------------------------------------------------
    7. 按钮样式
-----------------------------------------------------------------------------------*/
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--box-shadow);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
    color: #ffffff;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--box-shadow);
}

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

.btn-outline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-outline:hover {
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.btn-outline:hover::after {
    width: 100%;
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: #ffffff;
    border: 2px solid transparent;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
    color: #ffffff;
}

.btn-light {
    background-color: #ffffff;
    color: var(--dark-color);
    border: 2px solid #ffffff;
}

.btn-light:hover {
    background-color: transparent;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 14px;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-rounded {
    border-radius: 50px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-icon i {
    transition: transform 0.3s ease;
}

.btn-icon:hover i {
    transform: translateX(3px);
}

.read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: var(--primary-color);
}

.read-more i {
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

/*-----------------------------------------------------------------------------------
    8. 标题样式
-----------------------------------------------------------------------------------*/
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

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

.section-header.text-left {
    text-align: left;
}

.section-header.text-left h2::after {
    left: 0;
    transform: none;
}

.section-header.light h2 {
    color: #ffffff;
}

.section-header.light p {
    color: rgba(255, 255, 255, 0.8);
}

.section-header.light h2::after {
    background-color: #ffffff;
}

/*-----------------------------------------------------------------------------------
    9. 服务卡片
-----------------------------------------------------------------------------------*/
.services-overview {
    background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.services-overview::before {
    content: '';
    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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.service-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(var(--primary-rgb), 0.15);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.service-card:hover::before {
    left: 100%;
}

.service-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto var(--spacing-md);
    color: #ffffff;
    font-size: 32px;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.service-card:hover .service-icon {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.4);
}

.service-card:hover .service-icon::before {
    opacity: 0.3;
    transform: scale(1.2);
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary-color);
}

.service-card p {
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.service-card:hover p {
    color: var(--text-dark);
}

.service-features {
    list-style: none;
    margin-top: var(--spacing-md);
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-color);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.service-card:hover .service-features li {
    opacity: 1;
    transform: translateX(0);
}

.service-features li:nth-child(1) { transition-delay: 0.1s; }
.service-features li:nth-child(2) { transition-delay: 0.2s; }
.service-features li:nth-child(3) { transition-delay: 0.3s; }

.service-features li i {
    color: var(--success-color);
    margin-right: 8px;
    font-size: 12px;
}

/*-----------------------------------------------------------------------------------
    10. 关于我们
-----------------------------------------------------------------------------------*/
.about-preview {
    overflow: hidden;
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 100px;
    height: 100px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.experience-badge .years {
    font-size: 24px;
    line-height: 1;
}

.experience-badge .text {
    font-size: 14px;
}

.about-content {
    padding: 30px 0;
}

.feature-list {
    margin: 25px 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.feature-list li:last-child {
    margin-bottom: 0;
}

.feature-list li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/*-----------------------------------------------------------------------------------
    11. 数据统计
-----------------------------------------------------------------------------------*/
.counter-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 80px 0;
    color: #ffffff;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.counter-item {
    text-align: center;
}

.counter-icon {
    font-size: 40px;
    color: #ffffff;
    margin-bottom: 15px;
}

.counter-number {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 10px;
}

.counter-text {
    font-size: 18px;
    font-weight: 500;
}

/*-----------------------------------------------------------------------------------
    12. 案例展示
-----------------------------------------------------------------------------------*/
.case-studies {
    position: relative;
    overflow: hidden;
}

.case-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: var(--spacing-xl);
}

.filter-btn {
    padding: 12px 24px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.filter-btn:hover {
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.2);
}

.filter-btn:hover::before {
    left: 0;
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.case-item {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background: #ffffff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.case-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--secondary-rgb), 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.case-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.case-item:hover::before {
    opacity: 1;
}

.case-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.9) 0%, rgba(var(--secondary-rgb), 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.case-item:hover .case-overlay {
    opacity: 1;
    visibility: visible;
}

.case-item:hover .case-image img {
    transform: scale(1.15);
}

.case-content {
    text-align: center;
    padding: var(--spacing-md);
    color: #ffffff;
    position: relative;
    z-index: 3;
}

.case-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.case-content p {
    margin-bottom: var(--spacing-md);
    font-size: 16px;
    line-height: 1.6;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.case-item:hover .case-content h3,
.case-item:hover .case-content p {
    transform: translateY(0);
}

.case-info {
    padding: var(--spacing-md);
    background: #ffffff;
    position: relative;
    z-index: 2;
}

.case-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.case-info .case-category {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-item:hover .case-info h4 {
    color: var(--primary-color);
}

.case-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.case-view-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/*-----------------------------------------------------------------------------------
    13. 客户评价
-----------------------------------------------------------------------------------*/
.testimonials {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 100px 0;
    color: #ffffff;
}

.testimonial-slider {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.testimonial-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.testimonial-item.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.testimonial-content {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
}

.quote-icon {
    font-size: 30px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.client-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-details h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.client-details p {
    font-size: 14px;
    margin-bottom: 0;
    opacity: 0.8;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.prev-testimonial,
.next-testimonial {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.prev-testimonial:hover,
.next-testimonial:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.testimonial-dots {
    display: flex;
    margin: 0 15px;
}

.testimonial-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dots .dot.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

/*-----------------------------------------------------------------------------------
    14. 合作伙伴
-----------------------------------------------------------------------------------*/
.partners {
    background-color: var(--light-color);
}

.partner-slider {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.partner-logo {
    width: 20%;
    padding: 20px;
    text-align: center;
}

.partner-logo img {
    max-width: 150px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/*-----------------------------------------------------------------------------------
    15. 联系预览
-----------------------------------------------------------------------------------*/
.contact-preview {
    padding-bottom: 120px;
}

.contact-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.contact-content {
    padding: 50px 30px;
}

.contact-content h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.contact-content p {
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-right: 30px;
    margin-bottom: 20px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 20px;
}

.info-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*-----------------------------------------------------------------------------------
    16. 页脚
-----------------------------------------------------------------------------------*/
.footer {
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

.footer-top {
    padding: 80px 0 50px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-height: 50px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget p {
    margin-bottom: 20px;
}

.footer-widget .social-icons {
    display: flex;
}

.footer-widget .social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.footer-widget .social-icons a:hover {
    background-color: var(--primary-color);
}

.widget-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li:last-child {
    margin-bottom: 0;
}

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

.footer-links li a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.contact-widget .contact-item {
    display: flex;
    margin-bottom: 15px;
}

.contact-widget .contact-item:last-child {
    margin-bottom: 0;
}

.contact-widget .icon {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 16px;
}

.contact-widget .text a {
    color: rgba(255, 255, 255, 0.7);
}

.contact-widget .text a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright {
    font-size: 14px;
}

.copyright a {
    color: rgba(255, 255, 255, 0.7);
}

.copyright a:hover {
    color: #ffffff;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
}

/*-----------------------------------------------------------------------------------
    17. 动画效果
-----------------------------------------------------------------------------------*/
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}