/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    color: #333;
    background-color: #f7f9ff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

#app {
    width: 100%;
    min-height: 100%;
}

.page {
    width: 100%;
    min-height: 100vh;
    padding: 15px;
    max-width: 100vw;
    overflow-x: hidden;
}

/* 按钮样式 */
.btn {
    width: 100%;
    max-width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 22px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
    box-sizing: border-box;
}

.btn-primary {
    background-color: #47befe;
    color: #fff;
}

.btn-primary:active {
    background-color: #3aa8e5;
}

.btn-secondary {
    background-color: #fff;
    color: #47befe;
    border: 1px solid #47befe;
    margin-top: 10px;
}

.btn-secondary:active {
    background-color: #f0f0f0;
}

.btn-large {
    padding: 16px 20px;
    font-size: 18px;
}

.btn-logout {
    position: fixed;
    bottom: 15px;
    left: 15px;
    right: 15px;
    width: auto;
    max-width: calc(100vw - 30px);
    background-color: #fff;
    color: #666;
    border: 1px solid #d5d5d5;
    box-sizing: border-box;
}

.btn-container {
    margin-top: 30px;
    width: 100%;
}

/* 错误提示 */
.error-tip {
    color: #f94343;
    text-align: center;
    font-size: 14px;
    padding: 10px;
    margin-bottom: 10px;
    word-wrap: break-word;
}

/* 加载提示 */
.loading {
    text-align: center;
    padding: 20px;
    color: #999;
}

/* 居中内容 */
.content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    padding: 20px;
}

.content-center h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

.content-center .tips {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* 成功图标 */
.success-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    background-color: #47befe;
    color: #fff;
    font-size: 45px;
    margin-bottom: 20px;
}

/* 输入框组 */
.input-group {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    border: 1px solid #d5d5d5;
    border-radius: 22px;
    padding: 8px 15px;
    margin-bottom: 15px;
    background-color: #fff;
    box-sizing: border-box;
}

.input-group input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    padding: 5px 10px;
    min-width: 0;
}

.input-icon {
    width: 19px;
    height: 19px;
    margin-right: 10px;
    flex-shrink: 0;
}

/* 固定底部 */
.fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* 响应式 - 小屏幕 */
@media (max-width: 375px) {
    .page {
        padding: 12px;
    }
    
    .btn {
        font-size: 15px;
        padding: 10px 15px;
    }
    
    .btn-large {
        font-size: 16px;
        padding: 14px 15px;
    }
    
    .btn-logout {
        bottom: 12px;
        left: 12px;
        right: 12px;
        max-width: calc(100vw - 24px);
    }
    
    .content-center h2 {
        font-size: 20px;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 40px;
    }
    
    .fixed-bottom {
        padding: 12px;
    }
}

/* 响应式 - 超小屏幕 */
@media (max-width: 320px) {
    .page {
        padding: 10px;
    }
    
    .btn {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .btn-logout {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: calc(100vw - 20px);
    }
    
    .input-group {
        padding: 6px 12px;
    }
    
    .input-group input {
        font-size: 14px;
    }
}

/* 响应式 - 大屏幕 */
@media (min-width: 768px) {
    .page {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .btn-logout {
        width: 560px;
        max-width: 560px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    .fixed-bottom {
        max-width: 600px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}
