/* Complete Apple-style redesign with glassmorphism and stunning animations */

/* Design System */
:root {
    /* Primary Colors */
    --primary-color: #007AFF;
    --primary-hover: #0051D5;
    --success-color: #34C759;
    --danger-color: #FF3B30;
    --warning-color: #FF9500;
    --secondary-color: #8E8E93;
    
    /* Backgrounds */
    --bg-primary: #FFFFFF;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F2F2F7;
    --bg-hover: #FFFFFF;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    /* Text colors */
    --text-primary: #000000;
    --text-secondary: #6E6E73;
    --text-tertiary: #86868B;
    
    /* Border & Divider */
    --border-color: #D2D2D7;
    --border-light: #E5E5EA;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.12);
    
    /* Border Radius */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Override mt-3 class to remove margin-top */
.mt-3 {
    margin-top: 0 !important;
}

.text-muted {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: white;
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Enhanced loading animation */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40vh; /* 往下放一些，距离顶部30%视窗高度 */
    z-index: 9999;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

/* Custom badge style for import modal */
.import-badge {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.import-badge.bg-success {
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.2);
}

.loader-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(1.2); /* 放大加载动画 */
}

.loader-text {
    margin-top: 20px;
    color: rgba(86, 86, 86, 0.935);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 1px;
}

.loading-content {
    text-align: center;
    width: 100%;
}

/* Hitokoto (one sentence) styles */
.hitokoto-container {
    margin: 25px auto 0; /* 与加载中文字保持相同的上边距，并水平居中 */
    padding: 0 20px;
    text-align: center;
    max-width: 600px;
    min-height: 70px; /* 设置最小高度以避免加载时跳动 */
    width: 100%; /* 确保容器宽度为100%，以便text-align: center生效 */
}

.hitokoto-text {
    color: #2e2e2ede; /* 较浅的黑色 */
    font-size: 15px; /* 与加载中文字体大小一致 */
    line-height: 1.6;
    margin-bottom: 10px;
    font-weight: bold; /* 加粗 */
    opacity: 0; /* 初始透明度为0 */
    animation: fadeInNoMove 1s ease-out forwards; /* 只淡入不位移 */
    animation-delay: 0.5s; /* 延迟0.5秒开始动画 */
}

.hitokoto-from {
    color: #484848b4;
    font-size: 12px;
    opacity: 0; /* 初始透明度为0 */
    animation: fadeInNoMove 1s ease-out forwards; /* 只淡入不位移 */
    animation-delay: 0.7s; /* 延迟0.7秒开始动画 */
}

/* 渐显动画定义 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px); /* 可以添加轻微的上移效果 */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 从下到上浮现动画定义 */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px); /* 从下方30px处开始 */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* 移动到正常位置 */
    }
}

/* 只淡入不位移的动画定义 */
@keyframes fadeInNoMove {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 版权信息样式 */
.copyright-text {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    opacity: 0.8;
    animation: fadeInNoMove 0.5s ease-out forwards;
    animation-delay: 0.3s;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* From Uiverse.io by mobinkakei */ 
.loader {
  --path: #2f3545;
  --dot: var(--primary-color);
  --duration: 3s;
  width: 44px;
  height: 44px;
  position: relative;
}

.loader:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  position: absolute;
  display: block;
  background: var(--dot);
  top: 37px;
  left: 19px;
  transform: translate(-18px, -18px);
  animation: dotRect var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86)
    infinite;
}

.loader svg {
  display: block;
  width: 100%;
  height: 100%;
}

.loader svg rect,
.loader svg polygon,
.loader svg circle {
  fill: none;
  stroke: var(--path);
  stroke-width: 10px;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.loader svg polygon {
  stroke-dasharray: 145 76 145 76;
  stroke-dashoffset: 0;
  animation: pathTriangle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86)
    infinite;
}

.loader svg rect {
  stroke-dasharray: 192 64 192 64;
  stroke-dashoffset: 0;
  animation: pathRect 3s cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
}

.loader svg circle {
  stroke-dasharray: 150 50 150 50;
  stroke-dashoffset: 75;
  animation: pathCircle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86)
    infinite;
}

.loader.triangle {
  width: 48px;
}

.loader.triangle:before {
  left: 21px;
  transform: translate(-10px, -18px);
  animation: dotTriangle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86)
    infinite;
}

@keyframes pathTriangle {
  33% {
    stroke-dashoffset: 74;
  }

  66% {
    stroke-dashoffset: 147;
  }

  100% {
    stroke-dashoffset: 221;
  }
}

@keyframes dotTriangle {
  33% {
    transform: translate(0, 0);
  }

  66% {
    transform: translate(10px, -18px);
  }

  100% {
    transform: translate(-10px, -18px);
  }
}

