﻿/* ============================================================
   GEO公司推荐-成创网络 全站样式（美化版）
   配色：主色 #1e5eff / 深蓝 #0b2a4a，浅色主题
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

:root {
    --primary: #1e5eff;
    --primary-dark: #0b2a4a;
    --primary-light: #eaf1ff;
    --text: #1f2937;
    --text-light: #6b7280;
    --border: #e5e9f0;
    --bg-soft: #f5f7fb;
    --radius: 10px;
    --shadow: 0 4px 18px rgba(15, 43, 84, 0.08);
    --shadow-hover: 0 10px 28px rgba(15, 43, 84, 0.16);
}

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

body {
    background: var(--bg-soft);
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
}

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

    a:hover {
        color: #0f43c8;
    }

.container {
    width: 1800px;
    margin: 0 auto;
    max-width: 100%;
    padding: 0 16px;
}

p {
    text-indent: 2em;
    line-height: 1.9;
}

.Cot-box {
    line-height: 1.9;
}

    .Cot-box div {
        text-indent: 2em;
    }

        .Cot-box div p {
            text-indent: 2em;
        }

/* ========== 顶部 H1 通栏 ========== */
.top-bar {
    background: linear-gradient(90deg, #0b2a4a, #123f73);
    color: #fff;
    padding: 9px 0;
    font-size: 14px;
}

    .top-bar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    .top-bar h1 {
        font-size: 14px;
        font-weight: normal;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .top-bar .tel a {
        display: inline-block;
        color: #fff;
        font-weight: bold;
        padding: 4px 16px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.35);
        white-space: nowrap;
        transition: background 0.2s;
    }

        .top-bar .tel a:hover {
            background: rgba(255, 255, 255, 0.26);
            color: #fff;
        }

/* ========== Logo + 搜索区 ========== */
.logo-header {
    padding: 16px 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(15, 43, 84, 0.04);
}

    .logo-header .container {
        display: flex;
        align-items: center;
        gap: 22px;
        flex-wrap: wrap;
    }

.logo img {
    height: 58px;
    display: block;
}

.search-box {
    display: flex;
    flex: 0 1 430px;
    max-width: 430px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

    .search-box input {
        flex: 1;
        height: 42px;
        padding: 0 14px;
        border: none;
        outline: none;
        font-size: 14px;
        min-width: 0;
    }

    .search-box button {
        width: 88px;
        height: 42px;
        background: var(--primary);
        color: #fff;
        border: none;
        cursor: pointer;
        font-size: 15px;
        letter-spacing: 4px;
        transition: background 0.2s;
    }

        .search-box button:hover {
            background: #0f43c8;
        }

/* 顶部推荐位（四宫格，铺满右侧空余空间） */
.header-imgs {
    display: flex;
    flex: 1 1 auto;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
    min-width: 0;
}

.header-img {
    flex: 1 1 0;
    min-width: 130px;
    height: 62px;
    padding: 0 8px;
    border: 1px solid #d9e5fb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #f7faff 0%, #e9f1ff 100%);
    box-shadow: inset 0 1px 0 #ffffff, 0 2px 6px rgba(30, 94, 255, 0.06);
    color: #2a4a72;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0;
    position: relative;
    transition: all 0.25s;
}

    .header-img a {
        color: #2a4a72;
        font-weight: 600;
    }

    .header-img::before {
        content: "";
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 26px;
        height: 3px;
        border-radius: 2px;
        background: linear-gradient(90deg, #1e5eff, #6ba0ff);
        opacity: 0.55;
    }

    .header-img:hover {
        border-color: #9dbcfa;
        color: var(--primary);
        box-shadow: inset 0 1px 0 #ffffff, 0 8px 18px rgba(30, 94, 255, 0.14);
        transform: translateY(-2px);
    }

        .header-img:hover a {
            color: var(--primary);
        }

/* ========== 城市导航 ========== */
.city-nav {
    padding: 12px 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    margin-bottom: 22px;
}

    .city-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 10px;
        list-style: none;
    }

        .city-nav ul li a {
            display: inline-block;
            color: #33475e;
            padding: 4px 13px;
            font-size: 14px;
            border-radius: 999px;
            border: 1px solid transparent;
            transition: all 0.2s;
        }

            .city-nav ul li a:hover {
                color: var(--primary);
                background: var(--primary-light);
                border-color: #c9daff;
            }

            .city-nav ul li a.active-city {
                background: var(--primary);
                color: #fff;
            }

        .city-nav ul li.more-city a {
            color: var(--primary);
            font-weight: 700;
            border: 1px dashed #9db9f5;
        }

/* ========== 面包屑 ========== */
.bread {
    padding: 10px 0 14px;
    font-size: 14px;
    color: var(--text-light);
}

    .bread a {
        color: var(--primary);
    }

/* ========== 三列布局（首页推荐区块） ========== */
.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 26px;
    align-items: stretch;
}

.box {
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.box-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 9px;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-dark);
}

    .box-title span a {
        color: var(--primary-dark);
    }

    .box-title a {
        font-size: 14px;
        color: var(--primary);
        font-weight: normal;
        white-space: nowrap;
    }

        .box-title a:hover {
            text-decoration: underline;
        }

