/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #F8FAFC;
    color: #374151;
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 375px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: #F8FAFC;
}

/* 顶部留白区 */
.top-space {
    height: 16px;
    background-color: #F8FAFC;
}

/* 底部留白区 */
.bottom-space {
    height: 24px;
    background-color: #F8FAFC;
}

/* 按钮通用样式 */
button {
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

button:active {
    transform: scale(0.98);
}

/* 输入框通用样式 */
input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 15px;
    color: #374151;
}

input::placeholder {
    color: #9CA3AF;
}

/* 主色调 */
:root {
    --primary-color: #2D6A4F;
    --primary-light: #D8F3DC;
    --primary-bg: #F9FFF9;
    --text-dark: #374151;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    --border-color: #E5E7EB;
    --error-color: #ff4d4f;
    --success-color: #52c41a;
}

/* 自定义Toast提示框样式 */
.custom-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 90%;
}

.custom-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.custom-toast.error {
    border-left: 4px solid var(--error-color);
}

.custom-toast.success {
    border-left: 4px solid var(--success-color);
}

.toast-icon {
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-message {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}