/* 
 * ZBO智博1919 样式文件（百度SEO优化版）
 * 核心：轻量化、语义化、适配百度抓取规则
 */

/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', 'Arial', sans-serif; /* 百度偏好中文字体 */
}

body {
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
    font-size: 16px; /* 百度偏好易读字体大小 */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 6rem 0;
}

.required {
    color: #ff0000;
}

/* 板块标题通用样式 */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #0a192f;
    margin-bottom: 3rem;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #d4af37;
    margin: 0.8rem auto;
    border-radius: 2px;
}

/* 按钮通用样式 */
.btn {
    display: inline-block;
    background-color: #d4af37;
    color: #0a192f;
    padding: 0.9rem 2.2rem;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #c29f2d;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* 导航栏样式 */
.header {
    background-color: #0a192f;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
}

.logo a {
    color: #fff;
}

.logo span {
    color: #d4af37;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #d4af37;
    transition: width 0.3s ease;
}

.nav-links a.active,
.nav-links a:hover {
    color: #d4af37;
}

.nav-links a.active::after,
.nav-links a:hover::after {
    width: 100%;
}

/* 移动端菜单按钮 */
.header .fas.fa-bars,
.header .fas.fa-times {
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    color: #d4af37;
}

/* 面包屑导航 */
.breadcrumb {
    background-color: #f5f8ff;
    padding: 0.8rem 0;
    font-size: 0.9rem;
    color: #64748b;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb a {
    color: #0a192f;
}

.breadcrumb a:hover {
    color: #d4af37;
}

.breadcrumb i {
    font-size: 0.8rem;
}

/* Hero区域（与轮播分离） */
.hero {
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.95)), url('https://picsum.photos/1920/600?random=0') center/cover no-repeat;
    height: 400px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

/* 轮播图区域（独立） */
.carousel-section {
    background-color: #fff;
    padding: 2rem 0;
}

.carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-item {
    display: none;
    position: relative;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.carousel-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 1.5rem;
    text-align: center;
}

.carousel-text h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* 轮播控制按钮 */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 10;
}

.carousel-prev,
.carousel-next {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: #d4af37;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: #d4af37;
    width: 30px;
    border-radius: 6px;
}

/* 核心业务样式 */
.service {
    background-color: #fff;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #f5f8ff;
    padding: 2rem;
    border-radius: 10px;
    border-top: 4px solid #0a192f;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(10, 25, 47, 0.1);
    border-top-color: #d4af37;
}

.service-card i {
    font-size: 2.5rem;
    color: #0a192f;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: #0a192f;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.card-link {
    color: #d4af37;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link:hover {
    color: #c29f2d;
}

/* 品牌优势样式 */
.advantage {
    background-color: #f5f8ff;
}

.advantage-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.advantage-list {
    flex: 1 1 500px;
}

.advantage-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.advantage-item i {
    font-size: 2rem;
    color: #d4af37;
    margin-top: 0.5rem;
}

.advantage-text h3 {
    color: #0a192f;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.advantage-text p {
    color: #64748b;
}

.advantage-img {
    flex: 1 1 400px;
}

.advantage-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(10, 25, 47, 0.15);
}

/* 行业资讯样式 */
.news {
    background-color: #fff;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.news-item {
    background-color: #f5f8ff;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(10, 25, 47, 0.1);
}

.news-img {
    height: 200px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-img img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.news-content h3 a {
    color: #0a192f;
}

.news-content h3 a:hover {
    color: #d4af37;
}

.news-date {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-desc {
    color: #64748b;
    margin-bottom: 1rem;
}

.news-link {
    color: #d4af37;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.news-link:hover {
    color: #c29f2d;
}

/* 常见问题样式 */
.faq {
    background-color: #f5f8ff;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(10, 25, 47, 0.05);
}

.faq-question {
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: #0a192f;
    font-weight: 600;
}

.faq-question i {
    color: #d4af37;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 1.5rem 1.2rem;
    color: #64748b;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

/* 联系我们样式 */
.contact {
    background-color: #fff;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-info {
    flex: 1 1 400px;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.8rem;
    color: #d4af37;
    margin-top: 0.3rem;
}

.contact-item h3 {
    color: #0a192f;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    color: #64748b;
}

.contact-form {
    flex: 1 1 400px;
    background-color: #f5f8ff;
    padding: 2rem;
    border-radius: 10px;
}

.contact-form h3 {
    color: #0a192f;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #0a192f;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.form-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* 页脚样式（优化：横向排列） */
.footer {
    background-color: #0a192f;
    color: #fff;
    padding: 3rem 0 2rem;
    margin-top: 2rem;
}

/* 快速链接横向排列 */
.footer-quick-links {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-quick-links a {
    color: #e0e0e0;
    margin: 0 0.8rem;
    font-size: 0.95rem;
}

.footer-quick-links a:hover {
    color: #d4af37;
}

.footer-quick-links span {
    color: #94a3b8;
}

/* 版权+当前域名横向排列 */
.footer-copyright-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: #94a3b8;
    font-size: 0.9rem;
    text-align: center;
}

#domainDisplay {
    color: #d4af37;
    font-weight: 600;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .header .fas.fa-bars {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #0a192f;
        flex-direction: column;
        padding: 4rem 2rem;
        transition: right 0.3s ease-in-out;
        z-index: 9999;
    }

    .nav-links.active {
        right: 0;
    }

    .header .fas.fa-times {
        display: block;
        position: absolute;
        top: 2rem;
        right: 2rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .carousel-item img {
        height: 300px;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .advantage-content {
        gap: 2rem;
    }

    .news-list {
        grid-template-columns: 1fr;
    }

    .contact-content {
        gap: 2rem;
    }

    .footer-copyright-row {
        flex-direction: column;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .carousel-controls {
        padding: 0 1rem;
    }

    .carousel-prev,
    .carousel-next {
        width: 35px;
        height: 35px;
    }

    .footer-quick-links a {
        display: inline-block;
        margin: 0.5rem 0.5rem;
    }
}