* {
    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 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    color: #001f61;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
}
.auth-title img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: block;
}
.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: #001f61;
}
.auth-btn {
    width: 100%;
    height: 50px;
    background: #001f61;
    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: #001f61;
    text-decoration: none;
}
/* 主页面容器 */
.main-page {
    display: none;
    max-width: 750px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
}
.main-page.active {
    display: block;
}
/* 子页面容器 */
.sub-page {
    display: none;
    max-width: 750px;
    margin: 0 auto;
    padding: 10px;
    background: transparent;
    height: 100vh;
    padding-bottom: calc(50px + 10px);
}
.sub-page.active {
    display: flex;
    flex-direction: column;
}
/* 顶部固定图片 */
.top-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}
/* 首页样式 */
.home-func {
    display: grid;
    grid-template-columns: repeat(3, 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(0, 31, 97, 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: #001f61;
    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: #001f61;
    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;
    overflow: hidden;           /* 隐藏溢出 */
    text-overflow: ellipsis;    /* 显示省略号 */
    flex: 1;                    /* 占据剩余空间 */
    min-width: 0;               /* 允许flex子项缩小 */
}
.news-desc-small {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}
.video-type-tag {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    background: #001f61;
    color: #fff;
    border-radius: 3px;
    flex-shrink: 0;
}

/* 邀请页面样式 */
.invite-code-box {
    background: linear-gradient(135deg, #001f61, #0033a0);
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 15px;
    color: white;
    box-shadow: 0 6px 20px rgba(0, 31, 97, 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: #001f61;
    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: #001f61;
    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;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}
.reward-info {
    width: 100%;
    margin-bottom: 6px;
    padding-right: 70px;
}
.reward-title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.reward-bottom {
    width: 100%;
    padding-right: 70px;
}
.reward-num {
    color: #001f61;
    font-weight: bold;
    font-size: 14px;
}
.get-reward {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #001f61, #0033a0);
    color: #fff;
    border: none;
    padding: 6px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.get-reward:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.get-reward:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 31, 97, 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: #001f61;
    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: #001f61;
    margin-bottom: 10px;
}
.apply-info {
    text-align: left;
    font-size: 14px;
    line-height: 1.8;
    margin-top: 10px;
}
/* 抽奖页面样式 */
.lottery-scroll-wrap {
    width: 100%;
    height: 40px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}
.lottery-scroll {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.lottery-scroll-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    border-bottom: 1px solid #f5f5f5;
    height: 40px;
}
.lottery-scroll-item:last-child {
    border-bottom: none;
}
.lottery-scroll-item .scroll-phone {
    color: #999;
    margin-right: 8px;
    flex-shrink: 0;
}
.lottery-scroll-item .scroll-prize {
    color: #001f61;
    font-weight: 600;
    margin-left: auto;
}
.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: #001f61;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    z-index: 10;
}
.lottery-count {
    margin: 15px 0;
    font-size: 14px;
    color: #001f61;
}
.lottery-rule {
    background: rgba(255,255,255,0.9);
    padding: 15px;
    border-radius: 8px;
}
.lottery-btn {
    background: #001f61;
    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: #001f61;
    font-weight: bold;
}
.asset-btn {
    font-size: 14px;
    color: #001f61;
    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: #001f61;
    margin-bottom: 5px;
}
.my-func-text {
    font-size: 12px;
    color: #333;
}
.logout-btn {
    width: 100%;
    height: 50px;
    background: #001f61;
    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: #001f61;
    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: #001f61;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

.contact-btn:hover {
    background: #003380;
}
/* 实名认证/银行卡页面 */
.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: #001f61;
    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: #001f61;
}
.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: #001f61;
}
/* 弹窗 */
.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: #001f61;
    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;
    max-height: 85vh;  /* 最大高度为屏幕85% */
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    display: flex;
    flex-direction: column;
    overflow: hidden;  /* 防止整体溢出 */
}

.news-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;  /* 头部不收缩 */
}

