/* ============================================
   博拉尔GEO优化 v2 — 核心样式
   精确复刻 https://www.hbblewl.com/
   ============================================ */

/* --- CSS 变量 --- */
:root {
    --primary:       #0066cc;
    --primary-dark:  #004c99;
    --primary-light: #e6f0ff;
    --accent:        #ff6b35;
    --text-dark:     #1a1a2e;
    --text-body:     #444;
    --text-light:    #888;
    --bg-light:      #f5f7fa;
    --bg-white:      #ffffff;
    --bg-dark:       #1a1a2e;
    --border:        #e8e8e8;
    --shadow:        0 2px 15px rgba(0,0,0,0.06);
    --shadow-hover:  0 8px 30px rgba(0,102,204,0.12);
    --radius:        8px;
    --radius-lg:     12px;
    --transition:    all 0.3s ease;
    --max-width:     1200px;
}

/* --- 重置 --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-body);
    background: var(--bg-white);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* --- 按钮 --- */
.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(0,102,204,0.3); }

.btn-outline {
    display: inline-block;
    padding: 10px 28px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* --- 板块通用 --- */
.section-title {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 45px;
}
.section-more-btn {
    display: block;
    width: 180px;
    margin: 35px auto 0;
    padding: 11px 0;
    text-align: center;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}
.section-more-btn:hover { background: var(--primary); color: #fff; }

/* ============================================
   顶部导航栏
   ============================================ */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background: #000000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
    z-index: 900;
}
.header.sticky { box-shadow: 0 2px 15px rgba(0,0,0,0.10); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo */
.header-logo { display: flex; align-items: center; gap: 10px; }
.header-logo img { height: 40px; width: auto; }
.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

/* 导航菜单 */
.header-menu {
    display: flex;
    align-items: center;
    gap: 2px;
}
.header-menu li a {
    display: block;
    padding: 8px 16px;
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
.header-menu li a:hover,
.header-menu li.current-menu-item a {
    color: #fff;
    background: rgba(37,99,235,0.3);
}
.header-menu li a::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%;
    width: 0; height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.header-menu li a:hover::after,
.header-menu li.current-menu-item a::after { width: 60%; }

/* 联系电话 */
.header-phone {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}
.header-phone::before {
    content: '📞';
    font-size: 14px;
}

/* 汉堡按钮 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: rgba(255,255,255,0.6);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   Hero 轮播
   ============================================ */
.hero-banner {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide-content {
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}
.hero-slide-title {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-slide-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.92;
    line-height: 1.6;
}
.hero-slide-btn {
    display: inline-block;
    padding: 14px 38px;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary);
}
.hero-slide-btn:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* 轮播按钮 */
.hero-prev, .hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}
.hero-prev { left: 20px; }
.hero-next { right: 20px; }
.hero-prev:hover, .hero-next:hover { background: rgba(255,255,255,0.3); }

/* 指示器 */
.hero-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.hero-indicator-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}
.hero-indicator-dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

/* ============================================
   品牌介绍
   ============================================ */
.brand-intro {
    padding: 70px 0;
    background: var(--bg-white);
    text-align: center;
}
.brand-intro .section-title {
    font-size: 32px;
    color: var(--primary);
}
.brand-intro-desc {
    max-width: 820px;
    margin: 0 auto;
    font-size: 16px;
    color: var(--text-body);
    line-height: 1.9;
    text-align: left;
    text-indent: 2em;
}

/* ============================================
   GEO优化服务
   ============================================ */
.service-section {
    padding: 70px 0;
    background: var(--bg-light);
}
.service-card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: block;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}
.service-card-icon {
    font-size: 40px;
    margin-bottom: 18px;
}
.service-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.service-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 12px;
}
.service-feature-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.service-card-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   合规承诺
   ============================================ */
.compliance-section {
    padding: 70px 0;
    background: var(--bg-white);
}
.compliance-card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.compliance-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 30px 22px;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}
.compliance-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.compliance-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.compliance-card-desc {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.8;
}

/* ============================================
   知识库
   ============================================ */
.knowledge-section {
    padding: 70px 0;
    background: var(--bg-light);
}
.knowledge-card-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.knowledge-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: block;
    position: relative;
}
.knowledge-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}
.knowledge-card-tag {
    display: inline-block;
    padding: 3px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
}
.knowledge-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.5;
}
.knowledge-card-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 14px;
}
.knowledge-card-date {
    font-size: 13px;
    color: var(--text-light);
}

/* ============================================
   成功案例
   ============================================ */
.case-section {
    padding: 70px 0;
    background: var(--bg-white);
}
.case-card-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.case-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: block;
}
.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}
.case-card-tag {
    display: inline-block;
    padding: 3px 12px;
    background: #fff3e6;
    color: var(--accent);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
}
.case-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.case-card-client, .case-card-result {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 6px;
}

/* ============================================
   行业资讯
   ============================================ */
.news-section {
    padding: 70px 0;
    background: var(--bg-light);
}
.news-list {
    max-width: 820px;
    margin: 0 auto;
}
.news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.news-item:hover { background: var(--primary-light); padding-left: 15px; }
.news-item-title { font-size: 15px; color: var(--text-dark); font-weight: 500; }
.news-item-date { font-size: 13px; color: var(--text-light); white-space: nowrap; margin-left: 20px; }

/* ============================================
   页脚
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: #aaa;
    padding-top: 50px;
}
.footer-top-inner {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 2px;
    background: var(--primary);
}
.footer-brand-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.8;
    margin-top: 12px;
}
.footer-menu li { margin-bottom: 10px; }
.footer-menu li a { color: #888; font-size: 14px; transition: var(--transition); }
.footer-menu li a:hover { color: var(--primary); padding-left: 5px; }
.footer-contact-list li { font-size: 14px; color: #888; margin-bottom: 10px; line-height: 1.6; }
.footer-qr-img { width: 110px; height: 110px; border-radius: var(--radius); background: #fff; padding: 5px; }
.footer-qrcode-tip { font-size: 13px; color: #888; margin-bottom: 10px; }

.footer-bottom { padding: 18px 0; text-align: center; }
.footer-bottom-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-keywords { font-size: 13px; color: #666; }
.footer-copyright { font-size: 13px; color: #666; }
.footer-icp, .footer-sitemap { color: #666; font-size: 13px; margin-left: 10px; }
.footer-icp:hover, .footer-sitemap:hover { color: var(--primary); }

/* ============================================
   返回顶部
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 44px; height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,102,204,0.3);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }
