:root {
--primary-color: #003366;
--secondary-color: #ffcc00;
--accent-color: #004080;
--light-color: #f8f9fa;
--dark-color: #212529;
--gray-color: #6c757d;
--success-color: #28a745;
--font-main: 'Roboto', 'Microsoft YaHei', sans-serif;
--box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
--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;
}
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;
}
.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);
}
/* 导航栏 */
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: 70px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
margin: 0 10px;
color: white;
font-weight: bold;
font-size: 12px;
}
.logo-text h1 {
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;
}
/* 移动端菜单按钮 */
.mobile-menu-btn {
display: none;
flex-direction: column;
justify-content: space-around;
width: 30px;
height: 25px;
background: transparent;
border: none;
cursor: pointer;
padding: 0;
}
.mobile-menu-btn span {
width: 30px;
height: 3px;
background-color: var(--primary-color);
border-radius: 2px;
transition: var(--transition);
}
/* 英雄区域 */
.hero {
background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/static/images/banner.jpg') no-repeat center center/cover;
color: white;
padding: 100px 0;
text-align: center;
}
.hero-content {
max-width: 800px;
margin: 0 auto;
}
.hero h2 {
font-size: 2.8rem;
margin-bottom: 20px;
font-weight: 700;
}
.hero p {
font-size: 1.2rem;
margin-bottom: 30px;
opacity: 0.9;
}
.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;
}
.btn-primary {
background-color: var(--secondary-color);
color: var(--primary-color);
border: none;
}
.btn-primary:hover {
background-color: #e6b800;
transform: translateY(-3px);
box-shadow: var(--box-shadow);
}
.btn-outline {
background-color: transparent;
border: 2px solid white;
color: white;
}
.btn-outline:hover {
background-color: white;
color: var(--primary-color);
transform: translateY(-3px);
box-shadow: var(--box-shadow);
}
/* 产品特点区域 */
.features {
padding: 80px 0;
background-color: white;
}
.section-title {
text-align: center;
margin-bottom: 50px;
}
.section-title h2 {
font-size: 2.2rem;
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);
}
.feature-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.feature-icon {
font-size: 40px;
color: var(--primary-color);
margin-bottom: 20px;
}
.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;
}
.tab-btn.active, .tab-btn:hover {
color: var(--primary-color);
border-bottom: 3px solid var(--secondary-color);
}
.products-grid {
display: grid;
/* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */
grid-template-columns: repeat(3, 1fr);
gap: 25px;
}
.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: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.product-img {
/* height: 200px; */
/* background-color: #e9ecef; */
display: flex;
align-items: center;
justify-content: center;
color: var(--primary-color);
font-weight: bold;
}
.product-content {
padding: 20px;
}
.product-content h3 {
font-size: 1rem;
margin-bottom: 10px;
color: var(--primary-color);
}
.product-content p {
color: var(--gray-color);
margin-bottom: 15px;
font-size: 14px;
}
.product-link {
color: var(--primary-color);
font-weight: 500;
display: inline-flex;
align-items: center;
}
.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: 2rem;
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;
}
.about-feature i {
color: var(--secondary-color);
margin-right: 10px;
font-size: 18px;
}
.about-img {
border-radius: 8px;
overflow: hidden;
/* box-shadow: var(--box-shadow); */
height: 400px;
/* background-color: #e9ecef;*/
display: flex;
align-items: center;
justify-content: center;
color: var(--primary-color);
font-weight: bold;
}
/* 产品应用领域和优势 */
.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);
}
.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;
}
.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;
}
.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: 1600px; /* 足够容纳内容的高度 */
}
.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);
}
.support-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.support-icon {
font-size: 40px;
color: var(--primary-color);
margin-bottom: 20px;
}
.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;
}
.news-tab-btn.active, .news-tab-btn:hover {
color: var(--primary-color);
border-bottom: 3px solid var(--secondary-color);
}
.news-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
grid-template-columns: repeat(3, 1fr);
gap: 30px;
}
.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: translateY(-5px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.news-img {
height: 200px;
background-color: #e9ecef;
display: flex;
align-items: center;
justify-content: center;
color: var(--primary-color);
font-weight: bold;
}
.news-content {
padding: 25px;
}
.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.8rem;
color: var(--primary-color);
margin-bottom: 25px;
}
.contact-detail {
display: flex;
margin-bottom: 25px;
}
.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;
}
.contact-text h4 {
font-size: 1.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);
box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.1);
}
.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), var(--secondary));
/* 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(124, 77, 255, 0.4);
width: 100%;
font-family: 'Poppins', sans-serif;
}
.submit-btn:hover {
transform: translateY(-3px);
box-shadow: 0 6px 20px rgba(124, 77, 255, 0.6);
animation: pulse 1s infinite;
}
/* 页脚 */
footer {
background-color: var(--primary-color);
color: white;
padding: 60px 0 20px;
}
.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);
}
.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;
}
.back-to-top.visible {
opacity: 1;
visibility: visible;
}
.back-to-top:hover {
background-color: var(--primary);
transform: translateY(-5px);
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
.back-to-top i {
font-size: 18px;
}
/* 响应式设计 */
@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;
}
nav ul.show {
display: flex;
}
.mobile-menu-btn {
display: flex;
}
.advantages-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 768px) {
.top-info-bar {
display: none;
}
.hero h2 {
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;
}
}
/* 动画效果 */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.fade-in {
animation: fadeIn 1s ease forwards;
}