/* ========== 公司条目 ========== */
.company-item {
    display: flex;
    gap: 14px;
    padding: 12px 4px;
    border-bottom: 1px dashed var(--border);
    align-items: flex-start;
    border-radius: 8px;
    transition: background 0.2s;
    /* 统一固定高度：图片138 + 上下留白12*2，条目高低完全一致 */
    height: 162px;
    overflow: hidden;
}

    .company-item:hover {
        background: #f7faff;
    }

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

    .company-item .img-box {
        width: 138px;
        height: 138px;
        flex-shrink: 0;
        border: 1px solid var(--border);
        background: #f7f9fc;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #9aa7b8;
        font-size: 12px;
        border-radius: 8px;
        overflow: hidden;
    }

        .company-item .img-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.3s;
        }

        .company-item:hover .img-box img {
            transform: scale(1.04);
        }

    .company-item .info {
        flex: 1;
        min-width: 0;
    }

        .company-item .info h4 {
            font-size: 15px;
            margin-bottom: 5px;
            line-height: 1.5;
            /* 标题超长单行省略，保证条目等高 */
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

            .company-item .info h4 a {
                color: #17263c;
                font-weight: 700;
            }

                .company-item .info h4 a:hover {
                    color: var(--primary);
                }

        .company-item .info p {
            font-size: 13px;
            color: var(--text-light);
            line-height: 1.7;
            text-indent: 0;
            /* 简介最多3行截断，保证条目等高 */
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 4px;
        }

        .company-item .info span {
            font-size: 12px;
            color: #9aa7b8;
        }

/* ========== 城市公司网格 ========== */
.city-company-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    align-items: stretch;
}

.city-card {
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}

    .city-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-hover);
    }

    .city-card h3 {
        border-bottom: 2px solid var(--primary-light);
        padding-bottom: 8px;
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 16px;
        color: var(--primary-dark);
    }

        .city-card h3 a {
            color: var(--primary-dark);
        }

        .city-card h3 a:last-child {
            font-size: 13px;
            color: var(--primary);
            font-weight: normal;
        }

