/* 基础样式 */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
}

body {
    background-color: var(--light-color);
    font-size: 0.9375rem;
    color: #495057;
    line-height: 1.6;
}

/* 卡片基础样式*/
.detail-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    background-color: #fff;
    transition: all 0.3s ease;
    overflow: hidden;
}

.detail-card:hover {
    box-shadow: var(--shadow-md);
}

/* 标签样式 */
.badge-custom {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

/* 按钮样式 */
.btn-custom {
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    padding: 8px 18px;
    transition: all 0.2s ease;
    font-weight: 500;
    border-width: 1px;
}

.btn-custom:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* 信息标签样式 */
.info-label {
    color: var(--secondary-color);
    font-weight: 600;
    min-width: 90px;
    display: inline-block;
}

/* 数据卡片样式 */
.data-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.data-card .label {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-card .value {
    font-weight: 700;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

/* 企业信息卡片 */
.company-card {
    background-color: var(--light-color);
    transition: all 0.3s ease;
}

.company-card:hover {
    background-color: #f1f5f9;
}


/* 分割线 */
.divider {
    border-top: 1px dashed var(--border-color);
    margin: 1.5rem 0;
    position: relative;
}

.divider::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 12px;
    background-color: #fff;
}

/* 响应式适配 */
@media (max-width: 767.98px) {
    /* 移动端按钮全屏宽 */
    .btn-custom {
        width: 100%;
        margin-bottom: 0.75rem;
    }

    /* 移动端信息标签堆叠 */
    .info-label {
        display: block;
        margin-bottom: 0.25rem;
    }

    /* 移动端卡片间距 */
    .detail-card {
        margin-bottom: 1rem !important;
    }
}

/* 移除悬浮效果 */
.sticky-card {
    position: static;
    z-index: 1;
}

/* 卡片头部样式 */
.card-header {
    background-color: var(--light-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
}

.card-header h5, .card-header h6 {
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.card-body {
    padding: 1.25rem;
}

/* 列表项优化 */
ul.list-unstyled li {
    position: relative;
    padding-left: 0.25rem;
}

/* 温馨提示优化 */
.alert-warning {
    border-radius: var(--radius-md);
    border: 1px solid #fff3cd;
    background-color: #fff8e6;
    color: #856404;
    padding: 0.75rem;
    margin-bottom: 0;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 */
.btn-custom.loading {
    position: relative;
    pointer-events: none;
}

.btn-custom.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translateY(-50%);
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* 企业头像优化 */
.company-avatar {
    transition: all 0.3s ease;
}

.company-avatar:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}