/* ========== 弹窗根元素限定样式 ========== */
#freeOverlay {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background: linear-gradient(180deg, #fdf8f0 0%, #faf6ed 30%, #f5efe2 100%);
    color: #2c2416;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 16px;
    display: none;
    justify-content: center;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1002;
    overflow-y: auto;
    box-sizing: border-box;
}

#freeOverlay::before {
    content: '';
    position: fixed;
    top: -180px;
    right: -120px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 168, 75, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
#freeOverlay::after {
    content: '';
    position: fixed;
    bottom: -150px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(240, 208, 120, 0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

#freeOverlay,
#freeOverlay * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 自定义属性 */
#freeOverlay {
    --gold: #d4a84b;
    --gold-light: #f0d078;
    --gold-dark: #b8861e;
    --bg: #faf8f5;
    --card-bg: #ffffff;
    --text: #2c2416;
    --text-secondary: #5c4f3a;
    --text-muted: #8a7b65;
    --border: #e8dfd0;
    --accent: #e8a840;
    --danger: #c0392b;
    --success: #27ae60;
    --shadow-sm: 0 1px 3px rgba(44, 36, 22, 0.06);
    --shadow: 0 4px 20px rgba(44, 36, 22, 0.08);
    --shadow-lg: 0 12px 40px rgba(44, 36, 22, 0.12);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 关闭按钮 */
#freeOverlay .free-close-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    line-height: 1;
}
#freeOverlay .free-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 容器 */
#freeOverlay .container {
    width: 100%;
    max-width: 620px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 100px;
}

/* ========== 顶部VIP卡片 ========== */
#freeOverlay .vip-hero-card {
    background: linear-gradient(145deg, #1e1a13 0%, #2a2319 30%, #1f1b14 60%, #251f16 100%);
    border-radius: 0;
    padding: 26px 22px 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(180, 140, 60, 0.2);
    color: #f5e6cc;
}
#freeOverlay .vip-hero-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(240, 200, 100, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
#freeOverlay .vip-hero-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(212, 168, 75, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
#freeOverlay .vip-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
#freeOverlay .vip-icon-crown {
    font-size: 32px;
    filter: drop-shadow(0 2px 6px rgba(240, 200, 100, 0.5));
    animation: floatCrown 3s ease-in-out infinite;
}
@keyframes floatCrown {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}
#freeOverlay .vip-label-tag {
    background: linear-gradient(135deg, #d4a84b 0%, #e8c56d 40%, #c8963e 100%);
    color: #1a140c;
    font-weight: 700;
    font-size: 13px;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}
#freeOverlay .vip-hero-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
    margin-bottom: 6px;
    text-align: center;
}
#freeOverlay .vip-hero-desc {
    font-size: 14px;
    color: #bfae8a;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    line-height: 1.6;
    padding: 0 4px;
}
#freeOverlay .vip-action-row {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 1;
    justify-content: center;
    flex-wrap: nowrap;
    align-items: stretch;
}
#freeOverlay .vip-action-col {
    flex: 1 1 180px;
    min-width: 140px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 168, 75, 0.25);
    border-radius: var(--radius-sm);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    backdrop-filter: blur(2px);
    transition: border-color var(--transition), background var(--transition);
}
#freeOverlay .vip-action-col:hover {
    border-color: rgba(212, 168, 75, 0.5);
    background: rgba(255, 255, 255, 0.07);
}
#freeOverlay .vip-action-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #e2d5b6;
    letter-spacing: 0.3px;
}
#freeOverlay .vip-or-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(212, 168, 75, 0.45);
    color: #d4a84b;
    font-weight: 700;
    font-size: 12px;
    align-self: center;
    letter-spacing: 0.5px;
    transition: all var(--transition);
    user-select: none;
}
#freeOverlay .btn-open-vip {
    background: linear-gradient(135deg, #d4a84b 0%, #e8c56d 50%, #c8963e 100%);
    color: #1a140c;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 22px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all var(--transition);
    box-shadow: 0 4px 14px rgba(200, 150, 50, 0.35);
    white-space: nowrap;
    width: 100%;
    text-align: center;
}
#freeOverlay .btn-open-vip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 150, 50, 0.5);
    background: linear-gradient(135deg, #e0b855 0%, #f0d078 50%, #d4a84b 100%);
}
#freeOverlay .btn-open-vip:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(200, 150, 50, 0.3);
    transition: 0.1s;
}
#freeOverlay .btn-claim {
    background: transparent;
    color: #f0d078;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 22px;
    border: 2px solid #d4a84b;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all var(--transition);
    white-space: nowrap;
    width: 100%;
    text-align: center;
}
#freeOverlay .btn-claim:hover {
    background: rgba(212, 168, 75, 0.1);
    border-color: #e8c56d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(200, 150, 50, 0.25);
}
#freeOverlay .btn-claim:active {
    transform: scale(0.96);
    transition: 0.1s;
}

/* ========== 通用卡片 ========== */
#freeOverlay .card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

/* ========== 任务说明卡片 ========== */
#freeOverlay .card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text);
}
#freeOverlay .card-title .icon {
    font-size: 20px;
}
#freeOverlay .instruction-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}
#freeOverlay .highlight-note {
    display: inline-block;
    background: #fff8e7;
    border-left: 3px solid var(--accent);
    padding: 4px 10px;
    margin-top: 8px;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    color: #8b6914;
    font-weight: 500;
    line-height: 1.7;
}

/* ========== 当前正在浏览模块 ========== */
#freeOverlay .browsing-module {
    background: #fff;
    border-radius: var(--radius);
    padding: 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}
#freeOverlay .browsing-module::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #d4a84b 0%, #e8c56d 50%, #c8963e 100%);
    border-radius: 0 2px 2px 0;
}
#freeOverlay .browsing-header {
    padding: 16px 18px 12px 22px;
    border-bottom: 1px solid #f3efe6;
}
#freeOverlay .browsing-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
#freeOverlay .browsing-label .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #27ae60;
    animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.5);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 8px rgba(39, 174, 96, 0);
    }
}
#freeOverlay .browsing-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
    word-break: break-all;
    letter-spacing: 0.2px;
}
#freeOverlay .browsing-title .title-main {
    display: block;
    color: #2c2416;
}
#freeOverlay .browsing-title .title-sub {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}
#freeOverlay .browsing-action {
    padding: 14px 18px 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
#freeOverlay .browsing-action-hint {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
    flex: 1 1 auto;
    min-width: 120px;
}
#freeOverlay .btn-create-task {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #e8a840 0%, #f0c860 30%, #e8b848 60%, #d49830 100%);
    background-size: 200% 200%;
    color: #1a140c;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 24px;
    border-radius: 26px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 18px rgba(200, 140, 40, 0.4), 0 0 0 3px rgba(212, 168, 75, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    animation: pulseBtn 2.6s ease-in-out infinite;
    flex-shrink: 0;
}
#freeOverlay .btn-create-task:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(200, 140, 40, 0.55), 0 0 0 6px rgba(212, 168, 75, 0.14);
    background-size: 200% 200%;
}
#freeOverlay .btn-create-task:active {
    transform: scale(0.94);
    box-shadow: 0 2px 10px rgba(200, 140, 40, 0.3), 0 0 0 2px rgba(212, 168, 75, 0.06);
    transition: 0.1s;
    animation: none;
}
#freeOverlay .btn-create-task-icon {
    font-size: 20px;
    animation: bounceIcon 1.8s ease-in-out infinite;
}
@keyframes pulseBtn {
    0%,
    100% {
        box-shadow: 0 4px 18px rgba(200, 140, 40, 0.4), 0 0 0 3px rgba(212, 168, 75, 0.1);
    }
    50% {
        box-shadow: 0 8px 30px rgba(200, 140, 40, 0.65), 0 0 0 10px rgba(212, 168, 75, 0.04);
    }
}
@keyframes bounceIcon {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    30% {
        transform: translateY(-6px) scale(1.1);
    }
    50% {
        transform: translateY(0) scale(1);
    }
    70% {
        transform: translateY(-4px) scale(1.05);
    }
}