/* ========== 左右分栏布局（城市分站页） ========== */
.content-wrap {
    display: flex;
    gap: 26px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.article-wrap {
    flex: 1;
    min-width: 0;
}

.side-box {
    width: 380px;
    flex-shrink: 0;
}

/* 公司列表大盒子 */
.company-list-box {
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

    .company-list-box .box-title {
        font-size: 19px;
        margin-bottom: 12px;
    }

        .company-list-box .box-title span {
            font-size: 15px;
            font-weight: normal;
            color: var(--text-light);
            line-height: 1.8;
        }

    .company-list-box .company-item .info h4 {
        font-size: 17px;
        margin-bottom: 6px;
    }

    .company-list-box .company-item .info p {
        font-size: 14px;
        line-height: 1.7;
    }

/* ========== 分页 ========== */
.page-turn {
    margin: 20px 0;
    text-align: center;
    font-size: 14px;
}

    .page-turn a,
    .page-turn .pager-current,
    .page-turn .pager-disabled {
        display: inline-block;
        padding: 6px 14px;
        border: 1px solid var(--border);
        margin: 3px;
        border-radius: 6px;
        background: #fff;
        color: #33475e;
        transition: all 0.2s;
    }

    .page-turn a:hover {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

    .page-turn .pager-current {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
        font-weight: 700;
    }

    .page-turn .pager-disabled {
        color: #b6c1d1;
        background: #f7f9fc;
    }

    .page-turn .pager-info {
        color: var(--text-light);
        margin-right: 8px;
    }

/* ========== 侧边卡片 ========== */
.widget-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

    .widget-card h3 {
        font-size: 17px;
        color: var(--primary-dark);
        border-left: 4px solid var(--primary);
        padding-left: 10px;
        margin-bottom: 14px;
        line-height: 1.4;
    }

.side-list {
    list-style: none;
}

    .side-list li {
        padding: 7px 2px;
        border-bottom: 1px dotted var(--border);
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

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

        .side-list li a {
            color: #33475e;
            font-size: 14px;
        }

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

        .side-list li span {
            float: right;
            font-size: 12px;
            color: #9aa7b8;
        }

    .side-list.city-links li a {
        display: block;
    }

/* ========== 文章详情 ========== */
.article-detail {
    border: 1px solid var(--border);
    padding: 26px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

    /* 清除正文浮动图片，防止图片溢出压到下方“相关推荐” */
    .article-detail::after {
        content: "";
        display: block;
        clear: both;
    }

    .article-detail h2 {
        font-size: 22px;
        line-height: 1.5;
        color: var(--primary-dark);
        padding-bottom: 12px;
        margin-bottom: 14px;
        border-bottom: 2px solid var(--primary-light);
    }

/* 详情页日期条 */
.article-meta {
    background: #f5f8ff;
    border: 1px solid #e3ecff;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    color: #5a6b80;
    margin-bottom: 16px;
}

    .article-detail h2 {
        font-size: 24px;
        margin-bottom: 16px;
        color: var(--primary-dark);
        border-bottom: 1px solid var(--border);
        padding-bottom: 10px;
        line-height: 1.5;
    }

    .article-detail h3 {
        font-size: 18px;
        margin: 18px 0 10px;
        color: var(--primary-dark);
    }

    .article-detail p {
        margin-bottom: 12px;
    }

/* ========== 全部城市页 ========== */
.hero-intro {
    background: linear-gradient(135deg, #0b2a4a, #1f4e79);
    color: #fff;
    border-radius: var(--radius);
    padding: 30px 28px;
    margin-bottom: 26px;
    box-shadow: var(--shadow);
}

    .hero-intro h1 {
        font-size: 26px;
        margin-bottom: 12px;
        letter-spacing: 1px;
    }

    .hero-intro p {
        text-indent: 0;
        font-size: 15px;
        opacity: 0.94;
        line-height: 1.9;
    }

.city-block {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.25s;
}

    .city-block:hover {
        box-shadow: var(--shadow-hover);
    }

    .city-block .company-item .img-box {
        width: 80px;
        height: 80px;
    }

    .city-block .company-item .info h4 {
        font-size: 15px;
    }

/* ========== 文章页图片 ========== */
.article-detail .img-box img {
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* ========== 底部 ========== */
.footer {
    margin-top: 40px;
    padding: 30px 0 24px;
    background: linear-gradient(135deg, #0b2a4a, #123f73);
    color: #aebccd;
    text-align: center;
    font-size: 14px;
}

    .footer a {
        color: #cfdcec;
        font-size: 14px;
    }

        .footer a:hover {
            color: #fff;
            text-decoration: underline;
        }

    .footer p {
        text-indent: 0;
        margin-bottom: 8px;
    }

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

    .footer-nav a {
        font-weight: 600;
    }

.footer-cities {
    max-width: 1800px;
    margin: 0 auto 14px;
    line-height: 2.1;
    text-align: center;
}

    .footer-cities a {
        display: inline-block;
        margin: 0 7px;
        font-size: 13px;
    }

    .footer-cities .footer-cities-title {
        color: #8fa4ba;
        font-weight: 700;
    }

    .footer-cities .footer-more {
        color: #ffd479;
        font-weight: 700;
    }

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
    .top-bar h1 {
        font-size: 12px;
        white-space: normal;
        line-height: 1.3;
    }

    .top-bar {
        padding: 8px 0;
    }

    .top-bar .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .logo-header .container {
        flex-wrap: wrap;
    }

    .header-imgs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
    }

    .header-img {
        width: auto;
        min-width: 0;
        height: 52px;
        font-size: 13px;
        letter-spacing: 0;
    }

    .search-box {
        max-width: 100%;
        flex-basis: 100%;
    }

    .row-2,
    .city-company-grid {
        grid-template-columns: 1fr;
    }

    .content-wrap {
        flex-direction: column;
    }

    .side-box {
        width: 100%;
    }

    .company-item .img-box {
        width: 90px;
        height: 90px;
    }

    .company-list-box .company-item .info h4 {
        font-size: 15px;
    }

    .hero-intro h1 {
        font-size: 20px;
    }

    .widget-card {
        width: 100%;
    }
}

/* ========== 城市分站品牌介绍（无数据占位版块） ========== */
.brand-intro {
    display: flex;
    gap: 24px;
    align-items: stretch;
    padding: 18px 0 6px;
}

.brand-pic {
    width: 400px;
    flex-shrink: 0;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #0b0b0b;
    aspect-ratio: 1 / 1;
}

    .brand-pic img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .brand-pic .brand-badge {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, rgba(30,94,255,0.92), rgba(11,42,74,0.92));
        color: #fff;
        font-size: 13px;
        text-align: center;
        padding: 8px 6px;
        letter-spacing: 1px;
    }

.brand-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

    .brand-info h3 {
        font-size: 20px;
        color: var(--primary-dark);
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--primary-light);
    }

.brand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

    .brand-tags span {
        background: #eef4ff;
        color: var(--primary);
        border: 1px solid #cdddff;
        font-size: 13px;
        padding: 4px 12px;
        border-radius: 999px;
        font-weight: 600;
    }

    .brand-info .Cot-box p {
        text-indent: 2em;
        margin-bottom: 8px;
        color: #3d4a5c;
        font-size: 14.5px;
    }

.hotline-bar {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: linear-gradient(90deg, #1e5eff, #3d7bff);
    color: #fff;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 14px;
    box-shadow: 0 4px 14px rgba(30,94,255,0.28);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .hotline-bar:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(30,94,255,0.36);
        color: #fff;
    }

    .hotline-bar b {
        font-size: 18px;
        letter-spacing: 1px;
    }

/* 服务优势网格 */
.adv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.adv-card {
    background: linear-gradient(180deg, #f7faff, #eef4ff);
    border: 1px solid #dbe7ff;
    border-radius: 10px;
    padding: 14px 14px 12px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

    .adv-card:hover {
        transform: translateY(-3px);
        border-color: var(--primary);
        box-shadow: var(--shadow);
    }

    .adv-card em {
        font-style: normal;
        font-size: 22px;
        font-weight: 800;
        color: #cdddff;
        display: block;
        line-height: 1;
        margin-bottom: 8px;
    }

    .adv-card h4 {
        font-size: 14.5px;
        color: var(--primary-dark);
        margin-bottom: 6px;
    }

    .adv-card p {
        font-size: 12.5px;
        color: #5a6b80;
        line-height: 1.7;
    }

@media (max-width: 860px) {
    .brand-intro {
        flex-direction: column;
    }

    .brand-pic {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

        .brand-pic img {
            height: 100%;
            min-height: 0;
        }

    .adv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .adv-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== 相关推荐图文网格（2行×5个） ========== */
.rel-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.rel-card {
    display: block;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

    .rel-card:hover {
        transform: translateY(-3px);
        border-color: var(--primary);
        box-shadow: var(--shadow);
    }

    .rel-card .rel-pic {
        display: block;
        aspect-ratio: 4 / 3;
        overflow: hidden;
        background: #f7f9fc;
    }

        .rel-card .rel-pic img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.3s;
        }

    .rel-card:hover .rel-pic img {
        transform: scale(1.05);
    }

    .rel-card h4 {
        font-size: 13.5px;
        line-height: 1.5;
        color: #2b3a4e;
        padding: 9px 10px 11px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 600;
    }

    .rel-card:hover h4 {
        color: var(--primary);
    }

@media (max-width: 860px) {
    .rel-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .rel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== 移动端补充：详情页与头部 ========== */
@media (max-width: 768px) {
    /* 详情页正文浮动图片改为居中自适应，不再溢出 */
    .article-detail .img-box img {
        float: none !important;
        margin: 0 auto 14px !important;
        width: 100% !important;
        max-width: 400px;
        height: auto !important;
        display: block;
    }

    .article-detail {
        padding: 16px;
    }

        .article-detail h2 {
            font-size: 18px;
        }

    /* 头部：logo 与搜索框占满一行，四卡片两列铺满 */
    .logo-header .container {
        gap: 12px;
    }

    .search-box {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .logo {
        margin: 0 auto;
    }
}

/* ========== 列表页条目图片放大：200px 正方形 ========== */
.company-list-box .company-item {
    /* 图片200 + 上下留白12*2 */
    height: 224px;
}

.company-list-box .company-item .img-box {
    width: 200px;
    height: 200px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .company-list-box .company-item {
        height: auto;
        min-height: 120px;
    }

    .company-list-box .company-item .img-box {
        width: 100px;
        height: 100px;
    }
}
