
/* --- 1. 全局与变量 (保持原样) --- */
:root {
    --primary-color: #e88b5d;
    --primary-gradient: linear-gradient(90deg, #e88b5d, #d66d45);
    --ios-blue: #007aff;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.8);
    --input-bg: rgba(255, 255, 255, 0.95);
}

input[type="password"]::-webkit-password-reveal-button,
input[type="password"]::-ms-reveal {
    display: none;
}

input::-ms-clear {
    display: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: linear-gradient(180deg, #fcece4 0%, #eebf9f 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.app-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* 视图切换容器 */
.view-section {
    width: 100%;
    display: none; /* 默认隐藏 */
    animation: fadeIn 0.4s ease;
}

    .view-section.active {
        display: block;
    }

@@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo & Header */
.header-section {
    text-align: center;
    margin-bottom: 25px;
}

.logo {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    border-radius: 18px;
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(232, 139, 93, 0.4);
}

    .logo svg {
        fill: white;
        width: 32px;
        height: 32px;
    }

.welcome-text h2 {
    font-size: 26px;
    font-weight: 700;
    color: #5d4037;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.welcome-text p {
    font-size: 14px;
    color: #8d766e;
}

/* 卡片 */
.glass-card {
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 28px;
    border: 1px solid var(--glass-border);
    padding: 30px 24px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
}

/* Tabs (仅登录页使用) */
.tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    position: relative;
}

.tab-item {
    font-size: 16px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    padding-bottom: 10px;
    transition: all 0.3s;
}

    .tab-item.active {
        color: #333;
        font-weight: 700;
        transform: scale(1.05);
    }

.tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 24px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* 表单通用 */
.form-group {
    margin-bottom: 18px;
    position: relative;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-wrapper input {
        width: 100%;
        padding: 16px 40px 16px 44px;
        border-radius: 14px;
        border: 1px solid transparent;
        background: var(--input-bg);
        font-size: 16px;
        color: #333;
        outline: none;
        transition: all 0.3s;
    }

        .input-wrapper input:focus {
            background: #fff;
            box-shadow: 0 0 0 4px rgba(232, 139, 93, 0.15);
        }

.input-icon {
    position: absolute;
    left: 14px;
    width: 20px;
    height: 20px;
    fill: #999;
}

.get-code-btn {
    position: absolute;
    right: 14px;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

    .get-code-btn:disabled {
        color: #ccc;
        cursor: not-allowed;
    }

.action-icon {
    position: absolute;
    right: 14px;
    width: 20px;
    height: 20px;
    fill: #bbb;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.forgot-pwd {
    text-align: right;
    line-height: 30px;
    height: 30px;
}

    .forgot-pwd a {
        font-size: 13px;
        color: #666;
        text-decoration: none;
    }

.agreement {
    display: flex;
    align-items: flex-start;
    font-size: 12px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
}

    .agreement input {
        margin-right: 8px;
        margin-top: 2px;
        accent-color: var(--primary-color);
        transform: scale(1.1);
    }

    .agreement a {
        color: #333;
        font-weight: 600;
        text-decoration: none;
    }

.submit-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 30px;
    background: var(--primary-gradient);
    color: white;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(214, 109, 69, 0.3);
    transition: transform 0.1s;
}

    .submit-btn:active {
        transform: scale(0.97);
    }

.bottom-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}

    .bottom-link span {
        color: var(--primary-color);
        font-weight: 600;
        cursor: pointer;
    }

/* 三方登录 divider */
.divider-box {
    display: flex;
    align-items: center;
    margin: 30px 0 20px;
    color: #999;
    font-size: 12px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: rgba(0,0,0,0.08);
}

.divider-text {
    padding: 0 12px;
}

.wechat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border-radius: 50%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: transform 0.2s;
}

    .wechat-icon:active {
        transform: scale(0.9);
    }

/* 弹窗组件样式

        1. iOS 风格 Alert */
.ios-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
}

    .ios-dialog-overlay.show {
        opacity: 1;
        visibility: visible;
    }

.ios-dialog {
    width: 270px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 14px;
    text-align: center;
    transform: scale(1.1);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ios-dialog-overlay.show .ios-dialog {
    transform: scale(1);
}

.ios-dialog-content {
    padding: 20px 16px;
}

.ios-dialog-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #000;
}

.ios-dialog-text {
    font-size: 13px;
    color: #000;
    line-height: 1.4;
}

.ios-dialog-footer {
    border-top: 0.5px solid rgba(60, 60, 67, 0.29);
    display: flex;
}

.ios-dialog-btn {
    flex: 1;
    padding: 12px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--ios-blue);
    border: none;
    background: transparent;
    cursor: pointer;
}

    .ios-dialog-btn:active {
        background: rgba(0,0,0,0.05);
        border-bottom-left-radius: 14px;
        border-bottom-right-radius: 14px;
    }

/* 2. 微信二维码 Modal */
.wx-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

    .wx-modal-overlay.show {
        opacity: 1;
        visibility: visible;
    }

.wx-modal-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    width: 300px;
    height:420px;
    transform: translateY(50px);
    transition: transform 0.3s;
}

.wx-modal-overlay.show .wx-modal-card {
    transform: translateY(0);
}

.wx-qr-box {
   
    width: 240px;
    height: 300px;
    margin: auto;
    display: flex;
    justify-content: center;
    /*background: #f0f0f0;*/
    /* margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;*/
}



.close-wx-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    font-size: 18px;
    line-height: 30px;
    color: #999;
    cursor: pointer;
    margin: 0 auto;
}


