/* 全局样式重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, system-ui, sans-serif;
}

body {
    background-color: #F5F7FA;
    min-height: 100vh;
    padding: 2rem 1rem;
    color: #1D2129;
}

.hidden {
    display: none !important;
}

.active {
    display: block !important;
}

.max-w-3xl {
    max-width: 64rem;
    width: 100%;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.block {
    display: block;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.pt-4 {
    padding-top: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.p-4 {
    padding: 1rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.relative {
    position: relative;
}

.z-1 {
    z-index: 1;
}

.z-minus-1 {
    z-index: -1;
}

.w-full {
    width: 100%;
}

.w-10 {
    width: 2.5rem;
    height: 2.5rem;
}

.w-20 {
    width: 5rem;
    height: 5rem;
    margin-left: 50%;
    transform: translateX(-50%);
}

.h-1 {
    height: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 50%;
}

.border-2 {
    border-width: 2px;
    border-style: solid;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-red-500 {
    color: #ef4444;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.space-y-3>*+* {
    margin-top: 0.75rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

.grid {
    display: grid;
    gap: 0.75rem;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

/* 自定义核心样式 - CSS变量统一配色 */
:root {
    --primary: #165DFF;
    --success: #00B42A;
    --warning: #FF7D00;
    --gray-100: #F5F7FA;
    --gray-200: #E5E6EB;
    --gray-300: #C9CDD4;
    --gray-400: #86909C;
    --gray-500: #4E5969;
    --gray-600: #272E3B;
    --gray-700: #1D2129;
}

.step-active {
    background-color: var(--gray-100);
    color: var(--primary);
    border-color: var(--gray-100);
}

.step-completed {
    background-color: var(--gray-100);
    color: var(--success);
    border-color: var(--gray-100);
}

.step-inactive {
    background-color: #f5f7fa;
    ;
    color: var(--gray-400);
    border-color: var(--gray-200);
}

.form-card {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    max-width: 42rem;
    width: 100%;
    margin: 0 auto;
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.3);
    border-color: var(--primary);
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: rgba(22, 93, 255, 0.9);
}

.btn-primary:active {
    background-color: rgba(22, 93, 255, 0.8);
}

.btn-default {
    background-color: #fff;
    color: var(--gray-600);
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-default:hover {
    background-color: var(--gray-100);
}

.time-item {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
    text-align: center;
}

.time-item:hover {
    border-color: var(--primary);
}

.time-item-active {
    border-color: var(--primary);
    background-color: rgba(22, 93, 255, 0.05);
    color: var(--primary);
}

.time-item-disabled {
    border-color: var(--gray-200);
    background-color: var(--gray-100);
    color: var(--gray-400);
    cursor: not-allowed;
}

.dept-item {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.dept-item:hover {
    border-color: var(--primary);
}

.dept-item-active {
    border-color: var(--primary);
    background-color: rgba(22, 93, 255, 0.05);
    color: var(--primary);
}

.dept-item-disabled {
    border-color: var(--gray-200);
    background-color: var(--gray-100);
    color: var(--gray-400);
    cursor: not-allowed;
}

.error-tip {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-success-10 {
    background-color: rgba(0, 180, 42, 0.1);
}

.text-gray-400 {
    color: var(--gray-400);
}

.text-gray-500 {
    color: var(--gray-500);
}

.text-gray-600 {
    color: var(--gray-600);
    font-size: 1rem;
}

.text-gray-700 {
    color: var(--gray-700);
}

.text-primary {
    color: var(--primary);
}

.text-success {
    color: var(--success);
}

.border-gray-200 {
    border-color: var(--gray-200);
}

/* 修复后的步骤条专属样式 - 核心优化 */
.step-bar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    /* 增加间距，视觉更协调 */
    width: 100%;
}

.step-bar-connector {
    position: absolute;
    top: 30%;
    left: 0;
    width: 100%;
    height: 0.25rem;
    background-color: var(--gray-200);
    transform: translateY(-50%);
    /* 精准垂直居中 */
    z-index: -1;
    /* 确保在步骤节点下方，不遮挡 */
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    /* 节点层级高于连接线 */
    cursor: default;
}

.step-icon-wrapper {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.step-text {
    font-size: 0.875rem;
    font-weight: 500;
}

/* 响应式媒体查询 */
@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .sm\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-card {
        padding: 2rem;
    }

    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 1.5rem;
    }

    .step-text {
        font-size: 0.75rem;
        /* 移动端文字缩小，适配小屏幕 */
    }

    .step-icon-wrapper {
        width: 2rem;
        height: 2rem;
        /* 移动端节点略小，更适配 */
        font-size: 0.875rem;
    }
}

.record {
    position: fixed;
    right: 20px;
    bottom: 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
}

/* 提示内容样式 */
.tip-content {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    padding: 10px 5px;
}

.tip-content p {
    margin: 0 0 12px 0;
}

/* 按钮区域 */
.btn-box {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-box button {
    flex: 1;
    height: 40px;
    line-height: 40px;
    font-size: 16px;
}

.time-content {
    width: 100%;
    height: 100px;
    display: flex;
    overflow-x: scroll;
}

.time-content::-webkit-scrollbar {
    display: none;
}

.time-box {
    height: 100%;
    min-width: 80px;
    /* padding: 0.5rem; */
    transition: border-color 0.2s ease;
    text-align: center;
    margin-right: 10px;
    border: 1px solid #efefef;
}

.time-box:last-child {
    margin-right: 0px;
}

.time-title {
    height: 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #71a3fc;
    color: white;
}

.time-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 65%;
}

.time-date {
    margin-bottom: 5%;
}

.time-person {
    color: var(--primary);
}

.time-box > .timeActive {
    background-color: #e1eafe;
}

/*  */
/* 通知公告栏样式 - 蓝色主题 */
.notice-bar {
    background: linear-gradient(90deg, #e8f0ff 0%, #fff 100%);
    border: 1px solid #b2d1ff;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(22, 93, 255, 0.08);
}

.notice-bar:hover {
    background: #e8f0ff;
    border-color: #165DFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.2);
}

.notice-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #165DFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.notice-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.notice-text {
    font-size: 14px;
    color: #0a42c4;
    font-weight: 500;
}

.notice-more {
    font-size: 12px;
    color: #165DFF;
    background: rgba(22, 93, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.notice-bar:hover .notice-more {
    background: #165DFF;
    color: white;
}

/* 通知弹窗样式 - 蓝色主题 */
.notice-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: auto;
    animation: slideIn 0.3s ease;
    border-top: 4px solid #165DFF;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.notice-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #165DFF;
}

.notice-modal-body {
    padding: 20px;
    line-height: 1.6;
    color: #333;
}

.notice-modal-close {
    cursor: pointer;
    font-size: 20px;
    color: #999;
    transition: color 0.2s;
}

.notice-modal-close:hover {
    color: #165DFF;
}

/* 弹窗中链接或强调色 */
.notice-modal-body h3 {
    color: #165DFF;
}