/* styles.css */

/* 业务内容样式 */
.business-content {
    max-width: 100%;
    color: #4E5969;
}

.business-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #1D2129;
}

.business-content h4 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1D2129;
}

.business-content p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.business-content ul {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
}

.business-content li {
    margin-bottom: 0.25rem;
}

.business-highlight {
    background-color: rgba(22, 93, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-weight: 500;
    color: #165DFF;
}

/* 财务内容样式 */
.prose {
    max-width: 100%;
    color: #4E5969;
}

.prose h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #1D2129;
}

.prose h4 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1D2129;
}

.prose p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.prose ul {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
}

.prose li {
    margin-bottom: 0.25rem;
}

/* 财务指标表格样式 */
.text-danger {
    color: #F53F3F; /* 红色 - 增长 */
}
.text-success {
    color: #00B42A; /* 绿色 - 下降 */
}
.text-gray-800 {
    color: #4E5969; /* 黑色/深灰 - 0增长 */
}
#revenueTable, #profitTable {
    min-w-full divide-y divide-gray-200;
}

#revenueTable th, #profitTable th {
    px-4 py-2 bg-gray-50 text-left text-xs font-medium text-gray-500 uppercase tracking-wider;
}

#revenueTable td, #profitTable td {
    px-4 py-2 text-sm;
}

/* 指标卡片样式 */
.metric-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #36CFC9;
}

.metric-card-title {
     font-weight: 500;
    color: #4E5969;
    margin-bottom: 10px;
}

.metric-card-value {
     font-size: 20px;
    font-weight: bold;
    color: #165DFF;

.metric-card-trend {
    text-xs text-gray-400 mt-1;
}

.trend-up {
    text-success;
}

.trend-down {
    text-danger;
}

/* 业务报告样式 */
.business-report-card {
    animation: fadeIn 0.5s ease-out forwards;
}

.business-report-section {
    border-l-4 border-transparent pl-4 transition-colors hover:border-primary/20;
}

.business-report-section-blue {
    border-left-color: #3b82f6;
}

.business-report-section-green {
    border-left-color: #10b981;
}

.business-report-section-purple {
    border-left-color: #8b5cf6;
}

/* 数据高亮样式 */
.data-highlight {
    inline-flex items-center px-2 py-0.5 rounded text-xs font-medium;
}

.data-highlight.positive {
    bg-green-100 text-green-800;
}

.data-highlight.negative {
    bg-red-100 text-red-800;
}

.data-highlight.neutral {
    bg-blue-100 text-blue-800;
}

/* 评级标签 */
.rating-badge {
    inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
}

.rating-excellent {
    bg-green-100 text-green-800;
}

.rating-good {
    bg-blue-100 text-blue-800;
}

.rating-fair {
    bg-yellow-100 text-yellow-800;
}

.rating-poor {
    bg-red-100 text-red-800;
}

/* 财务卡片动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.financial-card {
    animation: fadeIn 0.5s ease-out forwards;
}

/* 指标卡片样式 */
.metric-card {
    p-4 rounded-lg border border-gray-100 hover:border-primary/30 transition-colors;
}

.metric-card-header {
    flex items-center mb-2;
}

.metric-card-icon {
    w-8 h-8 rounded-full flex items-center justify-center mr-3;
}

.metric-card-title {
    text-sm font-medium text-gray-700;
}

.metric-card-value {
    text-lg font-semibold;
}

.metric-card-change.positive {
    text-success flex items-center;
}

.metric-card-change.negative {
    text-danger flex items-center;
}

/* 风险提示样式 */
.risk-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #F53F3F;
}

.risk-icon {
    text-red-500 mr-2 mt-0.5;
}
.risk-title {
    font-weight: bold;
    color: #F53F3F;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.risk-title i {
    margin-right: 8px;
}

.risk-content {
    text-sm;
}

/* 评级标签 */
.rating-badge {
    inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
}

.rating-excellent {
    bg-green-100 text-green-800;
}

.rating-good {
    bg-blue-100 text-blue-800;
}

.rating-fair {
    bg-yellow-100 text-yellow-800;
}

.rating-poor {
    bg-red-100 text-red-800;
}

/* Tailwind自定义工具类 */
.content-auto {
    content-visibility: auto;
}

.menu-active {
    bg-primary/10 text-primary border-l-4 border-primary;
}

.card-shadow {
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
    margin-bottom: 24px;
    padding: 20px;
    border-radius: 8px;
}

.text-balance {
    text-wrap: balance;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fixed.toast {
    animation: fadeIn 0.3s ease-out;
}
/* 添加到现有的<style>部分 */
@media print {
    body * {
        visibility: hidden;
    }
    #company-overview, 
    #company-tags, 
    #business-report, 
    #financial-overview,
    #company-overview *,
    #company-tags *,
    #business-report *,
    #financial-overview * {
        visibility: visible;
    }
    .card-shadow {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    button {
        display: none !important;
    }
}
#adminMenuLink {
    border-left: 3px solid #165DFF;
    background-color: #f8f9fa;
}
/* 风险提示卡片样式 */
#riskWarningContent .bg-neutral {
    transition: all 0.3s ease;
}

#riskWarningContent .bg-neutral:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 风险类型标题样式 */
#riskWarningContent h4 {
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #riskWarningContent .prose {
        font-size: 0.875rem;
    }
}
   #shareholdersTable td, #shareholdersTable th {
        white-space: nowrap;
        padding: 0.5rem 0.75rem; /* 更紧凑的padding */
    }
    
    #shareholdersTable td:first-child, 
    #shareholdersTable td:last-child {
        text-align: center; /* 序号和比例居中对齐 */
    }
    /* 添加到现有的style标签中 */
#shareholdersTable td {
    white-space: normal !important;
    word-break: break-word;
    max-width: 150px; /* 根据需要调整最大宽度 */
}
/* 专业报告样式 */
.pro-report {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* 标题样式 */
.pro-report h3 {
    font-size: 16px;
    font-weight: bold;
    color: #222;
    margin: 20px 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #e1e1e1;
}

.pro-report h4 {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin: 16px 0 10px 0;
}

/* 段落样式 */
.pro-report p {
    margin: 8px 0;
    text-align: justify;
}

/* 列表样式 */
.pro-report ul {
    margin: 8px 0;
    padding-left: 24px;
}

.pro-report li {
    margin-bottom: 6px;
}

/* 高亮数据样式 */
.pro-report .data-highlight {
    color: #165DFF;
    font-weight: bold;
}

/* 风险提示样式 */
.pro-report .risk-item {
    margin-bottom: 12px;
    padding-left: 16px;
    border-left: 3px solid #F53F3F;
}

/* 表格样式 */
.pro-report {
    font-family: "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

.pro-report h4 {
    font-size: 16px;
    font-weight: bold;
    margin: 20px 0 10px;
    color: #165DFF;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.pro-report p {
    margin-bottom: 15px;
    text-align: justify;
}

.pro-report ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.pro-report li {
    margin-bottom: 8px;
}
th[data-sort] {
    background-color: #f0f0f0;
}