:root {
    --radius: 12px;
    --brand-green: #16a34a;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --primary: #0d6efd;
    --light-bg: #fafbfc;
    --border-color: #eaecef;
}

/* 导航栏固定 + 永久亮绿（不变黑） */
body.no-dark.dark-mode .navbar {
  background: #28a745 !important;
}
body.no-dark.dark-mode {
  background: #f8f9fa !important;
  color: #212525 !important;
}

* {
    box-sizing: border-box;
}

body {
    padding-top: 50px;
    background: #f8f9fa;
}

/* 导航栏 - 已修复：正常布局 + 昵称8字 + 永不溢出 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0.4rem 0;
    background: linear-gradient(135deg, #3bd275, #28a745) !important;
    border-radius: 0 !important;
    margin-top: 0 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 12px;
}
.navbar-brand {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.navbar-brand img {
    height: 24px !important;
}
.navbar-text {
    font-size: clamp(0.7rem, 2vw, 0.85rem) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100px !important;
    min-width: 60px !important;
    flex: 0 1 auto !important;
    display: inline-block !important;
    vertical-align: middle !important;
    line-height: 1.2 !important;
}
.navbar .d-flex {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important; /* 🔥 强制不换行 */
}

/* 深色模式按钮 */
#darkToggle {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    font-size: 13px;
    padding: 0 !important;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.my-badge {
    position: relative;
}
.my-badge::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    right: 2px;
    display: none;
}

/* 类型选择 */
.type-btn {
    border:2px solid #eee;
    border-radius: var(--radius);
    padding: 10px 18px;
    margin:0 4px;
    cursor:pointer;
    transition:all 0.2s;
    flex:1;
    text-align:center;
    font-weight: 500;
}
.type-btn.active {
    border-color: var(--brand-green);
    background: var(--brand-green);
    color:#fff;
}
.type-btn:hover {
    border-color: var(--brand-green);
}
.type-btn img { height:18px; margin-right:5px; }

/* 倒计时 */
.countdown {
    font-weight: 600;
    color: var(--brand-green);
    font-size: 14px;
    white-space: nowrap;
    margin-bottom: 4px;
}
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.status-pending { background:#fff4e8; color:#f59e0b; }
.status-success { background:#e8f5f0; color:#16a34a; }
.status-failed { background:#fee; color:#dc2626; }

.form-label {
    font-size: 0.9rem;
    margin-bottom: 4px;
    font-weight: 500;
}

/* 备注框 */
.remark-box .form-control {
    font-size: 13px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 6px 5px !important;
}

/* 任务卡片 */
.task-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 12px;
    position: relative;
    transition: all 0.25s ease;
    border: none;
}
.task-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.task-type-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #f0f9eb;
}
.task-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.task-info .time,
.task-info .send-time {
    color: #888;
    font-size: 13px;
    margin: 4px 0;
}
.task-info .remark {
    color: #555;
    font-size: 14px;
    font-weight: 500;
}
.task-countdown {
    text-align: right;
}

/* 删除按钮 */
.del-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    color: #bbb;
    background: transparent;
    border-radius: 60%;
    border: none;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    transition: 0.2s;
}
.del-btn:hover {
    color: #dc2626;
    background: #fef2f2;
}

.pagination {
    justify-content: center;
    margin-top: 16px;
}

/* 时间输入 */
.time-input-group {
    display: flex;
    align-items: stretch;
    flex: 1;
}
.time-input-group .form-control {
    border-radius: var(--radius) 0 0 var(--radius);
    border-right: none;
    width: 100%;
    text-align: center;
    font-size: 13px !important;
}
.time-input-group .unit {
    border: 1px solid #ced4da;
    border-left: none;
    background: #f8f9fa;
    padding: 0 5px;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 12px;
    color:#666;
    white-space: nowrap;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.input-row {
    display: flex;
    gap: 8px;
}
.input-row .time-input-group {
    flex: 1;
}
.input-row .remark-box {
    flex: 2;
}

/* 任务标签 */
.task-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
    flex-wrap: nowrap !important;
}
.task-tab {
    padding: 8px 18px;
    border-radius: var(--radius);
    background: #f6f6f6;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
    white-space: nowrap;
}
.task-tab.active {
    background: var(--brand-green);
    color: #fff;
}
.task-tab a {
    text-decoration: none;
    color: inherit;
}
.task-info .create-time {
    color: #999;
    font-size: 12px;
    margin-top: 2px;
}

