/* CSS优化：将关键CSS内联，减少渲染阻塞 */
:root {
--primary-color: #0056b3;
--primary-light: #0066cc;
--secondary-color: #0088cc;
--secondary-dark: #006699;
--accent-color: #004080;
--light-color: #f8f9fa;
--dark-color: #212529;
--gray-color: #6c757d;
--success-color: #28a745;
--font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Inter', 'Noto Sans SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
--box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
--box-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
--transition: all 0.3s ease;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: var(--font-main);
color: var(--dark-color);
line-height: 1.6;
background-color: #f9f9f9;
overflow-x: hidden;
}
a {
text-decoration: none;
color: inherit;
}
img {
border-style: none;
display: inline-block;
width: auto;
height: auto;
max-width: 100%;
max-height: 100%;
vertical-align: middle;
transition: var(--transition);
}
img:hover {
transform: scale(1.02);
}
ul {
list-style: none;
}
.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 15px;
}
/* 顶部信息栏 */
.top-info-bar {
background-color: var(--primary-color);
color: white;
padding: 8px 0;
font-size: 14px;
position: relative;
overflow: hidden;
}
.top-info-bar::after {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
animation: shine 8s infinite;
}
@keyframes shine {
100% {
left: 100%;
}
}
.top-info-content {
display: flex;
justify-content: space-between;
align-items: center;
}
.top-contact-info span {
margin-right: 20px;
}
.top-contact-info i {
margin-right: 5px;
color: var(--secondary-color);
}
.social-links a {
margin-left: 15px;
color: white;
transition: var(--transition);
}
.social-links a:hover {
color: var(--secondary-color);
transform: translateY(-2px);
}
/* 导航栏 */
header {
background-color: white;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
position: sticky;
top: 0;
z-index: 1000;
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 0;
}
.logo {
display: flex;
align-items: center;
}
.logo-img {
width: 90px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
margin: 0 10px;
color: white;
font-weight: bold;
font-size: 12px;
box-shadow: 0 3px 10px rgba(0,0,0,0.1);
overflow: hidden;
}
.logo-text .logo-title {
font-size: 18px;
font-weight: 700;
color: var(--primary-color);
line-height: 1.2;
}
.logo-text .subtitle {
font-size: 13px;
color: var(--gray-color);
}
nav ul {
display: flex;
}
nav ul li {
position: relative;
}
nav ul li a {
display: block;
padding: 10px 18px;
font-weight: 500;
color: var(--dark-color);
transition: var(--transition);
position: relative;
}
nav ul li a:after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
width: 0;
height: 3px;
background-color: var(--secondary-color);
transition: var(--transition);
transform: translateX(-50%);
}
nav ul li a:hover, nav ul li a.active {
color: var(--primary-color);
}
nav ul li a:hover:after, nav ul li a.active:after {
width: 80%;
}
.nav-cta {
margin-left: 20px;
}
/* 下拉菜单样式 - 优化版 */
.dropdown {
position: relative;
}
.dropdown-menu {
position: absolute;
top: 100%;
left: 0;
background-color: white;
min-width: 220px;
box-shadow: var(--box-shadow-hover);
border-radius: 0 0 8px 8px;
opacity: 0;
visibility: hidden;
transform: translateY(10px);
transition: var(--transition);
z-index: 1001;
display: flex;
flex-direction: column;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.dropdown-menu li {
border-bottom: 1px solid #f0f0f0;
width: 100%;
}
.dropdown-menu li:last-child {
border-bottom: none;
}
.dropdown-menu a {
padding: 12px 20px;
display: block;
color: var(--dark-color);
transition: var(--transition);
width: 100%;
white-space: nowrap;
}
.dropdown-menu a:hover {
background-color: var(--light-color);
color: var(--primary-color);
padding-left: 25px;
}
.dropdown-menu a:after {
display: none;
}
/* 移动端下拉菜单样式 - 修复显示问题 */
@media (max-width: 992px) {
.dropdown-menu {
position: static;
box-shadow: none;
background-color: #f8f9fa;
opacity: 1;
visibility: visible;
transform: none;
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease;
width: 100%;
/* 确保在未激活状态下完全隐藏 */
padding: 0;
border: none;
}
.dropdown.active .dropdown-menu {
max-height: 500px;
padding: 0;
}
.dropdown-menu a {
padding-left: 40px;
/* 确保在未激活状态下链接不可见 */
opacity: 0;
transition: opacity 0.3s ease 0.1s, padding 0.3s ease;
}
.dropdown.active .dropdown-menu a {
opacity: 1;
}
.dropdown > a {
display: flex;
justify-content: space-between;
align-items: center;
}
.dropdown > a::after {
content: '\f107';
font-family: 'Font Awesome 5 Free';
font-weight: 900;
transition: transform 0.3s ease;
}
.dropdown.active > a::after {
transform: rotate(180deg);
}
}
/* 移动端菜单按钮 */
.mobile-menu-btn {
display: none;
flex-direction: column;
justify-content: space-around;
width: 30px;
height: 25px;
background: transparent;
border: none;
cursor: pointer;
padding: 0;
position: relative;
}
.mobile-menu-btn span {
width: 30px;
height: 3px;
background-color: var(--primary-color);
border-radius: 2px;
transition: var(--transition);
transform-origin: center;
}
/* 菜单打开时按钮变为叉号 */
.mobile-menu-btn.active span:nth-child(1) {
transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
transform: rotate(-45deg) translate(7px, -6px);
}
/* 以下为原有样式保持不变 */
/* 英雄区域 */
.hero {
background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), no-repeat center center/cover;
position: relative;
color: white;
padding: 100px 0;
text-align: center;
overflow: hidden;
}
.hero img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -2;
transition: transform 8s ease;
}
.hero:hover img {
transform: scale(1.05);
}
.hero-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
z-index: -1;
}
.hero-content {
max-width: 800px;
margin: 0 auto;
}
.hero h1 {
font-size: 1.8rem;
margin-bottom: 20px;
font-weight: 700;
text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero p {
font-size: 1rem;
margin-bottom: 30px;
opacity: 0.9;
text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}
.hero-btns {
display: flex;
justify-content: center;
gap: 15px;
}
/* 按钮样式 */
.btn {
display: inline-block;
padding: 12px 28px;
border-radius: 4px;
font-weight: 500;
transition: var(--transition);
cursor: pointer;
text-align: center;
position: relative;
overflow: hidden;
z-index: 1;
}
.btn::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
transition: var(--transition);
}
.btn-primary {
background-color: var(--secondary-color);
color: #fff;
border: none;
}
.btn-primary::after {
background-color: var(--secondary-color);
transform: scale(0);
border-radius: 50%;
}
.btn-primary:hover {
background-color: var(--secondary-dark);
transform: translateY(-3px);
box-shadow: var(--box-shadow);
}
.btn-primary:hover::after {
transform: scale(2);
opacity: 0;
}
.btn-outline {
background-color: transparent;
border: 2px solid white;
color: white;
}
.btn-outline::after {
background-color: white;
transform: scale(0);
border-radius: 50%;
}
.btn-outline:hover {
background-color: var(--secondary-dark);
transform: translateY(-3px);
box-shadow: var(--box-shadow);
border-color: white;
}
/* 产品特点区域 */
.features {
padding: 80px 0;
background-color: white;
}
.section-title {
text-align: center;
margin-bottom: 50px;
}
.section-title h2 {
font-size: 1.6rem;
color: var(--primary-color);
margin-bottom: 15px;
position: relative;
display: inline-block;
padding-bottom: 15px;
}
.section-title h2:after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 80px;
height: 3px;
background-color: var(--secondary-color);
}
.section-title p {
color: var(--gray-color);
font-size: 1.1rem;
max-width: 700px;
margin: 0 auto;
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}
.feature-card {
background-color: var(--light-color);
border-radius: 8px;
padding: 30px;
text-align: center;
transition: var(--transition);
box-shadow: var(--box-shadow);
position: relative;
overflow: hidden;
}
.feature-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 5px;
background-color: var(--primary-color);
transform: translateX(-100%);
transition: var(--transition);
}
.feature-card:hover {
transform: translateY(-10px);
box-shadow: var(--box-shadow-hover);
}
.feature-card:hover::before {
transform: translateX(0);
}
.feature-icon {
font-size: 40px;
color: var(--primary-color);
margin-bottom: 20px;
transition: var(--transition);
}
.feature-card:hover .feature-icon {
transform: scale(1.1);
color: var(--primary-light);
}
.feature-card h3 {
font-size: 1.4rem;
margin-bottom: 15px;
color: var(--primary-color);
}
/* 产品展示区域 */
.products {
padding: 80px 0;
background-color: #f5f7fa;
}
.product-tabs {
display: flex;
justify-content: center;
margin-bottom: 40px;
flex-wrap: wrap;
gap: 10px;
}
.tab-btn {
padding: 12px 25px;
background: none;
border: none;
cursor: pointer;
font-size: 16px;
font-weight: 500;
color: var(--gray-color);
transition: var(--transition);
border-bottom: 3px solid transparent;
position: relative;
}
.tab-btn::after {
content: '';
position: absolute;
bottom: -3px;
left: 0;
width: 0;
height: 3px;
background-color: var(--secondary-color);
transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover {
color: var(--primary-color);
}
.tab-btn.active::after, .tab-btn:hover::after {
width: 100%;
}
.products-container {
position: relative;
}
.products-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 25px;
opacity: 1;
visibility: visible;
transition: opacity 0.3s ease, visibility 0.3s ease;
position: relative;
}
.products-grid.other {
position: absolute !important;
width: 1px !important;
height: 1px !important;
padding: 0 !important;
margin: -1px !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
white-space: nowrap !important;
border: 0 !important;
pointer-events: none !important;
visibility: hidden !important;
opacity: 0 !important;
}
.product-card {
background-color: white;
border-radius: 8px;
overflow: hidden;
transition: var(--transition);
box-shadow: var(--box-shadow);
}
.product-card:hover {
transform: translateY(-5px);
box-shadow: var(--box-shadow-hover);
}
.product-img {
height: 200px;
display: flex;
align-items: center;
justify-content: center;
color: var(--primary-color);
font-weight: bold;
overflow: hidden;
}
.product-content {
padding: 20px 0 0 20px;
}
.product-card h3 {
font-size: 0.9rem;
margin-bottom: 10px;
color: var(--primary-color);
padding: 20px 20px 0 20px;
}
.product-card p {
color: var(--gray-color);
margin-bottom: 15px;
font-size: 14px;
padding: 0 20px;
}
.product-link {
color: var(--primary-color);
font-weight: 500;
display: inline-flex;
align-items: center;
padding: 0 20px 20px;
transition: var(--transition);
}
.product-link:hover {
color: var(--primary-light);
}
.product-link i {
margin-left: 5px;
transition: var(--transition);
}
.product-link:hover i {
transform: translateX(5px);
}
.center-btn {
text-align: center;
margin-top: 40px;
}
/* 关于品牌区域 */
.about {
padding: 80px 0;
background-color: white;
}
.about-content {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 40px;
align-items: center;
}
.about-text h2 {
font-size: 1.6rem;
color: var(--primary-color);
margin-bottom: 20px;
position: relative;
padding-bottom: 15px;
}
.about-text h2:after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 80px;
height: 3px;
background-color: var(--secondary-color);
}
.about-text p {
margin-bottom: 15px;
color: var(--dark-color);
}
.about-features {
margin-top: 25px;
}
.about-feature {
display: flex;
align-items: center;
margin-bottom: 15px;
transition: var(--transition);
}
.about-feature:hover {
transform: translateX(5px);
}
.about-feature i {
color: var(--secondary-color);
margin-right: 10px;
font-size: 18px;
}
.about-img {
border-radius: 8px;
overflow: hidden;
height: 400px;
display: flex;
align-items: center;
justify-content: center;
color: var(--primary-color);
font-weight: bold;
box-shadow: var(--box-shadow);
}
/* 产品应用领域和优势 */
.advantages {
padding: 80px 0;
background-color: #f5f7fa;
}
.advantages-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
gap: 30px;
}
.advantage-card {
background-color: white;
border-radius: 8px;
padding: 30px;
box-shadow: var(--box-shadow);
transition: var(--transition);
}
.advantage-card:hover {
transform: translateY(-5px);
box-shadow: var(--box-shadow-hover);
}
.advantage-card h3 {
font-size: 1.2rem;
color: var(--primary-color);
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 2px solid var(--secondary-color);
}
.advantage-card ul {
/* margin-left: 20px; */
}
.advantage-card li {
margin-bottom: 10px;
position: relative;
padding-left: 20px;
transition: var(--transition);
}
.advantage-card li:hover {
padding-left: 25px;
}
.advantage-card li:before {
content: '•';
color: var(--secondary-color);
font-weight: bold;
position: absolute;
left: 0;
}
.keyword-highlight {
color: var(--primary-color);
font-weight: 600;
}
.accordion-section {
padding: 80px 0;
background-color: #f9f9f9;
}
.accordion-container {
max-width: 800px;
margin: 0 auto;
}
.accordion-unit {
border: 1px solid #e0e0e0;
border-radius: 8px;
margin-bottom: 15px;
background-color: white;
overflow: hidden;
transition: var(--transition);
}
.accordion-unit:hover {
box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.accordion-header {
width: 100%;
padding: 20px 25px;
background: none;
border: none;
text-align: left;
font-size: 1.1rem;
font-weight: 500;
color: var(--primary-color);
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
transition: background-color 0.3s ease;
}
.accordion-header:hover {
background-color: var(--light-color);
}
.accordion-header i {
transition: transform 0.3s ease;
color: var(--secondary-color);
font-size: 1.2rem;
}
.accordion-body {
padding: 0 25px;
max-height: 0;
overflow: hidden;
transition: max-height 0.4s ease, padding 0.4s ease;
}
.accordion-body p {
color: var(--gray-color);
line-height: 1.7;
padding: 20px 0;
border-top: 1px solid #f1f1f1;
}
/* 展开状态样式 */
.accordion-unit.expanded .accordion-body {
padding: 0 25px;
max-height: fit-content; /* 足够容纳内容的高度 */
}
.accordion-unit.expanded .accordion-header i {
transform: rotate(45deg);
}
/* 技术支持区域 */
.support {
padding: 80px 0;
background-color: white;
}
.support-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
}
.support-card {
background-color: var(--light-color);
border-radius: 8px;
padding: 30px;
text-align: center;
transition: var(--transition);
box-shadow: var(--box-shadow);
position: relative;
overflow: hidden;
}
.support-card::before {
content: '';
position: absolute;
top: 0;
right: 0;
width: 60px;
height: 60px;
background-color: rgba(0, 86, 179, 0.05);
transform: rotate(45deg) translate(30px, -30px);
transition: var(--transition);
}
.support-card:hover {
transform: translateY(-5px);
box-shadow: var(--box-shadow-hover);
}
.support-card:hover::before {
transform: rotate(45deg) translate(15px, -15px);
background-color: rgba(0, 86, 179, 0.1);
}
.support-icon {
font-size: 40px;
color: var(--primary-color);
margin-bottom: 20px;
transition: var(--transition);
}
.support-card:hover .support-icon {
transform: scale(1.1) rotate(5deg);
}
.support-card h3 {
font-size: 1.3rem;
margin-bottom: 15px;
color: var(--primary-color);
}
/* 新闻中心 */
.news {
padding: 80px 0;
background-color: #f5f7fa;
}
.news-tabs {
display: flex;
justify-content: center;
margin-bottom: 40px;
flex-wrap: wrap;
gap: 10px;
}
.news-tab-btn {
padding: 12px 25px;
background: none;
border: none;
cursor: pointer;
font-size: 16px;
font-weight: 500;
color: var(--gray-color);
transition: var(--transition);
border-bottom: 3px solid transparent;
position: relative;
}
.news-tab-btn::after {
content: '';
position: absolute;
bottom: -3px;
left: 0;
width: 0;
height: 3px;
background-color: var(--secondary-color);
transition: var(--transition);
}
.news-tab-btn.active, .news-tab-btn:hover {
color: var(--primary-color);
}
.news-tab-btn.active::after, .news-tab-btn:hover::after {
width: 100%;
}
.news-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 5px;
}
.news-card {
background-color: white;
border-radius: 8px;
overflow: hidden;
transition: var(--transition);
box-shadow: var(--box-shadow);
display: none;
}
.news-card.active {
display: block;
}
.news-card:hover {
transform: translateX(-2px);
box-shadow: var(--box-shadow-hover);
}
.news-img {
height: 200px;
background-color: #e9ecef;
display: flex;
align-items: center;
justify-content: center;
color: var(--primary-color);
font-weight: bold;
overflow: hidden;
}
.news-content {
padding: 10px;
}
.news-date {
color: var(--gray-color);
font-size: 14px;
margin-bottom: 10px;
display: flex;
align-items: center;
}
.news-date i {
margin-right: 5px;
}
.news-title {
font-size: 14px;
margin-bottom: 10px;
color: var(--primary-color);
line-height: 1.4;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
font-weight: bold;
white-space: normal;
overflow: hidden;
text-overflow: ellipsis;
}
.news-excerpt {
color: var(--gray-color);
margin-bottom: 15px;
}
/* 联系我们 */
.contact {
padding: 80px 0;
background-color: white;
}
.contact-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 40px;
}
.contact-info h3 {
font-size: 1.2rem;
color: var(--primary-color);
margin-bottom: 25px;
}
.contact-detail {
display: flex;
margin-bottom: 25px;
transition: var(--transition);
}
.contact-detail:hover {
transform: translateX(5px);
}
.contact-icon {
width: 50px;
height: 50px;
background-color: var(--light-color);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-right: 15px;
color: var(--primary-color);
font-size: 20px;
transition: var(--transition);
}
.contact-detail:hover .contact-icon {
background-color: var(--primary-color);
color: white;
transform: scale(1.1);
}
.contact-text h4 {
font-size: 1rem;
margin-bottom: 5px;
color: var(--primary-color);
}
.form-group {
margin-bottom: 25px;
}
.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 500;
color: var(--dark);
}
.form-group input,
.form-group textarea,
.form-group select {
width: 100%;
padding: 15px 20px;
border: 1px solid #ddd;
border-radius: 12px;
font-family: 'Poppins', sans-serif;
font-size: 16px;
transition: all 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
transform: translateY(-2px);
}
.form-group textarea {
min-height: 150px;
resize: vertical;
}
.form-row {
display: grid;
grid-template-columns: 3fr 1fr;
gap: 20px;
}
.submit-btn {
background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
color: white;
border: none;
padding: 16px;
border-radius: 30px;
font-weight: 500;
font-size: 16px;
cursor: pointer;
transition: all 0.3s ease;
display: inline-block;
box-shadow: 0 4px 15px rgba(0, 86, 179, 0.4);
width: 100%;
font-family: 'Poppins', sans-serif;
position: relative;
overflow: hidden;
z-index: 1;
}
.submit-btn::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(45deg, var(--primary-light), var(--primary-color));
z-index: -1;
opacity: 0;
transition: var(--transition);
}
.submit-btn:hover {
transform: translateY(-3px);
box-shadow: 0 6px 20px rgba(0, 86, 179, 0.6);
}
.submit-btn:hover::after {
opacity: 1;
}
/* 页脚 */
footer {
background-color: var(--primary-color);
color: white;
padding: 60px 0 20px;
position: relative;
}
footer::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 5px;
background-color: var(--secondary-color);
}
.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 40px;
margin-bottom: 40px;
}
.footer-column h3 {
font-size: 1.3rem;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
position: relative;
}
.footer-column h3::after {
content: '';
position: absolute;
bottom: -1px;
left: 0;
width: 50px;
height: 1px;
background-color: var(--secondary-color);
}
.footer-column p {
margin-bottom: 15px;
opacity: 0.8;
}
.footer-column ul li {
margin-bottom: 10px;
}
.footer-column ul li a {
opacity: 0.8;
transition: var(--transition);
}
.footer-column ul li a:hover {
opacity: 1;
color: var(--secondary-color);
padding-left: 5px;
}
.footer-bottom {
text-align: center;
padding-top: 20px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
font-size: 14px;
opacity: 0.8;
}
.footer-bottom {
font-size: 12px;
}
/* 返回顶部按钮 - 已添加visible类 */
.back-to-top {
position: fixed;
bottom: 30px;
right: 30px;
width: 50px;
height: 50px;
background-color: #0080ff;
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
z-index: 9999;
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
border: none;
outline: none;
}
.back-to-top.visible {
opacity: 1;
visibility: visible;
}
.back-to-top:hover {
background-color: #0058af;;
transform: translateY(-5px);
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}
.back-to-top i {
font-size: 18px;
transition: transform 0.3s ease;
}
.back-to-top:hover i {
transform: translateY(-2px);
}
/* 响应式设计 */
@media (max-width: 992px) {
.about-content,
.contact-grid {
grid-template-columns: 1fr;
}
.about-img {
order: -1;
}
nav ul {
display: none;
flex-direction: column;
position: absolute;
top: 100%;
left: 0;
right: 0;
background-color: white;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
padding: 20px;
z-index: 999;
}
nav ul.show {
display: flex;
}
nav ul li {
width: 100%;
border-bottom: 1px solid #f0f0f0;
}
nav ul li:last-child {
border-bottom: none;
}
nav ul li a {
padding: 15px 20px;
display: block;
width: 100%;
border-bottom: none !important;
font-weight: 500;
color: var(--dark-color);
transition: all 0.3s ease;
}
nav ul li a:hover, nav ul li a.active {
color: var(--primary-color);
background-color: #f8f9fa;
}
nav ul li a:after {
display: none;
}
.mobile-menu-btn {
display: flex;
}
.advantages-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 768px) {
.top-info-bar {
display: none;
}
.hero {
padding: 60px 0;
}
.hero h1 {
font-size: 2.2rem;
}
.hero p {
font-size: 1rem;
}
.hero-btns {
flex-direction: column;
gap: 10px;
}
.top-info-content {
flex-direction: column;
gap: 10px;
text-align: center;
}
.features-grid,
.products-grid,
.news-grid,
.support-grid {
grid-template-columns: 1fr;
}
.product-tabs,
.news-tabs {
flex-direction: column;
align-items: center;
}
.footer-bottom p {
display: none;
}
.back-to-top {
bottom: 20px;
right: 20px;
width: 45px;
height: 45px;
}
}
/* 动画效果 */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.fade-in {
animation: fadeIn 1s ease forwards;
}