/* 全局样式 - Apple Design 风格 */
/* 空报告样式 */
.empty-report {
    padding: 3rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: var(--card-radius);
    position: relative;
    overflow: hidden;
}

.empty-report::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(24, 144, 255, 0.05);
    border-radius: 50%;
}

.empty-report::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: rgba(24, 144, 255, 0.05);
    border-radius: 50%;
}

.empty-icon-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.empty-icon-container::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 2px dashed var(--gray-4);
}

.report-instruction {
    color: var(--gray-1);
    text-align: center;
    max-width: 80%;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.instruction-arrow {
    margin-top: 1.5rem;
    animation: none;
}

:root {
    --primary-color: #1890ff; /* 天蓝色 - 主色 */
    --secondary-color: #1890ff; /* 天蓝色 */
    --accent-color: #1890ff; /* 天蓝色 - 强调色 */
    --dark-color: #1C1C1E; /* Apple 深色 */
    --light-color: #F2F2F7; /* Apple 浅色背景 */
    --danger-color: #1890ff; /* 天蓝色 */
    --info-color: #1890ff; /* 天蓝色 */
    --gray-1: #8E8E93; /* Apple 灰色 1 */
    --gray-2: #AEAEB2; /* Apple 灰色 2 */
    --gray-3: #C7C7CC; /* Apple 灰色 3 */
    --gray-4: #D1D1D6; /* Apple 灰色 4 */
    --gray-5: #E5E5EA; /* Apple 灰色 5 */
    --gray-6: #F2F2F7; /* Apple 灰色 6 */
    --card-radius: 16px; /* 卡片圆角 */
    --button-radius: 10px; /* 按钮圆角 */
    --input-radius: 10px; /* 输入框圆角 */
    --transition-speed: 0.3s; /* 过渡速度 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 20px;
}

/* 卡片样式 - Apple Design 风格 */
.card {
    border: none;
    border-radius: var(--card-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed) ease;
    background-color: #FFFFFF;
    overflow: hidden;
}

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

.card-header {
    border-top-left-radius: var(--card-radius) !important;
    border-top-right-radius: var(--card-radius) !important;
    padding: 1.25rem 1.5rem;
    border-bottom: none;
}

.card-header.bg-primary {
    background: var(--primary-color) !important;
}

.card-header.bg-success {
    background: var(--secondary-color) !important;
}

.card-header.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #5AC8FA) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card-body {
    padding: 1.5rem;
}

/* 表单样式 - Apple Design 风格 */
.form-control, .form-select {
    border-radius: var(--input-radius);
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border: 1px solid var(--gray-4);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all var(--transition-speed) ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--info-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.25);
    background-color: #FFFFFF;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.input-group-text {
    background-color: rgba(242, 242, 247, 0.8);
    border: 1px solid var(--gray-4);
    border-radius: var(--input-radius);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* 按钮样式 - Apple Design 风格 */
.btn {
    border-radius: var(--button-radius);
    padding: 0.85rem 1.5rem;
    font-weight: 500;
    transition: all var(--transition-speed);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity var(--transition-speed);
    z-index: -1;
}

.btn:hover::after {
    opacity: 1;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.3);
}

.btn-primary:hover {
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.4);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3);
}

.btn-success:hover {
    background: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.4);
    transform: translateY(-2px);
}

