/* 全局样式 */
:root {
    --primary-color: #1a56db;
    --primary-dark: #1244b8;
    --secondary-color: #4a5568;
    --light-bg: #f8f9fa;
    --dark-bg: #1a202c;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

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

/* 顶部信息栏 */
.top-bar {
    background-color: var(--dark-bg);
    color: #ccc;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar span {
    margin-right: 15px;
}

.top-bar i {
    margin-right: 5px;
}

/* 导航栏 */
.navbar {
    padding: 0;
}

.navbar-brand {
    font-size: 24px;
    padding: 15px 0;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    padding: 20px 18px !important;
    font-size: 15px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
    background-color: rgba(255,255,255,0.1);
}

/* 通用区块 */
.section {
    position: relative;
}

.section-gray {
    background-color: var(--light-bg);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 轮播图 */
.banner-slide {
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.banner-slide-1 {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
}

.banner-slide-2 {
    background: linear-gradient(135deg, #1a56db 0%, #2b6cb0 100%);
}

.banner-slide-3 {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}

.banner-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 600px;
}

.banner-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

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

/* 图片占位符 */
.image-placeholder {
    width: 100%;
    height: 300px;
    background-color: #e2e8f0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
}

.image-placeholder i {
    font-size: 64px;
    margin-bottom: 10px;
}

.image-placeholder p {
    font-size: 14px;
    margin: 0;
}

/* 产品卡片 */
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.product-image .image-placeholder {
    height: 200px;
    border-radius: 0;
}

.product-image .image-placeholder i {
    font-size: 48px;
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-info p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

/* 优势卡片 */
.advantage-card {
    padding: 30px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    height: 100%;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #4299e1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.advantage-icon i {
    font-size: 32px;
    color: #fff;
}

.advantage-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.advantage-card p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

/* 新闻卡片 */
.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image .image-placeholder {
    height: 180px;
    border-radius: 0;
}

.news-image .image-placeholder i {
    font-size: 40px;
}

.news-info {
    padding: 20px;
}

.news-date {
    font-size: 13px;
    color: var(--primary-color);
}

.news-info h4 {
    font-size: 16px;
    margin: 10px 0;
    line-height: 1.5;
}

.news-info p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
}

.news-info a {
    font-size: 14px;
    font-weight: 500;
}

/* 联系我们区块 */
.section-contact {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
}

/* 页脚 */
.footer {
    background-color: var(--dark-bg);
    color: #cbd5e0;
}

.footer-main h4 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-main h5 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 10px;
}

.footer-main p {
    font-size: 14px;
    line-height: 1.8;
}

.footer-main ul li {
    margin-bottom: 8px;
}

.footer-main ul li a {
    color: #a0aec0;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.contact-info li {
    font-size: 14px;
    margin-bottom: 10px;
}

.contact-info i {
    margin-right: 8px;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    font-size: 13px;
}

.footer-bottom p {
    color: #718096;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border: none;
}

.back-to-top.show {
    display: flex;
}

.back-to-top i {
    font-size: 20px;
}

/* 子页面头部 */
.page-header {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.breadcrumb-nav {
    font-size: 14px;
    opacity: 0.8;
}

.breadcrumb-nav a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb-nav a:hover {
    color: #fff;
}

/* 内容区域 */
.content-section {
    padding: 60px 0;
}

.content-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.content-section h3 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: var(--text-color);
}

.content-section p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

/* 联系信息卡片 */
.contact-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.contact-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-card p {
    margin-bottom: 8px;
}

/* 表单样式 */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 86, 219, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .banner-slide {
        height: 400px;
    }
    .banner-content h2 {
        font-size: 36px;
    }
    .banner-content p {
        font-size: 16px;
    }
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 767.98px) {
    .top-bar {
        display: none;
    }
    .banner-slide {
        height: 300px;
    }
    .banner-content h2 {
        font-size: 28px;
    }
    .banner-content p {
        font-size: 14px;
    }
    .section-title {
        font-size: 24px;
    }
    .page-header {
        padding: 50px 0;
    }
    .page-header h1 {
        font-size: 28px;
    }
}

/* 发展历程时间线 */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.timeline-year {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 1;
}

.timeline-content {
    flex: 1;
    margin-left: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.timeline-content h4 {
    margin-bottom: 8px;
    color: var(--text-color);
}

.timeline-content p {
    color: var(--text-light);
    margin: 0;
}

/* 荣誉资质 */
.honor-card {
    background: #fff;
    padding: 25px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.honor-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.honor-card p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

/* 生产流程 */
.process-step {
    background: #fff;
    padding: 25px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.process-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 15px;
}

.process-step h5 {
    font-size: 14px;
    margin-bottom: 5px;
}

.process-step p {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}

/* 设备卡片 */
.equipment-card {
    background: #fff;
    padding: 25px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.equipment-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.equipment-card h5 {
    font-size: 14px;
    margin-bottom: 5px;
}

.equipment-card p {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* 产品详情列表 */
.product-info ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.product-info ul li {
    font-size: 13px;
    color: var(--text-light);
    padding: 3px 0;
    padding-left: 15px;
    position: relative;
}

.product-info ul li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* 新闻列表 */
.news-list {
    margin-bottom: 30px;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.news-item-image {
    width: 200px;
    flex-shrink: 0;
}

.news-item-image .image-placeholder {
    height: 140px;
    border-radius: 6px;
}

.news-item-image .image-placeholder i {
    font-size: 36px;
}

.news-item-content {
    flex: 1;
}

.news-item-content h3 {
    font-size: 18px;
    margin: 8px 0;
    line-height: 1.4;
}

.news-item-content h3 a {
    color: var(--text-color);
}

.news-item-content h3 a:hover {
    color: var(--primary-color);
}

.news-item-content p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
}

.read-more {
    font-size: 14px;
    font-weight: 500;
}

.news-category {
    display: inline-block;
    background: #e8f0fe;
    color: var(--primary-color);
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 10px;
}

/* 侧边栏 */
.sidebar {
    position: sticky;
    top: 80px;
}

.widget {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.widget h4 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list li a {
    color: var(--text-color);
    font-size: 14px;
}

.widget-list li a:hover {
    color: var(--primary-color);
}

.widget-list li span {
    color: var(--text-light);
    font-size: 12px;
}

/* 分页 */
.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 联系卡片 */
.contact-label {
    font-size: 13px;
    color: var(--text-light);
    margin: 10px 0 2px;
}

.contact-value {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 500;
    margin: 0;
}

/* 留言表单 */
.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.contact-form .form-label {
    font-weight: 500;
    font-size: 14px;
}

/* 地图区域 */
.map-section {
    margin-top: 0;
}

.map-placeholder {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .timeline::before {
        left: 40px;
    }
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 80px;
    }
    .timeline-year {
        position: absolute;
        left: 0;
        width: 60px;
        height: 60px;
        font-size: 14px;
    }
    .timeline-content {
        margin-left: 0;
        width: 100%;
    }
    .news-item {
        flex-direction: column;
    }
    .news-item-image {
        width: 100%;
    }
    .news-item-image .image-placeholder {
        height: 200px;
    }
}

@media (max-width: 767.98px) {
    .top-bar {
        display: none;
    }
    .banner-slide {
        height: 300px;
    }
    .banner-content h2 {
        font-size: 28px;
    }
    .banner-content p {
        font-size: 14px;
    }
    .section-title {
        font-size: 24px;
    }
    .page-header {
        padding: 50px 0;
    }
    .page-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 575.98px) {
    .banner-slide {
        height: 250px;
    }
    .banner-content h2 {
        font-size: 24px;
    }
    .navbar-brand {
        font-size: 20px;
    }
    .timeline::before {
        left: 30px;
    }
    .timeline-item {
        padding-left: 60px;
    }
    .timeline-year {
        width: 50px;
        height: 50px;
        font-size: 12px;
    }
    .contact-form {
        padding: 20px;
    }
}
