:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    padding: 15px;
    max-width: 600px;
    margin: 0 auto;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.5;
}
h2 {
    text-align: center;
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
}
/* 统一输入框和按钮基础样式 */
input, button, textarea, select {
    border-radius: 5px;
    border: 1px solid #ddd;
    height: 38px;
    font-size: 14px;
    padding: 0 12px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

input, textarea, select {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    line-height: 38px;
    width: 100%;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(1px);
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

#message {
    margin: 10px 0;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    min-height: 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.message-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.message-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.message-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
}

.message-warning {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
}

.phone-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.phone-container input {
    width: 150px !important;
    flex: none;
}

.phone-container .button-group {
    display: flex;
    gap: 5px;
    flex: none;
}

.phone-container .button-group button {
    height: 38px;
    line-height: 38px;
}

#code {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
    padding: 10px;
    font-family: Consolas, monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-y: auto;
}

.code-container {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.code-container textarea {
    flex: 1;
    height: 120px;
    line-height: 1.5;
}

.code-container button {
    height: 38px;
    line-height: 38px;
    align-self: flex-start;
}

.tips {
    margin-top: 20px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 5px;
}

.tips h4 {
    margin: 10px 0 5px;
    font-size: 14px;
    color: #333;
}

.tips p {
    margin: 8px 0;
}

.tips ul {
    margin: 5px 0;
    padding-left: 20px;
}

.tips li {
    margin-bottom: 8px;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .token-container {
        gap: 5px;
    }
    
    .token-container input {
        flex: 1;
        min-width: 150px;
    }
    
    #projectSelect {
        order: 2;
    }
    
    .phone-container {
        gap: 5px;
    }
    
    .phone-container input {
        flex: 1;
        min-width: 150px;
    }
    
    .phone-container .button-group {
        flex-wrap: nowrap;
    }
    
    .button-group button {
        padding: 0 10px;
        font-size: 13px;
    }
    
    .code-container {
        flex-direction: column;
    }
    
    .code-container button {
        align-self: stretch;
    }
}

/* 引导浮窗样式 */
.guide-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.guide-content {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    max-width: 90%;
    width: 320px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-out;
}

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

.guide-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.guide-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.guide-steps li {
    margin: 10px 0;
    padding: 12px;
    background-color: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.guide-steps li:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.step-number {
    width: 28px;
    height: 28px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
}

.guide-confirm {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.guide-confirm:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.guide-confirm:active {
    transform: translateY(0);
}

/* 添加卡密查询样式 */
.token-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 15px 0;
}

.token-container input {
    width: 150px !important;
    flex: none;
}

.token-container button {
    height: 38px;
    line-height: 38px;
    font-size: 14px;
    padding: 0 15px;
    flex: none;
}

/* 项目信息样式 */
.project-info {
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.project-info.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* 按钮组样式 */
.button-group {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.button-group button {
    min-width: 80px;
    height: 38px;
    font-weight: 500;
}

/* 状态消息样式 */
.status-message {
    margin: 15px 0;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.status-message.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.status-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* 倒计时样式 */
#countdown {
    margin: 10px 0;
    font-size: 14px;
    color: #666;
    text-align: center;
    padding: 8px;
    background-color: #f5f5f5;
    border-radius: 5px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { background-color: #f5f5f5; }
    50% { background-color: #e9ecef; }
    100% { background-color: #f5f5f5; }
}

#countdown .time {
    color: var(--danger-color);
    font-weight: bold;
}

/* 增加短信验证框高度 */
#smsContent {
    height: 120px;
    min-height: 120px;
    resize: vertical;
}

/* 优化按钮样式 */
.btn {
    height: 38px;
    line-height: 38px;
    padding: 0 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 优化说明文字样式 */
.instructions {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.instructions p {
    margin: 10px 0;
    line-height: 1.6;
    color: #333;
}

.instructions h4 {
    color: #333;
    margin: 15px 0 10px 0;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.instructions h4::before {
    content: "！！！";
    color: var(--danger-color);
    margin-right: 5px;
}

.instructions ul {
    padding-left: 20px;
    margin: 10px 0;
}

.instructions li {
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 13px;
}

.instructions > p:first-child,
.instructions > p:nth-child(2) {
    color: #333;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 500;
}

/* 添加使用状态样式 */
.use-status {
    margin: 10px 0;
    padding: 10px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    color: #721c24;
    text-align: center;
    font-size: 14px;
}

/* 修改项目名称框样式 */
#projectSelect {
    width: 100px !important;
    text-align: center;
    text-align-last: center;
    padding: 0 5px;
    flex: none !important;
    min-width: 100px !important;
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

#projectSelect::-ms-expand {
    display: none;
}