/* 统计 */
.stat-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    font-size: clamp(11px, 1.8vw, 14px);
    white-space: nowrap;
    margin-bottom: 10px;
}
.stat-icon {
    color: var(--brand-green);
    font-size: clamp(14px, 2vw, 18px);
}
.stat-today { color: #16a34a; font-weight: bold; }
.stat-month { color: #0d6efd; font-weight: bold; }

/* 空状态 */
.empty-state {
    padding: 50px 20px;
    text-align: center;
    color: #999;
}
.empty-state i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 12px;
}
.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* 按钮 & 卡片 */
.card {
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important;
    border: none !important;
}
.btn {
    border-radius: 6px;
    transition: 0.2s;
    font-size: 12px;
    padding: 3px 10px;
    border: 1px solid var(--border-color);
}
.btn-success {
    background: var(--brand-green);
    border-color: var(--brand-green);
}
.btn-success:hover {
    background: #15803d;
    border-color: #15803d;
}

/* 统一精致小按钮 */
.btn-sm-light {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 12px;
}
.btn-sm-light:hover {
    background: #f6f6f6;
    border-color: #ccc;
}

/* 标题区域 */
.hero-section {
    text-align: center;
    padding: 1rem 1rem 3rem;
}
.hero-desc {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}
.feature-item {
    text-align: left;
    max-width: 400px;
    margin: 1rem auto;
    display: flex;
    align-items: center;
}
.feature-item i {
    color: var(--brand-green);
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* 登录框 */
.auth-box {
    max-width: 400px;
    margin: 3rem auto 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
}
.auth-box .lock-icon {
    font-size: 2rem;
    color: var(--brand-green);
    margin-bottom: 1rem;
}

/* 渐变标题 */
.gradient-title {
    background: linear-gradient(90deg, #28a745, #17a2b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* 功能卡片 */
.feature-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    border-color: #28a745;
}

.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(40, 167, 69, 0.1);
    border-radius: 10px;
}

.compact-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}
.compact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border-color: #28a745;
}

/* ====================== 个人中心 ====================== */
.profile-page {
    padding-top: 50px !important;
    background: #f8f9fa !important;
}
.profile-page .form-control {
    font-size: 13px !important;
    text-overflow: ellipsis;
}
.profile-page ::placeholder {
    font-size: 12px !important;
}

.profile-page .value-highlight {
    color: var(--brand-green) !important;
    font-weight: 500;
}

.logout-btn {
    background: #f13f5;
    color: #555;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
}
.logout-btn:hover {
    background: #e9ecef;
    color: #222;
}

.nickname-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1rem;
}
.nickname-txt {
    font-size: 18px;
    font-weight: 600;
}
.edit-icon {
    color: #6c757d;
    cursor: pointer;
    font-size: 14px;
}
.edit-icon:hover {
    color: var(--primary);
}
/* 轻提示 Toast 样式 - 所有页面共用 */
#toast {
    position: fixed;
    top: 70px; /* 避开导航栏，不会被挡住 */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 9999; /* 确保在所有弹窗、元素之上 */
    display: none;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 弹窗 */
