/* 头部区域样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* 修复：覆盖全局 header-actions 的 absolute 定位 */
.header .header-actions {
    position: static;
    transform: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 返回按钮样式 */
.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 18px;
    background-color: #f5f5f5;
    color: #666;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    height: 36px;
    box-sizing: border-box;
}

.back-btn:hover {
    background-color: #e8e8e8;
    color: #333;
    transform: translateY(-1px);
}

/* 收藏按钮样式 */
.favorite-button {
    display: inline-flex;
    align-items: center;
    padding: 6px 18px;
    background-color: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 36px;
    box-sizing: border-box;
    font-family: inherit;
}

.favorite-button:hover {
    background-color: #e8e8e8;
    color: #333;
    transform: translateY(-1px);
}

.favorite-button.favorited {
    background-color: #fff8e1;
    color: #f9a825;
}

.favorite-button.favorited:hover {
    background-color: #ffecb3;
    color: #f57f17;
}

/* 页面部分 */
.page-section {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 欢迎页面样式 */
.welcome-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 20px 0;
}

.mbti-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    background-color: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.3);
    animation: float 3s ease-in-out infinite;
}

.mbti-logo .logo-icon {
    font-size: 60px;
    line-height: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.tool-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.tool-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.intro-box {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    text-align: left;
}

.intro-box h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.intro-box h3 i {
    color: #4CAF50;
}

.intro-box p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.dimensions-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.dim-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 14px;
}

.dim-icon {
    font-size: 20px;
}

.dim-text strong {
    color: #4CAF50;
}

.test-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.info-item i {
    color: #4CAF50;
}

/* 测试模式选择 */
.mode-selection {
    margin-bottom: 30px;
}

.mode-selection h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mode-selection h3 i {
    color: #4CAF50;
}

.mode-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.mode-card {
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.mode-card:hover {
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.mode-card.selected {
    border-color: #4CAF50;
    background: #f8fff8;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.mode-icon {
    width: 70px;
    height: 70px;
    background-color: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
    transition: all 0.3s ease;
}

.mode-icon .icon-emoji {
    font-size: 32px;
    line-height: 1;
}

.mode-icon.full {
    background-color: #fff3e0;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15);
}

.mode-card:hover .mode-icon {
    transform: scale(1.1) rotate(5deg);
}

.mode-info h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.mode-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.mode-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
    color: #999;
}

.mode-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mode-meta i {
    color: #4CAF50;
}

.start-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.start-btn i {
    font-size: 16px;
}

/* 答题页面样式 */
.quiz-container {
    max-width: 700px;
    margin: 0 auto;
}

/* 测试阶段指示器 */
.phase-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
}

.phase-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 20px;
    background: #f5f5f5;
    color: #999;
    font-size: 13px;
    transition: all 0.3s ease;
}

.phase-item.active {
    background: #e8f5e9;
    color: #4CAF50;
    font-weight: 500;
}

.phase-item.completed {
    background: #c8e6c9;
    color: #2e7d32;
}

.phase-icon {
    font-size: 16px;
}

.phase-arrow {
    color: #ddd;
    font-size: 12px;
}

.phase-arrow.active {
    color: #4CAF50;
}

