﻿/* =====================================================
   上优化分享门户 www.iesdouyin.com.cn - 门户专业版样式
   ===================================================== */
:root {
    --primary: #1e56c8;
    --primary-dark: #143d92;
    --primary-light: #eaf1fd;
    --accent: #ff6a2b;
    --text: #23272e;
    --text-sub: #6b7280;
    --border: #e5e8ee;
    --bg-soft: #f5f7fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

body {
    background: var(--bg-soft);
    color: var(--text);
    font-size: 16px;
}

a {
    transition: color .2s;
}

.container {
    width: 1600px;
    margin: 0 auto;
    max-width: 100%;
    padding: 0 15px;
}

p {
    text-indent: 2em;
    line-height: 30px;
}

.Cot-box {
    line-height: 28px;
    font-size: 16px;
    overflow: hidden;
}

    .Cot-box div {
        text-indent: 2em;
    }

        .Cot-box div p {
            text-indent: 2em;
        }

/* ===================== 顶部通栏 ===================== */
.top-bar {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    color: #fff;
    font-size: 14px;
    padding: 8px 0;
}

    .top-bar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .top-bar h1 {
        font-size: 14px;
        font-weight: normal;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .top-bar .tel {
        display: flex;
        gap: 10px;
        flex-shrink: 0;
    }

        .top-bar .tel a {
            color: #fff;
            text-decoration: none;
            padding: 4px 16px;
            border-radius: 20px;
            font-size: 13px;
        }

        .top-bar .tel .ghost-btn {
            border: 1px solid rgba(255,255,255,.6);
        }

            .top-bar .tel .ghost-btn:hover {
                background: rgba(255,255,255,.15);
            }

        .top-bar .tel .main-btn {
            background: var(--accent);
            font-weight: bold;
        }

            .top-bar .tel .main-btn:hover {
                background: #e85a1d;
            }

/* ===================== 头部 Logo 区 ===================== */
.logo-header {
    padding: 18px 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

    .logo-header .container {
        display: flex;
        align-items: center;
        gap: 22px;
        flex-wrap: wrap;
    }

.logo img {
    height: 58px;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

    .logo-text strong {
        font-size: 24px;
        color: var(--primary);
        letter-spacing: 2px;
    }

    .logo-text span {
        font-size: 13px;
        color: var(--text-sub);
        letter-spacing: 1px;
    }

.search-box {
    display: flex;
    flex: 1;
    max-width: 560px;
    min-width: 260px;
    margin-left: auto;
}

    .search-box input {
        flex: 1;
        height: 42px;
        padding: 0 14px;
        border: 2px solid var(--primary);
        border-right: none;
        border-radius: 4px 0 0 4px;
        outline: none;
        font-size: 14px;
    }

    .search-box button {
        width: 92px;
        height: 42px;
        background: var(--primary);
        color: #fff;
        border: none;
        cursor: pointer;
        font-size: 15px;
        border-radius: 0 4px 4px 0;
    }

        .search-box button:hover {
            background: var(--primary-dark);
        }

.header-img {
    width: 150px;
    height: 52px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: bold;
    border-radius: 6px;
}

/* ===================== 导航栏 ===================== */
.city-nav {
    background: #fff;
    box-shadow: 0 2px 6px rgba(20,40,90,.06);
    position: sticky;
    top: 0;
    z-index: 99;
    margin-bottom: 20px;
}

    .city-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 2px;
        list-style: none;
        padding: 6px 0;
    }

        .city-nav ul li a {
            color: #333;
            text-decoration: none;
            padding: 6px 13px;
            font-size: 14px;
            border-radius: 4px;
            display: block;
        }

            .city-nav ul li a:hover {
                color: var(--primary);
                background: var(--primary-light);
            }

            .city-nav ul li a.active-city {
                background: var(--primary);
                color: #fff;
            }

/* ===================== 面包屑 ===================== */
.bread {
    padding: 8px 0 15px;
    font-size: 14px;
    color: var(--text-sub);
}

    .bread a {
        color: var(--primary);
        text-decoration: none;
    }

        .bread a:hover {
            text-decoration: underline;
        }

/* ===================== 首页三列区块 ===================== */
.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.box {
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(20,40,90,.05);
}

.box-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px;
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: bold;
    position: relative;
}

    .box-title::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 64px;
        height: 2px;
        background: var(--primary);
    }

    .box-title a {
        font-size: 13px;
        color: var(--primary);
        text-decoration: none;
        font-weight: normal;
    }

        .box-title a:hover {
            text-decoration: underline;
        }

.intro-img img {
    border-radius: 6px;
}

/* ===================== 区块标题 ===================== */
.section-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 5px solid var(--primary);
}

    .section-head h2 {
        font-size: 22px;
        color: var(--text);
    }

    .section-head span {
        font-size: 14px;
        color: var(--text-sub);
    }

/* ===================== 内容条目 ===================== */
.company-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: dashed 1px var(--border);
    align-items: flex-start;
}

    .company-item:last-child {
        border-bottom: none;
    }

    .company-item .img-box {
        width: 138px;
        height: 138px;
        flex-shrink: 0;
        border: 1px solid var(--border);
        background: #fafafa;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #999;
        font-size: 12px;
        border-radius: 6px;
        overflow: hidden;
    }

        .company-item .img-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform .3s;
        }

    .company-item:hover .img-box img {
        transform: scale(1.05);
    }

    .company-item .info {
        flex: 1;
        min-width: 0;
    }

        .company-item .info h4 {
            font-size: 15px;
            margin-bottom: 6px;
            line-height: 1.5;
        }

            .company-item .info h4 a {
                color: var(--text);
                text-decoration: none;
            }

                .company-item .info h4 a:hover {
                    color: var(--primary);
                }

        .company-item .info p {
            font-size: 13px;
            color: var(--text-sub);
            line-height: 1.6;
            text-indent: 0;
        }

        .company-item .info span {
            display: block;
            font-size: 12px;
            color: #9aa3af;
            margin-top: 6px;
        }

