/* 顶栏共享样式（partials/nav.php 使用，须在本文件所有规则前引入） */
@import "top.css";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font: 14px/1.6 "Inter", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
    color: #1e293b;
    background: #f7f9fc;
    -webkit-font-smoothing: antialiased
}

a {
    color: #1e4b8c;
    text-decoration: none;
    transition: color .15s, background-color .15s, border-color .15s, box-shadow .15s, transform .15s
}

a:hover {
    color: #0b2f66
}

.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px
}

.top-bar {
    background: #fff;
    border-bottom: 1px solid #e6ecf3;
    font-size: 13px
}

.top-bar-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px
}

.top-bar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b
}

.top-bar-link:hover {
    color: #1e4b8c
}

.top-bar-link .icon {
    width: 15px;
    height: 15px
}

.top-bar-link.hotline {
    color: #1e4b8c;
    font-weight: 600
}

.top-bar-divider {
    width: 1px;
    height: 14px;
    background: #e2e8f0
}

.main-nav {
    background: #fff;
    border-bottom: 1px solid #eef2f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .02)
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 24px
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #0b2f66;
    letter-spacing: -.3px;
    white-space: nowrap
}

.logo span {
    background: linear-gradient(135deg, #1e4b8c, #2b6cb0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(145deg, #1e4b8c, #3b82f6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(30, 75, 140, .25)
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    flex: 1;
    margin-left: 8px
}

.nav-links a {
    display: block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #475569;
    white-space: nowrap
}

.nav-links a:hover {
    color: #1e4b8c;
    background: #f1f6fd
}

.nav-links a.active {
    color: #1e4b8c;
    background: #e9f0fb;
    font-weight: 600
}

.nav-actions {
    margin-left: auto
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1e4b8c, #2b6cb0);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(30, 75, 140, .3);
    transition: filter .15s, box-shadow .15s, transform .15s
}

.nav-btn:hover {
    color: #fff;
    filter: brightness(1.05);
    box-shadow: 0 6px 16px rgba(30, 75, 140, .4);
    transform: translateY(-1px)
}

.nav-btn-icon {
    width: 16px;
    height: 16px
}

.hero {
    background: linear-gradient(135deg, #0a2a5e 0%, #1e4b8c 50%, #2b6cb0 100%);
    padding: 44px 0 48px;
    position: relative;
    overflow: hidden
}

.hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    top: -300px;
    right: -100px;
    background: radial-gradient(circle, rgba(255, 255, 255, .08), transparent 70%);
    pointer-events: none
}

.hero::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    bottom: -200px;
    left: -100px;
    background: radial-gradient(circle, rgba(96, 165, 250, .25), transparent 70%);
    pointer-events: none
}

.hero .wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center
}

.hero h1 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.5px;
    margin-bottom: 10px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .15)
}

.hero p {
    color: rgba(255, 255, 255, .8);
    font-size: 16px;
    margin-bottom: 28px;
    max-width: 560px
}

.hero-search {
    width: 100%;
    max-width: 600px;
    display: flex;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
    background: #fff;
    transition: box-shadow .2s
}

.hero-search:focus-within {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .3), 0 12px 40px rgba(0, 0, 0, .3)
}

.hero-search input {
    flex: 1;
    height: 52px;
    padding: 0 24px;
    border: 0;
    font-size: 15px;
    outline: none;
    color: #1e293b;
    background: transparent
}

.hero-search input::placeholder {
    color: #94a3b8
}

.hero-search button {
    flex: 0 0 auto;
    height: 52px;
    padding: 0 36px;
    border: 0;
    background: linear-gradient(135deg, #1e4b8c, #2b6cb0);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 1px;
    transition: filter .15s
}

.hero-search button:hover {
    filter: brightness(1.1)
}

.hero-stats {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 28px;
    color: rgba(255, 255, 255, .75);
    font-size: 14px
}

.hero-stats b {
    color: #fbbf24;
    font-size: 20px;
    font-weight: 700;
    margin: 0 3px;
    font-family: "Inter", Arial, sans-serif
}

.hero-stats .divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, .25)
}

.breadcrumb-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e9eef5;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .03);
    padding: 10px 18px;
    margin: 22px 0 18px;
    font-size: 13px;
    color: #64748b
}

.breadcrumb-bar svg {
    flex: 0 0 auto;
    color: #1e4b8c;
    margin-right: 8px
}

.breadcrumb-bar a {
    color: #64748b;
    padding: 2px 6px;
    border-radius: 6px
}

.breadcrumb-bar a:hover {
    color: #1e4b8c;
    background: #f1f6fd
}

.breadcrumb-bar .sep {
    color: #cbd5e1;
    margin: 0 4px
}

.breadcrumb-bar .current {
    color: #1e4b8c;
    font-weight: 600;
    padding: 2px 6px
}

