/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

/* 头部样式 */
header {
    background: linear-gradient(135deg, #1a237e, #3949ab);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo span {
    margin-left: 10px;
}

nav ul {
    display: flex;
    list-style: none;
}

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

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffeb3b;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #ff9800;
    color: white;
    margin-right: 10px;
}

.btn-secondary {
    background-color: #4caf50;
    color: white;
}

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

/* 面包屑导航 */
.breadcrumb {
    padding: 20px 0;
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb a {
    color: #1a237e;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 5px;
    color: #999;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #1a237e, #3949ab);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 特色区域 */
.features {
    padding: 60px 0;
    background-color: white;
}

.features h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #1a237e;
}

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

.feature-item {
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

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

.feature-item i {
    font-size: 48px;
    color: #1a237e;
    margin-bottom: 20px;
}

.feature-item h3 {
    margin-bottom: 15px;
    color: #1a237e;
}

/* 新闻区域 */
.news {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.news h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #1a237e;
}

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

.news-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-date {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-item h3 {
    margin-bottom: 15px;
    color: #1a237e;
}

.news-item p {
    margin-bottom: 20px;
    color: #666;
}

.news-item a {
    color: #1a237e;
    text-decoration: none;
    font-weight: bold;
}

.news-item a:hover {
    text-decoration: underline;
}

/* 产品区域 */
.products {
    padding: 60px 0;
    background-color: white;
}

.products h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #1a237e;
}

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

.product-item {
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

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

.product-item i {
    font-size: 48px;
    color: #1a237e;
    margin-bottom: 20px;
}

.product-item h3 {
    margin-bottom: 15px;
    color: #1a237e;
}

.product-item p {
    margin-bottom: 20px;
    color: #666;
}

/* 关于我们 */
.about {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.about h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #1a237e;
}

.about-content {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.about-content h3 {
    margin-bottom: 20px;
    color: #1a237e;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* 联系我们 */
.contact {
    padding: 60px 0;
    background-color: white;
}

.contact h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #1a237e;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: #1a237e;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form button {
    align-self: flex-start;
}

/* 新闻详情 */
.news-detail {
    padding: 60px 0;
    background-color: white;
}

.news-detail h1 {
    margin-bottom: 20px;
    color: #1a237e;
}

.news-detail .news-date {
    margin-bottom: 30px;
}

.news-detail-content {
    line-height: 1.8;
}

.news-detail-content p {
    margin-bottom: 20px;
}

.news-detail-content h2,
.news-detail-content h3 {
    margin: 30px 0 20px;
    color: #1a237e;
}

/* 底部样式 */
footer {
    background: linear-gradient(135deg, #1a237e, #3949ab);
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

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

.footer-section h3 {
    margin-bottom: 20px;
}

.footer-section p {
    margin-bottom: 15px;
}

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

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

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ffeb3b;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 20px;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .btn {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .btn-primary {
        margin-right: 0;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-item,
.news-item,
.product-item {
    animation: fadeIn 0.5s ease-in-out;
}

/* 图标样式 */
.icon {
    display: inline-block;
    width: 60px;
    height: 60px;
    background-color: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon i {
    font-size: 24px;
    color: #1a237e;
}

/* 下载按钮样式 */
.download-btn {
    background-color: #ff9800;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin: 10px;
    transition: all 0.3s;
}

.download-btn:hover {
    background-color: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 注册按钮样式 */
.register-btn {
    background-color: #4caf50;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin: 10px;
    transition: all 0.3s;
}

.register-btn:hover {
    background-color: #388e3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 移动端导航 */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #1a237e, #3949ab);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 10px 0;
    }
}