@keyframes pathRect {
  25% {
    stroke-dashoffset: 64;
  }

  50% {
    stroke-dashoffset: 128;
  }

  75% {
    stroke-dashoffset: 192;
  }

  100% {
    stroke-dashoffset: 256;
  }
}

@keyframes dotRect {
  25% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(18px, -18px);
  }

  75% {
    transform: translate(0, -36px);
  }

  100% {
    transform: translate(-18px, -18px);
  }
}

@keyframes pathCircle {
  25% {
    stroke-dashoffset: 125;
  }

  50% {
    stroke-dashoffset: 175;
  }

  75% {
    stroke-dashoffset: 225;
  }

  100% {
    stroke-dashoffset: 275;
  }
}

.loader {
  display: inline-block;
  margin: 0 16px;
}

/* Glassmorphism overlay with blur */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6); /* 白色半透明背景 */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Main App Container */
.modern-app {
    min-height: 100vh;
    padding: 25px;
    padding-top: 0;
    padding-bottom: 10px;
    width: 100%;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out;
}

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

/* Flat header without card background */
.header-flat {
    padding: 15px 25px 14px;
    margin: 0 -25px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.5s ease-out;
    border-bottom: 1px solid var(--border-light);
}

/* 标题容器样式 */
.title-container {
    background-color: #f5f5f5;
    padding: 0 25px;
    margin: 0 -25px;
}

/* 内容容器样式 */
.content-container {
    background-color: #ffffff;
    padding: 0 25px;
    margin: 0 -25px;
}

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

.icon-wrapper-header {
    font-size: 52px;
    margin-right: 20px;
    animation: bounce 3s ease-in-out infinite;
    line-height: 1;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.header-flat h3 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.header-flat p {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 标题容器悬停样式 */
#mainTitleContainer {
    cursor: pointer;
}

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

/* Modern Info Card */
.modern-info-card {
    background: var(--bg-primary);
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: none;
    transition: all var(--transition-base);
    animation: slideUp 0.6s ease-out 0.1s both;
}

/* Override Bootstrap p-4 class for container-fluid */
.container-fluid.p-4 {
    padding: 0 !important;
    margin-left: 0;
    margin-right: 0;
    max-width: 100vw;
}

/* Custom p-4 class with reduced padding */
.p-4 {
    padding: 1.2rem !important;
}

/* 调整左右列间距 */
.row .col-lg-4.mb-4.h-100 {
    padding-left: 0.5rem;
    
}

.row .col-lg-8.mb-4.h-100 {
    padding-right: 0.5rem;
}

/* Custom gap-1 class with increased gap */
.gap-1 {
    gap: 0.5rem !important;
}

.modern-info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.custom-student-card {
    padding: 0;
    margin-bottom: 20px;
}

.custom-student-card .info-item {
    padding: 2px 2px;
    gap: 2px;
}

.custom-student-card .info-value {
    line-height: 1.2;
}

.custom-student-card .info-label {
    line-height: 1;
}

.custom-student-card .row {
    gap: 0;
}

.row.align-items-center.g-3 {
    background-color: #ffffff;
    padding-top: 0 !important;
    margin-top: 0 !important;
    align-items: center;
}

.row.align-items-center.g-3 .col-md-3 {
    padding-left: 10px;
    padding-right: 10px;
}

.row.align-items-center.g-3 .info-item {
    margin: 4px 0;
}

.student-info {
    background: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-shadow: none !important;
    margin-bottom: 10px !important;
    margin-top: -12px !important;
}

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

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 0;
}

