/* 移动端基础样式 */
:root {
    --bg-color: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #8c8c8c;
    --border-color: #f0f0f0;
    --button-disabled-bg: #f5f5f5;
    --button-disabled-text: #cccccc;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background-color: #e8e8e8;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
}

a { text-decoration: none; color: #5b9dff; }
input { border: none; outline: none; background: none; font-size: 16px; }

/* 移动端固定宽度容器 */
.page-container {
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background-color: var(--bg-color);
}

.page-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    flex-grow: 1;
    text-align: center;
    font-size: 18px;
    margin: 0;
    padding-right: 30px;
}
.back-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #a0a0a0;
}

.content-area {
    padding: 0 30px;
}

.avatar-placeholder {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.avatar-placeholder img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #f0f0f0;
    padding: 10px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}
.avatar-placeholder:hover img {
    border-color: #5b9dff;
    transform: scale(1.05);
}
.avatar-edit-hint {
    margin-top: 10px;
    font-size: 14px;
    color: #5b9dff;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.avatar-placeholder:hover .avatar-edit-hint {
    opacity: 1;
}
/* 隐藏文件输入框 */
#avatarInput {
    display: none;
}

.registration-form .form-row {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}
.form-row label {
    font-size: 16px;
    width: 100px;
    flex-shrink: 0;
}
.form-row input {
    flex-grow: 1;
    width: 100%;
}
.form-row ::placeholder {
    color: #cccccc;
}

.country-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    color: var(--text-primary);
}
.country-selector .arrow {
    color: var(--text-secondary);
}

.phone-input-group, .password-input-group {
    display: flex;
    align-items: center;
    flex-grow: 1;
}
.country-code {
    font-size: 16px;
    margin-right: 15px;
    font-weight: 500;
}
.toggle-password {
    width: 24px;
    height: 24px;
    border: none;
    background: url('/images/pos/icon-eye-closed.png') center no-repeat;
    background-size: contain;
    cursor: pointer;
}
/* .toggle-password.visible { background-image: url(...); } */

.agreement-row {
    margin-top: 30px;
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}
#agreement {
    margin-right: 8px;
}

.action-row {
    margin-top: 20px;
}
.submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
}
.submit-btn:disabled {
    background-color: var(--button-disabled-bg);
    color: var(--button-disabled-text);
    cursor: not-allowed;
}
