/* ==================== 基础样式 ==================== */
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background-color: #f8fafc;
    color: #334155;
}

a {
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

.hover-text-primary:hover {
    color: #667eea !important;
}

.flex-wrap {
    display: flex;
    flex-wrap: wrap;
}

/* ==================== Hero区域 ==================== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    padding: 100px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-section h1 {
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: slideDown 0.8s ease-out;
}

.hero-section .lead {
    animation: slideUp 0.8s ease-out 0.2s both;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 搜索框 ==================== */
.search-box {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out 0.4s both;
}

.search-box .input-group {
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border-radius: 50px;
    overflow: hidden;
}

.search-box .form-control {
    border: none;
    padding: 20px 25px;
    font-size: 1.1rem;
    box-shadow: none;
}

.search-box .btn {
    padding: 20px 40px;
    font-weight: 600;
    border: none;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transition: all 0.3s ease;
}

.search-box .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(240, 147, 251, 0.5);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================== 数据统计 ==================== */
.data-stat {
    text-align: center;
    padding: 30px 20px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.data-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.data-stat:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.data-stat:hover::before {
    transform: scaleX(1);
}

.data-stat h2 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== 功能卡片 ==================== */
.feature-card {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 16px;
    overflow: hidden;
    background: white;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(360deg) scale(1.1);
}

/* ==================== 企业卡片 ==================== */
.company-card {
    border: none;
    border-left: 5px solid #0d6efd;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    background: white;
    overflow: hidden;
    position: relative;
}

.company-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102,126,234,0.05), rgba(118,75,162,0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.company-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-left-width: 8px;
}

.company-card:hover::after {
    opacity: 1;
}

/* ==================== 风险徽章 ==================== */
.risk-badge {
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.badge-danger {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
}

/* ==================== 信息表格 ==================== */
.info-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.info-table th {
    width: 180px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.info-table td {
    vertical-align: middle;
}

.info-table tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

/* ==================== 侧边栏导航 ==================== */
.sidebar-nav {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.sidebar-nav .nav-link {
    color: #495057;
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-nav .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-nav .nav-link:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateX(4px);
}

.sidebar-nav .nav-link:hover::before {
    transform: scaleY(1);
}

.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.sidebar-nav .nav-link.active::before {
    transform: scaleY(1);
}

/* ==================== 卡片通用样式 ==================== */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-bottom: 2px solid #e9ecef;
    border-radius: 16px 16px 0 0 !important;
    font-weight: 600;
}

/* ==================== 按钮样式 ==================== */
.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::after {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    border: none;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(17, 153, 142, 0.5);
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.5);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 65, 108, 0.5);
}

/* ==================== 导航栏 ==================== */
.navbar {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.navbar-light {
    background: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand {
    font-weight: 800;
    color: #ffffff !important;
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.navbar-nav .nav-link {
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    color: #667eea !important;
}

/* ==================== 表单样式 ==================== */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

/* ==================== 列表组 ==================== */
.list-group-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding: 16px;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: rgba(102, 126, 234, 0.05);
    transform: translateX(4px);
}

.list-group-item:last-child {
    border-bottom: none;
}

/* ==================== 滚动动画 ==================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== 徽章样式 ==================== */
.badge {
    padding: 6px 14px;
    border-radius: 25px;
    font-weight: 500;
}

/* ==================== 页脚 ==================== */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 60px 0 30px;
}

.footer h5 {
    color: #667eea;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer a {
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #667eea;
    transform: translateX(4px);
    display: inline-block;
}

/* ==================== 工具类 ==================== */
.shadow-sm {
    box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important;
}

.shadow {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0,0,0,0.12) !important;
}

.rounded-lg {
    border-radius: 16px !important;
}

.rounded-xl {
    border-radius: 24px !important;
}

/* ==================== 加载动画 ==================== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== 提示框 ==================== */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeeba);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

/* ==================== 模态框 ==================== */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 80px rgba(0,0,0,0.2);
}

.modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px 20px 0 0 !important;
    border: none;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* ==================== 进度条 ==================== */
.progress {
    border-radius: 10px;
    height: 12px;
    background: #e9ecef;
}

.progress-bar {
    border-radius: 10px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    background-size: 200% 100%;
    animation: progressGradient 2s linear infinite;
}

@keyframes progressGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ==================== 搜索建议样式 ==================== */
.suggestions-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow: hidden;
}

.suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestions-list li {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f4;
    transition: background 0.2s ease;
}

.suggestions-list li:hover {
    background: #f8fafc;
}

.suggestions-list li:last-child {
    border-bottom: none;
}

.suggestions-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #334155;
    text-decoration: none;
}

.suggestions-list a:hover {
    color: #667eea;
}

/* ==================== 统计卡片样式 ==================== */
.stat-card {
    text-align: center;
    padding: 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: white;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
}

/* ==================== 功能卡片样式 ==================== */
.feature-card {
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: white;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1e293b;
}