/* ========== 任务列表模块 ========== */
#freeOverlay .task-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
#freeOverlay .task-list-info {
    flex: 1 1 auto;
    min-width: 200px;
}
#freeOverlay .task-list-info .info-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 7px;
}
#freeOverlay .task-list-info .info-title .icon {
    font-size: 18px;
}
#freeOverlay .task-list-info .info-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.5;
}
#freeOverlay .task-list-info .info-desc strong {
    color: var(--gold-dark);
    font-weight: 700;
}
#freeOverlay .task-count-badge {
    background: #fdf3e0;
    color: #8b6914;
    font-weight: 700;
    font-size: 13px;
    padding: 7px 14px;
    border-radius: 18px;
    white-space: nowrap;
    border: 1px solid #f0dca8;
    flex-shrink: 0;
}
#freeOverlay .task-table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
#freeOverlay .task-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
#freeOverlay .task-table thead th {
    background: #fdfaf5;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 14px;
    border-bottom: 2px solid #e8dfd0;
    text-align: left;
    white-space: nowrap;
}
#freeOverlay .task-table thead th.col-title {
    text-align: left;
}
#freeOverlay .task-table thead th.col-count {
    text-align: center;
    width: 90px;
}
#freeOverlay .task-table thead th.col-action {
    text-align: center;
    width: 140px;
}
#freeOverlay .task-table tbody td {
    padding: 14px;
    border-bottom: 1px solid #f3efe6;
    vertical-align: middle;
}
#freeOverlay .task-table tbody tr {
    transition: background var(--transition);
}
#freeOverlay .task-table tbody tr:hover {
    background: #fefdf9;
}
#freeOverlay .task-table tbody tr:last-child td {
    border-bottom: none;
}
#freeOverlay .task-table .task-title-cell {
    font-weight: 600;
    color: var(--text);
    word-break: break-all;
    line-height: 1.4;
    font-size: 13.5px;
}
#freeOverlay .task-table .task-title-cell a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color var(--transition);
}
#freeOverlay .task-table .task-title-cell a:hover {
    color: var(--gold-dark);
    text-decoration: underline;
}
#freeOverlay .task-table .task-count-cell {
    text-align: center;
    font-weight: 700;
    color: var(--gold-dark);
    font-size: 15px;
    white-space: nowrap;
}
#freeOverlay .task-table .task-count-cell.zero {
    color: #b0a590;
}
#freeOverlay .task-table .task-action-cell {
    text-align: center;
}
#freeOverlay .btn-use-task {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 12.5px;
    padding: 8px 14px;
    border-radius: 18px;
    border: 1.5px solid #d4a84b;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all var(--transition);
    white-space: nowrap;
}
#freeOverlay .btn-use-task:hover {
    background: #fdf8f0;
    border-color: #c8963e;
    color: #a0701e;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(180, 130, 40, 0.15);
}
#freeOverlay .btn-use-task:active {
    transform: scale(0.94);
    transition: 0.1s;
}
#freeOverlay .btn-use-task.active-task {
    background: #fef9f0 !important;
    border-color: #e8a840 !important;
    color: #8b6914 !important;
    box-shadow: 0 0 0 3px rgba(232, 168, 64, 0.12);
    font-weight: 700;
}
#freeOverlay .task-table-empty {
    text-align: center;
    padding: 28px 16px;
    color: var(--text-muted);
    font-size: 14px;
}
#freeOverlay .task-table-empty .empty-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 8px;
}

/* ========== 隐藏任务详情 ========== */
#freeOverlay .hidden-task-content {
    display: none;
    flex-direction: column;
    gap: 18px;
    animation: fadeSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
#freeOverlay .hidden-task-content.visible {
    display: flex;
}
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 任务进度卡片 ========== */
#freeOverlay .progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}
#freeOverlay .progress-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
#freeOverlay .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
}
#freeOverlay .stat-icon {
    font-size: 18px;
}
#freeOverlay .stat-value {
    font-weight: 700;
    color: var(--gold-dark);
    font-size: 18px;
}
#freeOverlay .stat-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
    border-radius: 1px;
}
#freeOverlay .btn-refresh {
    background: #faf6ed;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
#freeOverlay .btn-refresh:hover {
    background: #f5efe2;
    border-color: #d4c8a8;
    color: var(--text);
}
#freeOverlay .btn-refresh:active {
    transform: scale(0.95);
    transition: 0.1s;
}
#freeOverlay .btn-refresh.spinning .refresh-icon {
    animation: spin 0.7s ease-in-out;
}
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
#freeOverlay .refresh-icon {
    display: inline-block;
    font-size: 15px;
    transition: transform 0.3s;
}
#freeOverlay .progress-bar-wrap {
    background: #ede5d5;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}
