/* CSS变量 */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --success-color: #28a745;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部 */
header {
    background-color: #fff;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* 导航 */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

/* 横幅 */
.banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.banner h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.banner p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* 按钮 */
.btn {
    display: inline-block;
    background-color: #fff;
    color: var(--primary-color);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* 主内容 */
main {
    padding: 60px 0;
}

/* 特色介绍 */
.features {
    margin-bottom: 60px;
}

.features h3 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.feature-item h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-item p {
    color: var(--text-light);
}

/* 新闻动态 */
.news-update {
    margin-bottom: 60px;
}

.news-update h3 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-color);
}

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

.news-item {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.news-item h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.news-item h4 a {
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

.news-item h4 a:hover {
    color: var(--primary-color);
}

.news-item p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.news-item .date {
    display: inline-block;
    background-color: var(--light-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 页脚 */
footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h4,
.footer-links h4,
.footer-contact h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* 关于我们、产品服务、新闻资讯、联系方式页面通用样式 */
.page-content {
    background-color: #fff;
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 60px;
}

.page-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--dark-color);
    text-align: center;
}

.page-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-light);
}

.page-content h3 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--dark-color);
}

.page-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-content ul li {
    margin-bottom: 10px;
    color: var(--text-light);
}

/* 联系表单样式 */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

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

.submit-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-btn:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding: 20px;
    }

    .logo h1 {
        margin-bottom: 20px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0 15px;
        margin-bottom: 10px;
    }

    .banner h2 {
        font-size: 2.5rem;
    }

    .banner p {
        font-size: 1.2rem;
    }

    .page-content {
        padding: 30px 20px;
    }

    .page-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .banner h2 {
        font-size: 2rem;
    }

    .banner {
        padding: 80px 0;
    }

    .feature-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 图片优化 */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

img:hover {
    transform: scale(1.02);
}

/* 文章样式 */
.article {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.article h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.article .meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.article .meta span {
    margin-right: 20px;
}

.article .meta i {
    margin-right: 5px;
    color: var(--primary-color);
}