.info-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.info-value {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.info-item.highlight .info-value {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 700;
}

/* 印章识别结果胶囊样式 */
.stamp-detection-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 12px; /* 减小内边距 */
    border-radius: 16px; /* 减小圆角 */
    font-size: 12px; /* 减小字体大小 */
    font-weight: 600;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 识别到印章样式 - 淡绿色背景和绿色文字 */
.stamp-detection-badge.stamp-detected {
    background: rgba(52, 199, 89, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(52, 199, 89, 0.3);
    backdrop-filter: blur(10px); /* 确保有毛玻璃效果 */
    -webkit-backdrop-filter: blur(10px);
}

/* 未识别到印章样式 - 淡红色背景和红色文字 */
.stamp-detection-badge.no-stamp-detected {
    background: rgba(255, 59, 48, 0.15);
    color: var(--danger-color);
    border: 1px solid rgba(255, 59, 48, 0.3);
    backdrop-filter: blur(10px); /* 添加毛玻璃效果 */
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

/* 未识别到印章胶囊悬停效果 */
.stamp-detection-badge.no-stamp-detected:hover {
    background: rgba(255, 59, 48, 0.25);
    border-color: rgba(255, 59, 48, 0.5);
}

/* 未识别到印章胶囊悬停提示 */
.stamp-detection-badge.no-stamp-detected:hover::after {
    content: '请上传已盖章的材料，若已盖章请忽略此消息';
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: normal;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 悬停提示的小三角形 */
.stamp-detection-badge.no-stamp-detected:hover::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 20px;
    border-width: 6px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
    z-index: 1000;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .stamp-detection-badge {
        top: 10px;
        left: 10px;
        padding: 4px 10px;
        font-size: 11px;
    }
}

/* Glass Cards with blur effect */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    transition: all var(--transition-base);
    animation: scaleIn 0.5s ease-out 0.2s both;
    display: flex;
    flex-direction: column;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.glass-card:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* Make card-body fill available space */
.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    padding: 0;
}

.glass-card-header {
    background: white;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 55px;
}

.glass-card-header h5,
.glass-card-header h6 {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.action-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

#fileUploadSection .action-buttons {
    width: 100%;
}

.action-buttons .glass-btn {
    padding: 4px 12px;
    font-size: 11px;
    line-height: 1.4;
    border-radius: 8px;
}

/* Glass Buttons with stunning hover effects */
.glass-btn {
    padding: 11px 22px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    border: none;
    transition: all var(--transition-base);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-icon {
    font-size: 16px;
    transition: transform var(--transition-spring);
}

.glass-btn:hover .btn-icon {
    transform: scale(1.2) rotate(5deg);
}

.glass-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.glass-btn:active::before {
    width: 300px;
    height: 300px;
}

.glass-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0088FF);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.glass-btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.45);
}

.glass-btn-secondary {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-hover));
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.glass-btn-secondary:hover {
    background: linear-gradient(135deg, var(--bg-hover), #E8E8ED);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.glass-btn-success {
    background: linear-gradient(135deg, var(--success-color), #30D158);
    color: white;
    box-shadow: 0 4px 16px rgba(52, 199, 89, 0.3);
}

.glass-btn-success:hover {
    background: linear-gradient(135deg, #30D158, #32D74B);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(52, 199, 89, 0.45);
}

.glass-btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #FF453A);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 59, 48, 0.3);
}

.glass-btn-danger:hover {
    background: linear-gradient(135deg, #FF453A, #FF6259);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 59, 48, 0.45);
}

.glass-btn-outline {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.glass-btn-outline:hover {
    background: rgba(242, 242, 247, 0.8);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.glass-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}
.preview-controls.glass-controls .btn.glass-btn.glass-btn-sm {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-base);
}
.preview-controls.glass-controls .btn.glass-btn.glass-btn-sm:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.glass-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    color: white !important;
}

.glass-btn:active {
    transform: scale(0.97);
}

/* Custom Checkbox */
.container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.container {
    display: block;
    position: relative;
    cursor: pointer;
    font-size: 20px;
    user-select: none;
}

/* Create a custom checkbox */
.checkmark {
    position: relative;
    top: 0;
    left: 0;
    height: 1.3em;
    width: 1.3em;
    background-color: #ccc;
    border-radius: 25px;
    transition: 0.15s;
}

/* When the checkbox is checked, add a blue background */
.container input:checked ~ .checkmark {
    background-color: var(--success-color);
    border-radius: 25px;
    transition: 0.15s;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.container input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
    left: 0.45em;
    top: 0.25em;
    width: 0.25em;
    height: 0.5em;
    border: solid white;
    border-width: 0 0.15em 0.15em 0;
    transform: rotate(45deg);
}

/* Glass Table */
.glass-table-container {
    overflow-x: auto;
    overflow-y: auto;
    width: 100%;
    height: var(--activity-height); /* 活动记录高度 - 动态计算 */
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    transition: height var(--transition-base); /* 平滑高度过渡动画 */
}

.glass-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}



.glass-table thead th {
    background: rgba(242, 242, 247, 0.8);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 12px;
    padding: 16px 14px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.glass-table tbody tr {
    transition: all var(--transition-fast);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.4);
}

.glass-table tbody tr:hover {
    background: rgba(245, 245, 245, 0.8);
    transform: scale(1.01);
}

.glass-table tbody tr.table-row-selected {
    background: rgba(0, 122, 255, 0.12);
    box-shadow: inset 4px 0 0 var(--primary-color);
}

.glass-table tbody tr.row-incomplete {
    box-shadow: inset 4px 0 0 var(--danger-color);
}

.editable-cell input.form-control:focus {
    box-shadow: none; /* 移除输入框的发光特效 */
    transform: none; /* 移除输入框的放大效果 */
}


.glass-table tbody td {
    padding: 16px 14px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    transition: all var(--transition-fast);
    color: var(--text-primary);
}

.editable-cell {
    cursor: text;
    position: relative;
}

.editable-cell:hover {
    background: rgba(0, 122, 255, 0.06);
}

.empty-cell {
    background: rgba(255, 149, 0, 0.12);
    color: var(--warning-color);
    font-weight: 600;
}

/* Enhanced Preview Area with folder animation */
.glass-preview {
    position: relative;
    height: var(--preview-height);/* 材料预览高度 - 动态计算 */
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: height var(--transition-base); /* 平滑高度过渡动画 */
}

.glass-preview-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(242, 242, 247, 0.4), rgba(255, 255, 255, 0.6));
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    margin: 5px;
    height: calc(100% - 10px);
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
}