#freeOverlay .progress-bar-fill {
    background: linear-gradient(90deg, #d4a84b 0%, #e8c56d 40%, #f0d078 70%, #d4a84b 100%);
    background-size: 200% 100%;
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: shimmer 2.5s ease-in-out infinite;
}
@keyframes shimmer {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}
#freeOverlay .progress-text {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 500;
}
#freeOverlay .progress-text strong {
    color: var(--gold-dark);
    font-weight: 700;
}

/* ========== 邀请方式卡片（深色背景，仅保留图片面板） ========== */
#freeOverlay .method-invite-card {
    background: linear-gradient(145deg, #1b1710 0%, #2a2319 40%, #1f1b14 70%, #231d13 100%);
    border: 1px solid rgba(212, 168, 75, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    color: #e2d5b6;
}
#freeOverlay .method-invite-card .card-title {
    color: #f5e6cc;
}
#freeOverlay .method-invite-card .method-text {
    font-size: 14px;
    color: #bfae8a;
    line-height: 1.8;
    margin-bottom: 4px;
}
#freeOverlay .method-invite-card .method-sub-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 168, 75, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-top: 10px;
}
#freeOverlay .method-invite-card .invite-image-panel {
    margin-bottom: 16px;
}
#freeOverlay .method-invite-card .invite-image-panel .panel-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #f5e6cc;
}
#freeOverlay .method-invite-card .image-preview-wrap {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(212, 168, 75, 0.25);
    border-radius: var(--radius-sm);
    padding: 0;
    margin-bottom: 12px;
    text-align: center;
    transition: all var(--transition);
    overflow: hidden;
}
#freeOverlay .method-invite-card .image-preview-wrap:hover {
    border-color: #c8a860;
    background: rgba(255, 255, 255, 0.06);
}
#freeOverlay .method-invite-card .image-preview-wrap canvas {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 下载按钮 */
#freeOverlay .method-invite-card .btn-download {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #e8a840 0%, #f0c860 30%, #e8b848 60%, #d49830 100%);
    background-size: 200% 200%;
    color: #1a140c;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 22px;
    border-radius: 22px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 18px rgba(200, 140, 40, 0.4), 0 0 0 3px rgba(212, 168, 75, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    z-index: 10;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    animation: pulseBtn 2.6s ease-in-out infinite;
}
#freeOverlay .method-invite-card .btn-download:hover {
    transform: translate(-50%, -50%) translateY(-2px);
    box-shadow: 0 8px 28px rgba(200, 140, 40, 0.55), 0 0 0 6px rgba(212, 168, 75, 0.14);
}
#freeOverlay .method-invite-card .btn-download:active {
    transform: translate(-50%, -50%) scale(0.94);
    box-shadow: 0 2px 10px rgba(200, 140, 40, 0.3), 0 0 0 2px rgba(212, 168, 75, 0.06);
    animation: none;
    transition: 0.1s;
}
#freeOverlay .method-invite-card .btn-download.downloaded {
    background: #eafaf1 !important;
    border: 2px solid #27ae60 !important;
    color: #27ae60 !important;
    box-shadow: none !important;
    animation: none !important;
    pointer-events: none;
}

/* 分隔线 */
#freeOverlay .method-invite-card hr {
    border: none;
    border-top: 1px solid rgba(212, 168, 75, 0.25);
    margin: 20px 0;
}

/* Toast */
#freeOverlay .toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-120px);
    background: #2c2416;
    color: #f5e6cc;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}
#freeOverlay .toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
#freeOverlay .toast.success {
    background: #27ae60;
    color: #fff;
}

/* 二级弹窗（VIP/领取） */
#freeOverlay .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
#freeOverlay .modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
#freeOverlay .modal-dialog {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px 22px 22px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#freeOverlay .modal-overlay.active .modal-dialog {
    transform: translateY(0);
}
#freeOverlay .modal-icon {
    font-size: 48px;
    margin-bottom: 10px;
}
#freeOverlay .modal-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}
#freeOverlay .modal-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.6;
}
#freeOverlay .modal-price-highlight {
    font-size: 28px;
    font-weight: 800;
    color: #c8963e;
}
#freeOverlay .btn-modal-close {
    background: var(--text);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
#freeOverlay .btn-modal-close:hover {
    background: #4a3d2a;
    transform: translateY(-1px);
}

/* 当前选中任务指示器 */
#freeOverlay .current-task-indicator {
    background: #fffdf7;
    border: 1px solid #f0dca8;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    color: #8b6914;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
#freeOverlay .current-task-indicator .indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e8a840;
    flex-shrink: 0;
}