.modal-mask {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.modal-box {
    background: #fff;
    width: 280px;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.modal-box input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    margin-bottom: 10px;
}
.modal-box input:focus {
    border-color: var(--brand-green);
    outline: none;
}
.modal-btns {
    display: flex;
    gap: 8px;
}
.modal-btns button {
    flex: 1;
    border: none;
    border-radius: 8px;
    padding: 7px 0;
    font-size: 14px;
}
.btn-cancel {
    background: #f1f1f1;
}
.btn-cancel:hover {
    background: #e5e5e5;
}
.btn-ok {
    background: var(--primary);
    color: #fff;
}
.btn-ok:hover {
    background: #0b5ed7;
}

/* 列表项 */
.item-edit {
    cursor: pointer;
    color: #6c757d;
}
.item-edit:hover {
    color: var(--primary);
}

.item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}
.icon-remind { background: var(--primary); }
.icon-phone  { background: var(--brand-green); }
.icon-email  { background: #6f42c1; }
.icon-pwd    { background: #dc3545; }
.icon-wechat { background: #198754; }

.item-desc {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.profile-page .card {
    border-radius: 16px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07) !important;
    border: none !important;
    overflow: hidden;
}
.profile-page .mb-3 {
    padding: 6px 0;
}

/* ====================== 深色模式 ====================== */
body.dark {
    background: #1a1a2e !important;
    color: #e0e0e0 !important;
}
body.dark .stat-line {
    color: #e0e0e0;
}
body.dark .card,
body.dark .task-card,
body.dark .auth-box {
    background: #252941 !important;
    color: #e0e0e0 !important;
    border-color: #333 !important;
}
body.dark .form-control {
    background: #2d2d44 !important;
    color: #fff !important;
    border-color: #444 !important;
}
body.dark .task-type-icon {
    background: #1f2937;
}
body.dark .modal-box {
    background: #252941 !important;
    color: #e0e0e0 !important;
}
body.dark .modal-box input {
    background: #2d2d44 !important;
    color: #fff !important;
    border-color: #444 !important;
}
body.dark .btn-cancel {
    background: #333858 !important;
    color: #e0e0e0 !important;
}
body.dark .btn-cancel:hover {
    background: #404870 !important;
}
body.dark .value-highlight {
    color: #6ea8ff !important;
}

/* 任务卡片排版 */
.task-info {
    line-height: 1.5 !important;
}
.task-info .time,
.task-info .send-time,
.task-info .create-time {
    font-size: 12px !important;
    color: #888 !important;
    margin: 1px 0 !important;
}
.create-time {
    font-size: 12px;
    color: #999 !important;
}
.task-countdown {
    min-width: 70px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.task-card.status-success {
    background: #f8fff9 !important;
    border-left: 3px solid var(--brand-green) !important;
}

/* 进度条 */
.mini-progress-fill.p-gray { background: #b8b8b8; }
.mini-progress-fill.p-orange { background: #ff9500; }
.mini-progress-fill.p-lightgreen { background: #52c41a; }
.mini-progress-fill.p-green { background: #16a34a; }
.mini-progress {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
}
.mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3bd275, #28a745);
    transition: width 1s linear;
}
.task-card.status-success .mini-progress-fill {
    width: 100% !important;
    background: #28a745;
}
.task-countdown {
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.mature-count {
  font-size: 11px;
  color: #999 !important;
  white-space: nowrap;
  text-align: right;
}

/* 高级创建按钮 */
.btn-primary-custom {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
    position: relative;
    overflow: hidden;
}
.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(40, 167, 69, 0.3);
}
.btn-primary-custom:hover::before {
    left: 100%;
}
.btn-primary-custom:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

/* 微信浮窗 */
.wx-float-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}
.mask-content {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    max-width: 260px;
    width: 100%;
    text-align: center;
}
.guide-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}
.mask-tip {
    color: #666;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.5;
}
.mask-close-btn {
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 14px;
}

/* 个人中心分割线 */
.mb-3.d-flex.align-items-center.gap-3 {
  border-bottom: 1px solid #f0f0f0 !important;
  padding-bottom: 12px !important;
  margin-bottom: 12px !important;
}
.mb-3.d-flex.align-items-center.gap-3:last-of-type {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* 实时校验错误 */
.form-control.is-invalid {
    border-color: #ff4444 !important;
    background-image: none !important;
}
.text-danger.small {
    font-size: 12px;
    color: #ff4444 !important;
    margin-top: 4px;
}
.d-none {
    display: none !important;
}

/* 分页美化 */
.pagination-box .btn {
    font-size: 11px;
    min-height: 26px;
    padding: 2px 7px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.pagination-box .btn:hover:not(.disabled) {
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.pagination-box .btn-success {
    background-color: #198754;
    box-shadow: 0 1px 3px rgba(25, 135, 84, 0.2);
}
.pagination-box .btn.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}
#jumpPage {
    border: 1px solid #e0e0e0;
    font-size: 11px;
    height: 26px;
    padding: 0 5px;
    border-radius: 5px;
}
.pagination-box .btn[aria-label] {
    padding: 2px 7px !important;
    min-width: auto !important;
}

/* ====================== 游戏风格按钮 ====================== */
.btn-game-cancel {
    background: linear-gradient(180deg, #ff9e9e 0%, #f07a6a 50%, #d95a4a 100%);
    border: 3px solid #ffb7b7;
    border-radius: 24px;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    padding: 4px 16px;
    position: relative;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 3px rgba(255,255,255,0.6), inset 0 -2px 3px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.2);
    overflow: hidden;
}
.navbar .btn-game-cancel::after { display: none !important; }
.btn-game-cancel::after {
    content: '';
    position: absolute;
    bottom: 6px;
    right: 10px;
    width: 22px;
    height: 5px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.85) 50%, transparent 100%);
    border-radius: 10px;
    transform: rotate(-32deg) skewX(-20deg);
    opacity: 0.9;
    filter: blur(1px);
}

.btn-game-confirm {
    background: linear-gradient(180deg, #a2e65c 0%, #68c838 50%, #4a9e2a 100%);
    border: 5px solid #b8f060;
    border-radius: 24px;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    padding: 4px 16px;
    position: relative;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 3px rgba(255,255,255,0.6), inset 0 -2px 3px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.2);
    overflow: hidden;
}
.btn-game-confirm::after {
    content: '';
    position: absolute;
    bottom: 6px;
    right: 10px;
    width: 22px;
    height: 5px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.85) 50%, transparent 100%);
    border-radius: 10px;
    transform: rotate(-32deg) skewX(-20deg);
    opacity: 0.9;
    filter: blur(1px);
}

.btn-game-sale {
    background: linear-gradient(180deg, #ffd343 0%, #f5b800 50%, #d99b00 100%);
    border: 3px solid #ffe080;
    border-radius: 24px;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    padding: 4px 16px;
    position: relative;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 3px rgba(255,255,255,0.6), inset 0 -2px 3px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.2);
    overflow: hidden;
}
.btn-game-sale::after {
    content: '';
    position: absolute;
    bottom: 6px;
    right: 10px;
    width: 22px;
    height: 5px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.85) 50%, transparent 100%);
    border-radius: 10px;
    transform: rotate(-32deg) skewX(-20deg);
    opacity: 0.9;
    filter: blur(1px);
}