/* 当预览区域有文件时显示为白色背景 */
.preview-area.glass-preview-area.has-files,
.glass-preview-area.has-files {
    background: white;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.glass-preview-area:hover .folder-icon-wrapper {
    transform: scale(1.15) translateY(-8px);
}

.glass-preview-area:hover .folder-icon {
    animation: folderPulse 1.5s ease-in-out infinite;
}

@keyframes folderPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Empty state styles for file preview area */
.empty-state {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100%;
        padding: 20px;
        animation: fadeIn 0.8s ease-in-out, float 2s ease-in-out infinite;
    }

.empty-state .file-icon {
        font-size: 72px;
        margin-bottom: 24px;
        display: inline-block;
        line-height: 1;
        color: var(--primary-color);
        /* 去掉bounce动画，保持与容器float动画同步 */
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    }

.empty-state p {
        font-size: 18px;
        color: var(--text-color-light);
        margin: 0;
        line-height: 1.8;
        max-width: 350px;
        font-weight: 500;
        background: linear-gradient(135deg, var(--text-color), var(--text-color-light));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: textShine 3s ease-in-out infinite;
    }

    .empty-state .empty-title {
        color: #000000;
        font-size: 20px; /* 放大黑色标题 */
        font-weight: 900; /* 黑色标题加粗 */
        background: none;
        background-clip: initial;
        -webkit-background-clip: initial;
        -webkit-text-fill-color: initial;
        animation: none;
    }

    .empty-state .empty-subtitle {
        color: #aaaaaa;
        font-size: 14px; /* 缩小灰色标题 */
        background: none;
        background-clip: initial;
        -webkit-background-clip: initial;
        -webkit-text-fill-color: initial;
        animation: none;
    }

/* New animations for empty state */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

@keyframes textShine {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

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

.glass-empty {
    text-align: center;
    color: var(--text-secondary);
    z-index: 1;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.folder-icon-wrapper {
    display: inline-block;
    margin-bottom: 10px;
    transition: transform var(--transition-spring);
}

.folder-icon {
    font-size: 88px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.empty-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-subtitle {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
}

.preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: zoomIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.preview-pdf {
    text-align: center;
    padding: 40px;
}

.preview-controls.glass-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid transparent;
    border-radius: var(--radius-2xl);
    box-shadow: none;
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    max-width: 600px;
    z-index: 100;
}

.page-info {
    font-size: 13px;
    color: #2d2d2d;
    font-weight: 700;
    flex: 1;
    text-align: center;
    margin: 0 12px;
    background: rgba(255, 255, 255, 0.6);
    padding: 8px 10px;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Improved file actions layout */
.glass-file-actions {
    background: rgba(249, 249, 249, 0.8);
    backdrop-filter: blur(10px);
}

.file-info-text {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    text-align: right;
    margin-left: auto;
    flex: 1;
}

/* Glass Modals with unified animation */
.glass-modal {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: modalBounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Modern Modal for export */
.modern-modal {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: modalBounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: all var(--transition-base) ease-in-out;
}

@keyframes modalBounceIn {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.glass-modal-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 24px 28px;
}

.glass-modal-header .modal-title {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.3px;
}

.glass-modal-body {
    padding: 28px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 700;
    line-height: 1.8;
}

.glass-modal-footer {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-light);
    padding: 20px 28px;
    display: flex;
    gap: 12px;
}

/* Beautiful startup modal */
.startup-modal {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(249, 249, 249, 0.95));
    position: relative;
    overflow: hidden;
}

.startup-modal-body {
    padding-bottom: 1rem !important;
}

.startup-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(0, 136, 255, 0.05));
    animation: floatCircle 20s ease-in-out infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    left: -50px;
    animation-delay: 0s;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    right: -100px;
    animation-delay: -7s;
}

/* circle-3 removed as requested */

@keyframes floatCircle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.startup-icon {
    font-size: 80px;
    animation: bounceRotate 4s ease-in-out infinite;
}

@keyframes bounceRotate {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-5px) rotate(5deg);
    }
}

.startup-title {
    font-size: 24px;
    font-weight: 900;
    color: #2e3134;
    animation: fadeIn 0.8s ease-out 0s both;
}

