/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 16px;
    background-color: #f8fafc;
    max-width: 100vw;
    overflow-x: hidden;
    color: #1a1a1a;
}

/* 通用头部样式 */
.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background-color: white;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    height: 36px;
    white-space: nowrap;
    min-width: fit-content;
}

.mode-btn { background-color: #3b82f6; }
.mode-btn:hover { background-color: #2563eb; }
.logout-btn { background-color: #ef4444; }
.logout-btn:hover { background-color: #dc2626; }

.btn i {
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 模式标题样式 */
.mode-title {
    font-size: 20px;
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 输入容器样式 */
.input-container {
    width: 100%;
    margin-bottom: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    text-align: center;
}

/* 输入框样式 */
.input-field {
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    text-align: center;
    margin: 10px 0;
    transition: all 0.2s ease;
    background-color: #f9fafb;
    -webkit-appearance: none;
}

.input-field:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* 状态消息样式 */
.status-message {
    width: 100%;
    margin: 15px 0;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    opacity: 0;
}

.status-message.show {
    opacity: 1;
}

.success { background-color: #ecfdf5; color: #059669; }
.error { background-color: #fef2f2; color: #dc2626; }

/* 响应式设计 */
@media (max-width: 375px) {
    body { padding: 12px; }
    .header { padding: 12px; }
    .btn { 
        padding: 6px 8px;
        font-size: 12px;
        gap: 4px;
    }
    .buttons { gap: 4px; }
}

.buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
} 