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

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

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

a {
    text-decoration: none;
    color: #0066cc;
}

ul {
    list-style: none;
}

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

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #0066cc;
}

.btn {
    display: inline-block;
    background-color: #0066cc;
    color: #fff;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #004c99;
}

.btn-small {
    display: inline-block;
    background-color: #0066cc;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background-color: #004c99;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    font-size: 24px;
    color: #0066cc;
}

nav ul {
    display: flex;
}

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

nav ul li a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #0066cc;
}

/* Banner样式 */
.banner {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/images/banner.svg') no-repeat center center;
    background-size: cover;
    color: #fff;
    text-align: center;
    padding: 100px 0;
}

.banner h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.banner p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* 特点部分样式 */
.features {
    padding: 80px 0;
    background-color: #fff;
}

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

.feature-item {
    text-align: center;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item h3 {
    margin: 20px 0;
    color: #0066cc;
}

/* 产品部分样式 */
.products {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.product-item {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px);
}

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

.product-item h3 {
    padding: 15px 15px 10px;
    color: #333;
}

.product-item p {
    padding: 0 15px 15px;
    color: #666;
}

.product-item .btn-small {
    margin: 0 15px 15px;
}

/* 新闻部分样式 */
.news {
    padding: 80px 0;
    background-color: #fff;
}

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

.news-item {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.news-date {
    color: #0066cc;
    font-weight: bold;
    margin-bottom: 10px;
}

.news-item h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-item:hover h3 {
    color: #0066cc;
}

.news-item p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: #0066cc;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #004c99;
    text-decoration: none;
    transform: translateX(5px);
}

.read-more:after {
    content: '→';
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.read-more:hover:after {
    margin-left: 8px;
}

/* 新闻页面专用样式 */
.news-page {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.news-page .container {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    justify-content: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.filter-btn {
    padding: 10px 25px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
}

.filter-btn:hover {
    background-color: #e8e8e8;
    color: #333;
    border-color: #d0d0d0;
}

.filter-btn.active {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.news-page .news-item {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.4s ease;
}

.news-page .news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

.news-page .news-date {
    display: inline-block;
    padding: 6px 12px;
    background-color: #e6f2ff;
    color: #0066cc;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 600;
}

.news-page .news-item h3 {
    font-size: 22px;
    margin-bottom: 20px;
    line-height: 1.4;
    color: #333;
    font-weight: 600;
}

.news-page .news-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.news-page .news-summary img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.news-page .news-summary p {
    flex: 1;
    color: #666;
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-page .read-more {
    font-size: 15px;
    font-weight: 600;
    color: #0066cc;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 10px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
    background-color: #fff;
}

.page-btn:hover:not(.disabled) {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.page-btn.active {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 响应式设计 - 新闻页面 */
@media (max-width: 768px) {
    .news-page .container {
        padding: 25px;
    }
    
    .news-page .news-summary {
        flex-direction: column;
        gap: 15px;
    }
    
    .news-page .news-summary img {
        width: 100%;
        height: auto;
    }
    
    .news-page .news-item h3 {
        font-size: 20px;
    }
    
    .news-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer-info h3,
.footer-links h3 {
    margin-bottom: 20px;
    color: #fff;
}

.footer-info p {
    margin-bottom: 10px;
    color: #ccc;
}

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

.footer-links ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .banner {
        padding: 60px 0;
    }
    
    .banner h2 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .banner h2 {
        font-size: 24px;
    }
    
    .banner p {
        font-size: 16px;
    }
}

/* 联系我们页面样式 */
.contact {
    padding: 80px 0;
    background-color: #fff;
}

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

.contact-info {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    color: #0066cc;
    margin-bottom: 20px;
    font-size: 20px;
}

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

.contact-map {
    margin-top: 30px;
}

.map-placeholder {
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f0f0;
    padding: 10px;
}

.contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.contact-form h3 {
    color: #0066cc;
    margin-bottom: 30px;
    font-size: 24px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.contact-form h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #0066cc, #0088ff);
    border-radius: 3px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    transform: translateY(-1px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #0066cc;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    padding: 16px 20px;
    line-height: 1.6;
}

.contact-form .btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #0066cc, #0088ff);
    border: none;
    border-radius: 8px;
    color: white;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
}

.contact-form .btn:hover {
    background: linear-gradient(135deg, #0052a3, #0073cc);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

.contact-form .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 102, 204, 0.2);
}

/* 必填字段提示 */
.form-group label sup {
    color: #e74c3c;
    font-size: 14px;
    margin-left: 3px;
}

/* 表单验证样式 */
.form-group input:valid,
.form-group textarea:valid {
    background-color: #fff;
}

/* 下拉选择框样式增强 */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 12a.5.5 0 0 0 .5-.5V5.707l2.146 2.147a.5.5 0 0 0 .708-.708l-3-3a.5.5 0 0 0-.708 0l-3 3a.5.5 0 1 0 .708.708L7.5 5.707V11.5a.5.5 0 0 0 .5.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* 联系页面响应式设计 */
@media (max-width: 768px) {
    .contact {
        padding: 60px 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info,
    .contact-form {
        padding: 30px 25px;
    }
    
    .contact-form h3 {
        font-size: 22px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 18px;
    }
}