@import "tailwindcss"; @theme { /* 主题色 */ --color-primary: #2e5deb; --color-secondary: #ff5b83; --color-text: #585858; --color-title: #1A1D2D; --color-light-bg: #f6f6f6; --color-services-bg: #f2f8ff; /* 字体 */ --font-family-sans: 'Poppins', sans-serif; --font-family-body: 'Hind', sans-serif; /* 阴影 */ --shadow-card: 0px 9px 24px 5px rgba(0, 0, 0, 0.04); --shadow-card-hover: 1px 20px 30px rgba(196, 196, 196, 0.2); /* 圆角 */ --radius-card: 4px; } /* 全局样式 */ html { scroll-behavior: smooth; } body { font-family: var(--font-family-body); color: var(--color-text); line-height: 1.6; } h1, h2, h3, h4, h5, h6 { font-family: var(--font-family-sans); color: var(--color-title); } /* 服务页背景图片 */ .ser-bg1 { background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/src/assets/images/g1.jpg'); background-size: cover; background-position: center; } .ser-bg2 { background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/src/assets/images/g2.jpg'); background-size: cover; background-position: center; } .ser-bg3 { background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/src/assets/images/g4.jpg'); background-size: cover; background-position: center; } /* 面包屑背景 */ .breadcrum-bg { background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/src/assets/images/6.jpg'); background-size: cover; background-position: center; } /* 滚动鼠标动画 */ .icon-scroll { width: 25px; height: 40px; border: 2px solid #fff; border-radius: 15px; position: relative; display: inline-block; } .icon-scroll .wheel { width: 4px; height: 8px; background: #fff; border-radius: 2px; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); animation: scroll 1.5s ease infinite; } @keyframes scroll { 0% { opacity: 1; transform: translateX(-50%) translateY(0); } 100% { opacity: 0; transform: translateX(-50%) translateY(10px); } } /* 图片缩放效果 */ .zoom { overflow: hidden; } .zoom img { transition: transform 0.5s ease; } .zoom:hover img { transform: scale(1.1); } /* 按钮样式 */ .btn-theme2 { background-color: var(--color-secondary); color: #fff; padding: 12px 30px; border-radius: 4px; font-weight: 600; transition: all 0.3s ease; } .btn-theme2:hover { background-color: #e04a70; } /* 表单样式 */ .contact-input { width: 100%; padding: 12px 15px; border: 1px solid #e0e0e0; border-radius: 4px; margin-bottom: 15px; font-family: var(--font-family-body); } .contact-input:focus { outline: none; border-color: var(--color-primary); } /* 订阅表单 */ .subscribe { display: flex; background: #fff; border-radius: 4px; overflow: hidden; } .subscribe input { flex: 1; padding: 12px 15px; border: none; outline: none; } .subscribe button { background: var(--color-secondary); color: #fff; padding: 12px 20px; border: none; cursor: pointer; } /* 统计数字动画 */ @keyframes countUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } /* Swiper 自定义样式 */ .hero-swiper .swiper-button-next, .hero-swiper .swiper-button-prev { color: white; background: rgba(255, 255, 255, 0.1); width: 50px; height: 50px; border-radius: 50%; } .hero-swiper .swiper-button-next:after, .hero-swiper .swiper-button-prev:after { font-size: 20px; } .hero-swiper .swiper-pagination-bullet { background: white; opacity: 0.5; } .hero-swiper .swiper-pagination-bullet-active { opacity: 1; background: #ff5b83; } /* 轮播指示器 */ .carousel-indicators { display: flex; justify-content: center; gap: 8px; margin-top: 20px; } .carousel-indicators button { width: 12px; height: 12px; border-radius: 50%; border: none; background: #ddd; cursor: pointer; transition: background 0.3s; } .carousel-indicators button.active { background: var(--color-secondary); } /* 团队卡片社交图标 */ .team-info .social { transition: all 0.3s ease; } /* 服务卡片 hover 时标题变色 */ .group:hover h4 { color: #ffffff !important; } /* Stats 区块服务卡片 hover 效果 */ .stats-service-card { background: rgba(46, 93, 235, 0.33); transition: all 0.3s ease; } .stats-service-card:hover { background: #ffffff !important; }