/* ===================== 城市网格 ===================== */
.city-company-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.city-card {
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(20,40,90,.05);
    transition: box-shadow .2s, transform .2s;
}

    .city-card:hover {
        box-shadow: 0 6px 18px rgba(20,40,90,.10);
        transform: translateY(-2px);
    }

    .city-card h3 {
        border-bottom: 1px solid var(--border);
        padding-bottom: 10px;
        margin-bottom: 10px;
        font-size: 16px;
        position: relative;
    }

        .city-card h3 a {
            font-size: 16px;
            color: var(--text);
            text-decoration: none;
            padding-left: 10px;
            border-left: 4px solid var(--accent);
        }

            .city-card h3 a:hover {
                color: var(--primary);
            }

/* ===================== 左右分栏（分站/详情） ===================== */
.content-wrap {
    display: flex;
    gap: 24px;
    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: 8px;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(20,40,90,.05);
}

    /* 列表页标题区：介绍文字较长，用块级布局避免被 flex 压成竖条 */
    .company-list-box .box-title {
        display: block;
        font-size: 17px;
        font-weight: normal;
        line-height: 1.7;
        border-bottom: 2px solid var(--primary-light);
        padding-bottom: 12px;
        margin-bottom: 6px;
        position: relative;
    }

        .company-list-box .box-title::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -2px;
            width: 64px;
            height: 2px;
            background: var(--primary);
        }

        .company-list-box .box-title span {
            display: block;
            color: var(--text-sub);
            font-size: 14px;
        }

/* ===================== 分页 ===================== */
.page-turn {
    margin: 20px 0;
    text-align: center;
}

    .page-turn a {
        display: inline-block;
        padding: 6px 14px;
        border: 1px solid var(--border);
        text-decoration: none;
        color: #333;
        margin: 0 3px;
        border-radius: 4px;
        background: #fff;
    }

        .page-turn a:hover,
        .page-turn a.active {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
        }

/* ===================== 侧边卡片 ===================== */
.widget-card {
    width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(20,40,90,.05);
}

    .widget-card h3 {
        font-size: 17px;
        color: var(--text);
        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: 8px 0;
        border-bottom: 1px dotted var(--border);
        overflow: hidden;
    }

        .side-list li:last-child {
            border-bottom: none;
        }

        .side-list li a {
            color: #333;
            text-decoration: none;
            font-size: 14px;
        }

            .side-list li a:hover {
                color: var(--primary);
            }

        .side-list li span {
            float: right;
            font-size: 12px;
            color: #9aa3af;
        }

/* ===================== 文章详情 ===================== */
.article-detail {
    border: 1px solid var(--border);
    padding: 28px;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(20,40,90,.05);
    flex: 1;
    min-width: 0;
}

    .article-detail h2 {
        font-size: 26px;
        margin-bottom: 16px;
        color: var(--text);
        line-height: 1.5;
    }

    .article-meta {
        font-size: 13px;
        color: var(--text-sub);
        padding-bottom: 14px;
        margin-bottom: 18px;
        border-bottom: 1px solid var(--border);
    }

        .article-meta span {
            margin-left: 16px;
        }

    .article-detail h3 {
        font-size: 18px;
        margin: 18px 0 10px;
        color: var(--text);
    }

    .article-detail p {
        margin-bottom: 12px;
    }

.detail-img img {
    border-radius: 8px;
}

/* ===================== 底部 ===================== */
.footer {
    margin-top: 40px;
    padding: 26px 0;
    background: #1c2331;
    color: #9aa5b5;
    text-align: center;
    font-size: 14px;
}

    .footer a {
        color: #9aa5b5;
        font-size: 14px;
        text-decoration: none;
    }

        .footer a:hover {
            color: #fff;
        }

    .footer-links {
        margin-bottom: 14px;
        font-size: 14px;
    }

        .footer-links span {
            margin: 0 12px;
            color: #3a4557;
        }

/* ===================== 移动端适配 ===================== */
@media (max-width: 1024px) {
    .row-2,
    .city-company-grid {
        grid-template-columns: 1fr 1fr;
    }

    .header-img {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-bar h1 {
        font-size: 12px;
        white-space: normal;
        line-height: 1.3;
    }

    .top-bar .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .logo-header .container {
        flex-wrap: wrap;
        gap: 12px;
    }

    .logo-text strong {
        font-size: 18px;
    }

    .search-box {
        max-width: 100%;
        min-width: 0;
    }

    .row-2,
    .city-company-grid {
        grid-template-columns: 1fr;
    }

    .content-wrap {
        flex-direction: column;
    }

    .side-box {
        width: 100%;
    }

    .company-item .img-box {
        width: 90px !important;
        height: 90px !important;
    }

    .company-item .img-box img {
        width: 90px;
        height: 90px;
    }

    .article-detail {
        padding: 18px;
    }

        .article-detail h2 {
            font-size: 20px;
        }
}