.breadcrumb-bar .count-badge {
    margin-left: auto;
    color: #1e4b8c;
    background: linear-gradient(135deg, #eef4fd, #e0edff);
    border: 1px solid #cfe1fa;
    border-radius: 999px;
    padding: 2px 12px;
    font-size: 12px;
    font-weight: 500
}

.filter-card {
    background: #fff;
    border: 1px solid #e9eef5;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .03);
    margin-bottom: 20px;
    overflow: hidden
}

.filter-row {
    display: flex;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f4f9
}

.filter-row:last-child {
    border-bottom: 0
}

.filter-body {
    flex: 1;
    min-width: 0
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 6px
}

.tag-list a,
.tag-list span {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 13px;
    transition: all .15s
}

.tag-list a {
    background: #f7f9fc;
    color: #475569;
    border-color: #edf1f7
}

.tag-list a:hover {
    color: #1e4b8c;
    background: #e9f0fb;
    border-color: #cfe1fa;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(30, 75, 140, .12)
}

.tag-list .active {
    color: #fff;
    background: linear-gradient(135deg, #1e4b8c, #2b6cb0);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(30, 75, 140, .3)
}

.tag-list .active:hover {
    color: #fff
}

.tag-list .disabled {
    color: #cbd5e1;
    cursor: default;
    background: #fafbfc;
    border-color: #f1f4f9
}

.tag-list .all-tag {
    color: #1e4b8c;
    background: #f1f7fe;
    border-color: #cfe1fa;
    font-weight: 600
}

.tag-list .all-tag:hover {
    color: #1e4b8c;
    background: #e3eefc
}

.tag-list .all-tag.active {
    color: #fff;
    background: linear-gradient(135deg, #1e4b8c, #2b6cb0);
    border-color: transparent
}

.tag-list .divider {
    flex: 0 0 1px;
    width: 1px;
    align-self: stretch;
    padding: 0;
    border: 0;
    border-radius: 0;
    margin: 3px 6px;
    background: #e6e9ef
}

.company-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px
}

.company-card {
    background: #fff;
    border: 1px solid #e9eef5;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .02);
    padding: 20px 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: box-shadow .2s, border-color .2s, transform .2s;
    position: relative
}

.company-card:hover {
    border-color: #cfe1fa;
    box-shadow: 0 10px 30px rgba(30, 75, 140, .08);
    transform: translateY(-2px)
}

.company-thumb {
    flex: 0 0 auto;
    width: 140px;
    height: 105px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f4f9;
    position: relative
}

.company-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s
}

.company-thumb span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 34px;
    font-weight: 700;
    color: #b9cbe3;
    background: linear-gradient(135deg, #f2f6fb, #e7effa)
}

.company-card:hover .company-thumb img {
    transform: scale(1.04)
}

.company-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px
}

.company-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap
}

.company-name {
    font-size: 17px;
    font-weight: 700;
    color: #0b2f66;
    letter-spacing: -.2px;
    line-height: 1.4
}

.company-name a {
    color: inherit
}

.company-name a:hover {
    color: #1e4b8c;
    text-decoration: underline;
    text-underline-offset: 3px
}

.company-tag {
    font-size: 12px;
    color: #1e4b8c;
    background: #eef4fd;
    border: 1px solid #dbe8fb;
    border-radius: 999px;
    padding: 2px 12px;
    font-weight: 500;
    white-space: nowrap
}

.company-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    color: #94a3b8;
    font-size: 12px
}

.company-desc {
    color: #475569;
    font-size: 13.5px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 2px
}

.company-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px
}

.company-keywords span {
    font-size: 12px;
    color: #64748b;
    background: #f7f9fc;
    border: 1px solid #edf1f7;
    border-radius: 999px;
    padding: 1px 10px
}

.company-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: center
}

.btn-call {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, #1e4b8c, #2b6cb0);
    border-radius: 999px;
    padding: 8px 18px;
    box-shadow: 0 3px 10px rgba(30, 75, 140, .25);
    transition: filter .15s, box-shadow .15s, transform .15s;
    white-space: nowrap
}

.btn-call:hover {
    color: #fff;
    filter: brightness(1.08);
    box-shadow: 0 6px 18px rgba(30, 75, 140, .4);
    transform: translateY(-1px)
}

.btn-call svg {
    flex: 0 0 auto
}

.btn-detail {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: #1e4b8c;
    border: 1px solid #cfe1fa;
    border-radius: 999px;
    padding: 7px 18px;
    background: #fff;
    transition: all .15s;
    white-space: nowrap
}

.btn-detail:hover {
    color: #fff;
    background: #1e4b8c;
    border-color: #1e4b8c;
    box-shadow: 0 3px 10px rgba(30, 75, 140, .3)
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 32px
}

.pagination a,
.pagination .current {
    min-width: 40px;
    text-align: center;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e9eef5;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .02);
    transition: all .15s
}

.pagination a:hover {
    color: #1e4b8c;
    border-color: #1e4b8c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 75, 140, .15)
}