.feature-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* ==================== 企业卡片样式 ==================== */
.company-card {
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.company-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.company-card .card-body {
    padding: 20px;
}

/* ==================== 报告卡片样式 ==================== */
.report-card {
    background: white;
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.report-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.report-card .card-body {
    padding: 20px;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== 信息卡片样式 ==================== */
.info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.info-card .info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

/* ==================== 信息行样式 ==================== */
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .info-label {
    font-weight: 500;
    color: #64748b;
}

.info-row .info-value {
    font-weight: 600;
    color: #1e293b;
}

/* ==================== 风险时间线样式 ==================== */
.risk-timeline {
    padding-left: 0;
}

.risk-group {
    margin-bottom: 24px;
}

.risk-type-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.risk-list {
    list-style: none;
    padding-left: 20px;
    border-left: 2px solid #e2e8f0;
}

.risk-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    position: relative;
}

.risk-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
}

.risk-date {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
}

.risk-title {
    flex: 1;
    font-size: 14px;
    color: #1e293b;
}

.risk-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

/* ==================== 信用评分样式 ==================== */
.credit-score {
    font-size: 56px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.credit-level {
    font-size: 18px;
    font-weight: 600;
    color: #64748b;
}

/* ==================== 联系方式样式 ==================== */
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #334155;
}

.contact-item i {
    color: #667eea;
    width: 20px;
}

/* ==================== 快捷操作样式 ==================== */
.action-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    color: #334155;
    text-decoration: none;
    transition: all 0.3s ease;
}

.action-item:hover {
    background: #e2e8f0;
    color: #667eea;
    transform: translateX(4px);
}

/* ==================== 法律内容样式 ==================== */
.legal-content {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.legal-content h2 {
    border-left: 4px solid #667eea;
    padding-left: 16px;
}

.legal-content p {
    line-height: 1.8;
}

.legal-content ul {
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ==================== 标签页 ==================== */
.nav-tabs {
    border: none;
    margin-bottom: 0;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 12px 12px 0 0;
    padding: 14px 24px;
    font-weight: 500;
    color: #6c757d;
    background: transparent;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
}

.tab-content {
    background: white;
    border-radius: 0 16px 16px 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ==================== 自定义标签页 ==================== */
.custom-tabs {
    border-bottom: 3px solid #e9ecef;
    padding-bottom: 0;
}

.custom-tabs .nav-link {
    border: none;
    border-radius: 16px 16px 0 0;
    padding: 16px 28px;
    font-weight: 600;
    color: #6c757d;
    background: transparent;
    transition: all 0.3s ease;
    margin-right: 4px;
}

.custom-tabs .nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.custom-tabs .nav-link.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    transform: translateY(-2px);
    box-shadow: 0 -4px 20px rgba(102, 126, 234, 0.3);
}

/* ==================== 企业详情头部 ==================== */
.company-header {
    position: relative;
}

.company-header .card {
    position: relative;
    z-index: 1;
}

.company-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    z-index: 0;
}

.company-header .card-body {
    padding: 40px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.company-name {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge-lg {
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ==================== 渐变背景类 ==================== */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #11998e, #38ef7d) !important;
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #ff416c, #ff4b2b) !important;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f093fb, #f5576c) !important;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #4facfe, #00f2fe) !important;
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #6c757d, #495057) !important;
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #1a1a2e, #16213e) !important;
}

/* ==================== 渐变按钮 ==================== */
.btn-gradient-primary {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border: none !important;
    color: white !important;
}

.btn-gradient-warning {
    background: linear-gradient(135deg, #f093fb, #f5576c) !important;
    border: none !important;
    color: white !important;
}

/* ==================== 数据表格 ==================== */
.data-table {
    border-radius: 12px;
    overflow: hidden;
}

.data-table thead {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.data-table thead th {
    border: none;
    padding: 16px;
    font-weight: 600;
}

.data-table tbody tr {
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.08);
    transform: scale(1.01);
}

.hover-scale {
    transition: all 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* ==================== 风险项目 ==================== */
.risk-item {
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
}

.risk-item:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(4px);
}

/* ==================== 变更项目 ==================== */
.change-item {
    transition: all 0.3s ease;
}

.change-item:hover {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    padding: 8px;
    margin: -8px -8px 0 -8px;
}

/* ==================== 圆角顶部 ==================== */
.rounded-top-xl {
    border-radius: 24px 24px 0 0 !important;
}

/* ==================== 波纹效果 ==================== */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.5) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.ripple-effect:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* ==================== 返回顶部按钮 ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
}

.back-to-top.show {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 响应式优化 ==================== */
@media (max-width: 768px) {
    .company-name {
        font-size: 1.8rem;
    }
    
    .company-header .card-body {
        padding: 24px;
    }
    
    .custom-tabs .nav-link {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

/* ==================== 文本渐变效果 ==================== */
.text-gradient {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: textGradient 3s ease infinite;
}

@keyframes textGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hover-text-gradient {
    transition: all 0.3s ease;
}

.hover-text-gradient:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== 企业卡片增强 ==================== */
.company-card {
    border: none;
    border-left: 5px solid #667eea;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    background: white;
    overflow: hidden;
    position: relative;
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102,126,234,0.03), rgba(118,75,162,0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.company-card:hover {
    transform: translateY(-8px) translateX(4px);
    box-shadow: 0 16px 40px rgba(102,126,234,0.2);
    border-left-width: 8px;
}

.company-card:hover::before {
    opacity: 1;
}

/* ==================== 搜索表单增强 ==================== */
.input-group-lg .form-control {
    padding: 16px 20px;
    font-size: 1.1rem;
}

.input-group-lg .input-group-text {
    padding: 16px 20px;
}

.form-label {
    margin-bottom: 0.5rem;
}

/* ==================== 动画延迟类 ==================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== 图标大小 ==================== */
.fs-2 {
    font-size: 2rem !important;
}

.fs-5 {
    font-size: 1.25rem !important;
}