/* 企业名录 · enterprise-portal.css · 大气门户风格 v3 · 零依赖内联 SVG 图标 */
:root {
    --ep-ink: #0f172a;
    --ep-ink-2: #334155;
    --ep-muted: #64748b;
    --ep-line: #e5e7eb;
    --ep-line-soft: #f1f5f9;
    --ep-bg: #f4f6fb;
    --ep-card: #ffffff;
    --ep-primary: #1e40af;
    --ep-primary-2: #2563eb;
    --ep-primary-3: #3b82f6;
    --ep-accent: #d4a24c;
    --ep-accent-2: #fcd34d;
    --ep-dark: #0b1426;
    --ep-radius: 16px;
    --ep-radius-sm: 12px;
    --ep-shadow: 0 4px 18px rgba(15,23,42,.06);
    --ep-shadow-hover: 0 18px 50px rgba(30,64,175,.16);
    --ep-cert: #059669;
    --ep-rec: #ea580c;
    --ep-container: 1180px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "PingFang SC","Microsoft YaHei","Segoe UI",system-ui,sans-serif; background: var(--ep-bg); color: var(--ep-ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
.container { max-width: var(--ep-container); margin: 0 auto; padding: 0 20px; }
section { position: relative; }

/* ======= 内联 SVG 图标（零外部依赖） ======= */
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.ep-page { background: var(--ep-bg); min-height: 60vh; }

/* ======= Hero（企业黄页首页，勿与详情页 .ep-hero-inner 网格冲突） ======= */
.ep-page .ep-hero-home {
    position: relative; overflow: hidden;
    padding: 4.5rem 0 7rem;
    background:
        radial-gradient(ellipse 55% 50% at 15% 25%, rgba(212,162,76,.20), transparent 55%),
        radial-gradient(ellipse 45% 55% at 88% 80%, rgba(59,130,246,.30), transparent 60%),
        linear-gradient(135deg, #0b1426 0%, #15245e 48%, #1e40af 100%);
    color: #fff;
    margin-bottom: 0;
}
.ep-page .ep-hero-home::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 88%);
}
.ep-hero-home-inner {
    position: relative;
    z-index: 1;
    display: block !important;
    grid-template-columns: none !important;
    gap: unset !important;
    align-items: unset !important;
    max-width: var(--ep-container);
}
.ep-hero-home .ep-hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: .35rem .9rem; border-radius: 999px;
    background: rgba(212,162,76,.16); border: 1px solid rgba(212,162,76,.35);
    color: var(--ep-accent-2); font-size: .74rem; font-weight: 700; letter-spacing: 1.5px;
    margin-bottom: 1.3rem;
}
.ep-hero-home .ep-hero-tag .ico { width: 1rem; height: 1rem; }
.ep-hero-home .ep-hero-title {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 900;
    letter-spacing: -.5px; margin: 0 0 1rem; line-height: 1.12;
    color: #fff;
}
.ep-hero-home .ep-hero-title .g {
    background: linear-gradient(135deg,#fcd34d,#fbbf24);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: #fcd34d;
}
.ep-hero-home .ep-hero-desc {
    margin: 0 0 2rem; font-size: 1.02rem; opacity: .86;
    max-width: 640px; line-height: 1.75; color: rgba(255,255,255,.9);
}
.ep-hero-home .ep-hero-stats {
    display: flex; gap: 2.6rem; flex-wrap: wrap; align-items: flex-start;
}
.ep-hero-home .ep-hero-stat { min-width: 5.5rem; }
.ep-hero-home .ep-hero-stat strong {
    display: block; font-size: 2.1rem; font-weight: 900; line-height: 1;
    background: linear-gradient(135deg,#fff,#fcd34d);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: #fcd34d;
}
.ep-hero-home .ep-hero-stat span {
    font-size: .78rem; opacity: .72; letter-spacing: .5px;
    margin-top: .4rem; display: block; color: rgba(255,255,255,.78);
}

/* ======= 悬浮搜索 ======= */
.ep-search { position: relative; z-index: 3; max-width: 880px; margin: -3.2rem auto 0; }
.ep-search-box {
    background: #fff; border-radius: 14px; box-shadow: 0 22px 60px rgba(11,20,38,.28);
    display: flex; align-items: center; padding: 10px 10px 10px 0; gap: 8px;
}
.ep-search-scope {
    border: none; background: var(--ep-line-soft); color: var(--ep-ink-2);
    font-weight: 700; font-size: .9rem; padding: .7rem 1rem; border-radius: 9px;
    margin-left: 10px; outline: none; cursor: pointer;
}
.ep-search-box input { flex: 1; border: none; outline: none; font-size: 1rem; padding: .7rem 1rem; color: var(--ep-ink); background: transparent; }
.ep-search-btn {
    background: linear-gradient(135deg,#1e40af,#2563eb); color: #fff; border: none;
    font-weight: 800; font-size: .95rem; padding: .85rem 1.8rem; border-radius: 10px;
    cursor: pointer; display: flex; align-items: center; gap: 8px; transition: .2s; white-space: nowrap;
}
.ep-search-btn .ico { width: 1.05rem; height: 1.05rem; }
.ep-search-btn:hover { filter: brightness(1.08); transform: translateX(2px); }
.ep-search-hot { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; justify-content: center; color: #fff; font-size: .8rem; opacity: .85; }
.ep-search-hot span { opacity: .6; margin-right: 4px; }
.ep-search-hot a { color: #dbeafe; background: rgba(255,255,255,.1); padding: .25rem .7rem; border-radius: 999px; transition: .18s; }
.ep-search-hot a:hover { background: rgba(212,162,76,.3); color: #fff; }

/* ======= 通用区块标题 ======= */
.ep-section { padding: 3.2rem 0; }
.ep-sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 1.8rem; }
.ep-sec-title { font-size: 1.6rem; font-weight: 900; display: flex; align-items: center; gap: .7rem; margin: 0; }
.ep-sec-title::before { content: ""; width: 6px; height: 30px; border-radius: 3px; background: linear-gradient(180deg,var(--ep-accent),#e0b15a); }
.ep-sec-sub { color: var(--ep-muted); font-size: .9rem; margin-top: .3rem; }
.ep-sec-more { color: var(--ep-primary); font-weight: 700; font-size: .88rem; display: flex; align-items: center; gap: 4px; }
.ep-sec-more .ico { width: .95rem; height: .95rem; }

/* ======= 平台优势 ======= */
.ep-adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.ep-adv {
    background: var(--ep-card); border-radius: var(--ep-radius); padding: 1.6rem 1.4rem;
    box-shadow: var(--ep-shadow); border: 1px solid transparent; transition: .22s; position: relative; overflow: hidden;
}
.ep-adv::before { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.10), transparent 70%); }
.ep-adv:hover { transform: translateY(-5px); box-shadow: var(--ep-shadow-hover); border-color: rgba(30,64,175,.14); }
.ep-adv-ico {
    width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    color: #fff; background: linear-gradient(135deg,#1e40af,#2563eb); margin-bottom: 1rem;
    box-shadow: 0 10px 24px rgba(30,64,175,.28);
}
.ep-adv-ico .ico { width: 1.7rem; height: 1.7rem; }
.ep-adv:nth-child(2) .ep-adv-ico { background: linear-gradient(135deg,#059669,#10b981); }
.ep-adv:nth-child(3) .ep-adv-ico { background: linear-gradient(135deg,#d4a24c,#e0b15a); }
.ep-adv:nth-child(4) .ep-adv-ico { background: linear-gradient(135deg,#7c3aed,#a855f7); }
.ep-adv h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: .4rem; }
.ep-adv p { font-size: .85rem; color: var(--ep-muted); line-height: 1.6; }

/* ======= 行业分类墙 ======= */
.ep-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: .9rem; }
.ep-cat-card {
    background: var(--ep-card); border-radius: var(--ep-radius-sm); box-shadow: var(--ep-shadow);
    padding: 1.3rem .8rem; text-align: center; transition: .2s; border: 1px solid transparent;
}
.ep-cat-card:hover { transform: translateY(-4px); box-shadow: var(--ep-shadow-hover); border-color: rgba(30,64,175,.14); }
.ep-cat-card-ico {
    width: 50px; height: 50px; margin: 0 auto .6rem; border-radius: 13px;
    background: linear-gradient(135deg,#eef2ff,#dbeafe); color: var(--ep-primary-2);
    display: flex; align-items: center; justify-content: center; transition: .2s;
}
.ep-cat-card-ico .ico { width: 1.5rem; height: 1.5rem; }
.ep-cat-card:hover .ep-cat-card-ico { background: linear-gradient(135deg,#1e40af,#2563eb); color: #fff; }
.ep-cat-card-name { font-size: .9rem; font-weight: 700; color: var(--ep-ink); }
.ep-cat-card-cnt { font-size: .72rem; color: var(--ep-muted); margin-top: .2rem; }

/* ======= 推荐企业 + 热门榜 ======= */
.ep-2col { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 1.4rem; align-items: start; }
.ep-main { display: flex; flex-direction: column; min-width: 0; }
.ep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.ep-card {
    background: var(--ep-card); border-radius: var(--ep-radius); padding: 1.3rem 1.25rem 1.35rem;
    text-decoration: none; color: inherit; box-shadow: var(--ep-shadow);
    display: flex; flex-direction: column; transition: .22s; position: relative; overflow: hidden; border: 1px solid transparent;
}
.ep-card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg,#1e40af,#d4a24c); opacity: 0; transition: .2s; }
.ep-card:hover { transform: translateY(-5px); box-shadow: var(--ep-shadow-hover); border-color: rgba(30,64,175,.12); }
.ep-card:hover::after { opacity: 1; }
.ep-card-top { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: .8rem; }
.ep-card-logo {
    width: 58px; height: 58px; border-radius: 15px; flex-shrink: 0;
    background: linear-gradient(135deg,#ede9fe,#ddd6fe); display: flex; align-items: center; justify-content: center;
    color: #7c3aed; font-weight: 900; font-size: 1.4rem; overflow: hidden;
}
.ep-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.ep-card-title { margin: 0; font-size: 1rem; font-weight: 800; line-height: 1.35; color: var(--ep-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.ep-card:hover .ep-card-title { color: var(--ep-primary); }
.ep-card-flags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.ep-flag { padding: .08rem .5rem; border-radius: 5px; font-size: .66rem; font-weight: 800; font-style: normal; }
.ep-flag-rec { background: #fef3c7; color: #b45309; }
.ep-flag-cert { background: #d1fae5; color: #047857; }
.ep-flag-shop { background: #dbeafe; color: #1d4ed8; }
.ep-card-meta { font-size: .78rem; color: var(--ep-muted); display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .55rem; }
.ep-card-meta span { display: inline-flex; align-items: center; gap: .25rem; }
.ep-card-meta .ico { width: .95rem; height: .95rem; margin-right: 3px; color: var(--ep-primary-2); }
.ep-card-desc { margin: 0 0 .7rem; font-size: .82rem; color: var(--ep-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.ep-card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: .7rem; border-top: 1px dashed var(--ep-line); font-size: .78rem; color: var(--ep-muted); }
.ep-card-foot em { font-style: normal; }
.ep-card-foot strong { font-size: .78rem; font-weight: 800; color: var(--ep-primary); display: inline-flex; align-items: center; gap: .25rem; transition: color .2s; }
.ep-card-foot strong .ico { width: .9rem; height: .9rem; margin-left: .15rem; transition: transform .15s; }
.ep-card:hover .ep-card-foot strong { color: var(--ep-accent); }
.ep-card:hover .ep-card-foot strong .ico { transform: translateX(3px); }

/* ======= 侧栏 ======= */
.ep-side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 1.2rem; }
.ep-side-card { background: var(--ep-card); border-radius: var(--ep-radius); box-shadow: var(--ep-shadow); padding: 1.2rem 1.3rem; }
.ep-side-title { font-size: 1rem; font-weight: 800; margin: 0 0 .9rem; display: flex; align-items: center; gap: .5rem; }
.ep-side-title .ico { width: 1.1rem; height: 1.1rem; color: var(--ep-primary); }
.ep-hot-list { list-style: none; padding: 0; margin: 0; }
.ep-hot-list li { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px dashed var(--ep-line-soft); }
.ep-hot-list li:last-child { border-bottom: 0; }
.ep-hot-list .rank { width: 20px; height: 20px; border-radius: 5px; flex-shrink: 0; background: #e5e7eb; color: #fff; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; margin-top: 3px; }
.ep-hot-list li:nth-child(-n+3) .rank { background: linear-gradient(135deg,#1e40af,#d4a24c); }
.ep-hot-list a { flex: 1; color: var(--ep-ink-2); font-size: .86rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; }
.ep-hot-list a:hover { color: var(--ep-primary); }
/* 分类导航侧栏 · 3级展开 */
.ep-cat-tree { list-style: none; padding: 0; margin: 0; }
.ep-cat-tree .ep-cat-root { margin-bottom: 2px; }

/* 一级 */
.ep-cat-tree > .ep-cat-root > a {
    display: flex; justify-content: space-between; align-items: center;
    padding: .55rem .8rem;
    color: var(--ep-ink); text-decoration: none;
    font-size: .86rem; font-weight: 700;
    border-radius: 9px;
    background: var(--ep-line-soft);
    transition: all .15s;
}
.ep-cat-tree > .ep-cat-root > a:hover { background: #e0e7ff; color: var(--ep-primary); }
.ep-cat-tree > .ep-cat-root > a.active {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: #fff; box-shadow: 0 4px 12px rgba(30,64,175,.2);
}
.ep-caret { font-size: .72rem; transition: transform .2s; opacity: .7; }
.ep-cat-root.is-open > a .ep-caret { transform: rotate(180deg); }

/* 二级容器 */
.ep-cat-l2 {
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease-out;
}
.ep-cat-root.is-open > .ep-cat-l2 { max-height: 600px; }

/* 二级网格：一行 5 个 */
.ep-cat-l2-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .3rem .5rem;
    padding: .5rem .4rem .55rem;
}
.ep-cat-l2-item { font-size: .8rem; }
.ep-cat-l2-item > a {
    display: block;
    padding: .3rem .5rem;
    color: var(--ep-ink-2); text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all .15s;
    text-align: center;
    background: #fafafa;
    border: 1px solid transparent;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ep-cat-l2-item > a:hover {
    background: #fff; color: var(--ep-primary);
    border-color: rgba(30,64,175,.2);
}
.ep-cat-l2-item > a.active {
    background: #fff; color: var(--ep-primary);
    border-color: var(--ep-primary);
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(30,64,175,.15);
}
.ep-cat-l2-item.is-current > a { color: var(--ep-primary); font-weight: 700; }

/* 三级 */
.ep-cat-l3 { padding: .3rem 0 0; }
.ep-cat-l3-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .2rem;
}
.ep-cat-l3-grid a {
    display: block;
    padding: .2rem .35rem;
    font-size: .72rem;
    color: var(--ep-muted); text-decoration: none;
    border-radius: 4px;
    text-align: center;
    background: transparent;
    transition: all .12s;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ep-cat-l3-grid a:hover { background: var(--ep-line-soft); color: var(--ep-primary); }
.ep-cat-l3-grid a.active {
    background: var(--ep-primary); color: #fff; font-weight: 700;
}

/* 响应式：侧栏窄时降为 3 列 */
@media (max-width: 1199.98px) {
    .ep-cat-l2-grid, .ep-cat-l3-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ======= 数据信任带 ======= */
.ep-band {
    background: linear-gradient(135deg,#0b1426,#15245e 50%,#1e3a8a); color: #fff;
    border-radius: 24px; padding: 2.6rem 2rem; margin: 0 auto; max-width: var(--ep-container);
    box-shadow: 0 24px 60px rgba(11,20,38,.3); position: relative; overflow: hidden;
}
.ep-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 50px 50px; mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 90%); }
.ep-band-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.ep-band b { display: block; font-size: 2.2rem; font-weight: 900; background: linear-gradient(135deg,#fff,#fcd34d); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.ep-band span { font-size: .82rem; opacity: .75; display: block; margin-top: .5rem; letter-spacing: .5px; }

/* ======= 入驻 CTA ======= */
.ep-cta { padding: 3.5rem 0; }
.ep-cta-box {
    background: linear-gradient(120deg,#1e40af,#2563eb 60%,#3b82f6); border-radius: 22px; padding: 3rem 2.5rem;
    display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
    position: relative; overflow: hidden; box-shadow: 0 24px 60px rgba(30,64,175,.35);
}
.ep-cta-box::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(252,211,77,.35), transparent 70%); }
.ep-cta-box h3 { font-size: 1.8rem; font-weight: 900; margin-bottom: .5rem; }
.ep-cta-box p { opacity: .9; font-size: .95rem; }
.ep-cta-btn {
    position: relative; z-index: 1; background: linear-gradient(135deg,#fcd34d,#e0b15a); color: #3a2a06;
    font-weight: 900; padding: 1rem 2.2rem; border-radius: 12px; font-size: 1rem;
    display: inline-flex; align-items: center; gap: .6rem; box-shadow: 0 12px 30px rgba(252,211,77,.4); transition: .2s; white-space: nowrap;
}
.ep-cta-btn .ico { width: 1.15rem; height: 1.15rem; }
.ep-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(252,211,77,.5); }

/* ======= 列表页 ======= */
.ep-breadcrumb { font-size: .82rem; color: var(--ep-muted); margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.ep-breadcrumb a { color: var(--ep-muted); transition: color .15s; }
.ep-breadcrumb a:hover { color: var(--ep-primary); }
.ep-breadcrumb .sep { opacity: .4; }
.ep-list-head { background: var(--ep-card); border-radius: var(--ep-radius); box-shadow: var(--ep-shadow); padding: 1rem 1.3rem; margin-bottom: 1.1rem; display: flex; align-items: center; justify-content: space-between; }
.ep-list-head h2 { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--ep-ink); display: flex; align-items: center; gap: .55rem; }
.ep-list-head h2 .ico { width: 1.2rem; height: 1.2rem; color: var(--ep-primary); }
.ep-list-head .count { font-size: .82rem; color: var(--ep-muted); }
.ep-list-head .count strong { color: var(--ep-primary); font-weight: 800; font-size: 1rem; }
.ep-pagination { background: var(--ep-card); padding: 1rem; border-radius: var(--ep-radius); margin-top: 1.1rem; text-align: center; box-shadow: var(--ep-shadow); }
.ep-empty { background: var(--ep-card); border-radius: var(--ep-radius); box-shadow: var(--ep-shadow); padding: 3rem 1rem; text-align: center; color: var(--ep-muted); }
.ep-empty .ico { width: 2.5rem; height: 2.5rem; opacity: .4; display: block; margin: 0 auto .5rem; }

/* ======= 响应式 ======= */
@media (max-width: 1199.98px) {
    .ep-adv-grid { grid-template-columns: repeat(2, 1fr); }
    .ep-cats { grid-template-columns: repeat(4, 1fr); }
    .ep-grid { grid-template-columns: repeat(2, 1fr); }
    .ep-band-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 991.98px) {
    .ep-2col { grid-template-columns: 1fr; }
    .ep-side { position: static; }
}
@media (max-width: 575.98px) {
    .ep-topbar .container { font-size: .72rem; }
    .ep-adv-grid, .ep-cats, .ep-grid, .ep-band-grid { grid-template-columns: 1fr 1fr; }
    .ep-page .ep-hero-home { padding: 2.6rem 0 5.5rem; }
    .ep-hero-home .ep-hero-title { font-size: 1.7rem; }
    .ep-hero-home .ep-hero-desc { font-size: .92rem; margin-bottom: 1.4rem; }
    .ep-hero-home .ep-hero-stats { gap: 1.1rem 1.4rem; }
    .ep-hero-home .ep-hero-stat strong { font-size: 1.55rem; }
    .ep-search-box { flex-wrap: wrap; padding: 10px; }
    .ep-search-scope { margin: 0; }
    .ep-search-btn { width: 100%; justify-content: center; }
    .ep-cta-box { padding: 2rem 1.4rem; text-align: center; justify-content: center; }
    .ep-cta-box h3 { font-size: 1.4rem; }
}
