/* 主题色变量 */
:root {
    --primary-color: #4285f4;
    --primary-dark: #1a73e8;
    --primary-light: #5a9cff;
    --primary-bg: #f0f4ff;
    --primary-rgba: 66, 133, 244;
    --primary-dark-rgba: 26, 115, 232;
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 15px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.header-content h1 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header-content h1 i {
    margin-right: 10px;
    color: white;
}

.header-content p {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    font-weight: 300;
    margin: 0;
}

/* 主要内容区域 */
.main-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 步骤样式 */
.step-section {
    display: none;
    padding: 40px;
    min-height: 500px;
}

.step-section.active {
    display: block;
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.step-number {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-right: 18px;
}

.step-header h2 {
    font-size: 1.5rem;
    color: #333;
    font-weight: 600;
}

/* 表单样式 */
.task-form {
    max-width: 800px;
    margin: 0 auto;
}

.task-form .btn-primary {
    display: block;
    margin: 30px auto 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 1rem;
    white-space: nowrap;
}

.form-group label i {
    margin-right: 8px;
    color: var(--primary-color);
}

.info-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 2px;
}

.info-button:hover {
    transform: scale(1.2);
}

.info-button i {
    font-size: 1rem;
    margin: 0;
    color: #1976d2;
    line-height: 1;
}

.info-button:hover i {
    color: var(--primary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgba), 0.1);
}

/* 按钮样式 */
.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(var(--primary-rgba), 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e1e5e9;
}

.btn-secondary:hover {
    background: #e9ecef;
}

/* 技能分析容器样式 */
.skills-container {
    display: flex;
    justify-content: center;
}

.skills-analysis-container {
    max-width: 800px;
    width: 100%;
    padding: 0;
}

.skills-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 6px;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

.skills-header i {
    font-size: 1.2rem;
    opacity: 0.9;
}

