/* 结果页面专用样式 */

/* 报告头 */
.report-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 40px 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.report-header::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 1000 100"><path d="M0,50 Q250,0 500,50 T1000,50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
    background-size: cover;
    opacity: 0.5;
}

.header-content {
    position: relative;
    z-index: 2;
}

.report-title {
    text-align: center;
    margin-bottom: 30px;
}

.report-title h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.report-title h1 i {
    font-size: 2rem;
}

.report-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.report-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.meta-item i {
    font-size: 0.9rem;
}

/* 主导类型徽章 */
.dominant-type-badge {
    max-width: 500px;
    margin: 30px auto 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 3px solid;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    }
    100% {
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
    }
}

.badge-icon {
    font-size: 3.5rem;
    min-width: 80px;
    text-align: center;
}

.badge-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.badge-content p {
    opacity: 0.9;
    font-size: 1rem;
}

/* 报告内容区域 */
.report-content {
    padding: 0 20px;
}

.report-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.report-section:hover {
    box-shadow: var(--shadow-lg);
}

.section-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1rem;
}

/* 图表容器 */
.chart-container {
    height: 500px;
    margin: 30px 0;
    position: relative;
}

/* 图表图例 */
.chart-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 30px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--bg);
    border-radius: 10px;
    border-left: 4px solid;
    transition: var(--transition);
}

.legend-item:hover {
    transform: translateX(5px);
    background: white;
    box-shadow: var(--shadow);
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-text {
    flex: 1;
    font-weight: 600;
    color: var(--text);
}

.legend-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

/* 主导类型详情 */
.dominant-details {
    margin-top: 20px;
}

.detail-card {
    border: 3px solid;
    border-radius: var(--radius-lg);
    padding: 30px;
    background: white;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.detail-header h3 {
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-badge {
    padding: 8px 20px;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius);
}

.stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.stat i {
    color: var(--primary);
    font-size: 1.5rem;
}

.stat span {
    font-weight: 600;
    color: var(--text);
}

/* 详情网格 */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.grid-item {
    background: var(--bg);
    padding: 25px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.grid-item h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.grid-item p {
    color: var(--text);
    line-height: 1.7;
}

/* 优势与挑战 */
.strengths-challenges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.sc-item {
    padding: 25px;
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
}

.sc-item h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--text);
}

.sc-item h4 i {
    color: var(--primary);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
}

.tag-strength {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.tag-challenge {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 2px solid rgba(239, 68, 68, 0.2);
}

/* 匹配网格 */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.match-card {
    border: 3px solid;
    border-radius: var(--radius-lg);
    padding: 25px;
    background: white;
    transition: var(--transition);
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.match-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.match-icon {
    font-size: 2.5rem;
    min-width: 60px;
}

.match-title h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.match-score {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.match-details p {
    color: var(--text);
    line-height: 1.7;
}

.match-details strong {
    color: var(--primary);
}

/* 排名表格 */
.ranking-table {
    overflow-x: auto;
    margin-top: 30px;
}

.ranking-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.ranking-table thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.ranking-table th {
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.ranking-table tbody tr {
    background: white;
    transition: var(--transition);
}

.ranking-table tbody tr:hover {
    background: var(--bg);
}

.ranking-table tbody tr.top-ranking {
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.ranking-table td {
    padding: 18px 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.type-badge {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-align: center;
    line-height: 40px;
    font-weight: 700;
}

.percentage-bar {
    position: relative;
    height: 24px;
    background: var(--bg);
    border-radius: 12px;
    overflow: hidden;
}

.percentage-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 1s ease;
}

.percentage-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 成长计划 */
.growth-plan {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.plan-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    border: 2px solid var(--border);
    transition: var(--transition);
}

.plan-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.plan-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.plan-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 1.3rem;
}

.plan-list {
    list-style: none;
}

.plan-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text);
    line-height: 1.6;
}

.plan-list li i {
    color: var(--success);
    margin-top: 4px;
    flex-shrink: 0;
}

/* 报告脚注 */
.report-footer {
    background: var(--bg);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    padding: 40px 30px;
    margin-top: 40px;
    border-top: 2px solid var(--border);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    border-left: 5px solid var(--primary);
}

.disclaimer h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.disclaimer p {
    color: var(--text);
    line-height: 1.7;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.btn-action {
    padding: 15px 25px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    min-width: 160px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.btn-tertiary {
    background: var(--bg);
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-tertiary:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.report-id {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.report-id p {
    margin-bottom: 8px;
}

.report-id i {
    margin-right: 8px;
}

/* 分享模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 30px;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.share-option:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.share-option i {
    font-size: 2rem;
    color: var(--primary);
}

.share-option span {
    font-weight: 600;
    color: var(--text);
}

.share-link {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.share-link input {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
}

.share-link button {
    padding: 0 25px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.share-link button:hover {
    background: var(--primary-dark);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .report-header {
        padding: 30px 20px;
    }
    
    .report-title h1 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .dominant-type-badge {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .report-content {
        padding: 0 10px;
    }
    
    .report-section {
        padding: 25px 20px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .chart-container {
        height: 400px;
    }
    
    .detail-grid, .strengths-challenges, .matches-grid, .growth-plan {
        grid-template-columns: 1fr;
    }
    
    .detail-stats {
        grid-template-columns: 1fr;
    }
    
    .ranking-table {
        font-size: 0.9rem;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
    }
    
    .share-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .report-title h1 {
        font-size: 1.5rem;
    }
    
    .report-meta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .detail-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .detail-header h3 {
        font-size: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
}