* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", "Helvetica Neue", Arial, sans-serif;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-focus-ring-color: transparent;
}
body {
    background: url('../img/bj.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    padding-bottom: 50px;
    overflow-x: hidden;
    color: #333;
}
/* 仅首页允许滚动 */
.scrollable {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden;
    padding-bottom: 50px;
}
/* 所有非首页页面禁止滚动 */
.no-scroll {
    height: calc(100vh - 50px) !important;
    overflow: hidden !important;
}
/* 当底部导航显示时，为所有主页面添加底部边距 */
.bottom-nav[style*="flex"] ~ .main-page {
    padding-bottom: 50px;
}
/* 注册/登录页面 */
.auth-page {
    width: 90%;
    max-width: 450px;
    min-width: 300px;
    margin: 50px auto;
    background: rgba(255,255,255,0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}
.auth-title {
    text-align: center;
    color: #c8102e;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
}
.form-item {
    margin-bottom: 15px;
}
.form-item label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}
.form-item input {
    width: 100%;
    height: 45px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
}
.form-item input:focus {
    border-color: #c8102e;
}
.auth-btn {
    width: 100%;
    height: 50px;
    background: #c8102e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}
.auth-switch {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}
.auth-switch a {
    color: #c8102e;
    text-decoration: none;
}
/* 主页面容器 */
.main-page {
    display: none;
    max-width: 750px;
    margin: 0 auto;
    padding: 10px;
    background: transparent;
}
.main-page.active {
    display: block;
}
/* 子页面容器 */
.sub-page {
    display: none;
    max-width: 750px;
    margin: 0 auto;
    padding: 10px;
    background: transparent;
}
.sub-page.active {
    display: block;
}
/* 顶部固定图片 */
.top-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}
/* 首页样式 */
.home-func {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: rgba(255,255,255,0.9);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}
.func-item {
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 5px;
    border-radius: 6px;
    transition: background-color 0.3s;
}
.func-item:hover {
    background-color: rgba(200, 16, 46, 0.1);
}
.no-effect-item {
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 5px;
    border-radius: 6px;
    text-decoration: none; /* 移除链接下划线 */
    color: inherit; /* 继承文字颜色 */
}
.no-effect-item:hover {
    /* 无悬停效果 */
}
.func-icon {
    font-size: 24px;
    color: #c8102e;
    margin-bottom: 5px;
}
.func-text {
    font-size: 12px;
    color: #333;
}
.qrcode-area {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: rgba(255,255,255,0.9);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}
.qrcode-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.qrcode-img {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
}
.news-area {
    background: rgba(255,255,255,0.9);
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
}
.news-img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 4px;
}
.news-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}
.news-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 新闻区域样式 */
.news-area {
    background: rgba(255,255,255,0.9);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
}
.section-title {
    font-size: 16px;
    color: #c8102e;
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title::before {
    content: '\f1ea';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
}
.news-container {
    background: rgba(255,255,255,0.95);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.news-img {
    width: 100%;
    height: auto;
    margin-bottom: 8px;
    border-radius: 4px;
}
.news-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
}
.news-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* 新闻小图样式 */
.news-item {
    display: flex;
    align-items: center;
    background: rgba(200, 16, 46, 0.05);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    cursor: pointer;
}
.news-img-small {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 12px;
}
.news-content {
    flex: 1;
}
.news-title-small {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    font-weight: 500;
}
.news-desc-small {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* 邀请页面样式 */
.invite-code-box {
    background: linear-gradient(135deg, #c8102e, #e63946);
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 15px;
    color: white;
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.2);
}
.invite-code-box h3 {
    color: white;
    margin-bottom: 10px;
}
.invite-code {
    font-size: 28px;
    color: #ffd700;
    font-weight: bold;
    margin: 15px 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.invite-btn {
    background: white;
    color: #c8102e;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    margin: 0 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.invite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.invite-stats {
    background: rgba(255,255,255,0.95);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.stats-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.stats-label {
    font-size: 14px;
    color: #333;
}
.stats-value {
    font-size: 16px;
    color: #c8102e;
    font-weight: bold;
}
.invite-reward {
    background: rgba(255,255,255,0.95);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.reward-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.reward-info {
    flex: 1;
}
.reward-title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.reward-desc {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}
.reward-num {
    color: #c8102e;
    font-weight: bold;
    font-size: 16px;
}
.get-reward {
    background: linear-gradient(135deg, #c8102e, #e63946);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-left: 10px;
}
.get-reward:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.get-reward:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(200, 16, 46, 0.3);
}
/* 申请页面样式 */
.apply-form {
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 8px;
}
.apply-item {
    margin-bottom: 15px;
}
.apply-item label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}
.apply-item input {
    width: 100%;
    height: 45px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
}
.apply-btn {
    width: 100%;
    height: 50px;
    background: #c8102e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    cursor: pointer;
    margin-top: 10px;
}
.apply-success {
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    display: none;
}
.apply-success h3 {
    color: #c8102e;
    margin-bottom: 10px;
}
.apply-info {
    text-align: left;
    font-size: 14px;
    line-height: 1.8;
    margin-top: 10px;
}
/* 抽奖页面样式 */
.lottery-box {
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
}
.lottery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 5px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    position: relative;
}
.lottery-cell {
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 10px;
    color: #333;
    padding: 5px;
    word-break: break-word;
}
.lottery-center {
    grid-column: 2 / span 2;
    grid-row: 2 / span 2;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #c8102e;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    z-index: 10;
}
.lottery-count {
    margin: 15px 0;
    font-size: 14px;
    color: #c8102e;
}
.lottery-rule {
    background: rgba(255,255,255,0.9);
    padding: 15px;
    border-radius: 8px;
}
.lottery-btn {
    background: #c8102e;
    color: #fff;
    border: none;
    padding: 8px 30px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}
/* 我的页面样式 */
.user-info {
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #eee;
    margin-right: 15px;
    overflow: hidden;
}
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-detail h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}
.user-detail p {
    font-size: 14px;
    color: #666;
    margin-bottom: 3px;
}
.asset-box {
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}
.asset-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.asset-label {
    font-size: 15px;
    color: #333;
}
.asset-value {
    font-size: 16px;
    color: #c8102e;
    font-weight: bold;
}
.asset-btn {
    font-size: 14px;
    color: #c8102e;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 10px;
}
.my-func {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    background: rgba(255,255,255,0.9);
    padding: 15px;
    border-radius: 8px;
}
.my-func-item {
    text-align: center;
    cursor: pointer;
    text-decoration: none; /* 移除链接下划线 */
    color: inherit; /* 继承文字颜色 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.my-func-icon {
    font-size: 24px;
    color: #c8102e;
    margin-bottom: 5px;
}
.my-func-text {
    font-size: 12px;
    color: #333;
}
.logout-btn {
    width: 100%;
    height: 50px;
    background: #c8102e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    cursor: pointer;
    margin-top: 15px;
}
/* 提现页面 */
.withdraw-page {
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    min-width: 300px;
    margin: 0 auto;
}
.withdraw-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}
.withdraw-input {
    width: 100%;
    height: 45px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 15px;
}
.withdraw-btn {
    width: 100%;
    height: 50px;
    background: #c8102e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    cursor: pointer;
}
.withdraw-record {
    background: rgba(255,255,255,0.9);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: none;
}
.record-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.contact-btn {
    background: #c8102e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

.contact-btn:hover {
    background: #a50e26;
}
/* 实名认证/银行卡页面 */
.form-page {
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    min-width: 300px;
    margin: 0 auto;
}
.form-page-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}
/* 资金明细页面 */
.detail-page {
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 8px;
    max-width: 750px;
    margin: 0 auto;
}
.team-page {
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 8px;
    max-width: 750px;
    margin: 0 auto;
}

.team-stats {
    background: rgba(255,255,255,0.95);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.stat-label {
    font-size: 14px;
    color: #333;
}

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

.team-list {
    background: rgba(255,255,255,0.95);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.team-member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.team-member-info {
    flex: 1;
}

.team-member-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.team-member-time {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.detail-type {
    color: #c8102e;
}
.detail-money {
    font-weight: bold;
}
.detail-time {
    color: #999;
    font-size: 12px;
}
/* 底部导航 - 固定禁止滑动 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 750px;
    background: #fff;
    display: flex;
    border-top: 1px solid #eee;
    z-index: 999;
    display: none;
    touch-action: none;
    height: 50px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
.nav-item {
    flex: 1;
    padding: 5px 0;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.nav-icon {
    font-size: 22px;
    color: #999;
    margin-bottom: 5px;
    display: block;
}
.nav-text {
    font-size: 12px;
    color: #999;
}
.nav-item.active .nav-icon,
.nav-item.active .nav-text {
    color: #c8102e;
}
/* 弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}

/* 禁用涟漪动画效果 */
* {
    transition: none !important;
    animation: none !important;
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    -webkit-animation: none !important;
    -moz-animation: none !important;
    -o-animation: none !important;
}

/* 确保页面可以正常滚动 */
.main-page:not(.scrollable),
.sub-page {
    overflow-y: auto !important;
}
.modal-content {
    width: 90%;
    max-width: 350px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}
.modal-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}
.modal-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}
.modal-btn {
    background: #c8102e;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
}
.modal-btn.cancel {
    background: #999;
}

/* 新闻弹窗样式 */
.news-modal-content {
    width: 90%;
    max-width: 450px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
}

.news-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.news-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: #333;
}

.news-modal-body {
    margin-bottom: 15px;
}

.news-modal-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 15px;
    object-fit: contain;
}

#newsModalDesc {
    line-height: 1.6;
    color: #666;
    font-size: 14px;
}

/* 联系弹窗样式 */
.contact-modal-content {
    width: 90%;
    max-width: 350px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.contact-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.contact-modal-body {
    margin-bottom: 15px;
}

.contact-modal-img {
    width: 200px;
    height: auto;
    max-width: 100%;
    border-radius: 6px;
    margin-bottom: 15px;
    object-fit: contain;
}

#contactModalDesc {
    line-height: 1.6;
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* 抽奖动画效果 */
.lottery-animating {
    animation: lotteryAnimation 0.2s ease-in-out;
}

@keyframes lotteryAnimation {
    0% { transform: scale(1); background-color: #f8f8f8; }
    50% { transform: scale(1.1); background-color: #c8102e; color: white; }
    100% { transform: scale(1); background-color: #f8f8f8; }
}

.lottery-winning {
    background: linear-gradient(135deg, #c8102e, #e63946) !important;
    color: white !important;
    font-weight: bold;
}

.lottery-selected {
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    color: white !important;
    font-weight: bold;
}

.lottery-prize-record {
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.prize-record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.prize-name {
    font-size: 14px;
    color: #333;
}

.prize-time {
    font-size: 12px;
    color: #999;
}

.prize-amount {
    color: #c8102e;
    font-weight: bold;
}
