/* 全局样式 */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Minecraft', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #f5f5f7;
    color: #1d1d1f;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 420px;
    padding: 0 20px;
}

/* Toast notification styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    position: relative;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    width: 300px;
    max-width: 90vw;
    transform: translateX(120%);
    animation: toastSlideIn 0.3s ease forwards;
    overflow: hidden;
}

.toast.toast-success {
    border-left: 4px solid #34c759;
}

.toast.toast-error {
    border-left: 4px solid #ff453a;
}

.toast.toast-info {
    border-left: 4px solid #007aff;
}

.toast.toast-warning {
    border-left: 4px solid #ff9500;
}

.toast-content {
    display: flex;
    align-items: flex-start;
}

.toast-icon {
    margin-right: 12px;
    font-size: 20px;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #1d1d1f;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #86868b;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.toast-close:hover {
    background-color: rgba(134, 134, 139, 0.2);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: rgba(134, 134, 139, 0.2);
}

.toast-progress-bar {
    height: 100%;
    width: 0;
    background-color: #007aff;
}

.toast.toast-success .toast-progress-bar {
    background-color: #34c759;
}

.toast.toast-error .toast-progress-bar {
    background-color: #ff453a;
}

.toast.toast-info .toast-progress-bar {
    background-color: #007aff;
}

.toast.toast-warning .toast-progress-bar {
    background-color: #ff9500;
}

@keyframes toastSlideIn {
    to {
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    to {
        transform: translateX(150%);
    }
}

@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        width: 100%;
    }
}

/* 卡片样式 */
.card {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 40px;
    transition: all 0.3s ease;
    max-width: 1200px;
    margin: 0 auto;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.card-header p {
    color: #86868b;
    font-size: 15px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #86868b;
    font-weight: 500;
}

.form-control {
    width: 100%;
    height: 50px;
    background-color: rgba(142, 142, 147, 0.08);
    border: none;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 16px;
    color: #1d1d1f;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    background-color: rgba(142, 142, 147, 0.12);
    box-shadow: 0 0 0 4px rgba(0, 125, 250, 0.1);
}

/* 按钮样式 */
.btn {
    cursor: pointer;
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0 25px;
    font-size: 16px;
    line-height: 48px;
    border-radius: 12px;
    transition: all 0.2s ease-in-out;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #0066CC 0%, #2483E3 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0054a6 0%, #1e76d2 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.2);
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 24px;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.modal-body {
    text-align: center;
    margin-bottom: 25px;
}

.modal-body p {
    font-size: 16px;
    color: #86868b;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
}

.btn-modal {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.btn-cancel {
    background-color: #f5f5f7;
    color: #86868b;
    margin-right: 10px;
}

.btn-confirm {
    background: linear-gradient(135deg, #0066CC 0%, #2483E3 100%);
    color: white;
    margin-left: 10px;
}

.btn-cancel:hover, .btn-confirm:hover {
    opacity: 0.9;
}

/* 链接样式 */
.card-footer {
    text-align: center;
    margin-top: 30px;
}

.card-footer a {
    color: #0066CC;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.card-footer a:hover {
    color: #004080;
    text-decoration: underline;
}

/* 错误消息样式 */
.error-message {
    background-color: rgba(255, 149, 149, 0.1);
    color: #ff3b30;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.success-message {
    background-color: rgba(52, 199, 89, 0.1);
    color: #34c759;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

/* 背景图案 */
.background-baise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 15% 50%, rgba(0, 102, 204, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 85% 30%, rgba(0, 102, 204, 0.05) 0%, transparent 20%);
}

/* 背景图案2 */
.background-lanse {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    margin: 0;
    /*background: linear-gradient(-45deg, #dae, #f66, #3c9, #09f, #66f);*/
    background: linear-gradient(-45deg, #e3f2fd, #bbdefb, #90caf9, #64b5f6, #42a5f5, #2196f3, #1e88e5, #1976d2, #1565c0, #0d47a1);
    background-size: 200% 200%;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    animation: gradient 8s ease infinite;
}

.scrollable-container {
    scrollbar-width: auto; /* Firefox */
    scrollbar-color: transparent transparent; /* Firefox */
}

.scrollable-container::-webkit-scrollbar {
    width: 8px; /* 滚动条宽度 */
}

.scrollable-container::-webkit-scrollbar-track {
    background-color: transparent; /* 滚动条轨道背景色 */
}

.scrollable-container::-webkit-scrollbar-thumb {
    background-color: transparent; /* 滚动条滑块颜色 */
    border-radius: 4px; /* 滚动条滑块圆角 */
}

@keyframes gradient {
    0% {
    background-position: 0 12%;
    }

    50% {
    background-position: 100% 100%;
    }

    100% {
    background-position: 0 12%;
    }
}

/* 新增的渐变背景样式 */
:root {
  font-size: 15px;
}

.background-pattern2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin: 0;
  min-height: 100vh;
  background-color: #e493d0;
  background-image: 
    radial-gradient(closest-side, rgba(235, 105, 78, 1), rgba(235, 105, 78, 0)),
    radial-gradient(closest-side, rgba(243, 11, 164, 1), rgba(243, 11, 164, 0)),
    radial-gradient(closest-side, rgba(254, 234, 131, 1), rgba(254, 234, 131, 0)),
    radial-gradient(closest-side, rgba(170, 142, 245, 1), rgba(170, 142, 245, 0)),
    radial-gradient(closest-side, rgba(248, 192, 147, 1), rgba(248, 192, 147, 0));
  background-size: 
    130vmax 130vmax,
    80vmax 80vmax,
    90vmax 90vmax,
    110vmax 110vmax,
    90vmax 90vmax;
  background-position:
    -80vmax -80vmax,
    60vmax -30vmax,
    10vmax 10vmax,
    -30vmax -10vmax,
    50vmax 50vmax;
  background-repeat: no-repeat;
  animation: 5s movement linear infinite;
}

.background-pattern2::after {
  content: '';
  display: block;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@keyframes movement {
  0%, 100% {
    background-size: 
      130vmax 130vmax,
      80vmax 80vmax,
      90vmax 90vmax,
      110vmax 110vmax,
      90vmax 90vmax;
    background-position:
      -80vmax -80vmax,
      60vmax -30vmax,
      10vmax 10vmax,
      -30vmax -10vmax,
      50vmax 50vmax;
  }
  25% {
    background-size: 
      100vmax 100vmax,
      90vmax 90vmax,
      100vmax 100vmax,
      90vmax 90vmax,
      60vmax 60vmax;
    background-position:
      -60vmax -90vmax,
      50vmax -40vmax,
      0vmax -20vmax,
      -40vmax -20vmax,
      40vmax 60vmax;
  }
  50% {
    background-size: 
      80vmax 80vmax,
      110vmax 110vmax,
      80vmax 80vmax,
      60vmax 60vmax,
      80vmax 80vmax;
    background-position:
      -50vmax -70vmax,
      40vmax -30vmax,
      10vmax 0vmax,
      20vmax 10vmax,
      30vmax 70vmax;
  }
  75% {
    background-size: 
      90vmax 90vmax,
      90vmax 90vmax,
      100vmax 100vmax,
      90vmax 90vmax,
      70vmax 70vmax;
    background-position:
      -50vmax -40vmax,
      50vmax -30vmax,
      20vmax 0vmax,
      -10vmax 10vmax,
      40vmax 60vmax;
  }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .card {
        padding: 30px 20px;
    }
    
    .card-header h1 {
        font-size: 24px;
    }
    
    .form-control {
        height: 45px;
    }
    
    .btn {
        line-height: 45px;
    }
}