.btn-info {
    background: var(--info-color);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.btn-info:hover {
    background: var(--info-color);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border: 1px solid var(--gray-3);
    color: var(--dark-color);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: rgba(174, 174, 178, 0.1);
    border-color: var(--gray-2);
    color: var(--dark-color);
    transform: translateY(-2px);
}

.btn-light {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.btn-icon-split {
    display: flex;
    align-items: center;
}

.btn-icon-split .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-right: 0.75rem;
    margin-right: 0.75rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-icon-split.btn-outline-secondary .icon {
    border-right: 1px solid var(--gray-3);
}

/* 报告卡片样式 - Apple Design 风格 */
.report-card {
    border: none;
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.report-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
    transform: translateY(-3px);
}

.bg-gradient-primary {
    background: var(--primary-color) !important;
}

.report-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.report-controls {
    display: flex;
    gap: 8px;
}

/* 报告内容样式 - Apple Design 风格 */
.report-content {
    min-height: 500px;
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 70vh;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    transition: all var(--transition-speed) ease;
    background-color: #FFFFFF;
    border-radius: var(--card-radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* 报告容器样式 */
.report-container {
    padding: 0;
    position: relative;
    background-color: #FFFFFF;
    border-radius: var(--card-radius);
    overflow: hidden;
}

/* 报告标题区域样式 */
.report-header {
    background: white;
    color: #1A1A1A;
    padding: 2rem;
    border-radius: var(--card-radius) var(--card-radius) 0 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.report-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGZpbGw9IiNmZmZmZmYiIGZpbGwtb3BhY2l0eT0iMC4xIiBjeD0iMTAiIGN5PSIxMCIgcj0iMTAiLz48Y2lyY2xlIGZpbGw9IiNmZmZmZmYiIGZpbGwtb3BhY2l0eT0iMC4wNSIgY3g9IjQwIiBjeT0iMzAiIHI9IjIwIi8+PGNpcmNsZSBmaWxsPSIjZmZmZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDgiIGN4PSI3MCIgY3k9IjE1IiByPSIxNSIvPjxjaXJjbGUgZmlsbD0iI2ZmZmZmZiIgZmlsbC1vcGFjaXR5PSIwLjAzIiBjeD0iOTAiIGN5PSI0MCIgcj0iMjUiLz48L3N2Zz4=');
    opacity: 0.2;
    z-index: 0;
}

.report-title-container {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.report-logo {
    font-size: 2.5rem;
    margin-right: 1rem;
    background: rgba(255, 93, 81, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #1890ff;
}

.report-header h1 {
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
    color: #1890ff;
    text-shadow: none;
}

.report-date {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.meta-item {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #333333;
}

/* 报告摘要区域样式 */
.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background-color: #F8F9FA;
    border-bottom: 1px solid var(--gray-5);
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.summary-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
}

.summary-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-1);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.summary-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.summary-subtitle {
    font-size: 0.8rem;
    color: var(--gray-2);
}

.ratio-card {
    grid-column: span 2;
}

.ratio-visualization {
    display: flex;
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    margin: 1rem 0;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

.ratio-a {
    background: #1890ff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ratio-b {
    background: linear-gradient(90deg, #0D47A1, #1976D2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ratio-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-1);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.a-color {
    background: var(--primary-color);
}

.b-color {
    background: linear-gradient(90deg, var(--info-color), #5AC8FA);
}

/* 分数可视化区域样式 */
.scores-visualization {
    padding: 1.5rem;
    background-color: white;
    border-bottom: 1px solid var(--gray-5);
}

.scores-visualization h2 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #F8F9FA;
    border-radius: 12px;
    transition: all var(--transition-speed) ease;
}

.score-item:hover {
    background-color: #F0F1F2;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.score-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1890ff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(255, 93, 81, 0.3);
}

.score-info {
    flex: 1;
}

.score-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.score-bar-container {
    height: 8px;
    background-color: var(--gray-5);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
}

.score-bar {
    height: 100%;
    background: #1890ff;
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.score-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1890ff;
    text-align: right;
}

/* 报告正文区域样式 */
.report-body {
    padding: 2rem;
    background-color: white;
    border-radius: 0 0 var(--card-radius) var(--card-radius);
}

/* 报告卡片增强样式 */
.report-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.report-card .card-header {
    background: linear-gradient(135deg, var(--primary-color), #FF6B52) !important;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.report-card .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.report-content h1, .report-content h2, .report-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    padding-bottom: 0.5rem;
}

.report-content h1 {
    font-size: 1.75rem;
    text-align: center;
    border-bottom: none;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF6B52 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    padding: 1rem 0;
    position: relative;
}

.report-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 3px;
}

.report-section-title {
    font-size: 1.5rem;
    color: var(--dark-color);
    border-left: 3px solid var(--primary-color);
    padding-left: 0.75rem;
    margin-top: 2rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.report-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--gray-4), transparent);
}

.report-content h3 {
    font-size: 1.25rem;
    color: var(--accent-color);
    position: relative;
    margin-top: 1.5rem;
}

.report-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.report-content ul, .report-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.report-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.report-content strong {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding: 0 2px;
}

.report-content strong::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 59, 48, 0.1);
    border-radius: 2px;
    z-index: -1;
}

.report-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem 1.75rem;
    background-color: rgba(255, 59, 48, 0.05);
    margin: 1.75rem 0;
    border-radius: 0 16px 16px 0;
    font-style: italic;
    color: var(--gray-1);
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.report-content blockquote::before {
    content: '\201C';
    position: absolute;
    top: -15px;
    left: 10px;
    font-size: 3rem;
    color: rgba(255, 59, 48, 0.2);
    font-family: Georgia, serif;
}

/* 报告高亮区域样式 */
.report-highlight {
    margin-top: 1.5rem;
    background: linear-gradient(to bottom, #FFFFFF, #F9F9F9);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.report-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
}

.highlight-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1890ff;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 93, 81, 0.2);
    padding-bottom: 0.75rem;
}

.top-scores-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-score-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 1);
    padding: 1rem 1.25rem;
    border-radius: 16px;
    flex: 1;
    min-width: 200px;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.top-score-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 0 0 16px 16px;
}

