/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: #1a237e;
    color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #4fc3f7;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    background-color: #4fc3f7;
    color: #1a237e;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #29b6f6;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #4fc3f7;
    padding: 10px 20px;
    border: 1px solid #4fc3f7;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #4fc3f7;
    color: #1a237e;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    color: #fff;
    padding: 80px 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
}

/* 特性区域样式 */
.features {
    padding: 80px 0;
    background-color: #fff;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #1a237e;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: #f5f7fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a237e;
}

/* 产品区域样式 */
.products {
    padding: 80px 0;
    background-color: #f5f7fa;
}

.products h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #1a237e;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-item img {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.product-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a237e;
}

.product-item p {
    margin-bottom: 20px;
}

/* 新闻区域样式 */
.news {
    padding: 80px 0;
    background-color: #fff;
}

.news h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #1a237e;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: #f5f7fa;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-item h3 {
    font-size: 20px;
    margin: 20px;
    color: #1a237e;
}

.news-item p {
    margin: 0 20px 20px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 20px;
    border-top: 1px solid #e0e0e0;
    margin-top: 10px;
}

.news-meta span {
    color: #757575;
    font-size: 14px;
}

.news-meta a {
    color: #4fc3f7;
    text-decoration: none;
    font-weight: bold;
}

/* CTA区域样式 */
.cta {
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* 底部样式 */
footer {
    background-color: #1a237e;
    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 h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #4fc3f7;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

/* 面包屑导航样式 */
.breadcrumb {
    padding: 20px 0;
    background-color: #f5f7fa;
}

.breadcrumb ul {
    display: flex;
    list-style: none;
}

.breadcrumb ul li {
    margin-right: 10px;
}

.breadcrumb ul li a {
    color: #1a237e;
    text-decoration: none;
}

.breadcrumb ul li::after {
    content: ">";
    margin-left: 10px;
    color: #757575;
}

.breadcrumb ul li:last-child::after {
    content: "";
}

.breadcrumb ul li:last-child {
    color: #757575;
}

/* 内容页面样式 */
.content-page {
    padding: 40px 0;
    background-color: #fff;
}

.content-page h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #1a237e;
}

.content-page p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.content-page img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 10px;
}

/* 新闻详情页面样式 */
.news-detail {
    padding: 40px 0;
    background-color: #fff;
}

.news-detail h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #1a237e;
}

.news-detail-meta {
    margin-bottom: 30px;
    color: #757575;
    font-size: 14px;
}

.news-detail-content {
    line-height: 1.8;
}

.news-detail-content p {
    margin-bottom: 20px;
}

/* 联系页面样式 */
.contact-form {
    background-color: #f5f7fa;
    padding: 40px;
    border-radius: 10px;
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #1a237e;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        margin: 20px 0;
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 5px 10px 5px 0;
    }

    .header-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-content h2 {
        font-size: 36px;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        margin-top: 20px;
    }

    .cta-buttons a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 28px;
    }

    .features h2,
    .products h2,
    .news h2,
    .cta h2 {
        font-size: 24px;
    }

    .contact-form {
        padding: 20px;
    }
}

/* 确保按钮在移动端显眼 */
@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 16px;
    }

    .hero-buttons,
    .cta-buttons {
        gap: 15px;
    }
}