/* 全局样式 */
body {
    background-color: #ffffff;
    color: #2d3748;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* 全局链接样式 */
a {
    color: #2d3748;
    text-decoration: none;
}

a:hover {
    color: #000000;
    text-decoration: none;
}

/* 去掉导航栏链接下划线 */
.navbar .nav-link,
.navbar .navbar-brand,
.navbar-nav .nav-link {
    text-decoration: none;
}

/* 去掉页脚链接下划线 */
footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    /* background-color: #f0f2f5; */
    /* min-height: 100vh; */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);

}

/* 间距系统 */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.my-4 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* 导航栏样式 */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    margin: 0 -24px;
}

.navbar-brand {
    font-weight: bold;
    color: #ffffff;
}

.nav-link {
    color: #ffffff !important;
}


/* 搜索框样式 */
.search-form .input-group {
    background: #ffffff;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-form .form-control {
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 6px;
    color: #2d3748;
    background: #ffffff;
}

.search-form .btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    background: #2d3748;
    color: #ffffff;
}

/* 卡片样式 */
.card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 12px 12px 24px #d1d9e6,
        -12px -12px 24px #ffffff;
}

.card-body {
    padding: 1.5rem;

}

/* 卡片底部样式 */
.card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, .125);
    padding: 0.5rem 1rem;
}

.card-footer .bi {
    margin-right: 0.5rem;
    color: #6c757d;
}

.card-footer .text-muted {
    color: #6c757d !important;
}

/* 角标样式 */
.card-corner-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    pointer-events: none;
}

.card-corner-badge2 {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    pointer-events: none;
}

.card-corner-badge::before {
    content: "推荐企业";
    position: absolute;
    display: block;
    width: 100px;
    padding: 4px 0;
    background-color: #ffc107;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: #000;
    font-size: 12px;
    text-align: center;
    transform: rotate(45deg);
    right: -25px;
    top: 15px;
    z-index: 99;
}

.card-corner-badge2::before {
    content: "知名企业";
    position: absolute;
    display: block;
    width: 100px;
    padding: 4px 0;
    background-color: #1a202c;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: #ffc107;
    font-size: 12px;
    text-align: center;
    transform: rotate(45deg);
    right: -25px;
    top: 15px;
    z-index: 99;
}

.card-corner-badge3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    pointer-events: none;
}

.card-corner-badge3::before {
    content: "有官网";
    position: absolute;
    display: block;
    width: 100px;
    padding: 3px 0;
    background-color: #0054A5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    font-size: 10px;
    text-align: center;
    transform: rotate(-45deg);
    left: -30px;
    top: 10px;
}


/* 分类卡片特殊样式 */
.category-card .card-title {
    color: #2d3748;
    font-weight: 600;
    line-height: 40px;
}

/* 徽章样式 */
.badge {
    background: #2d3748;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
}

/* 公司卡片样式 */
.company-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.15);
}

.company-card .card-body {
    padding: 1.8rem;
}

.company-info {
    background: #f8fafc;
    border-radius: 6px;
    padding: 16px;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

/* 按钮样式 */
.btn {
    border-radius: 6px;
    font-weight: 500;
}

.btn-primary {
    background: #2d3748;
    border: none;
    color: #ffffff;
}

.btn-primary:hover {
    background: #1a202c;
}

.btn-outline-primary {
    border: 2px solid #2d3748;
    color: #2d3748;
}

.btn-outline-primary:hover {
    background: #2d3748;
    color: #ffffff;
}

/* 城市按钮样式 */
.city-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #4a5568;
    padding: 6px 12px;
}

.city-btn:hover {
    background: #4299e1;
    color: #ffffff;
}

/* 城市下拉菜单样式 */
#cityDropdownContainer {
    position: relative;
    z-index: 99999;
}

#cityDropdownContainer .dropdown-menu {
    position: absolute;
    top: 100% !important;
    left: 0 !important;
    margin-top: 2px;
    transform: none !important;
    width: max-content;
    max-height: 400px;
    overflow-y: auto;
    z-index: 99999;
}

/* 让下拉菜单保持在视口内 */
#cityDropdownContainer .dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

#cityDropdownContainer .dropdown-menu::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 4px;
}

#cityDropdownContainer .dropdown-menu::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

#cityDropdownContainer .dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* 页脚样式 */
footer {
    background: #2d3748;
    color: #e2e8f0;
    border-radius: 0px 0px 0 0;
    padding: 2rem 0;
}

footer a {
    color: #90cdf4;
    text-decoration: none;
}

footer a:hover {
    color: #63b3ed;
    text-decoration: underline;
}

/* 表单元素样式 */
.form-control {
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    color: #2d3748;
}

.form-control:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

/* 下拉菜单样式 */
.dropdown-menu {
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    color: #2d3748;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #000000;
}

/* 网格布局样式 */
.row {
    /* margin: 0 0px 0 -30px; */
}

.row>[class*="col-"] {
    padding: 0px 0px 0px 10px;
}

/* 搜索结果容器 */
.search-results {
    margin-top: 2rem;
}

.search-results .company-card {
    margin-bottom: 2rem;
}

/* 分类列表 */
.categories-list {
    margin: -15px;
}

.categories-list .col {
    padding: 15px;
}

/* 城市导航 */
.city-nav {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.city-nav .city-btn {
    margin: 0.5rem;
}

/* 评分星星样式 */
.text-warning {
    color: #FFC107 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    /* font-size: 0.8rem; */
}

/* 分类列表样式 */
.list-group-item {
    border: none;
    border-radius: 6px !important;
    margin-bottom: 4px;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.list-group-item.active {
    background-color: #2d3748;
    border-color: #2d3748;
    color: #ffffff;
}

.list-group-item .badge {
    transition: all 0.2s ease;
}

.list-group-flush .list-group-item {
    border-radius: 6px !important;
    margin: 2px 0;
    padding: 8px 16px;
}

/* 富文本编辑器内容样式 */
.company-description img,
.tox-edit-area img,
.content-area img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 1em auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card {
        margin: 0.5rem 0;
    }

    .search-form .input-group {
        padding: 6px;
    }

    .search-form .form-control,
    .search-form .btn {
        width: 100%;
        margin: 4px 0;
    }

    /* 移动端logo尺寸调整 */
    .company-logo .logo-image {
        width: 30px;
        height: 30px;
        object-fit: contain;
        border-radius: 4px;
        border: 1px solid #e2e8f0;
        padding: 2px;
    }
}

/* 公司logo样式 */
.company-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* 从居中改为左对齐 */
}

.company-logo .logo-image {
    width: 35px;
    height: 35px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    padding: 0px;
}