.startup-system-title {
    font-size: 30px;
    font-weight: bolder;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.system-title {
    color: var(--primary-color);
    font-weight: bolder;
}

.department-text {
    color:#bec5d1 !important;
}



.startup-subtitle {
    font-size: 15px;
    font-weight: 400;
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.startup-actions button:nth-child(1) {
    opacity: 1;
    animation: fadeIn 0.8s ease-out 0.7s both;
}

.startup-actions button:nth-child(2) {
    opacity: 1;
    animation: fadeIn 0.8s ease-out 1s both;
}

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

/* Glass Inputs */
.glass-input {
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 15px;
    transition: all var(--transition-base);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-weight: 500;
}

.glass-input:focus {
    border-color: var(--primary-color);
    outline: none;
    background: rgba(255, 255, 255, 0.9);
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* Notifications */
.notification {
    position: fixed;
    right: 24px;
    background: rgba(255, 255, 255, 0.45); /* 提高透明度 */
    backdrop-filter: blur(30px); /* 增加模糊半径 */
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15); /* 更淡的边框 */
    padding: 12px 18px;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15); /* 增强阴影 */
    z-index: 10000;
    min-width: 280px;
    animation: slideInRight 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: bottom 0.3s ease-out, opacity 0.3s ease-out;
}

/* 导出成功模态框 */

.export-success-modal-content {
    background: #f3f3f390;
    border: 1px solid #b0b0b0;
    box-shadow: var(--glass-shadow-lg);
    border-radius: var(--radius-lg);
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.export-success-modal-header {
    border-bottom: 1px solid var(--glass-border);
}

.export-success-modal-title {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.export-success-modal-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 24px;
    position: relative;
    overflow: hidden;
}

.export-success-modal-footer {
    border-top: 1px solid var(--glass-border);
    padding: 20px 24px;
}

/* 礼花效果 */
.fireworks-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
    overflow: visible;
    z-index: 0;
}

.firework {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0;
    animation: firework-burst 1.5s ease-out forwards;
    animation-delay: var(--delay);
}

.firework::before,
.firework::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    background: var(--color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
}

.firework::before {
    animation: firework-spark 1.5s ease-out forwards;
    animation-delay: var(--delay);
}

.firework::after {
    animation: firework-spark 1.5s ease-out forwards;
    animation-delay: calc(var(--delay) + 0.2s);
    transform: translate(-50%, -50%) rotate(90deg);
}

/* 火花动画 */
@keyframes firework-spark {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
        box-shadow: 
            0 0 0 var(--color),
            0 0 0 rgba(255, 255, 255, 0.8);
    }
    20% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        box-shadow: 
            0 0 8px var(--color),
            0 0 16px rgba(255, 255, 255, 0.8);
    }
    100% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
        box-shadow: 
            0 0 0 var(--color),
            0 0 0 rgba(255, 255, 255, 0.8);
    }
}

/* 礼花爆炸效果 */
@keyframes firework-burst {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
}

/* 居中类 */
.centered {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 成功内容 */
.success-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 0;
    animation: fadeInUp 0.6s ease-out forwards 0.3s;
    opacity: 0;
}

/* 成功内容居中时垂直排列 */
.success-content.centered {
    flex-direction: column;
}

.success-message {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

.success-message.with-fireworks {
    font-size: 28px;
    animation: popIn 0.5s ease-out forwards 0.4s;
    opacity: 0;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards 0.2s;
    opacity: 0;
    transform: scale(0.3);
}

/* 弹跳动画 */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.file-name-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.file-name-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.file-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(67, 97, 238, 0.1);
    padding: 16px 28px;
    border-radius: var(--radius-md);
    word-break: break-all;
    max-width: 90%;
    border: 1px solid rgba(67, 97, 238, 0.3);
    box-shadow: var(--shadow-sm);
}

/* 淡入上移动画 */
@keyframes fadeInUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 右侧滑入动画 */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
}

.notification-icon {
    font-size: 24px;
    line-height: 1;
    animation: emojiBounce 0.8s ease-out 0.3s both;
}

/* Emoji柔和动画 */
@keyframes emojiBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.notification.success {
    border-left: 4px solid var(--success-color);
}

.notification.error {
    border-left: 4px solid var(--danger-color);
}

.notification.warning {
    border-left: 4px solid var(--warning-color);
}

.notification.info {
    border-left: 4px solid var(--primary-color);
}

/* 删除通知专用样式 - 与其他通知保持一致 */
.notification.delete {
    border-left: 4px solid var(--info-color); /* 使用与info通知相同的边框颜色 */
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 确保删除通知的图标有动画效果 */
.notification.delete .notification-icon {
    animation: emojiBounce 0.8s ease-out 0.3s both;
    font-size: 24px;
}

/* Mode Card */
.mode-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 999;
    min-width: 440px;
    max-width: 90%;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-spring);
}