.top-score-item:hover {
    transform: translateY(-3px);
    background: rgba(245, 245, 245, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.top-score-rank {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 30px;
    height: 30px;
    background: #1890ff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.top-score-icon {
    width: 40px;
    height: 40px;
    background: #1890ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    margin-right: 1rem;
}

.top-score-info {
    flex: 1;
}

.top-score-name {
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 0.25rem;
}

.top-score-value {
    font-size: 0.9rem;
    color: #333333;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.score-item {
    animation: fadeIn 0.5s ease-out forwards;
    animation-fill-mode: both;
    opacity: 0;
}

/* 工具提示样式 */
.score-tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.85rem;
    z-index: 1000;
    max-width: 250px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.score-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.8);
}

.score-description {
    cursor: help;
    margin-left: 0.35rem;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.score-description:hover {
    opacity: 1;
}

/* 高亮框样式 */
.highlight-box {
    background-color: rgba(255, 59, 48, 0.05);
    border-left: 3px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.highlight-icon {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* 列表样式 */
.styled-list-item {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 0.5rem;
}

.styled-list-item::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

/* 自定义滚动条 */
.report-content::-webkit-scrollbar {
    width: 8px;
}

.report-content::-webkit-scrollbar-track {
    background: var(--gray-6);
    border-radius: 4px;
}

.report-content::-webkit-scrollbar-thumb {
    background: var(--gray-3);
    border-radius: 4px;
}

.report-content::-webkit-scrollbar-thumb:hover {
    background: var(--gray-2);
}

.report-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.report-section p {
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-size: 1rem;
}

.report-highlight {
    background-color: rgba(255, 149, 0, 0.08);
    border-left: 4px solid var(--accent-color);
    padding: 1.25rem;
    margin: 1.25rem 0;
    border-radius: var(--card-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.report-chart {
    height: 300px;
    margin: 2rem 0;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card {
        margin-bottom: 2rem;
    }
}

/* 加载动画样式 - Apple Design 风格 */
.loading-container {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.loading-animation {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.loading-animation .spinner-grow {
    width: 15px;
    height: 15px;
    animation-duration: 1.2s;
    border-radius: 50%;
}

.loading-animation .spinner-grow:nth-child(1) {
    background-color: var(--primary-color);
}

.loading-animation .spinner-grow:nth-child(2) {
    background-color: var(--info-color);
    animation-delay: 0.2s;
}

.loading-animation .spinner-grow:nth-child(3) {
    background-color: var(--secondary-color);
    animation-delay: 0.4s;
}

.loading-text {
    color: var(--gray-1);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

/* 按钮样式 */
.btn-icon-split {
    display: flex;
    align-items: center;
    transition: all 0.2s;
    border: none;
}

.btn-icon-split:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.btn-icon-split .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    background: rgba(0, 0, 0, 0.15);
}

.btn-icon-split .text {
    padding: 0.375rem 0.75rem;
}

/* 空报告状态样式 - Apple Design 风格 */
.empty-report {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 2rem;
}

.empty-icon-container {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(242, 242, 247, 0.8);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed) ease;
}

.empty-icon-container:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.empty-icon-container i {
    font-size: 2.5rem;
    color: var(--gray-2);
}

.empty-report h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF6B52 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.empty-report p {
    color: var(--gray-1);
    text-align: center;
    max-width: 80%;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

/* 动画效果 - Apple Design 风格 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

/* 全屏模式 - Apple Design 风格 */
.report-content.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: white;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease;
    -webkit-overflow-scrolling: touch; /* 改善iOS滚动体验 */
}

.report-content.fullscreen-mode .markdown-body {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border-radius: var(--card-radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease;
    position: relative; /* 确保定位正确 */
}

/* 添加全屏模式下的退出按钮 - Apple Design 风格 */
.fullscreen-exit-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001; /* 确保始终在最上层 */
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all var(--transition-speed);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-in;
}

.fullscreen-exit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

.fullscreen-exit-btn:active {
    transform: scale(0.95);
}

.fullscreen-exit-btn i {
    font-size: 1.25rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* 报告内容样式增强 - Apple Design 风格 */

/* 报告内容在全屏模式下的滚动条样式 */
.report-content.fullscreen-mode::-webkit-scrollbar {
    width: 8px;
}

.report-content.fullscreen-mode::-webkit-scrollbar-track {
    background: var(--gray-6);
    border-radius: 10px;
}

.report-content.fullscreen-mode::-webkit-scrollbar-thumb {
    background: var(--gray-3);
    border-radius: 10px;
}

.report-content.fullscreen-mode::-webkit-scrollbar-thumb:hover {
    background: var(--gray-2);
}

/* 提示框样式 */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    min-width: 280px;
    max-width: 450px;
    animation: slideIn 0.3s ease-out;
    backdrop-filter: blur(8px);
    border: 1px solid var(--gray-5);
}

.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast-error {
    border-left: 4px solid var(--danger-color);
}

.toast-icon {
    margin-right: 12px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.toast-success .toast-icon {
    color: var(--success-color);
}

.toast-error .toast-icon {
    color: var(--danger-color);
}

.toast-info {
    border-left: 4px solid #3498db;
}

.toast-info .toast-icon {
    color: #3498db;
}

.toast-message {
    font-size: 0.95rem;
    color: var(--dark-color);
    flex: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 全屏模式样式 */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-color);
    z-index: 9999;
    overflow-y: auto;
    padding: 2rem;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.fullscreen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-5);
}

.fullscreen-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fullscreen-action-btn {
    display: flex;
    align-items: center;
    background-color: var(--light-color);
    border: 1px solid var(--gray-5);
    color: var(--dark-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fullscreen-action-btn:hover {
    background-color: var(--gray-6);
    border-color: var(--gray-4);
}

.fullscreen-action-btn i {
    margin-right: 6px;
    color: var(--primary-color);
}

/* 导出HTML按钮特定样式 */
#exportFullscreenHtmlBtn {
    background-color: rgba(52, 199, 89, 0.1);
    border-color: rgba(52, 199, 89, 0.3);
}

#exportFullscreenHtmlBtn:hover {
    background-color: rgba(52, 199, 89, 0.2);
    border-color: rgba(52, 199, 89, 0.5);
}

#exportFullscreenHtmlBtn i {
    color: var(--secondary-color);
}

.fullscreen-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.fullscreen-title i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.fullscreen-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-1);
    cursor: pointer;
    transition: color 0.2s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-close:hover {
    color: var(--primary-color);
    background-color: rgba(255, 59, 48, 0.1);
}

.fullscreen-content {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--card-radius);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

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

/* 导出PNG优化样式 */
.export-png-container {
    background-color: #ffffff !important;
    color: #000000 !important;
    width: 900px;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    /* 提高导出质量的属性 */
    -webkit-print-color-adjust: exact !important; /* WebKit浏览器 */
    forced-color-adjust: none !important; /* 现代浏览器中的替代属性 */
    print-color-adjust: exact !important; /* 标准属性 */
}

.export-png-container * {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
}

.export-png-container p,
.export-png-container span,
.export-png-container li,
.export-png-container td,
.export-png-container th {
    color: #000000 !important;
    opacity: 1 !important;
    font-weight: normal !important;
}

.export-png-container h1,
.export-png-container h2,
.export-png-container h3,
.export-png-container h4,
.export-png-container h5,
.export-png-container h6 {
    color: #000000 !important;
    opacity: 1 !important;
    font-weight: bold !important;
}

.export-png-container .report-section-title {
    color: #000000 !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2) !important;
    padding-bottom: 10px !important;
    margin-top: 20px !important;
    margin-bottom: 15px !important;
}

.export-png-container .score-bar {
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    background-color: #f0f0f0 !important;
    height: 15px !important;
}

.export-png-container .score-value {
    color: #000000 !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
}

.export-png-container .ratio-a {
    background-color: #1890ff !important;
    color: #ffffff !important;
    font-weight: bold !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2) !important;
    opacity: 1 !important;
}

.export-png-container .ratio-b {
    background-color: #0D47A1 !important;
    color: #ffffff !important;
    font-weight: bold !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2) !important;
    opacity: 1 !important;
}

.export-png-container .summary-card {
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.export-png-container .top-score-item {
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

.export-png-container .report-highlight {
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    background-color: #f8f8f8 !important;
}

/* 全屏模式下的标题样式 - Apple Design 风格 */
.report-content.fullscreen-mode h1,
.report-content.fullscreen-mode h2,
.report-content.fullscreen-mode h3 {
    margin-top: 2rem;
    margin-bottom: 1.25rem;
}

.report-content.fullscreen-mode h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF6B52 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.report-content.fullscreen-mode h2 {
    font-size: 1.8rem;
    padding-left: 0.75rem;
    border-left: 4px solid var(--info-color);
    color: var(--info-color);
}

.report-content.fullscreen-mode h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.report-content.fullscreen-mode h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

/* 报告内容强调 - Apple Design 风格 */
.highlight-box {
    background-color: rgba(0, 122, 255, 0.05);
    border-left: 4px solid var(--info-color);
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: var(--card-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.score-chart {
    height: 300px;
    margin-bottom: 2rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .report-content {
        padding: 1rem;
    }
    
    .btn-icon-split {
        margin-bottom: 0.5rem;
        width: 100%;
    }
}

/* 打印样式 */
@media print {
    body {
        background-color: white;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    .col-md-6 {
        width: 100%;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
    
    .no-print {
        display: none !important;
    }
}

/* 应用导航栏 - Apple Design 风格 */
.app-navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    margin-bottom: 2rem;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--dark-color);
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-right: 5px;
}

.brand-text {
    color: #1890ff;
    font-weight: 600;
    font-size: 1.5rem;
}

.brand-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.navbar-actions {
    display: flex;
    gap: 0.5rem;
}

/* 应用标题区 - Apple Design 风格 */
.app-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.app-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1890ff;
}

.app-subtitle {
    font-size: 1.1rem;
    color: var(--gray-1);
    max-width: 80%;
    margin: 0 auto;
}

/* 应用主内容区 - Apple Design 风格 */
.main-content {
    padding-bottom: 3rem;
}

/* 应用底部 - Apple Design 风格 */
.app-footer {
    background-color: var(--light-color);
    border-top: 1px solid var(--gray-5);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: var(--gray-1);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: var(--info-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-link:hover {
    color: #0056b3;
    text-decoration: none;
}

/* 操作按钮区 - Apple Design 风格 */
.action-buttons {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* 输入卡片特殊样式 - Apple Design 风格 */
.input-card .form-group {
    margin-bottom: 1.5rem;
}

.input-card .card-body {
    padding: 1.75rem;
}

/* 自定义滚动条 - Apple Design 风格 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-6);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-2);
}

/* 暗色模式支持 - Apple Design 风格 */
.dark-mode {
    --light-color: #1C1C1E;
    --dark-color: #F2F2F7;
    --gray-1: #8E8E93;
    --gray-2: #636366;
    --gray-3: #48484A;
    --gray-4: #3A3A3C;
    --gray-5: #2C2C2E;
    --gray-6: #1C1C1E;
    background-color: var(--light-color);
    color: var(--dark-color);
}

.dark-mode .card {
    background-color: #2C2C2E;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.dark-mode .form-control,
.dark-mode .form-select {
    background-color: rgba(58, 58, 60, 0.8);
    border-color: #48484A;
    color: #F2F2F7;
}

.dark-mode .form-control:focus,
.dark-mode .form-select:focus {
    background-color: rgba(58, 58, 60, 1);
}

.dark-mode .input-group-text {
    background-color: rgba(58, 58, 60, 0.8);
    border-color: #48484A;
    color: #F2F2F7;
}

.dark-mode .btn-light {
    background-color: rgba(58, 58, 60, 0.8);
    color: #F2F2F7;
}

.dark-mode .btn-outline-secondary {
    border-color: #48484A;
    color: #F2F2F7;
}

.dark-mode .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.dark-mode .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #F2F2F7;
}

.dark-mode .app-navbar {
    background-color: rgba(28, 28, 30, 0.8);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dark-mode .empty-icon-container {
    background: rgba(58, 58, 60, 0.8);
}

.dark-mode .empty-icon-container i {
    color: #8E8E93;
}

.dark-mode .app-footer {
    background-color: #1C1C1E;
    border-top: 1px solid #2C2C2E;
}

/* 响应式调整 - Apple Design 风格 */
@media (max-width: 768px) {
    .app-title {
        font-size: 2rem;
    }
    
    .app-subtitle {
        max-width: 100%;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    .report-card {
        margin-top: 1.5rem;
    }
}