.pagination .current {
    color: #fff;
    background: linear-gradient(135deg, #1e4b8c, #2b6cb0);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(30, 75, 140, .3)
}

.pagination .dots {
    color: #cbd5e1;
    padding: 8px 6px
}

.pagination .page-info {
    color: #94a3b8;
    font-size: 13px;
    margin-left: 8px;
    padding: 8px 0
}

.footer {
    background: linear-gradient(135deg, #0a1e3d, #122c54);
    padding: 32px 0 36px;
    color: rgba(255, 255, 255, .55);
    font-size: 13px
}

.footer .wrap {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.footer-links {
    line-height: 2
}

.footer-links span {
    color: rgba(255, 255, 255, .8);
    font-weight: 500
}

.footer-links .empty {
    color: rgba(255, 255, 255, .35);
    font-weight: 400
}

.footer-links a {
    color: rgba(255, 255, 255, .5);
    margin-right: 14px;
    transition: color .15s
}

.footer-links a:hover {
    color: #fbbf24
}

.footer-note {
    color: rgba(255, 255, 255, .4);
    line-height: 1.7
}

.footer-copy {
    text-align: center;
    color: rgba(255, 255, 255, .25);
    margin-top: 8px
}

.footer-copy a {
    color: rgba(255, 255, 255, .35)
}

.footer-copy a:hover {
    color: rgba(255, 255, 255, .6)
}

.empty-state {
    padding: 80px 0;
    text-align: center;
    color: #94a3b8;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e9eef5
}

.empty-state b {
    display: block;
    font-size: 52px;
    color: #e2e8f0;
    margin-bottom: 16px;
    font-weight: 300
}

.empty-state a {
    color: #1e4b8c;
    font-weight: 500
}

@media (max-width:1024px) {
    .company-card {
        flex-wrap: wrap
    }

    .company-actions {
        width: 100%;
        justify-content: flex-start;
        padding-left: 0;
        margin-top: 4px
    }

    .company-thumb {
        width: 120px;
        height: 90px
    }
}

@media (max-width:768px) {
    .top-bar {
        display: none
    }

    .nav-container {
        height: 56px;
        gap: 12px
    }

    .logo {
        font-size: 17px
    }

    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
        border-radius: 8px
    }

    .nav-links {
        display: none
    }

    .nav-actions .nav-btn {
        padding: 7px 16px;
        font-size: 13px
    }

    .hero {
        padding: 32px 0 36px
    }

    .hero h1 {
        font-size: 24px
    }

    .hero p {
        font-size: 14px;
        margin-bottom: 20px
    }

    .hero-search input {
        height: 46px;
        padding: 0 18px;
        font-size: 14px
    }

    .hero-search button {
        height: 46px;
        padding: 0 24px;
        font-size: 14px
    }

    .hero-stats {
        gap: 16px;
        font-size: 12px
    }

    .hero-stats b {
        font-size: 17px
    }

    .wrap {
        padding: 0 14px
    }

    .breadcrumb-bar {
        padding: 8px 14px;
        font-size: 12px;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none
    }

    .breadcrumb-bar::-webkit-scrollbar {
        display: none
    }

    .breadcrumb-bar a,
    .breadcrumb-bar span {
        flex: 0 0 auto;
        white-space: nowrap
    }

    .breadcrumb-bar .count-badge {
        display: none
    }

    .filter-card {
        border-radius: 12px;
        margin-bottom: 14px
    }

    .filter-row {
        padding: 12px 14px
    }

    .tag-list a,
    .tag-list span {
        font-size: 12px;
        padding: 3px 12px
    }

    .company-card {
        padding: 14px;
        gap: 14px;
        border-radius: 12px
    }

    .company-thumb {
        width: 90px;
        height: 68px;
        border-radius: 8px
    }

    .company-name {
        font-size: 15px
    }

    .company-tag {
        font-size: 11px;
        padding: 1px 10px
    }

    .company-meta {
        display: none
    }

    .company-desc {
        font-size: 12.5px;
        -webkit-line-clamp: 2
    }

    .company-keywords {
        display: none
    }

    .company-actions {
        gap: 8px;
        flex-wrap: wrap
    }

    .btn-call,
    .btn-detail {
        font-size: 12px;
        padding: 6px 14px
    }

    .pagination a,
    .pagination .current {
        min-width: 34px;
        padding: 6px 10px;
        font-size: 13px
    }

    .pagination .page-info {
        flex: 1 1 100%;
        text-align: center;
        margin: 4px 0 0;
        font-size: 12px
    }

    .footer {
        padding: 20px 0 24px;
        font-size: 12px
    }

    .footer-links a {
        margin-right: 10px;
        display: inline-block
    }
}

@media (max-width:480px) {
    .company-card {
        flex-direction: column;
        padding: 14px
    }

    .company-thumb {
        width: 100%;
        height: 160px
    }

    .company-actions {
        width: 100%;
        justify-content: flex-start
    }

    .hero-stats .divider {
        display: none
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px
    }
}