/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.5;
}

.container {
    min-height: 100vh;
    padding-bottom: 20px;
}

/* 头部样式 */
.header {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 15px;
}

.header-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.user-info {
    display: flex;
    align-items: center;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar i {
    font-size: 40px;
    color: #999;
}

.user-details {
    flex: 1;
}

.username {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.user-id {
    font-size: 12px;
    color: #999;
}

/* 余额卡片样式 */
.balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 20px;
    margin: 0 15px 15px;
    position: relative;
    box-shadow: 0 5px 10px rgba(102, 126, 234, 0.3);
}

.balance-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.balance-value {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
}

.recharge-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.recharge-btn i {
    margin-right: 5px;
}

/* 统计数据样式 */
.stats-container {
    display: flex;
    background-color: #fff;
    margin: 0 15px 15px;
    border-radius: 10px;
    padding: 15px 0;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.stat-icon {
    font-size: 20px;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #999;
}

/* 菜单样式 */
.menu-container {
    background-color: #fff;
    margin: 0 15px;
    border-radius: 10px;
    padding: 0 15px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-icon {
    font-size: 20px;
    color: #667eea;
    margin-right: 10px;
    width: 25px;
    text-align: center;
}

.menu-text {
    flex: 1;
    font-size: 15px;
    color: #333;
}

.menu-arrow {
    font-size: 14px;
    color: #999;
}

/* 登录页面样式 */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0 20px;
    background-color: #f5f5f5;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 14px;
    color: #999;
}

.login-body {
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.tab-container {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 16px;
    color: #666;
    cursor: pointer;
}

.tab-item.active {
    color: #667eea;
    border-bottom: 2px solid #667eea;
}

.form-container {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.form-group label i {
    margin-right: 5px;
    color: #667eea;
}

.form-group input {
    width: 100%;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0 10px;
    font-size: 14px;
}

.login-btn {
    width: 100%;
    height: 45px;
    line-height: 45px;
    border-radius: 22.5px;
    font-size: 16px;
    border: none;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.login-btn i {
    margin-right: 5px;
}

.wechat-btn {
    background-color: #07c160;
    color: white;
}

.account-btn {
    background-color: #667eea;
    color: white;
}

.register-btn {
    background-color: #667eea;
    color: white;
}

.divider {
    text-align: center;
    margin: 15px 0;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background-color: #eee;
}

.divider span {
    position: relative;
    background-color: #fff;
    padding: 0 10px;
    color: #999;
    font-size: 12px;
}

.login-footer {
    margin-top: 30px;
    font-size: 12px;
    color: #999;
    text-align: center;
}

/* 搜索容器样式 */
.search-container {
    display: flex;
    background-color: #fff;
    padding: 15px;
    margin: 0 15px 15px;
    border-radius: 10px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    margin-right: 10px;
}

.search-input-wrapper i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-input {
    width: 100%;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0 10px 0 35px;
    font-size: 14px;
}

.search-btn {
    width: 80px;
    height: 40px;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn i {
    margin-right: 5px;
}

/* 结果容器样式 */
.result-container {
    background-color: #fff;
    margin: 0 15px 15px;
    border-radius: 10px;
    padding: 15px;
}

.account-info {
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    margin-bottom: 10px;
    font-size: 14px;
}

.info-item .label {
    width: 100px;
    color: #999;
}

.info-item .label i {
    margin-right: 5px;
}

.info-item .value {
    flex: 1;
    color: #333;
}

.no-account {
    text-align: center;
    padding: 20px 0;
    color: #999;
}

.no-account i {
    font-size: 30px;
    margin-bottom: 10px;
    display: block;
}

.renew-btn-container {
    text-align: center;
}

.renew-btn {
    width: 100%;
    height: 45px;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 22.5px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.renew-btn i {
    margin-right: 5px;
}

/* 提示信息样式 */
.tips {
    background-color: #fff;
    margin: 0 15px;
    border-radius: 10px;
    padding: 15px;
}

.tips p {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.tips p i {
    margin-right: 5px;
    color: #667eea;
}

/* 续签记录样式 */
.records-container {
    padding: 0 15px;
}

.empty-records {
    text-align: center;
    padding: 40px 0;
    color: #999;
}

.empty-records i {
    font-size: 50px;
    margin-bottom: 10px;
    display: block;
}

.empty-records p {
    font-size: 14px;
}

.record-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
}

.record-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.record-mobile {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.record-mobile i {
    margin-right: 5px;
    color: #667eea;
}

.record-status {
    font-size: 14px;
}

.record-status.success {
    color: #07c160;
}

.record-status.pending {
    color: #ff9900;
}

.record-body {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.record-amount {
    color: #ff6600;
    font-weight: bold;
}

.record-amount i {
    margin-right: 2px;
}

.record-time {
    color: #999;
}

.record-time i {
    margin-right: 5px;
}

/* 个人中心样式 */
.profile-container {
    padding: 0 15px;
}

.profile-header {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar i {
    font-size: 50px;
    color: #999;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.profile-id {
    font-size: 14px;
    color: #999;
}

.profile-stats {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    padding: 15px 0;
    margin-bottom: 15px;
}

.profile-stats .stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-stats .stat-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.profile-stats .stat-label i {
    margin-right: 5px;
}

.profile-stats .stat-value {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.profile-menu {
    background-color: #fff;
    border-radius: 10px;
    padding: 0 15px;
}

.profile-menu .menu-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
}

.profile-menu .menu-item:last-child {
    border-bottom: none;
}

.profile-menu .menu-icon {
    font-size: 20px;
    margin-right: 10px;
    color: #667eea;
    width: 25px;
    text-align: center;
}

.profile-menu .menu-text {
    flex: 1;
    font-size: 15px;
    color: #333;
}

.profile-menu .menu-arrow {
    font-size: 14px;
    color: #999;
}

/* 充值页面样式 */
.recharge-container {
    padding: 0 15px;
}

.balance-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.balance-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.balance-label i {
    margin-right: 5px;
}

.balance-value {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
}

.amount-input-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.input-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.input-label i {
    margin-right: 5px;
    color: #667eea;
}

.amount-input {
    width: 100%;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0 10px;
    font-size: 16px;
}

.preset-amounts {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px 15px;
}

.preset-item {
    width: calc(33.33% - 10px);
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: #fff;
    border-radius: 5px;
    margin: 5px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.preset-item.active {
    background-color: #667eea;
    color: #fff;
}

.recharge-btn {
    width: 100%;
    height: 45px;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 22.5px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.recharge-btn i {
    margin-right: 5px;
}
