/* 激活页面特定样式 - 现代设计 */
:root {
    --primary-color: #4361ee;
    --primary-hover: #3a56d4;
    --primary-light: #eef2ff;
    --success-color: #10b981;
    --error-color: #ef4444;
    --dark-text: #1f2937;
    --medium-text: #4b5563;
    --light-text: #6b7280;
    --border-color: #e5e7eb;
    --input-bg: #f9fafb;
    --card-bg: #ffffff;
    --body-bg: #f3f4f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: 0.2s ease-in-out;
    --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }
  
  /* 基础样式重置 */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    background-color: var(--body-bg);
    color: var(--dark-text);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  .container {
    max-width: 480px;
    margin: 3rem auto;
    padding: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: transparent;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 1;
  }
  
  /* 页眉样式 */
  header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
  }
  
  header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
  }
  
  header::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
  }
  
  header h1 {
    font-size: 1.75rem;
    margin: 0;
    text-align: center;
    color: white;
    font-weight: 700;
    position: relative;
    z-index: 1;
  }
  
  /* 表单容器 */
  .form-container {
    padding: 0;
  }
  
  .form-card {
    background-color: rgba(180, 180, 180, 0.1);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }
  
  /* 表单头部 */
  .form-header {
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  .form-header h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }
  
  .form-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
  }
  
  /* Tab按钮样式 */
  .form-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
  }
  
  .tab-btn {
    flex: 1;
    padding: 0.8rem 0.5rem;
    border: none;
    background-color: rgba(249, 250, 251, 0.9);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    color: var(--medium-text);
    position: relative;
    z-index: 1;
    white-space: nowrap;
  }
  
  .tab-btn.active {
    background-color: var(--primary-color);
    color: white;
  }
  
  .tab-btn:hover:not(.active) {
    background-color: #e9ecf8;
    color: var(--primary-color);
  }
  
  .tab-btn:first-child {
    border-right: 1px solid var(--border-color);
  }
  
  /* 表单组样式 */
  .form-group {
    margin-bottom: 1.5rem;
    position: relative;
  }
  
  label {
    font-weight: 600;
    color: white;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
    transition: var(--transition);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  }
  
  input[type="text"],
  input[type="password"],
  input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 1rem;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark-text);
  }
  
  input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
    background-color: white;
  }
  
  .form-group:focus-within label {
    color: var(--primary-color);
  }
  
  /* 错误状态 */
  .is-invalid {
    border-color: var(--error-color) !important;
    background-color: #FEF2F2 !important;
  }
  
  .error-message {
    color: var(--error-color);
    font-size: 0.75rem;
    margin-top: 0.375rem;
    display: block;
    min-height: 1rem;
    transition: var(--transition);
    font-weight: 500;
  }
  
  /* 提交按钮 */
  .form-actions {
    margin-top: 2rem;
  }
  
  .btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  
  .btn-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
  }
  
  .btn-submit:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
  }
  
  .btn-submit:hover::after {
    left: 100%;
  }
  
  .btn-submit:disabled {
    background-color: #9CA3AF;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
  }
  
  /* 弹窗样式 */
  .modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
  }
  
  .modal {
    background-color: white;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .modal-content {
    position: relative;
  }
  
  .modal-content.success .modal-header {
    background: linear-gradient(135deg, var(--success-color), #059669);
  }
  
  .modal-content.error .modal-header {
    background: linear-gradient(135deg, var(--error-color), #DC2626);
  }
  
  .modal-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
  }
  
  .modal-close {
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: var(--transition);
  }
  
  .modal-close:hover {
    opacity: 1;
  }
  
  .modal-body {
    padding: 1.5rem;
    font-size: 1rem;
    color: var(--dark-text);
    line-height: 1.5;
  }
  
  .modal-footer {
    padding: 1rem 1.5rem;
    background-color: #F9FAFB;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--border-color);
  }
  
  .btn-confirm {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
  }
  
  .btn-confirm:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
  }
  
  @keyframes modalFadeIn {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* 页脚样式 */
  footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--light-text);
    font-size: 0.85rem;
    background-color: #F9FAFB;
    border-top: 1px solid var(--border-color);
  }
  
  /* 响应式设计 */
  @media (max-width: 640px) {
    .container {
      margin: 1.5rem auto;
      width: 92%;
    }
    
    .form-card {
      padding: 1.5rem;
    }
    
    header {
      padding: 1.5rem 1rem;
    }
    
    header h1 {
      font-size: 1.5rem;
    }
  }
  
  @media (max-width: 480px) {
    body {
      background-color: white;
    }
    
    .container {
      width: 100%;
      margin: 0;
      box-shadow: none;
      border-radius: 0;
    }
    
    .form-card {
      padding: 1.25rem;
    }
    
    .tab-btn {
      font-size: 0.875rem;
      padding: 0.75rem;
    }
    
    .btn-submit {
      padding: 0.8rem 1.25rem;
    }
  }
  
  /* Flash messages */
  .flash-messages {
    margin-bottom: 1.5rem;
  }
  
  .alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-weight: 500;
    border-left: 4px solid;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    position: relative;
  }
  
  .alert::before {
    content: '';
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
  }
  
  .alert-success {
    background-color: #ECFDF5;
    border-color: var(--success-color);
    color: #065F46;
  }
  
  .alert-success::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310b981'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd' /%3E%3C/svg%3E");
  }
  
  .alert-error {
    background-color: #FEF2F2;
    border-color: var(--error-color);
    color: #991B1B;
  }
  
  .alert-error::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ef4444'%3E%3Cpath fill-rule='evenodd' d='M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z' clip-rule='evenodd' /%3E%3C/svg%3E");
  }
  
  /* 动画效果 */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .form-card {
    animation: fadeIn 0.4s ease-out;
  }
  
  /* 输入框聚焦动画 */
  @keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.3); }
    70% { box-shadow: 0 0 0 6px rgba(67, 97, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0); }
  }
  
  input:focus {
    animation: pulseGlow 1.5s infinite;
  }

  /* 在 naraka_activate.css 文件中添加以下代码 */

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
  }
  
  .video-background video {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 1 !important;
  }
  
  /* 调整主容器以适应视频背景 */
  .container {
    background: rgba(255, 255, 255, 0.5); /* 半透明白色背景 */
    backdrop-filter: blur(5px); /* 背景模糊效果，增强可读性 */
  }

  @media (max-width: 768px) {
    .video-background {
      display: none; /* 在移动设备上隐藏视频 */
    }
    
    body {
      background: linear-gradient(135deg, #4361ee, #3a56d4); /* 使用渐变背景代替 */
    }
  }

.transparent-bg {
  background-color: rgba(255, 255, 255, 0.3) !important;
}

/* 查询卡密按钮样式 */
.query-card-btn-container {
    text-align: center;
    margin: 1rem 0;
}

.query-card-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.query-card-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.query-icon {
    font-size: 1.1rem;
}

/* 查询卡密模态框样式 */
.query-modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.query-modal {
    background-color: white;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    animation: modalFadeIn 0.3s ease-out;
}

.query-modal-content {
    position: relative;
}

.query-form {
    margin-bottom: 1rem;
}

.query-result {
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.query-result h4 {
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.result-content {
    text-align: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

.result-content .error-message {
    color: var(--error-color);
}

.btn-query {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    margin-right: 0.5rem;
}

.btn-cancel {
    background-color: #e5e7eb;
    color: var(--dark-text);
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-query:hover {
    background-color: var(--primary-hover);
}

.btn-cancel:hover {
    background-color: #d1d5db;
}

/* 在现有的CSS中添加或修改以下样式 */
.query-modal {
    max-width: 450px; /* 增加模态框宽度以适应更多字段 */
}

.query-form .form-group {
    margin-bottom: 1rem;
}

.query-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 1rem;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark-text);
}

.query-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
    background-color: white;
}

.query-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
    font-weight: 500;
}

/* 查询结果样式优化 */
.result-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item strong {
    color: var(--dark-text);
    margin-right: 0.5rem;
}

/* 添加或修改结果显示样式 */
.result-message {
    font-size: 1.1rem;
    color: var(--dark-text);
    font-weight: 500;
    display: block;
    text-align: center;
    padding: 1rem 0;
}

.error-message {
    color: var(--error-color);
    text-align: center;
    font-weight: 500;
}

.query-result {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 1rem;
}