/* 基础样式保持不变 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f9fafb;
    color: #1D2129;
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 1536px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
}

button:focus {
    outline: 2px solid #ff6a00; /* 自定义颜色 */
}


/* 头部样式保持不变 */
header {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.dfyclogo{
    width: 90px;
    height: 44px;
    background: url(index-logo.png) no-repeat;
    background-size: 90px 44px;
    margin-top: 13px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: #165DFF;
    font-size: 1.5rem;
    line-height: 2rem;
}

.logo h1 {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: bold;
    color: #165DFF;
}

.jobgroupitem{
    display: flex;
    align-items: center;
    gap: 8px;
    background: powderblue;
    border-radius: 4px;
    padding: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links button {
    color: #6B7280;
    background: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
    font-size: 1rem;
}

.nav-links button:hover {
    color: #165DFF;
}

.mobile-menu-btn {
    display: none;
    background: none;
    color: #6B7280;
    font-size: 20px;
    transition: color 0.2s ease;
}

.mobile-menu-btn:hover {
    color: #165DFF;
}

.mobile-menu {
    display: none;
    background-color: white;
    border-top: 1px solid #E5E7EB;
    padding: 8px 16px;
}

.mobile-menu button {
    width: 100%;
    background: none;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    text-align: left;
    transition: color 0.2s ease;
}

.mobile-menu button:hover {
    color: #165DFF;
}

/* 主内容区样式保持不变 */
main {
    padding: 32px 0;
}

/* 步骤指示器保持不变 */
.steps-indicator {
    margin-bottom: 28px;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 48rem;
    margin: 0 auto;
    flex-direction: column;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 16px;
}

.step-text {
    font-size: 14px;
    font-weight: 500;
}

.progress-bar-container {
    flex: 1;
    max-width: 80px;
    height: 4px;
    background-color: #E5E7EB;
    margin: 0 8px;
}

.progress-bar-container-v {
    height: 60px;
    width: 4px;
    background-color: #E5E7EB;
    margin: 8px;
}

.progress-bar {
    width: 100%;
    background-color: #165DFF;
    height: 0;
    transition: height 0.5s ease;
}

/* 步骤内容区保持不变 */
.step-content {
    /*max-width: 64rem;
    margin: 0 auto 2rem;*/
    width: 64rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    height: max-content;
}

.step-title {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: bold;
    margin-bottom: 24px;
    color: #1F2937;
}

/* 步骤1：导入数据保持不变 */
.drop-area {
    border: 2px dashed #D1D5DB;
    border-radius: 8px;
    padding: 16px 32px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 24px;
    transition: border-color 0.2s ease;
}

.drop-area:hover {
    border-color: #165DFF;
}

.drop-area i {
    font-size: 1rem;
    color: #9CA3AF;
}

.drop-area p {
    color: #6B7280;
    margin-bottom: 8px;
}

.content{font-size: 0.875rem; line-height: 1.25rem; margin-top: 0.5rem; color: #6B7280;}

.browse-btn {
    background-color: #165DFF;
    color: white;
    font-size: 1rem;
    line-height: 1.3rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.browse-btn:hover {
    background-color: #0E4BDB;
}

.file-input {
    display: none;
}

.file-info {
    display: none;
    background-color: #F5F7FA;
    border-radius: 6px;
    padding: 8px 16px;
}

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

.file-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-name i {
    color: #10B981;
}

.remove-file-btn {
    background: none;
    color: #EF4444;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.remove-file-btn:hover {
    color: #DC2626;
}

.data-preview {
    display: none;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    margin-bottom: 24px;
}

.preview-header {
    padding: 12px;
    background-color: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
    font-weight: 500;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
}

.preview-table th {
    padding: 12px 24px;
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #F9FAFB;
    position: sticky;
    top: 0;
}

.preview-table td {
    padding: 12px 24px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #E5E7EB;
}

.preview-table tr:hover {
    background-color: #F9FAFB;
}

/* 步骤2：抽签过程 - 重点修改区域 */
.group-progress {
    background-color: #F5F7FA;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-header span {
    font-weight: 500;
}

.group-progress-bar-container {
    width: 100%;
    height: 10px;
    background-color: #E5E7EB;
    border-radius: 5px;
}

.group-progress-bar {
    height: 100%;
    background-color: #165DFF;
    border-radius: 5px;
    width: 0;
    transition: width 0.3s ease;
}

.group-drawing {
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    overflow: hidden;
}

.group-info {
    background-color: #F9FAFB;
    padding: 12px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.group-info h3 {
    font-weight: 500;
}

.drawing-container {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 新增：同时显示多个抽签位置的容器 */
.drawing-grid {
    width: 100%;
    display: flex;
    grid-template-columns: auto 1fr;
    gap: 16px 24px;
    margin-bottom: 24px;
    /*max-height: 400px;
    overflow-y: auto;*/
    padding: 16px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    flex-wrap: wrap;
    align-items: center;
}

/* 顺序号样式 - 固定不动 */
.order-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #165DFF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* 姓名动画区域样式 */
.name-animation {
    padding: 10px;
    border-radius: 6px;
    background-color: #F9FAFB;
    min-width: 7rem;
    min-height: 30px;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.jobgroupname{
    background-color: #37d770;
    padding: 5px;
}

/* 动画效果类 */
.name-shaking {
    animation: shake 0.1s infinite;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(0); }
    75% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

.name-final {
    background-color: rgba(22, 93, 255, 0.1);
    color: #165DFF;
}

.checkin-item {
    width: 48%;
    font-size: 18px;
}

.checkin-label{
    width: 100%;
}

.checkin-span{
    margin-left: 16px;
    color: #333;
}

.draw-status {
    color: #6B7280;
    margin-top: 16px;
}

/* 步骤3：结果展示保持不变 */
.results-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .results-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.results-actions {
    display: flex;
    gap: 12px;
}

.group-filter {
    padding: 8px 12px 8px 36px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 14px;
}

.export-btn {
    background-color: #10B981;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.export-btn:hover {
    background-color: #059669;
}

.results-table-container {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th {
    padding: 12px 24px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #F9FAFB;
}

.results-table td {
    padding: 16px 24px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #E5E7EB;
    text-align: center;
}

.results-table tr:hover {
    background-color: #F9FAFB;
}

.no-results {
    padding: 64px 0;
    text-align: center;
    display: none;
}

.no-results i {
    font-size: 64px;
    color: #D1D5DB;
    margin-bottom: 16px;
}

.no-results p {
    color: #6B7280;
}

/* 按钮样式保持不变 */
.btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-primary {
    background-color: #165DFF;
    color: white;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: #0E4BDB;
    transform: scale(1.05);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background-color: transparent;
    color: #374151;
    border: 1px solid #D1D5DB;
}

.btn-outline:hover {
    background-color: #F9FAFB;
}

.btn-text {
    background: none;
    color: #6B7280;
}

.btn-text:hover {
    color: #165DFF;
}

.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

.next-btn {
    display: none;
    margin-left: auto;
}

/* 模态框样式保持不变 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: bold;
    color: #1F2937;
}

.close-modal {
    background: none;
    color: #6B7280;
    font-size: 20px;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: #374151;
}

.modal-body {
    padding: 24px;
}

.modal-section {
    margin-bottom: 16px;
}

.modal-section h4 {
    font-weight: bold;
    color: #374151;
    margin-bottom: 8px;
}

.modal-section p {
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.modal-section ul {
    color: #6B7280;
    font-size: 14px;
    margin-left: 24px;
    margin-top: 4px;
}

.modal-section li {
    margin-bottom: 4px;
}

.about-content {
    text-align: center;
}

.about-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(22, 93, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.about-icon i {
    color: #165DFF;
    font-size: 32px;
}

.about-title {
    font-size: 18px;
    font-weight: bold;
    color: #1F2937;
    margin-bottom: 8px;
}

.about-version {
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 16px;
}

.about-description {
    color: #6B7280;
    font-size: 14px;
}

/* 页脚样式保持不变 */
footer {
    background-color: white;
    border-top: 1px solid #E5E7EB;
    padding: 24px 0;
}

.footer-content {
    text-align: center;
    color: #6B7280;
    font-size: 14px;
}

/* 动画类保持不变 */
.scale-110 {
    transform: scale(1.1);
}

.scale-125 {
    transform: scale(1.25);
}

.hidden {
    display: none !important;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .drop-area {
        padding: 24px 16px;
    }
    
    .drawing-grid {
        gap: 12px 16px;
        padding: 8px;
    }
    
    .preview-table th,
    .preview-table td,
    .results-table th,
    .results-table td {
        padding: 12px 8px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}