/* IT科技企业模板样式 */

/* 全局样式 */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
}

.nav-link {
    color: #333;
    font-weight: 500;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007bff;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* 按钮样式 */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.card img {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 部分样式 */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.section-subtitle {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #666;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 产品和新闻列表样式 */
.products-grid, .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* 产品和新闻详情页样式 */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* 产品和新闻元数据样式 */
.product-meta, .news-meta {
    margin-bottom: 1.5rem;
}

.product-meta h3, .news-meta h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
}

.product-meta ul, .news-meta ul {
    list-style: none;
    padding: 0;
}

.product-meta li, .news-meta li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.product-meta strong, .news-meta strong {
    margin-right: 0.5rem;
    color: #333;
}

/* 产品和新闻图片样式 */
.product-detail-image, .news-detail-image {
    margin-bottom: 2rem;
}

.product-detail-image img, .news-detail-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 图片占位符样式 */
.product-image-placeholder, .news-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background-color: #f8f9fa;
    border-radius: 4px;
    color: #6c757d;
    font-size: 3rem;
}

.product-image-placeholder-detail, .news-image-placeholder-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    font-size: 5rem;
}

/* 内容样式 */
.content {
    line-height: 1.8;
    color: #333;
}

.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.content p {
    margin-bottom: 1.5rem;
}

.content ul, .content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content li {
    margin-bottom: 0.5rem;
}

.content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.content table th, .content table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #dee2e6;
}

.content table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    font-style: italic;
    color: #6c757d;
}

/* 卡片样式增强 */
.card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-text {
    flex-grow: 1;
}

.card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

/* 页脚样式 */
footer {
    background-color: #343a40;
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section p, .footer-section li {
    color: #adb5bd;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    padding-left: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #495057;
    color: #adb5bd;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .products-grid, .news-grid {
        grid-template-columns: 1fr;
    }
}

/* 联系表单样式 */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 关于我们样式 */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

/* 产品详情和新闻详情样式 */
.detail-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.detail-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.detail-content .meta {
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.detail-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* 时间线样式 */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #007bff;
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 2rem);
    padding-left: 2rem;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
    padding-right: 2rem;
    padding-left: calc(50% + 2rem);
}

.timeline-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    max-width: 400px;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 0;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    width: 0;
    height: 0;
    border: solid transparent;
    border-width: 10px 10px 10px 0;
    border-right-color: #fff;
    left: -10px;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: auto;
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-left-color: #fff;
    border-right-color: transparent;
}

.timeline-date {
    position: absolute;
    left: 50%;
    top: 1.5rem;
    transform: translateX(-50%);
    background: #007bff;
    color: #fff;
    padding: 0.1rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 2;
    white-space: nowrap;
}

.timeline-text h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.25rem;
}

.timeline-text p {
    margin-bottom: 0;
    color: #555;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 2rem;
    }
    
    .timeline-item,
    .timeline-item:nth-child(odd) {
        padding-right: 2rem;
        padding-left: 5rem;
        justify-content: flex-start;
    }
    
    .timeline-item .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 0;
        margin-right: 0;
        max-width: none;
    }
    
    .timeline-content::before,
    .timeline-item:nth-child(odd) .timeline-content::before {
        left: -10px;
        right: auto;
        border-width: 10px 10px 10px 0;
        border-right-color: #fff;
        border-left-color: transparent;
    }
    
    .timeline-date {
        left: 2rem;
        transform: translateX(0);
        margin-left: 0;
        top: 1rem;
    }
}
