/* 全局样式 - 恢复2小时前的完整版本 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* 头部导航 */
.header {
    background: #0056A9;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s;
}

.nav a:hover,
.nav a.active {
    opacity: 0.8;
    text-decoration: underline;
}

/* Banner */
.banner {
    background: linear-gradient(135deg, #0056A9 0%, #003D7A 100%);
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: #0056A9;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

/* 联系我们页面 - 1:1布局 */
.contact-page {
    padding: 60px 0;
}

.contact-page h1 {
    font-size: 36px;
    color: #0056A9;
    margin-bottom: 40px;
    text-align: center;
}

.contact-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.contact-info,
.contact-form {
    flex: 1;
}

.contact-info h2,
.contact-form h2 {
    font-size: 24px;
    color: #0056A9;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #0056A9;
}

.contact-info p {
    margin: 15px 0;
    font-size: 16px;
    line-height: 1.8;
}

.contact-info strong {
    color: #0056A9;
}

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

.contact-map img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border: 1px solid #e8ecef;
    border-radius: 5px;
}

/* 联系表单 */
.contact-form form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.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 textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    padding: 12px 40px;
    background: #0056A9;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #003D7A;
}

/* 产品系列页面 */
.products-page {
    padding: 60px 0;
}

.products-page h1 {
    font-size: 36px;
    color: #0056A9;
    margin-bottom: 40px;
    text-align: center;
}

.products-layout {
    display: flex;
    gap: 30px;
}

/* 左侧分类导航 */
.products-sidebar {
    width: 250px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    position: sticky;
    top: 80px;
    height: fit-content;
}

.sidebar-category {
    margin-bottom: 15px;
}

.sidebar-category h3 {
    font-size: 18px;
    color: #0056A9;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-category h3::after {
    content: '▼';
    font-size: 12px;
}

.sidebar-category h3.collapsed::after {
    content: '▶';
}

.sidebar-subcategories {
    display: block;
}

.sidebar-subcategories.collapsed {
    display: none;
}

.sidebar-subcategories a {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-radius: 3px;
    margin-bottom: 5px;
    transition: background 0.3s;
}

.sidebar-subcategories a:hover,
.sidebar-subcategories a.active {
    background: #0056A9;
    color: white;
}

/* 产品网格 */
.products-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

.product-card-content {
    padding: 20px;
}

.product-card h3 {
    font-size: 18px;
    color: #0056A9;
    margin-bottom: 10px;
}

.product-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 产品详情页 */
.product-detail-page {
    padding: 60px 0;
}

.breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #0056A9;
    text-decoration: none;
}

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

.product-detail-layout {
    display: flex;
    gap: 50px;
}

.product-images {
    width: 500px;
}

.product-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
}

.product-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.product-thumbnails img.active {
    border-color: #0056A9;
}

.product-info {
    flex: 1;
}

.product-info h1 {
    font-size: 32px;
    color: #0056A9;
    margin-bottom: 20px;
}

.product-model {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.product-specs {
    margin-bottom: 30px;
}

.product-specs h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8ecef;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th,
.spec-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e8ecef;
}

.spec-table th {
    background: #f8f9fa;
    font-weight: bold;
    width: 150px;
}

.btn-download {
    display: inline-block;
    padding: 12px 30px;
    background: #0056A9;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-download:hover {
    background: #003D7A;
}

/* 新闻页面 */
.news-page {
    padding: 60px 0;
}

.news-page h1 {
    font-size: 36px;
    color: #0056A9;
    margin-bottom: 40px;
    text-align: center;
}

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

.news-item {
    display: flex;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e8ecef;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.news-content {
    flex: 1;
}

.news-content h3 {
    font-size: 22px;
    color: #0056A9;
    margin-bottom: 10px;
}

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

.news-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 30px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

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

.footer-section p {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #34495e;
    font-size: 14px;
    color: #95a5a6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .products-layout {
        flex-direction: column;
    }
    
    .products-sidebar {
        width: 100%;
        position: static;
    }
    
    .product-detail-layout {
        flex-direction: column;
    }
    
    .product-images {
        width: 100%;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-item img {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
