/* date-plan.css */
/* 用于控制 .match-results 内容的样式 */
.match-results-container {
    position: relative;
}

.copy-button-container {
    position: absolute;
    top: calc(100% + 0.5em); /* 确保按钮位于 match-results 下方并留有一定的间距 */
    right: 0;
}

.copy-button {
    /* 缩小按钮大小 */
    padding: 0.25em;
    width: 2em;
    height: 2em;
    line-height: 1;
    text-align: center;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    /* 保证图标垂直居中 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-button:focus {
    /* 可选：为聚焦状态添加样式 */
    outline: none;
}

.match-results {
    white-space: pre-wrap; /* 保留换行 */
    padding: 1em; /* 假设增加一些内边距 */
    background-color: #f8f9fa; /* 假设背景色为浅灰色 */
    font-size: 16px; /* 字体大小 */
    line-height: 1.5; /* 行间距 */
    border: 1px solid #ccc; /* 边框样式 */
}

.copy-button {
    /* 去除不必要的内外边距和字体大小 */
    padding: 0;
    font-size: inherit;
    /* 可以自定义图标大小和样式 */
    width: 2em;
    height: 2em;
    line-height: 1;
    text-align: center;
    background-color: #0056b3;
    border: none;
    outline: none;
    cursor: pointer;
}

.copy-button:focus {
    /* 可选：为聚焦状态添加样式 */
    outline: none;
}

/* 简历诊断专用样式 - Modal弹出框 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    display: block;
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-overlay.show .modal-container {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #e8f5e8;
    border-radius: 12px 12px 0 0;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2e7d32;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.modal-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.report-content {
    line-height: 1.8;
    color: #333;
}

.report-content h1 {
    color: #2e7d32;
    border-bottom: 2px solid #4caf50;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.report-content h2 {
    color: #2e7d32;
    border-left: 4px solid #4caf50;
    padding-left: 10px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.report-content h3 {
    color: #2e7d32;
    margin-top: 20px;
    margin-bottom: 10px;
}

.report-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.report-content th,
.report-content td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.report-content th {
    background-color: #e8f5e8;
    font-weight: 600;
    color: #2e7d32;
}

.report-content ul,
.report-content ol {
    margin: 15px 0;
    padding-left: 20px;
}

.report-content li {
    margin-bottom: 8px;
}

.report-content strong {
    color: #2e7d32;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.download-btn {
    background: #4caf50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.download-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.download-btn.secondary {
    background: #666;
}

.download-btn.secondary:hover {
    background: #555;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        height: 90vh;
    }
    
    .modal-header,
    .modal-content,
    .modal-footer {
        padding: 15px 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .download-btn {
        width: 100%;
    }
}