.skills-list {
    display: grid;
    gap: 12px;
    margin-bottom: 30px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.skill-item:hover {
    border-color: var(--primary-color);
    background: var(--primary-bg);
    transform: translateX(5px);
}

.skill-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.skills-action {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.skills-empty {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 2px solid #e1e5e9;
}

.skills-empty h3 {
    color: #666;
    margin-bottom: 10px;
}

.skills-empty p {
    color: #999;
}

/* 评估容器样式 */
.evaluation-container {
    display: grid;
    gap: 30px;
}

.evaluation-item {
    background: white;
    border-radius: 6px;
    padding: 25px;
    border: 2px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.evaluation-item h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 滑块容器样式 */
.skill-slider-container {
    margin-top: 20px;
    padding: 0;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.skill-slider {
    position: relative;
    margin: 20px 0;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e1e5e9;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(var(--primary-rgba), 0.4);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(var(--primary-rgba), 0.4);
}

.slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 8px;
    background: #e1e5e9;
    border-radius: 5px;
    transform: translateY(-50%);
    z-index: 0;
}

.slider-fill {
    position: absolute;
    top: 50%;
    left: 0;
    height: 8px;
    background: var(--primary-color);
    border-radius: 5px;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    z-index: 1;
    width: 50%;
}

.current-level {
    text-align: center;
    margin-top: 15px;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 2px solid #e9ecef;
}

.current-level span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

/* 结果容器样式 */
.results-container {
    display: grid;
    gap: 20px;
}

.result-card {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 6px;
    padding: 30px;
    border: 2px solid #e1e5e9;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.result-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.skill-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
}

.skill-title-row h3 {
    flex: 1;
    margin: 0;
}

.ai-role-badge {
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.ai-role-badge.subordinate {
    background: #e3f2fd;
    color: #1976d2;
}

.ai-role-badge.mentor {
    background: #f3e5f5;
    color: #7b1fa2;
}

.ai-role-badge.tool {
    background: #fff3e0;
    color: #f57c00;
}

.ai-role-badge.colleague {
    background: #e8f5e8;
    color: #388e3c;
}

.ai-role-badge.autonomous {
    background: #ffebee;
    color: #d32f2f;
}

.skill-evaluation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.evaluation-metric {
    background: white;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #e1e5e9;
}

.metric-score {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.metric-reason {
    font-size: 0.8rem;
    color: #888;
    margin-top: 10px;
    line-height: 1.4;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    width: 400px;
    max-width: 90vw;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 进度条样式 */
.progress-container {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e1e5e9;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: block;
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #d32f2f;
}

.modal-content h3 i {
    margin-right: 10px;
}

/* 信息弹窗标题特殊样式 */
#infoModal .modal-content h3 {
    color: var(--primary-color);
}

#infoModal .modal-content h3 i {
    color: var(--primary-color);
}

/* 二维码弹窗标题特殊样式 */
.qr-modal-content h3 {
    color: var(--primary-color);
}

.qr-modal-content h3 i {
    color: var(--primary-color);
}

/* 进度指示器 */
.progress-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e1e5e9;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 10px;
    position: relative;
}

.progress-step.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.progress-step.completed {
    background: #4caf50;
    color: white;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 20px;
    height: 2px;
    background: #e1e5e9;
    transform: translateY(-50%);
}

.progress-step:last-child::after {
    display: none;
}

.progress-step.completed::after {
    background: #4caf50;
}

/* 折叠卡片样式 */
.collapsible-card .result-header {
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 10px;
    margin: -10px;
    border-radius: 6px;
}

.collapsible-card .result-header:hover {
    background-color: rgba(var(--primary-rgba), 0.05);
}

.collapse-control {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.collapse-text {
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
}

.collapse-icon {
    font-size: 0.9rem;
    color: #999;
    transition: transform 0.3s ease;
    cursor: pointer;
    padding: 5px;
}

.skill-details {
    transition: all 0.3s ease;
    overflow: hidden;
}

.mobile-toggle-btn {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        margin-bottom: 10px;
    }
    
    .header-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .header-content h1 {
        font-size: 1.6rem;
    }
    
    .header-content p {
        font-size: 0.85rem;
    }
    
    .step-section {
        padding: 20px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-right: 15px;
    }
    
    .step-header h2 {
        font-size: 1.3rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .slider-labels {
        font-size: 0.8rem;
    }
    
    .skill-slider-container {
        padding: 0;
        margin-top: 15px;
    }
    
    .skill-evaluation-grid {
        grid-template-columns: 1fr;
    }
    
    /* 移动端显示切换按钮 */
    .mobile-toggle-btn {
        display: inline-flex !important;
    }
    
    /* 移动端结果卡片优化 */
    .result-card {
        padding: 20px;
        margin-bottom: 10px;
    }
    
    .results-container {
        gap: 15px;
    }
    
    .skill-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        position: relative;
        padding-right: 80px; /* 为折叠控制区域留出空间 */
    }
    
    .skill-title-row h3 {
        font-size: 1.2rem;
        line-height: 1.4;
        width: 100%;
    }
    
    .ai-role-badge {
        align-self: flex-start;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .collapse-control {
        position: absolute;
        top: 0;
        right: 0;
        display: flex !important;
        align-items: center;
        gap: 4px;
    }
    
    .collapse-text {
        font-size: 0.75rem;
        color: #666;
        font-weight: 500;
    }
    
    .collapse-icon {
        font-size: 0.9rem;
        color: #666;
    }
    
    .skill-evaluation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .evaluation-metric {
        padding: 15px;
    }
    
    .metric-score {
        font-size: 1.5rem;
    }
    
    .metric-label {
        font-size: 0.8rem;
    }
    
    .metric-reason {
        font-size: 0.75rem;
    }
    
    /* 移动端技能分析优化 */
    .skills-analysis-container {
        padding: 0;
        margin: 0;
    }
    
    .skills-header {
        padding: 15px;
        font-size: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .skills-header i {
        font-size: 1.5rem;
    }
    
    .skill-item {
        padding: 15px;
        font-size: 0.95rem;
    }
    
    .skill-item i {
        font-size: 1rem;
    }
    
    .skills-action {
        padding-top: 15px;
    }
    
    /* 移动端总结建议按钮优化 */
    .result-card .btn-secondary {
        width: 100% !important;
        max-width: 280px;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

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

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

/* 工具提示 */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}

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

/* 免责声明样式 */
.ai-disclaimer {
    text-align: center;
    padding: 10px;
    margin: 10px 0;
    font-size: 0.85rem;
    color: white;
}

.ai-disclaimer a {
    color: #87ceeb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.ai-disclaimer a:hover {
    color: #b0e0e6;
    text-decoration: underline;
}

/* 二维码弹窗样式 */
.qr-modal-content {
    text-align: center;
    max-width: 400px;
}

.qr-container {
    padding: 20px 0;
}

.qr-image {
    width: 200px;
    height: 200px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.qr-text {
    font-size: 1.1rem;
    color: #333;
    margin: 10px 0 5px 0;
    font-weight: 500;
}

.qr-subtext {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .ai-disclaimer {
        margin: 8px 10px;
        padding: 8px;
        font-size: 0.8rem;
    }
    
    .qr-image {
        width: 180px;
        height: 180px;
    }
    
    .qr-modal-content {
        margin: 20% auto;
        width: 95%;
        max-width: 350px;
    }
} 