/* 响应式 */
@media (max-width: 480px) {
    #freeOverlay .vip-hero-card {
        padding: 20px 14px 18px;
    }
    #freeOverlay .vip-hero-title {
        font-size: 18px;
    }
    #freeOverlay .vip-hero-desc {
        font-size: 13px;
        margin-bottom: 16px;
    }
    #freeOverlay .vip-action-row {
        gap: 6px;
        flex-wrap: nowrap;
    }
    #freeOverlay .vip-action-col {
        flex: 1 1 auto;
        min-width: 0;
        padding: 14px 8px;
        gap: 10px;
    }
    #freeOverlay .vip-action-label {
        font-size: 12px;
    }
    #freeOverlay .vip-or-divider {
        width: 28px;
        height: 28px;
        font-size: 11px;
        border-width: 1.2px;
    }
    #freeOverlay .btn-open-vip,
    #freeOverlay .btn-claim {
        font-size: 13px;
        padding: 10px 12px;
        white-space: nowrap;
    }
    #freeOverlay .browsing-header {
        padding: 14px 14px 10px 18px;
    }
    #freeOverlay .browsing-title {
        font-size: 14px;
    }
    #freeOverlay .browsing-title .title-sub {
        font-size: 12px;
    }
    #freeOverlay .browsing-action {
        padding: 12px 14px 14px 18px;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }
    #freeOverlay .btn-create-task {
        font-size: 14px;
        padding: 12px 20px;
        border-radius: 24px;
        justify-content: center;
    }
    #freeOverlay .btn-create-task-icon {
        font-size: 18px;
    }
    #freeOverlay .card {
        padding: 16px 14px;
    }
    #freeOverlay .task-table thead th {
        font-size: 11px;
        padding: 10px 8px;
    }
    #freeOverlay .task-table thead th.col-count {
        width: 60px;
    }
    #freeOverlay .task-table thead th.col-action {
        width: 100px;
    }
    #freeOverlay .task-table tbody td {
        padding: 10px 8px;
        font-size: 12px;
    }
    #freeOverlay .task-table .task-title-cell {
        font-size: 12px;
    }
    #freeOverlay .task-table .task-count-cell {
        font-size: 13px;
    }
    #freeOverlay .btn-use-task {
        font-size: 11px;
        padding: 7px 10px;
        border-radius: 14px;
    }
    #freeOverlay .progress-stats {
        gap: 8px;
    }
    #freeOverlay .stat-item {
        font-size: 12px;
    }
    #freeOverlay .stat-value {
        font-size: 16px;
    }
    #freeOverlay .btn-refresh {
        font-size: 12px;
        padding: 6px 12px;
    }
    #freeOverlay .method-invite-card .btn-download {
        font-size: 13px;
        padding: 10px 18px;
    }
    #freeOverlay .task-list-info .info-title {
        font-size: 14px;
    }
    #freeOverlay .task-list-info .info-desc {
        font-size: 12px;
    }
    #freeOverlay .task-count-badge {
        font-size: 11px;
        padding: 5px 10px;
    }
    #freeOverlay .instruction-text {
        font-size: 13px;
    }
    #freeOverlay .highlight-note {
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    #freeOverlay .vip-action-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    #freeOverlay .vip-action-col {
        width: 100%;
        flex: none;
        min-width: 0;
        padding: 14px 12px;
    }
    #freeOverlay .vip-or-divider {
        align-self: center;
        width: 34px;
        height: 34px;
        font-size: 12px;
        margin: 2px 0;
        flex-shrink: 0;
    }
    #freeOverlay .btn-open-vip,
    #freeOverlay .btn-claim {
        font-size: 14px;
        padding: 11px 16px;
    }
    #freeOverlay .vip-action-label {
        font-size: 13px;
    }
    #freeOverlay .task-table thead th.col-action {
        width: 80px;
    }
    #freeOverlay .btn-use-task {
        font-size: 10px;
        padding: 6px 8px;
    }
    #freeOverlay .method-invite-card .btn-download {
        font-size: 12px;
        padding: 9px 14px;
    }
}

/* 数据库错误提示 */
#dbErrorMsg {
    display: none;
    color: #c0392b;
    background: #fff5f5;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border: 1px solid #f5c6cb;
    font-weight: 500;
}
/* 表格加载中状态 */
#freeOverlay .task-table-loading td {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
}