/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    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: 24px;
    color: #0066cc;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
    color: #0066cc;
}

/* 轮播图 */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0;
    text-align: center;
}

.banner-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 20px;
}

/* 公司简介 */
.intro {
    padding: 80px 0;
    background: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

.intro-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.intro-text {
    flex: 1;
}

.intro-text p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: #0052a3;
}

.intro-image {
    flex: 1;
}

.intro-image img {
    width: 100%;
    border-radius: 10px;
}

/* 产品展示 */
.products {
    padding: 80px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 250px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-item h3 {
    padding: 20px;
    font-size: 20px;
}

.product-item p {
    padding: 0 20px 20px;
    color: #666;
}

/* 新闻动态 */
.news {
    padding: 80px 0;
    background: #f9f9f9;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.news-date {
    color: #0066cc;
    font-size: 14px;
}

.news-item h3 {
    margin: 10px 0;
    font-size: 22px;
}

.news-item h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.news-item h3 a:hover {
    color: #0066cc;
}

.news-item p {
    color: #666;
    line-height: 1.8;
}

/* 页脚 */
.footer {
    background: #333;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #ccc;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .banner-content h2 {
        font-size: 32px;
    }
    
    .intro-content {
        flex-direction: column;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
}

/* 产品页面 */
.products-page {
    padding: 80px 0;
}

.products-page .product-item .btn {
    margin: 0 20px 20px;
}

/* 关于我们页面 */
.about-detail {
    padding: 80px 0;
}

.about-section {
    margin-bottom: 60px;
}

.about-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #0066cc;
}

.about-section p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.culture-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.culture-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #0066cc;
}

.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #0066cc;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-year {
    position: absolute;
    left: -50px;
    top: 0;
    width: 80px;
    height: 40px;
    background: #0066cc;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-weight: bold;
}

.timeline-content {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

.timeline-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* 新闻页面 */
.news-page {
    padding: 80px 0;
}

/* 联系我们页面 */
.contact-page {
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
}

.contact-info h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #0066cc;
}

.info-item {
    margin-bottom: 25px;
}

.info-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.info-item p {
    color: #666;
    line-height: 1.6;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.contact-form h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #0066cc;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
}

.form-group textarea {
    resize: vertical;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #0066cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 50px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 999;
    text-align: center;
    padding: 0;
    margin: 0;
}

.back-to-top:hover {
    background: #0052a3;
    transform: translateY(-5px);
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .culture-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline-year {
        left: -30px;
        width: 60px;
        height: 35px;
        font-size: 14px;
    }
}
.white-link {
    color: white;
    text-decoration: none; /* 可选：去掉下划线 */
  }
