/* ===== General ===== */
:root {
    --primary: #1a5276;
    --primary-light: #2980b9;
    --accent: #e67e22;
    --accent-light: #f39c12;
    --dark: #1c2833;
    --light-bg: #f8f9fa;
}

html { scroll-behavior: smooth; }
body { font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif; padding-top: 76px; }

/* ===== Hero Banner ===== */
.hero-banner {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, #2c3e50 100%);
}
.hero-banner .carousel-item {
    height: 600px;
}
.hero-banner .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 82, 118, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    z-index: 2;
}
.hero-overlay h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}
.hero-overlay p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-top: 1rem;
}

/* ===== Section ===== */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.section-title p {
    color: #666;
    margin-top: 0.5rem;
}

/* ===== About Section ===== */
.about-section {
    padding: 80px 0;
    background: #fff;
}
.about-section .about-img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.about-section .about-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #555;
}

/* ===== Product Section ===== */
.product-section {
    padding: 80px 0;
    background: var(--light-bg);
}
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.product-card .card-img-wrapper {
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
}
.product-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.product-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}
.product-card .card-body {
    padding: 1.2rem;
}
.product-card .card-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.product-card .card-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}
.product-card .category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* ===== Customer Section ===== */
.customer-section {
    padding: 80px 0;
    background: #fff;
}
.customer-logo {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.75rem 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s;
    background: #fff;
}
.customer-logo:hover {
    border-color: var(--primary-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.customer-logo img {
    max-height: 50px;
    max-width: 100%;
    object-fit: contain;
}
.customer-logo .customer-name {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    line-height: 1.3;
}

/* ===== News Section ===== */
.news-section {
    padding: 80px 0;
    background: var(--light-bg);
}
.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.news-card .card-body { padding: 1.2rem; }
.news-card .news-date {
    font-size: 0.85rem;
    color: #999;
}
.news-card .card-title {
    font-weight: 600;
    color: var(--dark);
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 80px 0;
    background: #fff;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.contact-info-item i {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(41, 128, 185, 0.1);
    border-radius: 50%;
}

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #2c3e50 100%);
    color: #fff;
    padding: 80px 0 40px;
    text-align: center;
}
.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
}
.page-header .breadcrumb {
    justify-content: center;
}
.page-header .breadcrumb-item a { color: rgba(255,255,255,0.8); }
.page-header .breadcrumb-item.active { color: rgba(255,255,255,0.6); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-banner, .hero-banner .carousel-item { height: 400px; }
    .hero-overlay h1 { font-size: 1.8rem; }
    .hero-overlay p { font-size: 1rem; }
    .about-section .about-img { height: 250px; margin-bottom: 1.5rem; }
    .section-title h2 { font-size: 1.5rem; }
}

/* ===== Rich Text Content (Product/News/Customer) ===== */
.product-detail-content,
.news-detail-content {
    line-height: 1.8;
    color: #444;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.product-detail-content img,
.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}
.product-detail-content table,
.news-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}
.product-detail-content table td,
.product-detail-content table th,
.news-detail-content table td,
.news-detail-content table th {
    border: 1px solid #ddd;
    padding: 8px 12px;
}
.product-detail-content ul,
.product-detail-content ol,
.news-detail-content ul,
.news-detail-content ol {
    padding-left: 2rem;
}
.product-detail-content blockquote,
.news-detail-content blockquote {
    border-left: 4px solid var(--primary-light);
    padding: 10px 20px;
    margin: 15px 0;
    background: #f8f9fa;
    border-radius: 4px;
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Image Placeholder ===== */
.img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e8f0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    gap: 0.5rem;
}
.img-placeholder i {
    opacity: 0.6;
}
.img-placeholder span {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
}
.about-section .img-placeholder {
    height: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.news-card .img-placeholder {
    height: 200px;
}
.customer-logo .img-placeholder {
    height: auto;
    min-height: unset;
    flex-direction: column;
    gap: 4px;
}