.btn-game-cancel:active,
.btn-game-confirm:active,
.btn-game-sale:active {
    transform: translateY(2px);
    box-shadow: inset 0 2px 3px rgba(255,255,255,0.6), inset 0 -2px 3 rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.2);
}

/* ====================== 活动中心（干净无冲突版） ====================== */
body.activity-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4eaf5 100%);
    padding-top: 70px !important;
}
.activity-page .wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 12px;
}
.activity-page .page-title {
    font-size: 20px;
    font-weight: 800;
    color: #1f2937;
    text-align: center;
    margin-bottom: 6px;
}
.activity-page .page-desc {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
    opacity: 0.9;
}
.activity-page .card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255,255,255,0.5);
    position: relative;
}
.activity-page .text-sm {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

/* 广告轮播 */
.activity-page .ad-box {
    display: flex;
    gap: 6px;
    overflow: hidden;
    padding: 10px 0;
    width: 100%;
}
.activity-page .ad-item {
    width: calc(25% - 5px);
    flex-shrink: 0;
    text-align: center;
}
.activity-page .ad-item img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
    object-fit: cover;
    background: #f3f4f6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.activity-page .ad-item .title {
    margin-top: 6px;
    font-size: 11px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.85;
    line-height: 1.2;
}
.activity-page .blur {
    filter: blur(8px);
    pointer-events: none;
}

/* 解锁模块 */
.activity-page .donate-share-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.activity-page .donate-left {
    flex: 0 0 auto;
    text-align: center;
}
.activity-page .share-right {
    flex: 1;
    text-align: center;
}
.activity-page .share-right .title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}
.activity-page .btn-action {
    background:#2563eb;
    color:#fff;
    border:none;
    padding: 10px 14px;
    border-radius: 8px;
    width:100%;
    font-size:14px;
}
.activity-page .btn-action:disabled {
    opacity:0.6;
    background:#666;
}

/* 弹窗 & 提示 */
.activity-page .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.activity-page .modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}
.activity-page .toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 99999;
    font-size: 14px;
    display: none;
}
.activity-page .footer {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 20px;
    line-height: 1.4;
}

/* 活动页标题行：左右对齐 */
.activity-page .flex-row-between {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-bottom: 12px !important;
}

/* 🔥 活动页迷你按钮（不影响其他页面，100%靠右） */
.activity-page .flex-row-between .btn-game-confirm {
    padding: 1px 6px !important;
    font-size: 11px !important;
    border-width: 1px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    border: none !important;
    margin-left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* 任务卡片优化 */
.task-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.task-info {
  flex: 1;
  min-width: 0;
}
.task-info .time,
.task-info .send-time,
.task-info .create-time {
  white-space: nowrap !important;
}

/* 收菜绿色、偷菜紫色 */
.text-green { color: #16a34a !important; }
.text-purple { color: #9333ea !important; }
.fw-bold { font-weight: 600; }