/* =====================================================
   河南创业帮帮团科技有限公司 - 官网主样式
   风格：大气稳重（政府/事业单位风格）
   ===================================================== */

/* ==================== 基础重置 ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.7;
    background: #fff;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: #c7000b; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ==================== 布局 ==================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 40px 0; }
.section-light { background: #f5f8fb; }
.text-center { text-align: center; }
.text-red { color: #c7000b; }

.section-title { text-align: center; margin-bottom: 30px; }
.section-title h2 {
    font-size: 28px; color: #1a3c5e; font-weight: 700;
    display: inline-block; position: relative; padding-bottom: 12px;
}
.section-title h2::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 50px; height: 3px; background: #c7000b;
}
.section-title p { color: #888; font-size: 14px; margin-top: 10px; }

/* ==================== 顶部栏 ==================== */
#top-bar {
    background: #1a2a3a;
    color: #ccc; font-size: 13px; height: 38px; line-height: 38px;
    border-bottom: 1px solid #2a3a4a;
}
#top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-right { display: flex; gap: 18px; }
.top-item { white-space: nowrap; }

/* ==================== 头部 ==================== */
#site-header { background: #fff; border-bottom: 3px solid #c7000b; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 100px; }
.logo-area { display: flex; align-items: center; gap: 16px; }
.logo-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #c7000b, #e63946);
    color: #fff; font-size: 32px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px; flex-shrink: 0;
}
.logo-name { font-size: 24px; color: #1a3c5e; font-weight: 700; line-height: 1.3; }
.logo-slogan { font-size: 14px; color: #888; letter-spacing: 2px; }

.header-contact { text-align: right; }
.hotline-label { display: block; font-size: 13px; color: #999; }
.hotline-number { font-size: 28px; font-weight: 700; color: #c7000b; font-family: "Arial", sans-serif; }

/* ==================== 主导航 ==================== */
#main-nav { background: linear-gradient(to right, #0d4d8c, #1a5a9e); position: relative; z-index: 100; }
.nav-menu { display: flex; height: 50px; }
.nav-item { flex: 1; position: relative; }
.nav-item a {
    display: flex; align-items: center; justify-content: center;
    height: 50px; color: #fff; font-size: 16px; font-weight: 500;
    border-right: 1px solid rgba(255,255,255,.1); transition: all .2s;
}
.nav-item:last-child a { border-right: none; }
.nav-item a:hover, .nav-item.active a {
    background: #c7000b; color: #fff;
}
.nav-shadow {
    height: 3px; background: linear-gradient(to bottom, rgba(0,0,0,.15), transparent);
}

/* ==================== 首页Banner ==================== */
.hero-banner {
    height: 420px;
    background: linear-gradient(135deg, #0d3b66 0%, #1a5a9e 40%, #0d4d8c 70%, #1a3c5e 100%);
    position: relative; overflow: hidden;
}
.hero-banner::before {
    content: ''; position: absolute; top: 0; right: -100px; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-banner::after {
    content: ''; position: absolute; bottom: -50px; left: -50px; width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(199,0,11,.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.hero-content h2 { font-size: 42px; color: #fff; font-weight: 700; margin-bottom: 16px; letter-spacing: 3px; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.hero-content p { font-size: 20px; color: rgba(255,255,255,.9); margin-bottom: 30px; letter-spacing: 2px; }
.hero-btn {
    display: inline-block; padding: 12px 40px; background: #c7000b; color: #fff;
    font-size: 16px; border-radius: 4px; transition: all .3s;
    border: 2px solid rgba(255,255,255,.3);
}
.hero-btn:hover { background: #a00009; color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(199,0,11,.4); }

/* 内页Banner */
.page-banner {
    height: 200px;
    background: linear-gradient(135deg, #0d3b66 0%, #1a5a9e 50%, #0d4d8c 100%);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.page-banner::before {
    content: ''; position: absolute; top: 0; right: 0; width: 400px; height: 100%;
    background: radial-gradient(ellipse at right, rgba(255,255,255,.08), transparent);
}
.page-banner h2 { color: #fff; font-size: 32px; font-weight: 700; z-index: 2; text-shadow: 0 2px 8px rgba(0,0,0,.2); }

/* ==================== 快捷服务 ==================== */
.quick-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -50px; position: relative; z-index: 10; }
.quick-service-card {
    background: #fff; border-radius: 8px; padding: 24px; text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,.08); transition: all .3s;
    border-top: 3px solid transparent;
}
.quick-service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.12); border-top-color: #c7000b; }
.quick-service-icon { font-size: 36px; margin-bottom: 10px; }
.quick-service-card h3 { font-size: 16px; color: #1a3c5e; margin-bottom: 8px; }
.quick-service-card p { font-size: 13px; color: #888; line-height: 1.5; }

/* ==================== 服务网格 ==================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    background: #fff; border: 1px solid #e8eef5; border-radius: 8px; overflow: hidden;
    transition: all .3s;
}
.service-card:hover { box-shadow: 0 8px 30px rgba(13,77,140,.15); border-color: #0d4d8c; }
.service-card-header { padding: 28px 24px 16px; text-align: center; border-bottom: 2px solid #f0f5fa; position: relative; }
.service-card-icon { font-size: 48px; margin-bottom: 12px; }
.service-card-header h3 { font-size: 20px; color: #1a3c5e; }
.service-card-body { padding: 20px 24px; }
.service-card-body p { color: #666; font-size: 14px; line-height: 1.8; }
.service-card-footer { padding: 0 24px 24px; text-align: center; }
.service-link {
    display: inline-block; padding: 8px 28px; border: 1px solid #0d4d8c; color: #0d4d8c;
    border-radius: 4px; font-size: 14px; transition: all .2s;
}
.service-link:hover { background: #0d4d8c; color: #fff; }

/* 服务详情页 */
.service-detail { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.service-detail h3 { font-size: 22px; color: #1a3c5e; margin: 20px 0 12px; padding-left: 12px; border-left: 4px solid #c7000b; }
.service-detail p { margin-bottom: 12px; color: #555; }
.service-detail ul { padding-left: 20px; margin-bottom: 16px; }
.service-detail ul li { list-style: disc; color: #555; margin-bottom: 6px; }

/* ==================== 关于我们预览 ==================== */
.about-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-text h3 { font-size: 24px; color: #1a3c5e; margin-bottom: 16px; }
.about-text p { color: #666; margin-bottom: 12px; text-indent: 2em; }
.about-text .about-link { margin-top: 16px; display: inline-block; }

.about-contact-card { background: linear-gradient(135deg, #0d4d8c, #1a5a9e); border-radius: 8px; padding: 30px; color: #fff; }
.about-contact-card h3 { font-size: 20px; margin-bottom: 20px; text-align: center; }
.about-contact-card ul li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.15); display: flex; align-items: center; gap: 10px; }
.about-contact-card ul li:last-child { border-bottom: none; }

/* ==================== 新闻区块 ==================== */
.news-tabs { display: flex; justify-content: center; margin-bottom: 24px; gap: 4px; }
.news-tab {
    padding: 8px 28px; border: 1px solid #d0d8e0; background: #fff; cursor: pointer;
    font-size: 15px; color: #666; transition: all .2s;
}
.news-tab.active { background: #0d4d8c; color: #fff; border-color: #0d4d8c; }

.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.news-col h3 {
    font-size: 18px; color: #1a3c5e; padding-bottom: 10px; margin-bottom: 16px;
    border-bottom: 2px solid #e8eef5; display: flex; justify-content: space-between; align-items: center;
}
.news-col h3 a { font-size: 13px; color: #999; font-weight: normal; }
.news-list li { padding: 10px 0; border-bottom: 1px dashed #e0e8f0; display: flex; justify-content: space-between; align-items: center; }
.news-list li a { flex: 1; color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 12px; }
.news-list li a:hover { color: #c7000b; }
.news-list li .news-date { color: #999; font-size: 13px; white-space: nowrap; }

/* ==================== 优势区块 ==================== */
.advantage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.advantage-item { text-align: center; padding: 24px 16px; }
.advantage-icon {
    width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%;
    background: linear-gradient(135deg, #0d4d8c, #1a5a9e);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; color: #fff;
}
.advantage-item h4 { font-size: 16px; color: #1a3c5e; margin-bottom: 8px; }
.advantage-item p { font-size: 13px; color: #888; }

/* ==================== 表单 ==================== */
.inquiry-form { background: #fff; border-radius: 8px; padding: 30px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.form-group { margin-bottom: 18px; }
.form-label { display: block; margin-bottom: 6px; font-size: 14px; color: #555; font-weight: 500; }
.form-label .required { color: #c7000b; }
.form-control {
    width: 100%; padding: 10px 14px; border: 1px solid #d0d8e0; border-radius: 4px;
    font-size: 14px; font-family: inherit; transition: border-color .2s; background: #fff;
}
.form-control:focus { outline: none; border-color: #0d4d8c; box-shadow: 0 0 0 3px rgba(13,77,140,.1); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.btn-submit {
    width: 100%; padding: 14px; background: linear-gradient(to right, #c7000b, #e63946);
    color: #fff; border: none; border-radius: 4px; font-size: 16px; font-weight: 500;
    cursor: pointer; transition: all .2s;
}
.btn-submit:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(199,0,11,.3); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.form-tip { font-size: 13px; color: #999; margin-top: 8px; }
.form-success {
    padding: 12px 16px; background: #e8f5e9; border: 1px solid #4caf50; border-radius: 4px;
    color: #2e7d32; font-size: 14px; margin-bottom: 16px; display: none;
}
.form-error {
    padding: 12px 16px; background: #fbe9e9; border: 1px solid #c7000b; border-radius: 4px;
    color: #c7000b; font-size: 14px; margin-bottom: 16px; display: none;
}

/* ==================== 联系页面 ==================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-card { background: linear-gradient(135deg, #1a3c5e, #0d4d8c); border-radius: 8px; padding: 30px; color: #fff; }
.contact-info-card h3 { font-size: 22px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.2); }
.contact-info-card .info-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.contact-info-card .info-item .icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }

/* ==================== 文章列表 ==================== */
.article-list li {
    padding: 20px 0; border-bottom: 1px solid #e8eef5; display: flex; gap: 20px;
}
.article-list li:last-child { border-bottom: none; }
.article-thumb { width: 160px; height: 100px; border-radius: 4px; overflow: hidden; flex-shrink: 0; background: #f0f5fa; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e8eef5, #d0d8e0); font-size: 24px; color: #aaa; }
.article-info { flex: 1; min-width: 0; }
.article-info h3 { font-size: 18px; color: #1a3c5e; margin-bottom: 8px; }
.article-info h3 a:hover { color: #c7000b; }
.article-info .article-meta { font-size: 13px; color: #999; margin-bottom: 8px; }
.article-info .article-summary { font-size: 14px; color: #666; line-height: 1.6; }

/* 文章详情 */
.article-detail { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.article-detail h1 { font-size: 26px; color: #1a3c5e; margin-bottom: 16px; line-height: 1.4; }
.article-meta-bar { padding-bottom: 16px; margin-bottom: 24px; border-bottom: 1px solid #e8eef5; font-size: 13px; color: #999; }
.article-meta-bar span { margin-right: 20px; }
.article-content { font-size: 16px; line-height: 1.9; color: #444; }
.article-content p { margin-bottom: 16px; text-indent: 2em; }
.article-content h3 { margin: 24px 0 12px; color: #1a3c5e; font-size: 20px; }
.article-content ul, .article-content ol { margin-bottom: 16px; padding-left: 24px; }
.article-content li { margin-bottom: 6px; list-style: disc; }
.article-content ol li { list-style: decimal; }
.article-content img { max-width: 100%; border-radius: 4px; margin: 16px 0; }
.article-nav { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 20px; border-top: 1px solid #e8eef5; }
.article-nav a { color: #0d4d8c; font-size: 14px; }

/* ==================== 面包屑 ==================== */
.breadcrumb { padding: 16px 0; font-size: 13px; color: #999; }
.breadcrumb a { color: #0d4d8c; }
.breadcrumb span { margin: 0 6px; }
.breadcrumb .current { color: #333; }

/* ==================== 分页 ==================== */
.pagination { text-align: center; margin-top: 30px; }
.pagination ul { display: inline-flex; gap: 6px; }
.pagination li a {
    display: block; min-width: 36px; height: 36px; line-height: 36px; padding: 0 12px;
    border: 1px solid #d0d8e0; border-radius: 4px; color: #555; font-size: 14px;
}
.pagination li.active a { background: #0d4d8c; color: #fff; border-color: #0d4d8c; }
.pagination li a:hover:not(.active) { border-color: #0d4d8c; color: #0d4d8c; }

/* ==================== 友情链接 ==================== */
.friend-links { background: #f5f8fb; padding: 20px 0; border-top: 1px solid #e8eef5; }
.links-title { font-size: 14px; color: #999; margin-bottom: 10px; }
.links-list { display: flex; flex-wrap: wrap; gap: 20px; }
.links-list a { font-size: 13px; color: #666; }
.links-list a:hover { color: #c7000b; }

/* ==================== 底部 ==================== */
#site-footer { background: #1a2a3a; color: #ccc; padding-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 30px; }
.footer-title { font-size: 16px; color: #fff; margin-bottom: 16px; font-weight: 600; }
.footer-desc { font-size: 13px; line-height: 1.8; color: #999; }
.footer-col ul li { margin-bottom: 8px; font-size: 13px; }
.footer-col ul li a { color: #aaa; }
.footer-col ul li a:hover { color: #fff; }
.footer-addr p { font-size: 13px; margin-bottom: 8px; color: #999; }
.footer-bottom { border-top: 1px solid #2a3a4a; padding: 16px 0; text-align: center; }
.copyright { font-size: 13px; color: #888; }
.copyright a { color: #888; }
.copyright a:hover { color: #ccc; }
.police-badge { width: 16px; height: 16px; vertical-align: middle; margin: 0 2px; }

/* ==================== 在线对话浮窗 ==================== */
.chat-widget { position: fixed; right: 20px; bottom: 100px; z-index: 9999; }
.chat-toggle {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: linear-gradient(135deg, #c7000b, #e63946); color: #fff;
    padding: 16px 12px; border-radius: 50px; cursor: pointer;
    box-shadow: 0 4px 20px rgba(199,0,11,.4); transition: all .3s;
    width: 64px; height: 64px; justify-content: center;
}
.chat-toggle:hover { transform: scale(1.05); box-shadow: 0 6px 25px rgba(199,0,11,.5); }
.chat-toggle-icon { font-size: 24px; }
.chat-toggle-text { font-size: 10px; writing-mode: vertical-rl; display: none; }

.chat-box {
    position: absolute; bottom: 80px; right: 0; width: 340px;
    background: #fff; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.15);
    overflow: hidden; border: 1px solid #e8eef5;
}
.chat-header {
    background: linear-gradient(to right, #0d4d8c, #1a5a9e); color: #fff;
    padding: 14px 18px; display: flex; justify-content: space-between; align-items: center;
}
.chat-title { font-size: 15px; font-weight: 600; }
.chat-close { font-size: 22px; cursor: pointer; line-height: 1; }
.chat-body {
    height: 280px; overflow-y: auto; padding: 16px; background: #f5f8fb;
}
.chat-welcome {
    background: #fff; padding: 10px 14px; border-radius: 8px 8px 8px 0;
    font-size: 14px; color: #555; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.05);
    max-width: 85%;
}
.chat-msg { margin-bottom: 12px; max-width: 85%; }
.chat-msg.visitor { margin-left: auto; }
.chat-msg-bubble {
    padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5;
    word-break: break-word;
}
.chat-msg.visitor .chat-msg-bubble { background: #0d4d8c; color: #fff; border-radius: 12px 12px 0 12px; }
.chat-msg.admin .chat-msg-bubble { background: #fff; color: #333; border-radius: 12px 12px 12px 0; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.chat-msg-time { font-size: 11px; color: #aaa; margin-top: 4px; }
.chat-msg.visitor .chat-msg-time { text-align: right; }

.chat-info { padding: 8px 12px; display: flex; gap: 8px; border-top: 1px solid #e8eef5; }
.chat-name-input {
    flex: 1; padding: 6px 10px; border: 1px solid #d0d8e0; border-radius: 4px;
    font-size: 13px; font-family: inherit;
}
.chat-input-area { display: flex; padding: 10px 12px; border-top: 1px solid #e8eef5; gap: 8px; }
.chat-input-area input {
    flex: 1; padding: 8px 12px; border: 1px solid #d0d8e0; border-radius: 4px;
    font-size: 14px; font-family: inherit;
}
.chat-send-btn {
    padding: 8px 18px; background: #c7000b; color: #fff; border: none;
    border-radius: 4px; cursor: pointer; font-size: 14px; transition: all .2s;
}
.chat-send-btn:hover { background: #a00009; }

/* ==================== 回到顶部 ==================== */
.back-to-top {
    position: fixed; right: 24px; bottom: 40px; width: 44px; height: 44px;
    background: rgba(13,77,140,.8); color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; cursor: pointer; z-index: 9998; opacity: 0;
    transition: all .3s; pointer-events: none;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: #0d4d8c; transform: translateY(-2px); }

/* ==================== 动画 ==================== */
.fade-in-up { animation: fadeInUp .5s ease-out; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== 响应式 ==================== */
@media (max-width: 992px) {
    .quick-services { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .advantage-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .about-preview, .news-grid, .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .container { padding: 0 15px; }
    .top-bar-right { display: none; }
    .header-inner { flex-direction: column; height: auto; padding: 16px 0; gap: 12px; text-align: center; }
    .header-contact { text-align: center; }
    .logo-area { flex-direction: column; gap: 8px; }
    .logo-name { font-size: 20px; }
    .nav-menu { flex-wrap: wrap; height: auto; }
    .nav-item { flex: 1 1 33.33%; }
    .nav-item a { height: 44px; font-size: 14px; }
    .hero-banner { height: 300px; }
    .hero-content h2 { font-size: 26px; letter-spacing: 1px; }
    .hero-content p { font-size: 15px; }
    .page-banner { height: 150px; }
    .page-banner h2 { font-size: 24px; }
    .section-title h2 { font-size: 22px; }
    .quick-services { grid-template-columns: 1fr; margin-top: 20px; }
    .services-grid { grid-template-columns: 1fr; }
    .advantage-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .article-list li { flex-direction: column; }
    .article-thumb { width: 100%; height: 180px; }
    .article-detail { padding: 16px; }
    .article-detail h1 { font-size: 22px; }
    .inquiry-form { padding: 16px; }
    .chat-box { width: calc(100vw - 40px); }
}
@media (max-width: 480px) {
    .nav-item { flex: 1 1 50%; }
    .advantage-grid { grid-template-columns: 1fr; }
    .hero-content h2 { font-size: 22px; }
    .logo-name { font-size: 18px; }
}