.mode-card.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    animation: modalBounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-iteration-count: 1;
    animation-fill-mode: both;
}

/* 确保每次切换模式时动画都能重新播放 */
.mode-card:not(.show) {
    animation: none;
}

.mode-hint {
    font-size: 14px;
    font-weight: 500;
}

.file-limit-info {
    background: rgba(255, 149, 0, 0.08);
    border: 1px solid rgba(255, 149, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    font-size: 13px;
    color: var(--warning-color);
    line-height: 1.8;
    font-weight: 500;
}

.info-line {
    margin-bottom: 4px;
}

.info-line:last-child {
    margin-bottom: 0;
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
    margin-top: 16px;
}

.copyright a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-weight: 600;
}

.icon-wrapper {
    font-size: 80px;
    line-height: 1;
}

/* Import Drop Zone */
.drop-zone {
    border: 3px dashed var(--border-light);
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
    cursor: pointer;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.drop-zone:hover {
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.drop-zone.dragover {
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    transform: scale(1.02);
}

.drop-zone-icon {
    font-size: 80px;
    color: var(--primary-color);
    line-height: 1;
    animation: bounce 1.5s infinite;
}

/* Drop zone uploaded state */
.drop-zone.uploaded {
    justify-content: flex-start;
    padding-top: 60px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Copyright Footer */
.copyright-footer {
    font-size: 13px;
    color: var(--text-secondary);
    padding-bottom: 5px;
    padding-top: 3px;
    text-align: center;
}

.copyright-footer a {
    color: rgba(0, 122, 255, 0.6); 
    text-decoration: none;
    transition: all var(--transition-fast);
    font-weight: 600;
}

.copyright-footer a:hover {
     color: rgba(0, 122, 255, 0.6); 
}

/* Unified options popup animations */
.options-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.options-popup,
.category-options,
.level-options,
.date-picker {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 1001;
    min-width: 240px;
    max-width: 320px;
    width: auto;
    animation: popupBounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

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

.options-hint {
    padding: 14px 18px;
    background: white;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.options-list {
    max-height: 180px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 12px;
    gap: 10px;
}

.options-item,
.category-option,
.level-option {
    flex: unset;
    width: 100%;
    min-width: unset;
    max-width: unset;
    padding: 10px 14px;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.options-item:last-child,
.category-option:last-child,
.level-option:last-child {
    border-bottom: none;
}

.options-item:hover,
.category-option:hover,
.level-option:hover {
    background: rgba(0, 122, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.2);
    border-color: rgba(0, 122, 255, 0.3);
}

.options-item.selected,
.category-option.selected,
.level-option.selected {
    background: linear-gradient(135deg, var(--primary-color), #0088FF);
    color: white;
    font-weight: 700;
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
    transform: translateY(-1px);
}

.options-input-container {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.options-input-container input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-base);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) inset;
}

.options-input-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.08);
}

.options-input-container button {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

.options-input-container .btn-primary {
    background: linear-gradient(135deg, #007AFF, #0088FF);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.options-input-container .btn-secondary {
    background: rgba(242, 242, 247, 0.8);
    color: var(--text-primary);
}

.options-input-container .btn-secondary:hover {
    background: rgba(232, 232, 237, 0.8);
}

.options-input-container .btn-primary:hover {
    background: linear-gradient(135deg, #0051D5, #007AFF);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.options-input-container button[type="button"] {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.options-input-container button[type="button"]:hover {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.options-input-container button[type="submit"] {
    background: linear-gradient(135deg, var(--primary-color), #0088FF);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.options-input-container button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

/* Date Picker */
.date-picker {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 1001;
    min-width: 320px;
    max-width: 320px;
    width: auto;
    animation: popupBounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.date-picker::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--glass-border);
}

.date-picker::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid var(--glass-bg);
}

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

.date-picker-toggle {
    display: flex;
    gap: 6px;
    margin-bottom: 0px;
    background: white;
    padding: 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.toggle-item {
    flex: 1;
    padding: 14px 18px;
    text-align: center;
    cursor: pointer;
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    transition: all var(--transition-base);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: white;
}

.toggle-item.active {
    background: linear-gradient(135deg, var(--primary-color), #0088FF);
    color: white;
    box-shadow: none;
    transform: none;
}

.date-input-container {
    margin-bottom: 12px;
}

.date-input-group {
    display: flex;
    gap: 10px;
    padding: 12px;
}

.date-input-year,
.date-input-month,
.date-input-day {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-base);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.date-input-year:focus,
.date-input-month:focus,
.date-input-day:focus {
    outline: none;
    border-color: rgba(0, 122, 255, 0.3);
    background: rgba(0, 122, 255, 0.08);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.2);
    transform: translateY(-3px);
}

.date-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-base);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.date-input:focus {
    outline: none;
    border-color: rgba(0, 122, 255, 0.3);
    background: rgba(0, 122, 255, 0.08);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.2);
    transform: translateY(-3px);
}

.date-input-buttons .btn {
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

.date-input-buttons .btn-primary {
    background: linear-gradient(135deg, #007AFF, #0088FF);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.date-input-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #0051D5, #007AFF);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.date-input-buttons .btn-secondary {
    background: rgba(242, 242, 247, 0.8);
    color: var(--text-primary);
    border: none;
}

.date-input-buttons .btn-secondary:hover {
    background: rgba(232, 232, 237, 0.8);
}

.date-picker-error {
    display: none;
    padding: 10px;
    background: rgba(255, 59, 48, 0.08);
    border: 1px solid rgba(255, 59, 48, 0.2);
    border-radius: var(--radius-xs);
    color: var(--danger-color);
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.custom-date-input-field {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-base);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

.custom-date-input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.date-input-buttons {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.date-input-buttons .btn {
    flex: 1;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(242, 242, 247, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Responsive Design improvements */
@media (max-width: 992px) {
    .modern-app {
        padding: 16px;
        padding-top: 0;
        padding-bottom: 10px;
    }
    
    .header-flat {
        padding: 20px 16px;
        margin: 0 -16px 24px;
    }
    
    .glass-card-header {
        padding: 16px 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .action-buttons {
        display: flex;
        gap: 4px;
        flex-wrap: wrap;
    }
    
    .action-buttons .glass-btn {
        padding: 4px 12px;
        font-size: 11px;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .modern-app {
        padding: 12px;
        padding-top: 0;
        padding-bottom: 10px;
    }
    
    /* 学生信息卡片响应式 - 两列布局 */
    .student-info .row {
        align-items: flex-start;
    }
    .student-info .info-item {
        text-align: left;
    }
    .student-info .row > .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
        padding-right: 8px;
        padding-left: 8px;
    }
    
    /* 空表格提示样式 */
    .font-large {
        font-size: 1.25rem;
        font-weight: 500;
    }
    
    .header-flat {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 24px 12px;
        margin: 0 -12px 24px;
    }
    
    .icon-wrapper-header {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .modern-info-card {
        padding: 0;
    }
    
    .info-item {
        text-align: center;
    }
    
    .glass-btn {
        font-size: 13px;
        padding: 10px 18px;
    }
    
    .mode-card {
        min-width: 90%;
        max-width: 400px;
    }
    
    .notification {
        right: 12px;
        left: 12px;
        min-width: auto;
    }
    
    .glass-table-container {
        max-height: 500px;
    }
    
    .glass-preview-area {
        min-height: 300px;
        margin: 12px;
    }
    
    .options-popup,
    .date-picker,
    .category-options,
    .level-options {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .header-flat h3 {
        font-size: 20px;
    }
    
    .header-flat p {
        font-size: 13px;
    }
    
    .info-value {
        font-size: 15px;
    }
    
    .info-item.highlight .info-value {
        font-size: 24px;
    }
    
    .glass-card-header h5 {
        font-size: 16px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .header-flat,
    .header-actions,
    .action-buttons,
    .glass-btn,
    .notification {
          display: none !important;
      }
    }

/* Custom Modal Backdrop */
.modal-backdrop {
    background-color: rgba(255, 255, 255, 0.6); /* 半透明白色背景 */
    backdrop-filter: blur(40px); /* 毛玻璃效果 */
    -webkit-backdrop-filter: blur(10px); /* Safari 兼容 */
}

/* 引导页样式 */
.guided-tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
}

.tour-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    pointer-events: all;
    animation: fadeIn 0.3s ease;
}

.tour-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    pointer-events: none;
    transition: all 0.3s ease;
}

.tour-highlight-container {
    position: absolute;
    pointer-events: none;
    z-index: 10000;
    border-radius: 12px;
    box-shadow: 0 0 0 4px var(--primary-color), 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: pulseHighlight 2s ease-in-out infinite;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: all 0.3s ease;
}

@keyframes pulseHighlight {
    0%, 100% {
        box-shadow: 0 0 0 4px var(--primary-color), 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px var(--primary-color), 0 12px 48px rgba(0, 0, 0, 0.4);
    }
}

.tour-popup {
    position: absolute;
    z-index: 10001;
    min-width: 280px;
    max-width: 400px;
    border-radius: 16px;
    pointer-events: all;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.tour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.tour-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.tour-step-indicator {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
}

.tour-body {
    padding: 24px;
}

.tour-body h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.tour-body p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.tour-body .emoji {
    font-size: 48px;
    margin-bottom: 16px;
}

.tour-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
    gap: 12px;
}

.tour-footer .btn-group-left {
    display: flex;
    gap: 12px;
}

.tour-footer .btn-group-right {
    margin-left: auto;
}

.tour-progress {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 12px;
}

.tour-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width 0.3s ease;
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% {
        box-shadow: 0 0 5px var(--primary-color);
    }
    50% {
        box-shadow: 0 0 15px var(--primary-color);
    }
}

.tour-popup .btn {
    min-width: 80px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tour-popup .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.tour-popup .btn:active {
    transform: translateY(0);
}

#tourSkipBtn {
    color: var(--text-secondary);
    border-color: rgba(255, 255, 255, 0.2);
}

#tourSkipBtn:hover {
    background: rgba(255, 255, 255, 0.1);
}

#tourViewTutorialBtn {
    padding: 8px 12px;
    font-size: 12px;
    color: var(--primary-color);
    background: transparent;
    border: none;
    text-decoration: underline;
}

#tourViewTutorialBtn:hover {
    background: rgba(0, 123, 255, 0.1);
    text-decoration: none;
}

/* 详细教程模态框样式 */
.tutorial-content h6 {
    font-size: 15px;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tutorial-content h6::before {
    content: "📌";
    font-size: 18px;
}

.tutorial-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-left: 26px;
}

/* 淡入淡出动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tour-popup {
        max-width: 90vw;
        margin: 0 !important; /* 移除左右margin，确保居中 */
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .tour-footer {
        flex-wrap: nowrap; /* 不让按钮换行 */
        justify-content: space-between;
        gap: 8px;
    }
    
    .tour-progress {
        order: -1;
        width: 100%;
        margin: 0 0 12px 0;
    }
    
    /* 移动端按钮小一点 */
    .tour-popup .glass-btn,
    .tour-popup.special-popup .glass-btn {
        padding: 6px 12px !important;
        font-size: 12px !important;
        min-width: auto !important;
    }
    
    .tour-footer .btn-group-left {
        display: flex;
        gap: 8px;
        margin-right: auto;
    }
    
    .tour-footer .btn-group-right {
        margin-left: auto;
    }
}

/* 调整所有glass-modal-body的padding */
.glass-modal-body {
    padding-top: 16px !important;
    padding-bottom: 24px !important;
}

/* 步骤6特殊弹窗样式 - 重新设计 */
.tour-popup.special-popup {
    max-width: 750px !important;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); /* 移除发光效果 */
    border: 1px solid rgba(255, 255, 255, 0.2) !important; /* 使用普通玻璃边框 */
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

/* 步骤6弹窗的header、body和footer统一背景 */
.tour-popup.special-popup .tour-header,
.tour-popup.special-popup .tour-body,
.tour-popup.special-popup .tour-footer {
    background: transparent !important;
    border: none !important;
}

/* 调整步骤6的header样式 */
.tour-popup.special-popup .tour-header {
    padding: 16px 24px !important;
    border-bottom: 1px solid rgba(100, 181, 246, 0.2) !important;
}

/* 调整步骤6的body样式 */
.tour-popup.special-popup .tour-body {
    padding: 24px !important;
}

/* 调整步骤6的footer样式 */
.tour-popup.special-popup .tour-footer {
    padding: 16px 24px !important;
    border-top: 1px solid rgba(100, 181, 246, 0.2) !important;
    justify-content: center !important; /* 让按钮居中 */
}

/* 电脑端步骤6的按钮布局 */
@media (min-width: 769px) {
    .tour-popup.special-popup .tour-footer {
        justify-content: flex-end !important; /* 完成按钮放右边 */
    }
    
    .tour-popup.special-popup .btn-group-left {
        margin-right: 0 !important;
    }
    
    .tour-popup.special-popup .btn-group-right {
        margin-left: 0 !important;
    }
}

/* 步骤6的大emoji样式 */
.tour-popup.special-popup .tour-emoji {
    font-size: 100px;
    text-align: center;
    margin-bottom: 20px;
    animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-25px); }
}

.tour-popup.special-popup .tour-content h5 {
    font-size: 32px;
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 20px;
    text-align: center;
}

.tour-popup.special-popup .tour-content p {
    font-size: 20px;
    color: #555;
    margin-bottom: 32px;
    text-align: center;
    line-height: 1.7;
}

.tour-popup.special-popup .tour-progress {
    margin-bottom: 32px;
}

.tour-popup.special-popup .tour-footer {
    justify-content: center;
}

/* 步骤6的按钮使用与前面引导相同的样式 */
.tour-popup.special-popup .glass-btn {
    padding: 11px 22px !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    position: relative !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    min-width: auto !important;
}

.tour-popup.special-popup .glass-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0088FF) !important;
    color: white !important;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3) !important;
}

.tour-popup.special-popup .glass-btn-secondary {
    background: rgba(255, 255, 255, 0.2) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px) !important;
}