.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 {
    flex: 1;  /* 占据剩余空间 */
    overflow-y: auto;  /* 内容区可滚动 */
    max-height: 65vh;  /* 内容区最大高度 */
    margin-bottom: 15px;
    -webkit-overflow-scrolling: touch;  /* iOS平滑滚动 */
}

.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;
}

/* 弹窗按钮区不收缩 */
.news-modal-content .modal-btns {
    flex-shrink: 0;  /* 按钮区不收缩 */
    margin-top: 0;
}

/* 联系弹窗样式 */
.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: #001f61; color: white; }
    100% { transform: scale(1); background-color: #f8f8f8; }
}

.lottery-winning {
    background: linear-gradient(135deg, #001f61, #0033a0) !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;
    min-height: 200px;
}

.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: #001f61;
    font-weight: bold;
}

/* ========== 申请审核弹窗样式（红色主题） ========== */
.apply-audit-content {
    background: linear-gradient(135deg, #DE2910 0%, #FF4D2A 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 90%;
    width: 450px;
    position: relative;
    box-shadow: 0 20px 40px rgba(222, 41, 16, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.apply-audit-content .audit-title {
    text-align: center;
    color: white;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    margin-top: 10px;
}

/* 审核表格 */
.apply-audit-content .audit-table {
    position: relative;
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border: 2px solid #F5D6D0;
    border-radius: 8px;
    overflow: hidden;
}

.apply-audit-content .audit-table tr {
    border-bottom: 1px solid #F5D6D0;
}

.apply-audit-content .audit-table tr:last-child {
    border-bottom: none;
}

.apply-audit-content .audit-table .label {
    background: #FFF5F3;
    padding: 14px 15px;
    font-weight: 600;
    color: #DE2910;
    width: 35%;
    font-size: 14px;
}

.apply-audit-content .audit-table .value {
    background: white;
    padding: 14px 15px;
    color: #DE2910;
    font-weight: 600;
    font-size: 14px;
}

/* 审核章图片 - 表格右下角定位 */
.apply-audit-content .audit-seal {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 85px;
    height: 85px;
    margin-bottom: 150px;
    border: none;
    background: transparent;
    z-index: 10;
    pointer-events: none;
}

/* 国徽 - 表格左上角定位（与右下角审核章对角线对称） */
.apply-audit-content .audit-seal-top {
    position: absolute;
    top: 35px;
    left: 15px;
    width: 42px;
    height: 42px;
    max-width: 42px;
    max-height: 42px;
    border: none;
    background: transparent;
    z-index: 10;
    pointer-events: none;
}

.apply-audit-content .audit-warning {
    background: #FFF5F3;
    border: 1px solid #F5B8B0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.apply-audit-content .audit-warning i {
    color: #DE2910;
    font-size: 18px;
    margin-right: 8px;
}

.apply-audit-content .audit-warning p {
    color: #DE2910;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.apply-audit-content .audit-actions {
    display: flex;
    gap: 10px;
}

.apply-audit-content .audit-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-audit-content .audit-btn-secondary {
    background: #FFF5F3;
    color: #DE2910;
}

.apply-audit-content .audit-btn-secondary:hover {
    background: #F5D6D0;
}

.apply-audit-content .audit-btn-primary {
    background: linear-gradient(135deg, #DE2910 0%, #FF4D2A 100%);
    color: white;
}

.apply-audit-content .audit-btn-primary:hover {
    background: linear-gradient(135deg, #C4220D 0%, #E64322 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(222, 41, 16, 0.3);
}

/* ========== 在线直播页面样式 ========== */
.live-page {
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    position: relative;
}

.live-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #001f61, #0033a0);
    color: white;
}

.live-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-badge {
    background: #ff4444;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.live-topic {
    font-size: 16px;
    font-weight: 600;
}

.live-viewers {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.live-viewers i {
    font-size: 16px;
}

.live-video-container {
    position: relative;
    width: 100%;
    background: #000;
    aspect-ratio: 16/9;
    flex-shrink: 0;
}

.live-video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.live-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.live-control-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.3s;
}

.live-control-btn:hover {
    background: rgba(255,255,255,0.3);
}

.live-progress {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
}

.live-progress-bar {
    height: 100%;
    background: #fff;
    width: 0%;
    transition: width 0.1s linear;
}

.live-time {
    color: white;
    font-size: 12px;
    min-width: 40px;
    text-align: right;
}

.live-chat {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: none; /* 让点击穿透到视频，除了输入框 */
}

.live-chat-header {
    display: none; /* 隐藏标题栏 */
}

.live-chat-messages {
    height: 370px; /* 增加高度，容纳 8-10 条消息 */
    overflow: hidden; /* 禁止滚动，只显示最新的 */
    padding: 15px 15px 55px 15px; /* 底部留出输入框位置 */
    background: linear-gradient(to bottom, transparent, rgba(0, 31, 97, 0.15) 30%, rgba(0, 31, 97, 0.25)); /* 蓝色主题半透明背景 */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* 消息靠底部对齐 */
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%); /* 顶部渐隐效果 */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%);
}

.live-chat-message {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
    background: rgba(0, 31, 97, 0.12); /* 每条消息带蓝色半透明底色 */
    padding: 5px 10px;
    border-radius: 8px;
    backdrop-filter: blur(2px);
}

.live-chat-user {
    color: #5bb8ff; /* 浅蓝色用户名 */
    font-weight: 600;
    word-break: keep-all;
}

.live-chat-text {
    color: #e8f0ff; /* 淡蓝色文字 */
    text-shadow: none;
    word-break: break-word;
    overflow-wrap: break-word;
}

.live-chat-input-area {
    display: flex;
    gap: 10px;
    padding: 12px 15px;
    background: linear-gradient(transparent, rgba(0, 31, 97, 0.9) 40%); /* 蓝色渐变背景 */
    flex-shrink: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    pointer-events: auto;
}

.live-chat-input-area input {
    flex: 1;
    height: 38px;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 19px;
    font-size: 13px;
    outline: none;
    background: rgba(255,255,255,0.1); /* 半透明输入框 */
    color: #fff;
}

.live-chat-input-area input:focus {
    border-color: #5bb8ff;
    background: rgba(255,255,255,0.15);
}

.live-chat-send-btn {
    background: #001f61;
    color: #fff;
    border: none;
    padding: 0 18px;
    border-radius: 19px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s;
    box-shadow: 0 2px 6px rgba(0, 31, 97, 0.3);
}

.live-chat-send-btn:hover {
    background: #0033a0;
}

/* 暂无直播样式 */
.live-unavailable {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: #f8f8f8;
    border-radius: 12px;
    margin: 0 20px;
}

.live-unavailable-icon {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.live-unavailable-text {
    font-size: 18px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
}

.live-unavailable-desc {
    font-size: 14px;
    color: #999;
    text-align: center;
}

/* ==================== 保密协议页面样式 ==================== */
/* 保密协议子页面去除padding，让顶部图片贴边 */
#protocolPage {
    padding: 0;
    padding-bottom: calc(50px + 10px);
}

#protocolPage .top-img {
    margin-bottom: 0;
    border-radius: 0;
}

.protocol-page {
    background: transparent;
    margin: 0;
    padding: 0;
    border-radius: 0;
}

.protocol-header {
    margin-bottom: 0;
    text-align: center;
}

.protocol-title {
    color: #c8102e;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.protocol-content {
    line-height: 1.8;
    color: #333;
    padding: 15px 10px;
}

.protocol-content ol {
    padding-left: 20px;
}

.protocol-content ol li {
    margin-bottom: 8px;
}

/* 已签署成功状态样式 */
.protocol-signed-status {
    text-align: center;
    padding: 40px 20px;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 8px;
    margin-top: 20px;
}

.protocol-signed-status .success-icon {
    font-size: 48px;
    color: #52c41a;
    margin-bottom: 15px;
}

.protocol-signed-status h3 {
    color: #52c41a;
    font-size: 20px;
    margin-bottom: 10px;
}

.protocol-signed-status p {
    color: #666;
    font-size: 14px;
}

