* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 禁用文本选择 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* 禁用拖拽 */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            /* 背景设置：纯图片背景，渐变备用 */
            background-color: #1a1a2e;
            background-image: url('https://pic.cclinx.com/images/pexels.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            background-attachment: fixed;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            color: #ffffff;
            /* 移动端防滑动优化 */
            width: 100%;
            height: 100vh;
            margin: 0;
            /* 防止移动端橡皮筋效果 */
            overscroll-behavior: none;
            -webkit-overflow-scrolling: touch;
            /* 防止页面滚动 */
        overflow-x: hidden;
    }
    
    /* 自定义滚动条样式 */
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 4px;
        transition: all 0.3s ease;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
        transform: scale(1.1);
    }
    
    ::-webkit-scrollbar-corner {
        background: transparent;
    }
    
    /* Firefox滚动条样式 */
    * {
        scrollbar-width: thin;
        scrollbar-color: #667eea rgba(255, 255, 255, 0.05);
    }

.container {
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(30px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
            overflow-y: auto;
            overflow-x: hidden;
            max-width: 580px;
            width: 100%;
            max-height: 92vh;
            /* 移动端滚动优化 */
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
        }

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.header h1 {
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 700;
}

.form-container {
    padding: 32px;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.step-item {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.step-item.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.step-item.completed {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffffff;
    font-size: 14px;
}

.form-group input, .form-group select {
            width: 100%;
            padding: 14px 16px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            font-size: 15px;
            color: #ffffff;
            transition: all 0.2s ease;
            /* 允许输入框中的文本选择 */
            -webkit-user-select: text;
            -moz-user-select: text;
            -ms-user-select: text;
            user-select: text;
        }
        
        /* 选择框强制样式 */
        .form-group select {
            background: rgba(255, 255, 255, 0.05) !important;
            color: #ffffff !important;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
        }
        
        .form-group select:focus {
            background: rgba(255, 255, 255, 0.08) !important;
            color: #ffffff !important;
            outline: none;
            border-color: rgba(102, 126, 234, 0.5);
        }
        
        /* 选择框下拉选项完全重写 */
        .form-group select option {
            background: #1a1a2e !important;
            color: #ffffff !important;
            border: none !important;
            padding: 12px 16px !important;
            outline: none !important;
        }
        
        .form-group select option:hover {
            background: #667eea !important;
            color: #ffffff !important;
            border: none !important;
            outline: none !important;
        }
        
        .form-group select option:checked,
        .form-group select option:selected {
            background: #667eea !important;
            color: #ffffff !important;
            border: none !important;
            outline: none !important;
        }
        
        /* 移除所有白色边框和轮廓 - 强制覆盖 */
        .form-group select,
        .form-group select:focus,
        .form-group select:active,
        .form-group select:hover {
            outline: none !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
        }
        
        .form-group select:focus {
            border-color: #667eea !important;
            box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2) !important;
        }
        
        /* 强制覆盖浏览器默认样式 */
        select::-ms-expand {
            display: none;
        }
        
        select:focus::-ms-value {
            background: transparent !important;
            color: #ffffff !important;
        }
        
        /* 自定义下拉箭头 */
        .form-group select {
            background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23ffffff" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>') !important;
            background-repeat: no-repeat !important;
            background-position: right 12px center !important;
            background-size: 12px !important;
            padding-right: 40px !important;
        }
        
        .email-input-group {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
        }
        
        .email-input-group input {
             flex: 0 0 45%;
             width: auto;
         }
         
         .email-input-group .at-symbol {
              color: #ffffff;
              font-weight: 700;
              font-size: 18px;
              flex-shrink: 0;
              background: rgba(255, 255, 255, 0.1);
              padding: 8px 12px;
              border-radius: 6px;
              border: 1px solid rgba(255, 255, 255, 0.2);
              text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
           }
         
         .email-input-group select {
              flex: 0 0 45%;
              width: auto;
              min-width: auto;
          }
          
          /* 移动端邮箱输入优化 - 输入框优先 */
              @media screen and (max-width: 580px) {
                  .email-input-group input {
                      flex: 0 0 55% !important;
                      width: 55% !important;
                      max-width: 55% !important;
                  }
                  
                  .email-input-group select {
                      flex: 0 0 35% !important;
                      width: 35% !important;
                      max-width: 35% !important;
                  }
              }
              
              @media screen and (max-width: 480px) {
                  .email-input-group input {
                      flex: 0 0 52% !important;
                      width: 52% !important;
                      max-width: 52% !important;
                  }
                  
                  .email-input-group select {
                      flex: 0 0 38% !important;
                      width: 38% !important;
                      max-width: 38% !important;
                  }
              }
              
              @media screen and (max-width: 400px) {
                  .email-input-group input {
                      flex: 0 0 50% !important;
                      width: 50% !important;
                      max-width: 50% !important;
                  }
                  
                  .email-input-group select {
                      flex: 0 0 40% !important;
                      width: 40% !important;
                      max-width: 40% !important;
                  }
              }

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.form-group select:focus {
    outline: none !important;
    border-color: #667eea !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2) !important;
}

.form-group select {
    cursor: pointer;
}

.btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.plan-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.plan-info h3 {
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.plan-info p {
    color: #cbd5e1;
    margin-bottom: 8px;
    line-height: 1.5;
}

.price {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin-top: 8px;
}

.error {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 10px 20px;
    margin: 0 4px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.verification-input {
    display: flex;
    gap: 10px;
}

.verification-input input {
    flex: 1;
}

.send-code-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 16px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 120px;
    transition: all 0.3s ease;
}

.send-code-btn:disabled {
    background: rgba(107, 114, 128, 0.5);
    cursor: not-allowed;
}

.loading {
    display: none;
    text-align: center;
    padding: 40px 20px;
    color: #e2e8f0;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.plan-selector {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.plan-option {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
}

.plan-option:hover {
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
}

.plan-option.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-option h4 {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    flex: 1;
}

.plan-option .plan-price {
    margin: 0;
    color: #667eea;
    font-weight: 600;
    font-size: 16px;
    margin-right: 12px;
}

.expand-icon {
    color: #cbd5e1;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.plan-option.expanded .expand-icon {
    transform: rotate(180deg);
}

.plan-features {
    margin-top: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.plan-features.collapsed {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
}

.feature-line {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 14px;
    color: #e2e8f0;
    line-height: 1.4;
}

.check-icon {
    color: #10b981;
    font-weight: bold;
    margin-right: 8px;
    font-size: 12px;
    flex-shrink: 0;
}

.plan-actions {
    margin-top: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.plan-actions.collapsed {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
}

.select-plan-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
}

.select-plan-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.feature-list {
    margin: 12px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #e2e8f0;
    font-size: 14px;
}

.feature-icon {
    width: 16px;
    height: 16px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.feature-icon::after {
    content: '✓';
    color: white;
    font-size: 10px;
    font-weight: bold;
}