/* style.css - 所有页面共用样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* 头部和导航栏 */
.site-header {
    background: linear-gradient(135deg, #1a3a5f 0%, #2c5282 100%);
    color: white;
    padding: 20px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.company-brand {
    text-align: left;
}

.company-logo {
    text-align: center;
    margin-bottom: 10px;
}

.company-logo img {
    max-height: 80px;
}

/* 主导航 */
.main-nav {
    background: white;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 18px 24px;
    color: #2c5282;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 2px;
}

.nav-menu a:hover {
    background-color: #2c5282;
    color: white;
    transform: translateY(-2px);
}

.nav-menu a.active {
    background-color: #2c5282;
    color: white;
}

/* 面包屑导航 */
.breadcrumb {
    background: white;
    border-radius: 8px;
    padding: 15px 30px;
    margin: 25px auto;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.breadcrumb-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    color: #666;
    font-size: 14px;
}

.breadcrumb-links a {
    color: #2c5282;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.breadcrumb-links a:hover {
    text-decoration: underline;
    color: #1a3a5f;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #999;
}

.current-page {
    color: #1a3a5f;
    font-weight: 600;
}

/* 页面内容区域 */
.page-content {
    background: white;
    border-radius: 10px;
    margin: 25px auto;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    min-height: 400px;
}

.page-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eaeaea;
}

.page-title {
    display: flex;
    align-items: center;
    color: #1a3a5f;
    font-size: 28px;
    font-weight: 700;
}

.page-title::before {
    content: "▶";
    color: #2c5282;
    margin-right: 15px;
    font-size: 18px;
}

/* 通用卡片样式 */
.content-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f7ff 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #2c5282;
}

.content-card-title {
    color: #1a3a5f;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* 信息提示框 */
.info-box {
    background: linear-gradient(135deg, #fff9f0 0%, #fff0e6 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #e67e22;
}

.info-box-title {
    color: #d35400;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.info-box-title::before {
    content: "ℹ️";
    margin-right: 10px;
}

/* 联系框 */
.contact-box {
    background: linear-gradient(135deg, #1a3a5f 0%, #2c5282 100%);
    border-radius: 12px;
    padding: 35px;
    color: white;
    margin-top: 40px;
    box-shadow: 0 6px 15px rgba(26, 58, 95, 0.2);
}

.contact-box-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-box-title::before {
    content: "📞";
    margin-right: 10px;
    font-size: 20px;
}

.contact-box-text {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.7;
}

.contact-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.email-button {
    background: #ffffff;
    color: #2c5282;
    border: 2px solid #ffffff;
}

.email-button:hover {
    background: #f0f7ff;
    color: #1a3a5f;
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(255, 255, 255, 0.2);
}

.chat-button {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.chat-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(255, 255, 255, 0.1);
}

.button-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 20px;
    border-bottom: 1px solid #eaeaea;
}

.product-image img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
    border-radius: 4px;
}

.product-info {
    padding: 20px;
}

.product-name {
    color: #1a3a5f;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.product-name::before {
    content: "▶";
    color: #2c5282;
    margin-right: 8px;
    font-size: 12px;
}

.product-description {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 产品详情页特定样式 */
.product-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.product-detail-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
}

.product-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-detail-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 20px;
    border-bottom: 1px solid #eaeaea;
}

.product-detail-image img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
    border-radius: 4px;
}

.product-detail-info {
    padding: 20px;
    text-align: center;
}

.product-model {
    color: #1a3a5f;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-type {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.part-number {
    display: inline-block;
    background: #f0f7ff;
    color: #2c5282;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 5px;
}

.part-number-available {
    background: #e0f7e9;
    color: #2e7d32;
}

/* 规格表格 */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.specs-table th {
    background-color: #f8fafc;
    color: #1a3a5f;
    font-weight: 600;
    padding: 15px;
    text-align: left;
    border: 1px solid #eaeaea;
}

.specs-table td {
    padding: 15px;
    border: 1px solid #eaeaea;
    color: #555;
}

.specs-table tr:nth-child(even) {
    background-color: #f8fafc;
}

/* 页脚 */
.site-footer {
    background: #1a3a5f;
    color: white;
    padding: 25px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-content {
    font-size: 14px;
    opacity: 0.9;
}

.footer-content a {
    color: #a0c4ff;
    text-decoration: none;
    margin: 0 10px;
}

.footer-content a:hover {
    text-decoration: underline;
}

.footer-divider {
    margin: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-counter {
    margin-top: 15px;
    font-size: 12px;
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .product-grid, .product-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-actions {
        flex-direction: column;
    }
    
    .contact-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu a {
        padding: 12px 20px;
        text-align: center;
    }
    
    .product-grid, .product-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .page-content {
        padding: 25px;
    }
    
    .content-card, .info-box, .contact-box {
        padding: 25px;
    }
    
    .breadcrumb-links {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .breadcrumb-separator {
        display: none;
    }
    
    .breadcrumb-links a, .current-page {
        margin-bottom: 5px;
    }
}