/* 全局样式 */
:root {
    --primary-color: #0066cc;
    --secondary-color: #004d99;
    --accent-color: #00aaff;
    --text-color: #333333;
    --light-text: #ffffff;
    --light-bg: #f5f8fa;
    --dark-bg: #1a1a2e;
    --border-color: #e1e8ed;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

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

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* 头部样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

header.scrolled {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

.logo img {
    height: 40px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 2px 0;
    transition: var(--transition);
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    position: relative;
    margin: 0 15px;
}

.main-nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 0;
    display: block;
    position: relative;
}

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

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

.main-nav ul li.active a {
    color: var(--primary-color);
}

/* 下拉菜单 */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: var(--box-shadow);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* 使二级导航竖向排列 */
}

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

.dropdown li {
    margin: 0 !important;
    width: 100%; /* 确保每个菜单项占满整行 */
}

.dropdown li a {
    padding: 12px 20px !important;
    border-bottom: 1px solid var(--border-color);
    display: block; /* 确保链接占满整个li元素 */
    width: 100%;
}

.dropdown li a:hover {
    background-color: var(--light-bg);
}

.dropdown li:last-child a {
    border-bottom: none;
}

/* 轮播图样式 */
.hero-slider {
    position: relative;
    height: auto;
    overflow: hidden;
    padding: 0px;
    margin-top: 80px;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    position: relative;
    z-index: 2;
}

.slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
}

.slide-bg {
    position: relative;
    width: 100%;
    padding-top: 36%; /* 减少高度比例，减少上下留白 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.7);
    height: 100%;
    min-height: 250px;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--light-text);
    max-width: 800px;
    width: 90%;
    z-index: 1;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.prev-slide,
.next-slide {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 1.2rem;
    z-index: 100;
}

.prev-slide {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.next-slide {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

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

.prev-slide:active,
.next-slide:active {
    transform: scale(0.95);
}

.slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
}

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

.dot.active {
    background-color: var(--light-text);
    width: 40px;
    transform: scale(1.1);
}

/* 关于我们简介 */
.about-intro {
    background-color: var(--light-bg);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* 产品展示 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.product-image {
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-info p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.product-features span {
    background-color: var(--accent-color);
    color: white;
    padding: 8px 14px;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 102, 204, 0.2);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.1rem;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

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

/* 最新新闻 */
.latest-news {
    background-color: var(--light-bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    line-height: 1;
}

.news-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.news-date .month {
    font-size: 0.9rem;
}

.news-info {
    padding: 20px;
}

.news-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-info p {
    margin-bottom: 15px;
    color: #666;
}

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

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

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

/* 合作伙伴 */
.partners-logo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.partner {
    flex: 0 0 calc(20% - 40px);
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
    display: flex;
    justify-content: center;
}

.partner:hover {
    filter: grayscale(0);
    opacity: 1;
}

.partner img {
    max-height: 60px;
}

/* 联系我们 */
.contact-section {
    background-color: var(--dark-bg);
    color: var(--light-text);
}

.contact-wrapper {
    display: flex;
    gap: 50px;
}

.contact-info,
.contact-form {
    flex: 1;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--light-text);
}

.contact-info p {
    margin-bottom: 30px;
    opacity: 0.8;
}

.contact-details li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-details li i {
    margin-right: 15px;
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* 网站导航 */
.site-map {
    background-color: var(--light-bg);
}

.site-map-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.site-map-column {
    flex: 1;
    min-width: 200px;
}

.site-map-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.site-map-column h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
}

.site-map-column ul li {
    margin-bottom: 10px;
}

.site-map-column ul li a {
    color: var(--text-color);
    transition: var(--transition);
}

.site-map-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* 社交媒体链接 */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* 二维码容器样式 */
.qrcode-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: nowrap;
}

.qrcode-item {
    text-align: center;
    transition: var(--transition);
}

.qrcode-item img {
    width: 120px;
    height: 120px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 5px;
    background-color: #fff;
    box-shadow: var(--box-shadow);
    margin: 0 auto 10px;
    transition: var(--transition);
}

.qrcode-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.qrcode-item p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 5px;
}

/* 页脚 */
footer {
    background-color: #111;
    color: var(--light-text);
    padding: 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright p {
    opacity: 0.7;
}

.footer-links a {
    color: var(--light-text);
    opacity: 0.7;
    margin-left: 20px;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* 订阅区域 */
.subscribe-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.subscribe-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.subscribe-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.subscribe-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subscribe-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.subscribe-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--light-text);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.subscribe-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.subscribe-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.subscribe-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.subscribe-form input:focus {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    outline: none;
}

.subscribe-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    padding: 0 25px;
    border-radius: 50px;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-form button:hover {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transform: translateX(3px);
}

.subscribe-benefits {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.subscribe-benefits span {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    opacity: 0.9;
}

.subscribe-benefits i {
    color: var(--accent-color);
    margin-right: 5px;
    font-size: 1rem;
}

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

.subscribe-content i.fa-envelope-open-text {
    animation: float 3s ease-in-out infinite;
    display: block;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

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

.btn-contact {
    padding: 8px 16px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    background-color: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background-color: #e0e0e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* CTA 样式 */
.cta-content {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    color: var(--light-text);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-content .btn {
    padding: 15px 40px;
    font-size: 1rem;
    background-color: var(--light-text);
    color: var(--primary-color);
    border: 2px solid var(--light-text);
    border-radius: 50px;
    transition: var(--transition);
}

.cta-content .btn:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    border-color: var(--primary-color);
    transform: scale(1.05);
}
