:root {
--primary: #3a6351;
--secondary: #a2c4a8;
--accent: #6d9878;
--light: #f5f9f6;
--dark: #2c3e33;
--text: #333333;
--shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
--transition: all 0.3s ease;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Roboto', sans-serif;
line-height: 1.6;
color: var(--text);
overflow-x: hidden;
background-color: #fff;
}
h1, h2, h3, h4, h5, h6 {
font-family: 'Playfair Display', serif;
font-weight: 700;
line-height: 1.3;
margin-bottom: 1rem;
color: var(--dark);
}
a {
text-decoration: none;
color: inherit;
transition: var(--transition);
}
ul {
list-style: none;
padding: 0;
}
.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.btn {
display: inline-block;
padding: 12px 28px;
background-color: var(--accent);
color: #fff;
border: none;
border-radius: 4px;
font-weight: 600;
font-size: 16px;
cursor: pointer;
transition: var(--transition);
text-transform: uppercase;
letter-spacing: 1px;
}
.btn:hover {
background-color: #5a8469;
transform: translateY(-3px);
box-shadow: var(--shadow);
}
.btn-outline {
background-color: transparent;
border: 2px solid var(--accent);
color: var(--accent);
}
.btn-outline:hover {
background-color: var(--accent);
color: #fff;
}
/* Header & Navigation */
header {
background-color: #fff;
box-shadow: var(--shadow);
position: fixed;
width: 100%;
z-index: 1000;
top: 0;
}
.header-inner {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 0;
position: relative;
}
.logo {
font-size: 24px;
font-weight: 700;
color: var(--primary);
display: flex;
align-items: center;
}
.logo span {
color: var(--accent);
margin-left: 5px;
}
.nav-container {
display: flex;
align-items: center;
}
.nav-links {
display: flex;
margin-right: 20px;
}
.nav-links > li {
position: relative;
margin-left: 30px;
}
.nav-links > li > a {
font-weight: 600;
font-size: 16px;
color: var(--dark);
display: flex;
align-items: center;
padding: 10px 0;
position: relative;
}
.nav-links > li > a:hover,
.nav-links > li.active > a {
color: var(--primary);
}
.nav-links > li.active > a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 3px;
background-color: var(--accent);
border-radius: 2px;
}
/* Dropdown Menu */
.dropdown {
position: absolute;
top: 100%;
left: 0;
width: 200px;
background: white;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
border-radius: 4px;
opacity: 0;
visibility: hidden;
transform: translateY(10px);
transition: var(--transition);
z-index: 100;
}
.nav-links li:hover .dropdown {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.dropdown li {
padding: 0;
}
.dropdown li a {
display: block;
padding: 12px 20px;
color: var(--text);
border-bottom: 1px solid #f1f1f1;
transition: var(--transition);
}
.dropdown li a:hover {
background-color: var(--light);
color: var(--primary);
}
.header-btn {
padding: 10px 20px;
background-color: var(--accent);
color: white;
border-radius: 4px;
font-weight: 600;
font-size: 14px;
transition: var(--transition);
}
.header-btn:hover {
background-color: #5a8469;
transform: translateY(-2px);
}
.mobile-nav-toggle {
display: none;
background: transparent;
border: none;
font-size: 24px;
cursor: pointer;
color: var(--dark);
}
/* Hero Section */
.hero {
padding: 160px 0 100px;
background: linear-gradient(rgba(58, 99, 81, 0.8), rgba(58, 99, 81, 0.9)), url('/static/images/banner-top.jpg') no-repeat center center/cover;
color: white;
text-align: center;
position: relative;
}
.hero-content {
max-width: 800px;
margin: 0 auto;
}
.hero h1 {
font-size: 3.5rem;
margin-bottom: 20px;
color: white;
line-height: 1.2;
}
.hero p {
font-size: 1.2rem;
margin-bottom: 30px;
max-width: 700px;
margin-left: auto;
margin-right: auto;
}
.hero-buttons {
display: flex;
justify-content: center;
gap: 20px;
margin-top: 30px;
}
/* Features Section */
.features {
padding: 80px 0;
background-color: var(--light);
}
.section-title {
text-align: center;
margin-bottom: 50px;
}
.section-title h2 {
font-size: 2.5rem;
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(--accent);
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}
.feature-card {
background: white;
padding: 30px;
border-radius: 8px;
box-shadow: var(--shadow);
text-align: center;
transition: var(--transition);
}
.feature-card:hover {
transform: translateY(-10px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.feature-icon {
font-size: 40px;
color: var(--primary);
margin-bottom: 20px;
}
.feature-card h3 {
font-size: 1.5rem;
margin-bottom: 15px;
}
/* Products Section */
.products {
padding: 80px 0;
}
.products-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}
.product-card {
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: var(--shadow);
transition: var(--transition);
}
.product-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.product-img {
height: 200px;
background-color: #f5f5f5;
background-position: center;
background-size: cover;
}
.product-content {
padding: 20px;
}
.product-card h3 {
font-size: 1.3rem;
margin-bottom: 10px;
}
.product-card p {
margin-bottom: 15px;
color: #666;
}
/* Applications Section */
.applications {
padding: 80px 0;
background-color: var(--light);
}
.applications-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
}
.application-item {
background: white;
padding: 20px;
border-radius: 8px;
text-align: center;
box-shadow: var(--shadow);
}
.application-icon {
font-size: 30px;
color: var(--primary);
margin-bottom: 15px;
}
/* Services Section */
.services {
padding: 80px 0;
background-color: white;
}
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}
.service-card {
background: white;
padding: 30px;
border-radius: 8px;
box-shadow: var(--shadow);
text-align: center;
transition: var(--transition);
border-left: 4px solid var(--accent);
}
.service-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.service-icon {
font-size: 40px;
color: var(--primary);
margin-bottom: 20px;
}
.service-card h3 {
font-size: 1.5rem;
margin-bottom: 15px;
color: var(--primary);
}
.service-card p {
margin-bottom: 15px;
color: 666;
}
/* Certifications Section */
.certifications {
padding: 80px 0;
background-color: var(--light);
}
.certifications-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
}
.certification-item {
background: white;
padding: 30px;
border-radius: 8px;
text-align: center;
box-shadow: var(--shadow);
transition: var(--transition);
}
.certification-item:hover {
transform: translateY(-5px);
}
.certification-icon {
font-size: 40px;
color: var(--primary);
margin-bottom: 20px;
}
.certification-item h3 {
font-size: 1.3rem;
margin-bottom: 15px;
}
/* Testimonials Section */
.testimonials {
padding: 80px 0;
background: linear-gradient(rgba(58, 99, 81, 0.03), rgba(58, 99, 81, 0.05));
}
.testimonials-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}
.testimonial-card {
background: white;
padding: 30px;
border-radius: 8px;
box-shadow: var(--shadow);
position: relative;
}
.testimonial-card::before {
content: '\201C';
font-size: 60px;
color: var(--primary);
opacity: 0.2;
position: absolute;
top: 10px;
left: 20px;
font-family: Georgia, serif;
}
.testimonial-content {
margin-bottom: 20px;
font-style: italic;
color: #555;
}
.testimonial-author {
display: flex;
align-items: center;
}
.testimonial-avatar {
width: 50px;
height: 50px;
border-radius: 50%;
background-color: #f5f5f5;
margin-right: 15px;
overflow: hidden;
}
.testimonial-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.testimonial-info h4 {
margin-bottom: 5px;
font-size: 1.1rem;
}
.testimonial-info p {
color: #777;
font-size: 0.9rem;
}
/* About Section */
.about {
padding: 80px 0;
background-color: white;
}
.about-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 50px;
align-items: center;
}
.about-text h2 {
font-size: 2.2rem;
margin-bottom: 20px;
}
.about-text p {
margin-bottom: 20px;
color: #555;
}
.about-stats {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
margin-top: 30px;
padding: 0;
}
.stat-item {
text-align: center;
padding: 20px;
background-color: var(--light);
border-radius: 8px;
}
.stat-number {
font-size: 2.5rem;
font-weight: 700;
color: var(--primary);
margin-bottom: 5px;
}
.stat-text {
color: #777;
font-size: 0.9rem;
}
.about-image {
border-radius: 8px;
overflow: hidden;
box-shadow: var(--shadow);
}
.about-image img {
width: 100%;
height: auto;
display: block;
}
/* FAQ Section */
.faq {
padding: 80px 0;
background-color: var(--light);
}
.faq-container {
max-width: 800px;
margin: 0 auto;
}
.faq-item {
background: white;
border-radius: 10px;
margin-bottom: 20px;
box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
overflow: hidden;
transition: var(--transition);
border-left: 4px solid var(--accent);
}
.faq-item:hover {
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
transform: translateY(-2px);
}
.faq-question {
width: 100%;
text-align: left;
padding: 22px 25px;
background: white;
border: none;
outline: none;
cursor: pointer;
font-size: 1.05rem;
font-weight: 600;
color: var(--dark);
display: flex;
justify-content: space-between;
align-items: center;
transition: var(--transition);
}
.faq-question:hover {
background-color: #f7fbf8;
}
.faq-question i {
transition: var(--transition);
font-size: 0.9rem;
color: var(--accent);
background: rgba(109, 152, 120, 0.1);
width: 28px;
height: 28px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
.faq-item.active .faq-question i {
transform: rotate(180deg);
background: var(--accent);
color: white;
}
.faq-answer {
max-height: 0;
overflow: hidden;
transition: max-height 0.4s ease, padding 0.3s ease;
background: #f7fbf8;
}
.faq-item.active .faq-answer {
max-height: 1000px;
}
.faq-content {
padding: 0 25px 25px;
line-height: 1.7;
color: #555;
}
.faq-content p {
margin-bottom: 15px;
font-size: 0.95rem;
}
.faq-content ul {
margin: 15px 0;
padding-left: 20px;
}
.faq-content li {
margin-bottom: 8px;
font-size: 0.95rem;
}
.faq-content strong {
color: var(--dark);
}
/* CTA Section */
.cta {
padding: 100px 0;
background: linear-gradient(rgba(58, 99, 81, 0.9), rgba(58, 99, 81, 0.9)), url('/static/images/banner-top.jpg') no-repeat center center/cover;
color: white;
text-align: center;
}
.cta h2 {
font-size: 2.5rem;
color: white;
margin-bottom: 20px;
}
.cta p {
font-size: 1.2rem;
max-width: 700px;
margin: 0 auto 30px;
}
/* Contact Form Section */
.contact-form-section {
padding: 80px 0;
background-color: white;
}
.contact-container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 50px;
}
.contact-info h3 {
font-size: 1.8rem;
margin-bottom: 20px;
color: var(--primary);
}
.contact-info p {
margin-bottom: 30px;
color: #555;
}
.contact-details {
margin-bottom: 30px;
}
.contact-item {
display: flex;
gap: 15px;
margin-bottom: 20px;
align-items: flex-start;
}
.contact-icon {
font-size: 1.2rem;
color: var(--primary);
background: rgba(58, 99, 81, 0.1);
width: 45px;
height: 45px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.contact-text h4 {
font-size: 1.1rem;
margin-bottom: 5px;
color: var(--dark);
}
.contact-text p {
color: #666;
}
.contact-form {
background: white;
padding: 15px;
border-radius: 10px;
box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}
.contact-form h3 {
font-size: 1.8rem;
margin-bottom: 25px;
color: var(--dark);
position: relative;
padding-bottom: 15px;
}
.contact-form h3:after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 50px;
height: 3px;
background-color: var(--primary);
}
.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;
border: 1px solid #ddd;
border-radius: 12px;
font-family: 'Roboto', 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(58, 99, 81, 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 40px;
border-radius: 20px;
font-weight: 500;
font-size: 16px;
cursor: pointer;
transition: all 0.3s ease;
display: inline-block;
box-shadow: 0 4px 15px rgba(58, 99, 81, 0.4);
width: 100%;
font-family: 'Roboto', sans-serif;
}
.submit-btn:hover {
transform: translateY(-3px);
box-shadow: 0 6px 20px rgba(58, 99, 81, 0.6);
}
/* Footer */
footer {
background-color: var(--dark);
color: white;
padding: 60px 0 30px;
}
.footer-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
margin-bottom: 40px;
}
.footer-column h3 {
color: white;
font-size: 1.3rem;
margin-bottom: 20px;
position: relative;
padding-bottom: 10px;
}
.footer-column h3::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 40px;
height: 2px;
background-color: var(--accent);
}
.footer-links {
list-style: none;
}
.footer-links li {
margin-bottom: 10px;
}
.footer-links a {
color: #ccc;
}
.footer-links a:hover {
color: white;
}
.social-links {
display: flex;
gap: 15px;
margin-top: 20px;
}
.social-links a {
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
background-color: rgba(255, 255, 255, 0.1);
border-radius: 50%;
transition: var(--transition);
}
.social-links a:hover {
background-color: var(--accent);
transform: translateY(-3px);
}
.copyright {
text-align: center;
padding-top: 30px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
font-size: 0.9rem;
color: #ccc;
}
/* 返回顶部按钮样式 */
.back-to-top {
position: fixed;
bottom: 30px;
right: 30px;
width: 50px;
height: 50px;
background-color: var(--accent);
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: var(--transition);
opacity: 0;
visibility: hidden;
z-index: 999;
box-shadow: var(--shadow);
}
.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;
}
/* Cookie Consent Banner Styles */
.cookie-consent {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: rgba(44, 62, 51, 0.95);
color: #fff;
padding: 15px 0;
z-index: 1000;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(5px);
border-top: 1px solid var(--accent);
transform: translateY(100%);
transition: transform 0.5s ease;
}
.cookie-consent.show {
transform: translateY(0);
}
.cookie-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
}
.cookie-text {
flex: 1;
min-width: 300px;
margin-right: 20px;
}
.cookie-text p {
margin: 0;
font-size: 14px;
line-height: 1.5;
}
.cookie-text a {
color: var(--secondary);
text-decoration: underline;
}
.cookie-text a:hover {
color: #fff;
}
.cookie-buttons {
display: flex;
gap: 10px;
margin-top: 10px;
}
.cookie-btn {
padding: 8px 20px;
border: none;
border-radius: 4px;
font-weight: 600;
font-size: 14px;
cursor: pointer;
transition: var(--transition);
}
.cookie-btn-accept {
background-color: var(--accent);
color: white;
}
.cookie-btn-accept:hover {
background-color: #5a8469;
}
.cookie-btn-reject {
background-color: transparent;
border: 1px solid #ccc;
color: #ccc;
}
.cookie-btn-reject:hover {
background-color: rgba(255, 255, 255, 0.1);
color: #fff;
}
/* Responsive Styles */
@media (max-width: 992px) {
.hero h1 {
font-size: 2.8rem;
}
.about-content, .contact-container {
grid-template-columns: 1fr;
}
.nav-links {
display: none;
position: absolute;
top: 100%;
left: 0;
width: 100%;
background-color: white;
flex-direction: column;
padding: 20px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
z-index: 1000;
max-height: 80vh;
overflow-y: auto;
}
.nav-links.active {
display: flex;
}
.nav-links li {
margin: 10px 0;
}
.dropdown {
position: static;
width: 100%;
box-shadow: none;
opacity: 1;
visibility: visible;
transform: none;
margin-top: 10px;
margin-left: 20px;
display: none;
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease;
}
.nav-links li.active .dropdown {
display: block;
max-height: 500px;
}
.header-btn {
display: none;
}
.mobile-nav-toggle {
display: block;
}
.hero-buttons {
flex-direction: column;
align-items: center;
}
.nav-links > li > a i {
transition: transform 0.3s ease;
}
.nav-links li.active > a i {
transform: rotate(180deg);
}
.nav-links > li > a {
justify-content: space-between;
}
.dropdown-arrow {
pointer-events: all;
}
.nav-links > li.active > a::after {
display: none;
}
/* Cookie consent responsive */
.cookie-container {
flex-direction: column;
text-align: center;
}
.cookie-text {
margin-right: 0;
margin-bottom: 15px;
min-width: auto;
}
.cookie-buttons {
justify-content: center;
}
}
@media (max-width: 768px) {
.hero h1 {
font-size: 2.2rem;
}
.hero p {
font-size: 1rem;
}
.section-title h2 {
font-size: 2rem;
}
.feature-card, .product-card, .testimonial-card, .service-card, .certification-item {
padding: 20px;
}
.about-stats {
grid-template-columns: 1fr;
}
.faq-question {
padding: 18px 20px;
font-size: 1rem;
}
.faq-content {
padding: 0 20px 20px;
}
/* 移动端返回顶部按钮调整 */
.back-to-top {
bottom: 20px;
right: 20px;
width: 45px;
height: 45px;
}
}
@media (max-width: 480px) {
.hero h1 {
font-size: 1.8rem;
}
.btn {
padding: 10px 20px;
font-size: 14px;
}
.faq-question {
padding: 15px;
}
.faq-content {
padding: 0 15px 15px;
}
.faq-question i {
width: 24px;
height: 24px;
}
.cookie-buttons {
flex-direction: column;
}
}
/* 新增样式 */
.dropdown-arrow {
cursor: pointer;
padding: 0 5px;
}
.nav-link-text {
flex: 1;
}