/*index.css*/
/* SGA字体引入 */
@font-face {
    font-family: 'YHW';
    src: url('/fonts/yhw.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
  }
  
  /* 全局样式 */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top left, #1e1548, #140b2e);
    color: #f0e6d2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
  }
  
  /* 银河文字装饰 */
  .sga-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.1;
    font-size: 60px;
    color: #c28b37;
    overflow: hidden;
    pointer-events: none;
  }
  
  .sga-letter {
    position: absolute;
    animation: sga-float 40s ease-in-out infinite;
    font-family: 'YHW', sans-serif;
    color: #c28b37;
    opacity: 0.9;
    text-shadow: 0 0 15px rgba(194, 139, 55, 0.6);
  }
  
  /* 添加字母发光效果 */
  .sga-letter.glow-1 {
    animation: sga-float 40s ease-in-out infinite, glow-1 4s ease-in-out infinite;
  }
  
  .sga-letter.glow-2 {
    animation: sga-float 40s ease-in-out infinite, glow-2 3s ease-in-out infinite;
  }
  
  .sga-letter.glow-3 {
    animation: sga-float 40s ease-in-out infinite, glow-3 5s ease-in-out infinite;
  }
  
  @keyframes glow-1 {
    0%, 100% { 
      text-shadow: 0 0 15px rgba(194, 139, 55, 0.6), 0 0 25px rgba(194, 139, 55, 0.4);
    }
    50% { 
      text-shadow: 0 0 25px rgba(194, 139, 55, 1), 0 0 40px rgba(255, 215, 0, 0.7), 0 0 55px rgba(255, 165, 0, 0.5);
    }
  }
  
  @keyframes glow-2 {
    0%, 100% { 
      text-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 165, 0, 0.3);
    }
    50% { 
      text-shadow: 0 0 20px rgba(255, 215, 0, 0.9), 0 0 35px rgba(255, 140, 0, 0.6), 0 0 50px rgba(255, 69, 0, 0.4);
    }
  }
  
  @keyframes glow-3 {
    0%, 100% { 
      text-shadow: 0 0 12px rgba(255, 140, 0, 0.5), 0 0 22px rgba(255, 69, 0, 0.3);
    }
    50% { 
      text-shadow: 0 0 22px rgba(255, 140, 0, 0.9), 0 0 40px rgba(255, 99, 71, 0.6), 0 0 60px rgba(255, 165, 0, 0.5);
    }
  }
  
  @keyframes sga-float {
    0% { transform: translateY(100vh) translateX(0) rotate(0deg); opacity: 0; }
    5% { opacity: 0.5; }
    10% { opacity: 0.9; }
    50% { transform: translateY(50vh) translateX(50px) rotate(180deg); opacity: 0.6; }
    90% { opacity: 0.5; }
    95% { opacity: 0.2; }
    100% { transform: translateY(-10vh) translateX(100px) rotate(360deg); opacity: 0; }
  }
  
  /* SGA文字样式 */
  .sga-text, .subtitle {
    font-family: 'YHW', sans-serif;
  }
  
  /* 主容器 */
  .main-container {
    background: rgba(30, 21, 72, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(194, 139, 55, 0.3);
    border-radius: 15px;
    display: flex;
    width: 90%;
    max-width: 1200px;
    min-height: 600px;
    z-index: 10;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }
  
  /* Logo区域 */
  .logo-section {
    flex: 1;
    padding: 60px;
    border-right: 1px solid rgba(194, 139, 55, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .logo {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .logo-text {
    font-size: 3.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #c28b37, #f0e6d2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  .subtitle {
    font-size: 1.5rem;
    color: #c28b37;
    margin-top: 10px;
  }
  
  .philosophy {
    text-align: center;
    color: #f0e6d2;
  }
  
  .philosophy p {
    margin: 10px 0;
  }
  
  .sga-text {
    font-size: 1.2rem;
    color: #c28b37;
    opacity: 0.7;
  }
  
  /* 认证区域 */
  .auth-section {
    flex: 1;
    padding: 60px;
  }
  
  .auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(194, 139, 55, 0.3);
  }
  
  .tab-btn {
    background: transparent;
    border: none;
    color: #f0e6d2;
    padding: 10px 30px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .tab-btn.active {
    color: #c28b37;
  }
  
  .tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #c28b37;
  }
  
  /* 表单样式 */
  .auth-content {
    animation: fadeIn 0.5s ease;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .hidden {
    display: none;
  }
  
  .input-group {
    position: relative;
    margin-bottom: 25px;
  }
  
  .input-group input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(194, 139, 55, 0.3);
    border-radius: 8px;
    color: #f0e6d2;
    font-size: 1rem;
    transition: all 0.3s ease;
  }
  
  .input-group input:focus {
    border-color: #c28b37;
    box-shadow: 0 0 0 3px rgba(194, 139, 55, 0.2);
    outline: none;
  }
  
  .input-group .icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
  }
  
  .input-group label {
    position: absolute;
    left: 20px;
    top: -25px;
    color: #c28b37;
    font-size: 0.9rem;
  }
  
  .verify-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #c28b37;
    color: #140b2e;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
  }
  
  .verify-btn:disabled {
    background: #666;
    cursor: not-allowed;
  }
  
  .remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
  }
  
  .remember-me input {
    margin-right: 10px;
  }
  
  .submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #c28b37, #f0e6d2);
    color: #140b2e;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(194, 139, 55, 0.3);
  }
  
  .submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
  }
  
  .submit-btn:active::after {
    width: 300px;
    height: 300px;
  }
  
  .forgot-password {
    display: block;
    text-align: center;
    color: #c28b37;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s ease;
  }
  
  .forgot-password:hover {
    text-decoration: underline;
  }
  
  /* 种族选择优化样式 */
  .race-selection {
    margin-bottom: 25px;
  }
  
  .race-selection label {
    display: block;
    color: #c28b37;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
  }
  
  .race-dropdown {
    position: relative;
  }
  
  .race-dropdown select {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(194, 139, 55, 0.3);
    border-radius: 8px;
    color: #f0e6d2;
    font-size: 1rem;
    transition: all 0.3s ease;
    appearance: none;
    cursor: pointer;
  }
  
  .race-dropdown select:focus {
    border-color: #c28b37;
    box-shadow: 0 0 0 3px rgba(194, 139, 55, 0.2);
    outline: none;
  }
  
  .race-dropdown select:hover {
    border-color: rgba(194, 139, 55, 0.5);
  }
  
  .race-dropdown select option {
    background: #140b2e;
    color: #f0e6d2;
    padding: 12px;
    border-radius: 4px;
  }
  
  .race-dropdown select option[disabled] {
    color: #888;
    background: #222;
    font-style: italic;
  }
  
  .race-dropdown select optgroup {
    background: #1a1040;
    color: #c28b37;
    font-weight: bold;
    font-size: 0.95rem;
    padding: 8px 0;
  }
  
  .race-dropdown select optgroup option {
    background: #140b2e;
    color: #f0e6d2;
    font-weight: normal;
    padding-left: 20px;
  }
  
  .race-dropdown .dropdown-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    pointer-events: none;
    color: #c28b37;
  }
  
  /* 种族查询提示样式 */
  .race-library-tip {
    background: linear-gradient(135deg, rgba(194, 139, 55, 0.1), rgba(194, 139, 55, 0.05));
    border: 1px solid rgba(194, 139, 55, 0.3);
    border-radius: 6px;
    padding: 10px 15px;
    margin-top: 10px;
    font-size: 0.85rem;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  .race-library-tip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(194, 139, 55, 0.1), transparent);
    transition: left 2s ease;
  }
  
  .race-library-tip:hover::before {
    left: 100%;
  }
  
  .race-library-link {
    color: #c28b37;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
  }
  
  .race-library-link:hover {
    color: #daa520;
    text-shadow: 0 0 8px rgba(194, 139, 55, 0.6);
    transform: translateY(-1px);
  }
  
  .race-library-link .icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
  }
  
  .race-library-link:hover .icon {
    transform: translateX(3px);
  }
  
  /* 种族信息显示优化 */
  .race-info {
    background: linear-gradient(135deg, rgba(194, 139, 55, 0.1), rgba(194, 139, 55, 0.05));
    border: 1px dashed #c28b37;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #f0e6d2;
    display: none;
    position: relative;
    overflow: hidden;
  }
  
  .race-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(194, 139, 55, 0.1), transparent);
    transition: left 0.5s ease;
  }
  
  .race-info.show {
    display: block;
    animation: slideDown 0.3s ease;
  }
  
  .race-info.show::before {
    left: 100%;
  }
  
  .race-info > div {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
  }
  
  .race-info > div:last-child {
    margin-bottom: 0;
  }
  
  .race-info strong {
    color: #c28b37;
    min-width: 80px;
    margin-right: 8px;
  }
  
  .special-race-warning {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 10px;
    color: #ff6666;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .special-race-warning strong {
    color: #ff4444;
  }
  
  /* 种族信息底部查询提示 */
  .race-info-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(194, 139, 55, 0.2);
    text-align: center;
  }
  
  .race-info-footer .race-library-link {
    font-size: 0.8rem;
    padding: 5px 10px;
    border: 1px solid rgba(194, 139, 55, 0.3);
    border-radius: 4px;
    background: rgba(194, 139, 55, 0.05);
    transition: all 0.3s ease;
  }
  
  .race-info-footer .race-library-link:hover {
    background: rgba(194, 139, 55, 0.1);
    border-color: rgba(194, 139, 55, 0.5);
  }
  
  /* 解锁动画效果 */
  .race-unlocked {
    animation: raceUnlock 0.5s ease;
  }
  
  @keyframes raceUnlock {
    0% { 
      background: rgba(255, 68, 68, 0.1);
      transform: scale(0.98);
    }
    50% { 
      background: rgba(0, 200, 81, 0.2);
      transform: scale(1.02);
    }
    100% { 
      background: rgba(0, 200, 81, 0.1);
      transform: scale(1);
    }
  }
  
  /* 种族类别标识 */
  .race-category-badge {
    display: inline-block;
    background: rgba(194, 139, 55, 0.2);
    color: #c28b37;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    font-weight: 500;
  }
  
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* 密码强度指示器 */
  .password-strength {
    margin-top: 15px;
  }
  
  .strength-bar {
    height: 5px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
  }
  
  .strength-bar::after {
    content: '';
    height: 100%;
    display: block;
    transition: all 0.3s ease;
  }
  
  .weak::after {
    width: 33%;
    background: #ff4444;
  }
  
  .medium::after {
    width: 66%;
    background: #ffbb33;
  }
  
  .strong::after {
    width: 100%;
    background: #00C851;
  }
  
  /* 种族选择弹窗样式优化 */
  .race-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
  }
  
  .race-modal.show {
    opacity: 1;
    visibility: visible;
  }
  
  .race-modal-content {
    background: linear-gradient(135deg, rgba(30, 21, 72, 0.95), rgba(20, 11, 46, 0.95));
    border: 2px solid #c28b37;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  }
  
  .race-modal.show .race-modal-content {
    transform: scale(1);
  }
  
  .race-modal-title {
    color: #c28b37;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(194, 139, 55, 0.3);
  }
  
  .race-modal-text {
    color: #f0e6d2;
    margin-bottom: 25px;
    line-height: 1.6;
  }
  
  .race-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
  }
  
  .race-modal-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .race-modal-btn.primary {
    background: linear-gradient(45deg, #c28b37, #daa520);
    color: #140b2e;
  }
  
  .race-modal-btn.secondary {
    background: transparent;
    color: #c28b37;
    border: 2px solid #c28b37;
  }
  
  .race-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(194, 139, 55, 0.3);
  }
  
  .race-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
  }
  
  /* 响应式设计 */
  @media (max-width: 768px) {
    .main-container {
      flex-direction: column;
      width: 95%;
      min-height: auto;
    }
    
    .logo-section {
      padding: 30px;
      border-right: none;
      border-bottom: 1px solid rgba(194, 139, 55, 0.3);
    }
    
    .logo-text {
      font-size: 2.5rem;
    }
    
    .auth-section {
      padding: 30px;
    }
    
    .tab-btn {
      padding: 8px 20px;
      font-size: 1rem;
    }
    
    .sga-decoration {
      font-size: 40px;
    }
    
    .race-modal-content {
      padding: 20px;
    }
    
    .race-modal-actions {
      flex-direction: column;
    }
    
    .race-modal-btn {
      width: 100%;
    }
  }
  
  @media (max-width: 480px) {
    .submit-btn {
      padding: 12px;
      font-size: 1rem;
    }
    
    .input-group input {
      padding: 12px 40px 12px 15px;
    }
    
    .logo-text {
      font-size: 2rem;
    }
    
    .sga-decoration {
      font-size: 30px;
    }
    
    .race-dropdown select {
      padding: 12px 40px 12px 15px;
    }
    
    .race-info {
      padding: 12px;
      font-size: 0.85rem;
    }
    
    .race-library-tip {
      font-size: 0.8rem;
      padding: 8px 12px;
    }
  }