.progress-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.progress-count {
    font-size: 14px;
    color: #4CAF50;
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #4CAF50;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.question-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.dimension-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #e8f5e9;
    color: #4CAF50;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.question-text {
    font-size: 24px;
    color: #333;
    margin-bottom: 40px;
    line-height: 1.4;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.option-card:hover {
    background: #e8f5e9;
    border-color: #4CAF50;
}

.option-card.selected {
    background: #e8f5e9;
    border-color: #4CAF50;
}

.option-label {
    width: 36px;
    height: 36px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #666;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.option-card:hover .option-label {
    border-color: #4CAF50;
    color: #4CAF50;
}

.option-card.selected .option-label {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.option-text {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}

.option-card.selected .option-text {
    color: #333;
    font-weight: 500;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    margin-bottom: 40px;
    gap: 16px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-btn {
    background: #f5f5f5;
    color: #666;
}

.prev-btn:hover:not(:disabled) {
    background: #e8e8e8;
}

.prev-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.next-btn {
    background-color: #4CAF50;
    color: white;
    margin-left: auto;
}

.next-btn:hover:not(:disabled) {
    background-color: #45a049;
    transform: translateY(-1px);
}

.next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 结果页面样式 */
.result-container {
    max-width: 800px;
    margin: 0 auto;
}

/* 主结果卡片 */
.result-main-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    text-align: center;
}

.result-label {
    font-size: 16px;
    color: #999;
    margin-bottom: 15px;
}

.type-name-cn {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.type-badge {
    font-size: 32px;
    font-weight: 600;
    color: #4CAF50;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.type-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    background-color: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.type-avatar span {
    font-size: 80px;
    line-height: 1;
}

.type-slogan {
    font-size: 16px;
    color: #666;
    font-style: italic;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    display: inline-block;
}

/* 子结果卡片 */
.result-sub-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.result-sub-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-sub-card h3 i {
    color: #4CAF50;
}

/* 匹配度信息 */
.match-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.match-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #e8f5e9;
    color: #4CAF50;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.match-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 维度图表 */
.dimensions-chart {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.dimensions-chart h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dimensions-chart h3 i {
    color: #4CAF50;
}

.chart-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.dimension-bar {
    position: relative;
}

.dim-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.dim-left {
    color: #666;
}

.dim-right {
    color: #666;
}

.bar-track {
    position: relative;
    height: 12px;
    background: #e8e8e8;
    border-radius: 6px;
    overflow: visible;
}

.bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: #4CAF50;
    border-radius: 6px;
    transition: width 0.8s ease;
}

.bar-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid #4CAF50;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: left 0.8s ease;
    z-index: 2;
}

.dim-percent {
    text-align: center;
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

/* 性格描述 */
.type-description {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.type-description h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.type-description h3 i {
    color: #4CAF50;
}

.desc-main {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
}

.type-traits h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
}

.traits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trait-tag {
    padding: 8px 16px;
    background: #e8f5e9;
    color: #4CAF50;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* 职业建议 */
.career-section {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.career-section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.career-section h3 i {
    color: #4CAF50;
}

.career-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.career-tag {
    padding: 10px 18px;
    background: #f5f5f5;
    color: #555;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.career-tag:hover {
    background: #e8f5e9;
    color: #4CAF50;
    border-color: #4CAF50;
}

/* 深度分析和发展建议样式 */
.deep-analysis,
.growth-advice {
    text-align: left;
}

.analysis-section,
.advice-section {
    margin-bottom: 24px;
}

.analysis-section:last-child,
.advice-section:last-child {
    margin-bottom: 0;
}

.analysis-section h4,
.advice-section h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.analysis-section h4::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: #4CAF50;
    border-radius: 2px;
}

.advice-section h4::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: #ff9800;
    border-radius: 2px;
}

.analysis-section p,
.advice-section ul {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    padding-left: 12px;
}

.advice-section ul {
    list-style: none;
    padding-left: 12px;
}

.advice-section li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.advice-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
    font-size: 18px;
}

/* 操作按钮 */
.result-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.restart-btn {
    background: #f5f5f5;
    color: #666;
}

.restart-btn:hover {
    background: #e8e8e8;
    transform: translateY(-1px);
}

.share-btn {
    background-color: #4CAF50;
    color: white;
}

.share-btn:hover {
    background-color: #45a049;
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .back-btn,
    .favorite-button {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .tool-title {
        font-size: 28px;
    }
    
    .dimensions-preview {
        grid-template-columns: 1fr;
    }
    
    .test-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .question-section {
        padding: 25px;
    }
    
    .question-text {
        font-size: 20px;
    }
    
    .type-name-cn {
        font-size: 32px;
    }
    
    .type-badge {
        font-size: 24px;
    }
    
    .result-main-card {
        padding: 25px;
    }
    
    .result-sub-card,
    .dimensions-chart,
    .type-description,
    .career-section {
        padding: 20px;
    }
    
    .nav-buttons {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-btn {
        flex: 1;
        justify-content: center;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .prev-btn {
        margin-right: 8px;
    }
    
    .next-btn {
        margin-left: 0;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        position: relative;
    }
    
    .back-btn {
        width: auto;
        padding: 8px 14px;
        font-size: 13px;
        height: 36px;
    }
    
    .favorite-button {
        width: auto;
        padding: 8px 14px;
        font-size: 13px;
        height: 36px;
    }
    
    .mode-cards {
        grid-template-columns: 1fr;
    }
    
    .mode-card {
        padding: 20px;
    }
    
    .mode-icon {
        width: 50px;
        height: 50px;
    }
    
    .mode-icon i {
        font-size: 24px;
    }
    
    .mbti-logo {
        width: 80px;
        height: 80px;
    }
    
    .mbti-logo i {
        font-size: 40px;
    }
    
    .tool-title {
        font-size: 24px;
    }
    
    .intro-box {
        padding: 20px;
    }
    
    .start-btn {
        padding: 14px 30px;
        font-size: 16px;
    }
    
    .question-section {
        padding: 20px;
    }
    
    .question-text {
        font-size: 18px;
    }
    
    .option-card {
        padding: 16px;
    }
    
    .type-name-cn {
        font-size: 28px;
    }
    
    .type-badge {
        font-size: 20px;
    }
    
    .type-avatar {
        width: 120px;
        height: 120px;
    }
    
    .type-avatar span {
        font-size: 60px;
    }
}

/* 头部操作按钮容器 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    position: static !important;
    transform: none !important;
}

/* 测试记录按钮样式 */
.records-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #e3f2fd;
    border: none;
    border-radius: 8px;
    color: #1976d2;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 40px;
    box-sizing: border-box;
}

.records-button:hover {
    background: #bbdefb;
    color: #1565c0;
}

.records-button i {
    font-size: 16px;
}

/* 登录提示 */
.login-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff3e0;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #e65100;
    font-size: 14px;
}

.login-tip i {
    font-size: 16px;
}

/* 保存记录按钮 */
.save-btn {
    background: #4caf50;
    color: white;
}

.save-btn:hover {
    background: #45a049;
}

/* 测试记录弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

/* 记录列表 */
.records-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.record-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e0e0e0;
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.record-type {
    font-size: 20px;
    font-weight: 600;
    color: #1976d2;
}

.record-mode {
    font-size: 12px;
    padding: 4px 8px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
}

.record-dimensions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.dim-tag {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.dim-tag.e { background: #ffebee; color: #c62828; }
.dim-tag.i { background: #e8eaf6; color: #283593; }
.dim-tag.s { background: #fff3e0; color: #ef6c00; }
.dim-tag.n { background: #f3e5f5; color: #6a1b9a; }
.dim-tag.t { background: #e0f2f1; color: #00695c; }
.dim-tag.f { background: #fce4ec; color: #c2185b; }
.dim-tag.j { background: #e8f5e9; color: #2e7d32; }
.dim-tag.p { background: #fff8e1; color: #f9a825; }

.record-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.record-date {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-detail-btn {
    padding: 6px 12px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-detail-btn:hover {
    background: #1565c0;
}

/* 记录操作按钮容器 */
.record-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 删除记录按钮 */
.delete-record-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #ffebee;
    border: none;
    border-radius: 4px;
    color: #e53935;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-record-btn:hover {
    background: #ef5350;
    color: white;
}

/* 无记录提示 */
.no-records-tip {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.no-records-tip i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.no-records-tip p {
    font-size: 16px;
    margin: 0;
}

/* 加载和错误提示 */
.loading-tip, .error-tip {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.loading-tip i, .error-tip i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.error-tip {
    color: #e53935;
}

/* 详情弹窗样式 */
.detail-modal-content {
    max-width: 500px;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section h4 i {
    color: #1976d2;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.detail-type {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-type-badge {
    font-size: 28px;
    font-weight: 700;
    color: #1976d2;
}

.detail-mode {
    font-size: 12px;
    padding: 4px 10px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
}

.detail-date {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.detail-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 详情页维度分析 */
.detail-dimensions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-dim-item {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
}

.detail-dim-item .dim-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.dim-bar-container {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    position: relative;
    margin-bottom: 8px;
    overflow: hidden;
}

.dim-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.dim-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* 详情页操作按钮 */
.detail-actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.detail-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.detail-back-btn:hover {
    background: #e0e0e0;
    color: #333;
}
