/* ========================================
   公共样式 - common.css
   包含：全局样式、按钮、卡片、弹窗等公共组件
======================================== */

/* ========== 全局样式 ========== */
:root {
    --app-shell-max-width: 468px;
    --app-bottom-nav-height: 70px;
    --app-bottom-nav-offset: 0px;
    --app-content-bottom-space: calc(var(--app-bottom-nav-height) + var(--app-bottom-nav-offset) + 22px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ========== 顶部导航 ========== */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: var(--app-shell-max-width);
    margin: 0 auto;
}

.header h1 {
    font-size: 22px;
    font-weight: 600;
}

/* ========== 底部导航栏 ========== */
.nav-tabs {
    display: flex;
    background: white;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    position: fixed;
    bottom: 0;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-shell-max-width);
    z-index: 100;
}

.nav-tab {
    flex: 1;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    color: #666;
    font-size: 12px;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.nav-tab i {
    font-style: normal;
    font-size: 22px;
    line-height: 1;
    margin-bottom: 2px;
    display: block;
}

.nav-tab span {
    display: block;
    line-height: 1.2;
}

.nav-tab:hover {
    background: #f8f9fa;
}

.nav-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 600;
}

.nav-tab i {
    display: block;
    font-size: 22px;
    margin-bottom: 2px;
}

/* ========== 主内容区 ========== */
.content {
    width: 100%;
    flex: 1 0 auto;
    padding: 20px 20px var(--app-content-bottom-space);
    max-width: var(--app-shell-max-width);
    margin: 0 auto;
}

/* ========== 占位页面 ========== */
.placeholder-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    color: #999;
}

.placeholder-page i {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.placeholder-page p {
    font-size: 18px;
}

/* ========== 卡片样式 ========== */
.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.home-announcement-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.home-announcement-toolbar-left {
    min-width: 0;
}

.home-announcement-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.home-announcement-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: #8a94a6;
}

.home-announcement-bell {
    position: relative;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 14px;
    background: white;
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.home-announcement-bell-icon {
    font-size: 22px;
    line-height: 1;
}

.home-announcement-bell-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5c75;
    border: 2px solid #fff;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* ========== 按钮样式 ========== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-default {
    background: #f3f4f6;
    color: #475569;
    border: 1px solid #dbe2ea;
}

.btn-default:hover:not(:disabled) {
    background: #e8edf3;
}

/* 添加账户「解析」：与主按钮同色系，描边按钮，避免与灰色输入框混淆 */
.btn-resolve {
    border: 2px solid #667eea;
    background: #fff;
    color: #5a67d8;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.12);
}

.btn-resolve:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.08) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.22);
}

.btn-resolve:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.15);
}

.btn-resolve:disabled {
    opacity: 0.65 !important;
    cursor: not-allowed;
    border-color: #c4c9f0;
    color: #8b92b8;
    background: #f8f9ff;
    transform: none !important;
    box-shadow: 0 1px 4px rgba(102, 126, 234, 0.08) !important;
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(56, 239, 125, 0.4);
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

/* ========== 账户选择器（首页显示） ========== */
.account-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 15px;
}

.account-selector-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-selector-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
    background: transparent;
}

/* 本地平台标识 SVG（非用户头像） */
.platform-icon-img {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.add-account-parsed-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f7fa;
    color: #667085;
    min-height: 42px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.add-account-parsed-row[data-state="loading"] {
    background: #eef2ff;
    color: #4c51bf;
}

.add-account-parsed-row[data-state="success"] {
    background: #effaf3;
    color: #1f6b46;
}

.add-account-parsed-nick {
    flex: 1;
    min-width: 0;
    word-break: break-all;
}

.account-selector-icon.douyin {
    background: linear-gradient(135deg, #2de2da 0%, #0dafaf 100%);
}

.account-selector-icon.kuaishou {
    background: linear-gradient(135deg, #ff4906 0%, #ff6b3d 100%);
}

.account-selector-icon.weibo {
    background: linear-gradient(135deg, #e6162d 0%, #ff4d4d 100%);
}

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

.account-selector-placeholder {
    color: #999;
    font-size: 14px;
}

.account-selector-btn {
    padding: 8px 16px;
    font-size: 13px;
}

/* ========== 账户选择弹窗 ========== */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.3s;
}

.filter-tab:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.select-account-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
    border-radius: 12px;
    background: #f3f5f9;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.select-account-pagination {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #e8ebf2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(16, 24, 40, 0.05);
}

.select-account-pagination-top,
.select-account-pagination-actions,
.select-account-page-size,
.select-account-page-jump {
    display: flex;
    align-items: center;
}

.select-account-pagination-top {
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.select-account-page-size,
.select-account-page-jump {
    gap: 6px;
    font-size: 12px;
    color: #697386;
    white-space: nowrap;
}

.select-account-page-jump {
    margin: 0;
}

.select-account-page-size select,
.select-account-page-jump input {
    height: 32px;
    border: 1px solid #d7dbe5;
    border-radius: 8px;
    background: #fff;
    color: #1f2430;
    font-size: 13px;
}

.select-account-page-size select {
    width: 72px;
    padding: 0 8px;
}

.select-account-page-jump input {
    width: 62px;
    padding: 0 8px;
    text-align: center;
}

.select-account-pagination-summary {
    font-size: 12px;
    font-weight: 600;
    color: #4d5562;
    white-space: nowrap;
}

.select-account-pagination-actions {
    justify-content: space-between;
    gap: 8px;
}

.account-page-btn {
    min-width: 66px;
    height: 32px;
    border: 1px solid #d7dbe5;
    border-radius: 16px;
    background: #fff;
    color: #4d5562;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.account-page-btn.primary {
    border-color: #667eea;
    color: #667eea;
}

.account-page-btn:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
    box-shadow: 0 6px 14px rgba(102, 126, 234, 0.14);
    transform: translateY(-1px);
}

.account-page-btn:disabled,
.select-account-page-size select:disabled,
.select-account-page-jump input:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.select-account-item {
    position: relative;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 14px 14px 16px;
    background: #fff;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    border: 1px solid #e7eaf1;
    box-shadow: 0 8px 22px rgba(16, 24, 40, 0.06);
    overflow: hidden;
}

.select-account-item:hover {
    background: #fbfcff;
    border-color: #d8def0;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.1);
    transform: translateY(-1px);
}

.select-account-item.selected {
    background: linear-gradient(180deg, #fbfcff 0%, #f3f6ff 100%);
    border-color: #667eea;
    box-shadow: 0 14px 32px rgba(102, 126, 234, 0.18);
}

.select-account-item.selected::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.select-account-item .account-icon,
.select-account-item .account-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-right: 12px;
    color: white;
    flex-shrink: 0;
    background: #f7f8fb;
    border: 1px solid #edf0f6;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.select-account-item .account-icon.douyin {
    background: linear-gradient(135deg, #2de2da 0%, #0dafaf 100%);
}

.select-account-item .account-icon.kuaishou {
    background: linear-gradient(135deg, #ff4906 0%, #ff6b3d 100%);
}

.select-account-item .account-icon.weibo {
    background: linear-gradient(135deg, #e6162d 0%, #ff4d4d 100%);
}

.select-account-item .account-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.account-item-main {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
    position: relative;
    z-index: 1;
}

.account-item-info {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.account-item-name {
    font-size: 15px;
    font-weight: 700;
    color: #1f2430;
    line-height: 1.4;
    word-break: break-all;
}

.account-item-platform {
    margin-top: 3px;
    font-size: 13px;
    font-weight: 500;
    color: #697386;
    flex-shrink: 0;
}

.account-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    min-width: 0;
}

.account-item-remark {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    word-break: break-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-item-remark::before {
    content: "/";
    margin-right: 8px;
    color: #c3c7d0;
}

.account-item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.account-action-btn {
    min-width: 78px;
    height: 36px;
    border: 1px solid #d7dbe5;
    border-radius: 18px;
    background: #fff;
    color: #4d5562;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.account-action-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(102, 126, 234, 0.16);
}

.account-action-btn.select {
    border-color: #667eea;
    color: #667eea;
}

.account-action-btn.select.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
}

.account-action-btn.delete {
    border-color: #f2c7c7;
    color: #d04e4e;
}

.account-action-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
    transform: none;
}

@media (max-width: 390px) {
    .select-account-pagination-top,
    .select-account-pagination-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .select-account-pagination-summary {
        white-space: normal;
    }

    .select-account-page-jump {
        justify-content: space-between;
    }

    .account-page-btn {
        width: 100%;
    }

    .select-account-item {
        gap: 10px;
        padding: 12px;
    }

    .select-account-item .account-icon,
    .select-account-item .account-item-icon {
        width: 36px;
        height: 36px;
        margin-right: 10px;
    }

    .account-action-btn {
        min-width: 70px;
    }
}

.select-empty {
    text-align: center;
    padding: 30px;
    color: #999;
}

/* ========== 任务属性选择 ========== */
.task-options {
    margin-top: 10px;
}

.option-group {
    margin-bottom: 18px;
}

.option-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: block;
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-btn {
    padding: 8px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
}

.option-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.option-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

/* ========== 首页自动获取任务 ========== */
.auto-fetch-card {
    margin-bottom: 14px;
    padding: 16px 16px 14px;
}

.auto-fetch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.auto-fetch-main {
    flex: 1;
    min-width: 0;
}

.auto-fetch-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.auto-fetch-desc {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.45;
    color: #7a8495;
}

.auto-fetch-switch {
    position: relative;
    width: 50px;
    height: 30px;
    flex-shrink: 0;
    display: inline-flex;
}

.auto-fetch-switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
    cursor: pointer;
}

.auto-fetch-switch-slider {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #d9e0ea;
    transition: background 0.2s ease;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(102, 126, 234, 0.08);
}

.auto-fetch-switch-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
    transition: transform 0.2s ease;
}

.auto-fetch-switch input:checked + .auto-fetch-switch-slider {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.auto-fetch-switch input:checked + .auto-fetch-switch-slider::after {
    transform: translateX(20px);
}

.auto-fetch-config {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #eef1f5;
}

.auto-fetch-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auto-fetch-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0;
    font-size: 12px;
    color: #666;
    flex-shrink: 0;
}

.auto-fetch-input {
    width: 104px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #dde3ed;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 14px;
    color: #333;
    outline: none;
}

.auto-fetch-input:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auto-fetch-input:disabled {
    color: #8b94a6;
    background: #f1f4f8;
}

.auto-fetch-status-group {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.auto-fetch-status,
.auto-fetch-countdown {
    font-size: 12px;
    line-height: 1.35;
    color: #667085;
    margin: 0;
}

.auto-fetch-countdown {
    color: #4f5d75;
    font-weight: 500;
}

.auto-fetch-status-item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

/* ========== 弹窗样式 ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

/* 我的页：修改联系方式二级弹窗叠在联系信息详情弹窗之上 */
#myContactModal.modal-overlay {
    z-index: 1100;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-modal {
    max-width: 240px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    overflow: hidden;
}

.loading-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 4px solid rgba(102, 126, 234, 0.18);
    border-top-color: #667eea;
    animation: loadingSpin 0.9s linear infinite;
}

.loading-text {
    font-size: 16px;
    font-weight: 600;
    color: #4a5568;
}

@keyframes loadingSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #e0e0e0;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
}

.modal-footer .btn {
    flex: 1;
}

/* ========== 表单样式 ========== */
.form-group {
    margin-bottom: 18px;
}

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

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.form-label-row .form-label {
    margin-bottom: 0;
}

.form-guide-link {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #5a67d8;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    padding: 4px 0 4px 8px;
}

.form-guide-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
}

.form-input:focus,
.form-select:focus {
    border-color: #667eea;
}

.form-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #888;
    line-height: 1.45;
}

.add-account-douyin-notice {
    margin: -2px 0 18px;
    padding: 14px;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff7ed 0%, #fffaf5 100%);
    box-shadow: 0 8px 22px rgba(249, 115, 22, 0.08);
}

.add-account-douyin-notice[hidden] {
    display: none;
}

.add-account-douyin-notice-title {
    font-size: 14px;
    font-weight: 700;
    color: #9a3412;
    margin-bottom: 6px;
}

.add-account-douyin-notice-text {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.65;
    color: #7c2d12;
}

.add-account-douyin-guide {
    width: 100%;
    min-height: 38px;
    margin-bottom: 10px;
    border: 1px solid #fb923c;
    border-radius: 10px;
    background: #fff;
    color: #c2410c;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.add-account-douyin-guide:hover {
    background: #ffedd5;
}

.add-account-douyin-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: #573018;
    cursor: pointer;
}

.add-account-douyin-check input {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    accent-color: #f97316;
    flex-shrink: 0;
}

/* ========== 任务详情 ========== */
.task-detail {
    text-align: center;
}

.task-modal {
    max-width: 364px;
    max-height: min(86vh, 700px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.task-modal .modal-header {
    padding: 13px 15px;
}

.task-modal .modal-title {
    font-size: 17px;
}

.task-modal .modal-close {
    width: 28px;
    height: 28px;
    font-size: 16px;
}

.task-modal .modal-body {
    padding: 12px 14px 10px;
    overflow-y: auto;
}

.task-modal .modal-footer {
    padding: 9px 12px 12px;
    gap: 8px;
}

.task-modal .modal-footer .btn {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
}

.task-qrcode {
    width: 136px;
    height: 136px;
    margin: 0 auto 12px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px dashed #ddd;
}

.task-qrcode img {
    width: 118px;
    height: 118px;
    object-fit: contain;
    display: block;
}

.task-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.task-info-item {
    background: #f8f9fa;
    padding: 10px 11px;
    border-radius: 9px;
    text-align: left;
}

.task-info-label {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
    line-height: 1.2;
}

.task-info-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.25;
}

#taskCountdown {
    color: #e53935;
    font-weight: 800;
}

.task-countdown-timeout {
    color: #c62828 !important;
}

.task-info-note {
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8f2ff;
    color: #6b4ea1;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
}

.task-link {
    background: #f0f4ff;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    text-align: left;
}

.task-link-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.task-link-label {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

.task-link-copy-btn {
    flex-shrink: 0;
    min-width: 62px;
}

.task-link-value {
    margin-top: 4px;
    font-size: 13px;
    color: #667eea;
    word-break: break-all;
    cursor: pointer;
    line-height: 1.35;
}

.task-link-value:hover {
    text-decoration: underline;
}

.task-more-trigger {
    border: none;
    background: transparent;
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 0 0;
}

.task-more-trigger:hover {
    text-decoration: underline;
}

.task-more-modal {
    max-width: 360px;
}

.task-more-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-more-item {
    width: 100%;
    border: 1px solid #e3e8ff;
    background: #f8faff;
    border-radius: 12px;
    padding: 14px;
    text-align: left;
    cursor: pointer;
}

.task-more-item:hover {
    border-color: #667eea;
}

.task-more-label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.task-more-value {
    display: block;
    font-size: 14px;
    color: #667eea;
    word-break: break-all;
}

/* ========== 提示消息 ========== */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(56, 239, 125, 0.4);
    z-index: 2000;
    transition: transform 0.3s ease;
    font-size: 15px;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state i {
    font-size: 50px;
    margin-bottom: 15px;
    opacity: 0.3;
}

/* ========== 响应式 ========== */
@media (max-width: 600px) {
    .header h1 {
        font-size: 18px;
    }

    .content {
        padding: 15px 15px var(--app-content-bottom-space);
    }

    .card {
        padding: 15px;
    }

    .task-modal {
        max-width: 100%;
        max-height: calc(100vh - 18px);
        border-radius: 14px;
    }

    .task-modal .modal-header {
        padding: 10px 12px;
    }

    .task-modal .modal-body {
        padding: 10px 12px 8px;
    }

    .task-modal .modal-footer {
        padding: 8px 10px 10px;
        gap: 6px;
    }

    .task-modal .modal-footer .btn {
        min-height: 36px;
        font-size: 12px;
        padding: 7px 10px;
    }

    .task-qrcode {
        width: 120px;
        height: 120px;
        margin-bottom: 8px;
    }

    .task-qrcode img {
        width: 104px;
        height: 104px;
    }

    .task-info-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin-bottom: 8px;
    }

    .task-info-item {
        padding: 8px 9px;
    }

    .task-info-label {
        font-size: 10px;
        margin-bottom: 3px;
    }

    .task-info-value {
        font-size: 12px;
    }

    .task-link {
        padding: 7px 9px;
        margin-bottom: 6px;
    }

    .task-link-head {
        align-items: flex-start;
    }

    .task-link-label {
        font-size: 10px;
        margin-bottom: 3px;
    }

    .task-link-value {
        font-size: 11px;
    }

    .task-info-note {
        font-size: 11px;
        padding: 7px 9px;
    }

    .task-more-trigger {
        font-size: 11px;
        padding-top: 1px;
    }
}

/* ========================================
   收益页样式 - earnings.css
   包含：筛选栏、列表、统计汇总、分页
======================================== */

/* ========== 筛选区 - 紧凑布局 ========== */
.filter-section {
    background: white;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.filter-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-item {
    flex: 1;
    min-width: 0;
}

.filter-item.full-width {
    flex: 1 1 100%;
}

.filter-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    display: block;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    background: #f8f9fa;
    color: #333;
    outline: none;
    transition: all 0.3s;
    height: 34px;
}

.filter-input:focus,
.filter-select:focus {
    border-color: #667eea;
    background: white;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.filter-buttons .btn {
    flex: 1;
    padding: 8px;
    font-size: 13px;
}

/* ========== 收益列表 ========== */
.earnings-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.earnings-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
}

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

.earnings-item:hover {
    background: #f8f9fa;
}

.earnings-index {
    width: 24px;
    height: 24px;
    background: #f0f2f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #666;
    margin-right: 10px;
    flex-shrink: 0;
}

.earnings-info {
    flex: 1;
    min-width: 0;
}

.earnings-row {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.earnings-row:last-child {
    margin-bottom: 0;
}

.earnings-platform {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.earnings-time {
    font-size: 12px;
    color: #999;
    margin-left: auto;
}

.earnings-date,
.earnings-estimated {
    font-size: 12px;
    color: #666;
    line-height: 1.45;
}

.earnings-estimated {
    margin-top: 2px;
    color: #f57c00;
    white-space: nowrap;
}

.earnings-type {
    font-size: 12px;
    color: #666;
}

.earnings-amount {
    font-size: 15px;
    font-weight: 600;
    color: #11998e;
    margin-right: 10px;
    white-space: nowrap;
}

.earnings-status {
    flex-shrink: 0;
    min-width: 58px;
    text-align: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.earnings-status.total {
    background: #eef2ff;
    color: #667eea;
}

.earnings-status.pending {
    background: #fff3e0;
    color: #ff9800;
}

.earnings-status.success {
    background: #e8f5e9;
    color: #4caf50;
}

.earnings-status.fail {
    background: #ffebee;
    color: #f44336;
}

/* ========== 状态标签 ========== */
.status-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.status-tag.pending {
    background: #fff3e0;
    color: #ff9800;
}

.status-tag.success {
    background: #e8f5e9;
    color: #4caf50;
}

.status-tag.fail {
    background: #ffebee;
    color: #f44336;
}

/* ========== 分页区 ========== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: 12px;
    padding: 10px 12px;
    margin-top: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.pagination-info {
    font-size: 12px;
    color: #666;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn {
    padding: 5px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background: white;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.page-num {
    padding: 5px 8px;
    font-size: 12px;
    color: #666;
}

/* ========== 统计汇总区 - 紧凑布局 ========== */
.stats-section {
    background: white;
    border-radius: 12px;
    padding: 12px;
    margin-top: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.stats-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.stats-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
}

.stats-item.pending {
    background: #fff8e6;
}

.stats-item.success {
    background: #e8f5e9;
}

.stats-item.fail {
    background: #ffebee;
}

.stats-item.total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stats-item.total .stats-label,
.stats-item.total .stats-value {
    color: white;
}

.stats-label {
    font-size: 11px;
    color: #666;
    margin-bottom: 2px;
}

.stats-value {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.stats-item.pending .stats-value {
    color: #ff9800;
}

.stats-item.success .stats-value {
    color: #4caf50;
}

.stats-item.fail .stats-value {
    color: #f44336;
}

/* ========== 移动端适配 ========== */
@media (max-width: 600px) {
    .filter-section {
        padding: 10px;
    }
    
    /* 手机端保持双列筛选布局 */
    .filter-row {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .filter-item {
        flex: 1 1 calc(50% - 4px);
        min-width: calc(50% - 4px);
    }
    
    .filter-item.full-width {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .filter-label {
        font-size: 11px;
    }
    
    .filter-input,
    .filter-select {
        height: 32px;
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .filter-buttons .btn {
        padding: 8px;
        font-size: 13px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .stats-section {
        padding: 10px;
    }
    
    .stats-item {
        padding: 6px 4px;
    }
    
    .stats-label {
        font-size: 10px;
    }
    
    .stats-value {
        font-size: 11px;
    }
    
    .earnings-item {
        padding: 10px 12px;
    }
    
    .earnings-amount {
        font-size: 14px;
    }
}

/* ========================================
   推广页样式
======================================== */

.team-center-page {
    padding-bottom: 20px;
}

.team-center-hero {
    margin-bottom: 16px;
    padding: 20px 18px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 28%),
        linear-gradient(135deg, #1f6aa5 0%, #1b8b7f 100%);
    color: #fff;
    box-shadow: 0 18px 36px rgba(18, 62, 97, 0.18);
}

.team-center-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 12px;
    letter-spacing: 1px;
}

.team-center-title {
    margin: 14px 0 8px;
    font-size: 28px;
    line-height: 1.15;
}

.team-center-subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.team-center-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.team-center-loading {
    display: none;
    padding: 16px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.team-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid #e4edf5;
    border-radius: 18px;
    padding: 18px 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.team-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.team-panel-title {
    margin: 0;
    font-size: 18px;
    color: #10243a;
}

.team-panel-desc {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #5d7287;
}

.team-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.team-data-grid--always-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-data-grid--compact {
    gap: 7px;
}

.team-data-item {
    padding: 12px;
    border-radius: 14px;
    background: #f6f9fc;
    border: 1px solid #e5edf4;
}

.team-data-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #6b7f91;
}

.team-data-value {
    font-size: 15px;
    line-height: 1.45;
    color: #14273c;
    font-weight: 600;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.team-data-item--compact {
    padding: 8px 10px;
    min-height: 66px;
}

.team-data-item--link {
    grid-column: 1 / -1;
}

.team-data-item--switch {
    grid-column: 1 / -1;
    padding: 10px 12px;
    min-height: auto;
}

.team-data-item--compact .team-data-label {
    margin-bottom: 4px;
}

.team-data-value--compact {
    font-size: 14px;
    line-height: 1.35;
    word-break: break-word;
}

.team-switch-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.team-switch-status {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.team-switch-status.is-on {
    color: #1c7a5e;
}

.team-switch-status.is-off {
    color: #7c8da1;
}

.team-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.team-switch-tip {
    font-size: 12px;
    line-height: 1.5;
    color: #6b7f91;
}

.team-switch {
    position: relative;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
    display: inline-flex;
}

.team-switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

.team-switch-slider {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #d8e1eb;
    box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.12);
    transition: background 0.2s ease;
    position: relative;
}

.team-switch-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.16);
    transition: transform 0.2s ease;
}

.team-switch input:checked + .team-switch-slider {
    background: linear-gradient(135deg, #1f6aa5 0%, #1b8b7f 100%);
}

.team-switch input:checked + .team-switch-slider::after {
    transform: translateX(20px);
}

.team-switch input:disabled + .team-switch-slider {
    opacity: 0.66;
}

.team-switch input:disabled {
    cursor: not-allowed;
}

.team-empty-note {
    padding: 14px;
    border-radius: 14px;
    background: #f8fbfe;
    border: 1px dashed #d3e1ee;
    color: #64748b;
    line-height: 1.7;
    font-size: 14px;
}

.team-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.team-invite-inline {
    margin-top: 10px;
    padding: 12px 13px;
    border-radius: 14px;
    background: #f8fbfe;
    border: 1px dashed #d8e5f0;
}

.team-invite-inline__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.team-invite-inline__title {
    font-size: 12px;
    font-weight: 700;
    color: #24425f;
}

.team-invite-inline__desc {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
    color: #6b7f91;
}

.team-invite-inline__link {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.6;
    color: #18354f;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.team-progress-card {
    padding: 14px;
    border-radius: 16px;
    background: #f8fbfd;
    border: 1px solid #deebf3;
}

.team-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #5d7287;
}

.team-progress-bar {
    height: 10px;
    border-radius: 999px;
    background: #dde9f3;
    overflow: hidden;
}

.team-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1f6aa5 0%, #2aa76b 100%);
}

.team-rule-table-wrap {
    overflow-x: auto;
    border: 1px solid #e4eef5;
    border-radius: 16px;
    background: #f8fbfe;
}

.team-rule-table {
    width: 100%;
    min-width: 320px;
    border-collapse: collapse;
    color: #385067;
    font-size: 13px;
}

.team-rule-table th,
.team-rule-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e4eef5;
}

.team-rule-table th {
    background: #f1f7fb;
    color: #5b7288;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.team-rule-table tbody tr:last-child td {
    border-bottom: none;
}

.team-rule-table-row.is-current td {
    background: #eef6ff;
}

.team-rule-table-row.is-next td {
    background: #f2fbf5;
}

.team-rule-level-main {
    font-weight: 700;
    color: #204f7b;
}

.team-rule-level-sub {
    margin-top: 3px;
    font-size: 12px;
    color: #6b7f91;
}

.team-rule-num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.team-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eaf3fb;
    color: #1c5f95;
    font-size: 12px;
    font-weight: 600;
}

.team-text-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.team-text-list li {
    padding-left: 14px;
    position: relative;
    color: #41576d;
    line-height: 1.7;
    font-size: 14px;
}

.team-text-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1b8b7f;
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wode-record-list.team-record-list {
    max-height: none;
    overflow: visible;
}

.team-list-item {
    padding: 14px;
    border-radius: 14px;
    background: #f8fbfe;
    border: 1px solid #e4eef5;
}

.team-list-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    font-size: 13px;
    color: #5d7287;
}

.team-list-row:first-child {
    margin-top: 0;
}

.team-list-strong {
    color: #10243a;
    font-weight: 600;
}

.team-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    font-size: 13px;
    color: #64748b;
}

.team-pagination-actions {
    display: flex;
    gap: 8px;
}

.team-modal-mask {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.42);
}

.team-modal-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
}

.team-modal-header {
    padding: 18px 18px 14px;
    border-bottom: 1px solid #e8eff5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.team-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #10243a;
}

.team-modal-close {
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #64748b;
}

.team-modal-body {
    padding: 18px;
}

.team-field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #25384c;
}

.team-field-input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #d9e5ef;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    background: #fff;
}

.team-field-tip {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: #71859a;
}

.team-modal-actions {
    padding: 0 18px 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.promo-material-modal {
    max-width: 540px;
}

.promo-material-modal__body {
    padding-top: 14px;
}

.promo-material-stage {
    width: 100%;
    min-height: 320px;
    max-height: 62vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
    border: 1px solid #deebf3;
    overflow: hidden;
}

.promo-material-image {
    max-width: 100%;
    max-height: calc(62vh - 24px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.14);
}

.promo-material-meta {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #5f7285;
}

.promo-material-download {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.promo-material-download:hover {
    text-decoration: underline;
}

.promo-material-modal__actions {
    justify-content: space-between;
}

/* ========== 小按钮 ========== */
.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* ========== 表单提示 ========== */
.form-tip {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

/* ========== 响应式 ========== */
@media (max-width: 600px) {
    .team-center-hero {
        padding: 18px 16px;
        border-radius: 18px;
    }

    .team-center-title {
        font-size: 24px;
    }

    .team-panel {
        padding: 16px 14px;
    }

    .promo-material-stage {
        min-height: 240px;
        max-height: 54vh;
        padding: 10px;
    }

    .promo-material-image {
        max-height: calc(54vh - 20px);
    }

    .promo-material-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .promo-material-modal__actions {
        justify-content: stretch;
    }

    .promo-material-modal__actions .btn {
        flex: 1;
    }

    .team-data-grid {
        grid-template-columns: 1fr;
    }

    .team-data-grid--always-two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-data-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .team-data-item--switch {
        grid-column: 1 / -1;
    }

    .team-invite-inline__head {
        flex-direction: column;
    }

    .team-rule-table th,
    .team-rule-table td {
        padding: 10px 12px;
    }

    .team-list-row,
    .team-pagination {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   我的页样式
======================================== */

/* ========== 顶部资产卡片 ========== */
.asset-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 22px 20px 18px;
    color: white;
    width: 100%;
    max-width: 860px;
    margin-bottom: 16px;
    box-shadow: 0 14px 34px rgba(102, 126, 234, 0.28);
    position: relative;
    overflow: hidden;
}

.asset-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 32%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.18), transparent 26%);
    pointer-events: none;
}

.asset-card-head,
.asset-balance-block,
.asset-metrics {
    position: relative;
    z-index: 1;
}

.asset-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    min-width: 0;
}

.asset-balance-block {
    margin-top: 12px;
    padding-top: 2px;
}

.asset-label {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.82;
    margin-bottom: 10px;
}

.asset-balance {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-top: 6px;
}

.asset-amount {
    font-size: clamp(38px, 6vw, 54px);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 0.96;
}

.asset-unit {
    font-size: 15px;
    opacity: 0.88;
}

.asset-balance-desc {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    max-width: 360px;
}

.asset-metrics {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.asset-metric {
    flex: 1 1 0;
    min-width: 0;
    padding: 13px 14px 12px;
    border-radius: 16px;
    background: rgba(18, 28, 72, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
}

.asset-metric-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.35;
    margin-bottom: 7px;
}

.asset-metric-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.asset-metric-unit {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
}

.asset-metric-desc {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.38;
    color: rgba(255, 255, 255, 0.68);
}

/* ========== 提现方式配置区 ========== */
.withdraw-methods-section {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 14px;
}

.withdraw-methods-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.withdraw-method-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.withdraw-method-name {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.withdraw-method-status {
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.withdraw-method-status.enabled {
    background: #e8f5e9;
    color: #4caf50;
}

.withdraw-method-status.disabled {
    background: #f5f5f5;
    color: #999;
}

/* ========== 功能入口区 ========== */
.function-entry-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.function-entry-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.3s;
}

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

.function-entry-item:hover {
    background: #f8f9fa;
}

.function-entry-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 14px;
}

.function-entry-icon.withdraw-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.function-entry-icon.record-icon {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.function-entry-icon.contact-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.function-entry-icon.wode-contact-entry-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.function-entry-icon.login-password-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.function-entry-icon.invite-record-icon {
    background: linear-gradient(135deg, #1f8a70 0%, #3fc1a2 100%);
}

.function-entry-icon.points-ledger-icon {
    background: linear-gradient(135deg, #4b6cb7 0%, #6d83f2 100%);
}

.function-entry-info {
    flex: 1;
}

.function-entry-name {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    margin-bottom: 3px;
}

.function-entry-desc {
    font-size: 12px;
    color: #999;
}

.function-entry-arrow {
    font-size: 20px;
    color: #ccc;
}

/* ========== 提现弹窗 ========== */
.withdraw-balance-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: white;
    margin-bottom: 20px;
}

.withdraw-balance-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 6px;
}

.withdraw-balance-amount {
    font-size: 28px;
    font-weight: 700;
}

.withdraw-tips {
    font-size: 12px;
    color: #999;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-top: 16px;
}

.withdraw-tips p {
    margin: 0 0 4px 0;
}

.withdraw-method-inline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.withdraw-method-inline-link {
    border: none;
    background: none;
    padding: 0;
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.4;
}

.withdraw-method-inline-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.withdraw-method-inline-tip {
    flex: 1;
    text-align: right;
    font-size: 12px;
    color: #8a94a6;
    line-height: 1.5;
}

.withdraw-method-inline-tip.is-empty {
    color: #d16b2a;
    font-weight: 500;
}

.withdraw-method-empty-note {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff7ef;
    color: #b26a1f;
    font-size: 12px;
    line-height: 1.6;
}

/* ========== 提现记录列表 ========== */
.withdraw-record-list {
    max-height: 400px;
    overflow-y: auto;
}

.withdraw-record-item {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

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

.withdraw-record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.withdraw-record-index {
    font-size: 12px;
    color: #999;
}

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

.withdraw-record-row {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    font-size: 14px;
}

.withdraw-record-row:last-child {
    margin-bottom: 0;
}

.withdraw-record-label {
    color: #666;
    min-width: 70px;
}

.withdraw-record-amount {
    color: #11998e;
    font-weight: 600;
}

.withdraw-record-method {
    color: #333;
}

.withdraw-record-status {
    font-weight: 500;
}

.withdraw-record-status.pending {
    color: #ff9800;
}

.withdraw-record-status.success {
    color: #4caf50;
}

.withdraw-record-status.fail {
    color: #f44336;
}

/* ========== 联系客服弹窗（独立类名，勿与「我的页-联系信息」混用） ========== */
.contact-service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-service-item {
    display: grid;
    grid-template-columns: minmax(88px, 112px) 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-service-label {
    font-size: 14px;
    color: #666;
}

.contact-service-value {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    word-break: break-all;
}

.contact-tips {
    font-size: 12px;
    color: #999;
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.contact-tips p {
    margin: 0;
}

/* ========== 大弹窗 ========== */
.modal-lg {
    max-width: 480px;
}

.empty-tip {
    padding: 26px 16px;
    text-align: center;
    color: #8a94a6;
    font-size: 14px;
    line-height: 1.7;
}

.wode-record-modal {
    max-width: 460px;
}

.wode-record-modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wode-record-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.wode-record-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.wode-record-filter-label {
    flex-shrink: 0;
    font-size: 13px;
    color: #5f6f82;
    font-weight: 600;
}

.wode-record-filter-select {
    min-height: 36px;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 13px;
}

.wode-record-list {
    max-height: 50vh;
    overflow-y: auto;
}

.wode-record-item {
    padding: 13px 14px;
    border-radius: 14px;
    background: #f8f9ff;
    border: 1px solid #ebeff6;
    margin-bottom: 10px;
}

.home-announcement-modal-meta {
    font-size: 12px;
    color: #8a94a6;
    margin-bottom: 10px;
}

.home-announcement-modal-heading {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.5;
    margin-bottom: 14px;
}

.home-announcement-modal-content {
    white-space: pre-wrap;
    color: #445269;
    font-size: 14px;
    line-height: 1.8;
}

.home-announcement-history-modal {
    max-width: 480px;
}

.home-announcement-detail-modal {
    max-width: 430px;
}

.home-announcement-history-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: #7f8c9a;
    margin-bottom: 14px;
}

.home-announcement-history-list {
    max-height: 48vh;
    overflow-y: auto;
}

.home-announcement-item {
    border: 1px solid #ebeff6;
    border-radius: 14px;
    padding: 13px 14px;
    margin-bottom: 10px;
    background: #fff;
    cursor: pointer;
}

.home-announcement-item.is-read {
    background: #f8f9ff;
}

.home-announcement-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.home-announcement-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.5;
}

.home-announcement-item-status {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    background: #eef2ff;
    color: #5a67d8;
}

.home-announcement-item.is-read .home-announcement-item-status {
    background: #edf2f7;
    color: #718096;
}

.home-announcement-item-preview {
    font-size: 13px;
    color: #5f6f82;
    line-height: 1.7;
}

.home-announcement-item-time {
    margin-top: 8px;
    font-size: 12px;
    color: #9aa5b5;
}

.home-announcement-empty {
    padding: 28px 16px;
    border-radius: 14px;
    background: #f8f9ff;
    color: #8a94a6;
    text-align: center;
    font-size: 14px;
}

.wode-record-item:last-child {
    margin-bottom: 0;
}

.wode-record-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.wode-record-row + .wode-record-row {
    margin-top: 8px;
}

.wode-record-row--sub {
    font-size: 12px;
    color: #7c8798;
    flex-wrap: wrap;
}

.wode-record-main {
    min-width: 0;
    flex: 1;
}

.wode-record-title {
    font-size: 15px;
    font-weight: 600;
    color: #25384c;
    line-height: 1.4;
}

.wode-record-meta {
    margin-top: 4px;
    font-size: 12px;
    color: #7f8b9b;
    line-height: 1.6;
    word-break: break-all;
}

.wode-record-tag {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: #edf4ff;
    color: #536d91;
    font-size: 12px;
    font-weight: 600;
}

.wode-record-points {
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.wode-record-points.is-positive {
    color: #1f9d68;
}

.wode-record-points.is-negative {
    color: #d9534f;
}

.wode-record-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.wode-record-pagination-text {
    font-size: 13px;
    color: #7a8697;
}

.wode-record-pagination-actions {
    display: flex;
    gap: 8px;
}

@media (max-width: 767px) {
    .wode-record-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .wode-record-filter-select {
        width: 100%;
    }
}

@media (min-width: 768px) {
    :root {
        --app-bottom-nav-offset: 16px;
    }

    body {
        padding-top: 16px;
        background:
            radial-gradient(circle at top left, rgba(96, 120, 182, 0.14), transparent 28%),
            radial-gradient(circle at bottom right, rgba(141, 159, 210, 0.12), transparent 24%),
            linear-gradient(180deg, #edf2f8 0%, #e9eef6 100%);
    }

    .header {
        border-radius: 24px 24px 0 0;
        box-shadow: 0 20px 42px rgba(58, 76, 122, 0.16);
    }

    .content {
        padding-bottom: var(--app-content-bottom-space);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 251, 255, 0.96) 100%);
        border-left: 1px solid rgba(214, 223, 236, 0.9);
        border-right: 1px solid rgba(214, 223, 236, 0.9);
        box-shadow: 0 18px 44px rgba(77, 93, 124, 0.12);
    }

    .nav-tabs {
        bottom: 0;
        border-radius: 0 0 24px 24px;
        overflow: hidden;
        box-shadow: 0 18px 34px rgba(58, 76, 122, 0.16);
    }

    .team-panel {
        box-shadow: 0 14px 32px rgba(29, 44, 74, 0.08);
        border-color: #dee7f1;
    }
}

/* ========== 我的页：联系信息卡片（wode-contact-* 独立命名，与联系客服弹窗完全分离） ========== */
.wode-contact-card {
    display: block;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 16px;
    margin: 0 0 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

/* 联系信息详情弹窗内：避免「卡片套卡片」过重，仅保留下划线行样式 */
.wode-contact-modal-body {
    max-height: min(72vh, 480px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 4px;
}

.wode-contact-card.wode-contact-card--in-modal {
    margin: 0;
    padding: 12px 4px 4px;
    border: none;
    box-shadow: none;
    background: transparent;
}

.wode-contact-card--in-modal .wode-contact-card__rows {
    margin-top: 0;
}

.wode-contact-card__title {
    margin: 0 0 12px;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.wode-contact-card__title-ico {
    margin-right: 4px;
}

.wode-contact-card__rows {
    display: flex;
    flex-direction: column;
}

.wode-contact-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    min-height: 52px;
    box-sizing: border-box;
    border-bottom: 1px solid #f0f0f0;
}

.wode-contact-row:last-child {
    border-bottom: none;
    padding-bottom: 2px;
}

.wode-contact-row__main {
    flex: 1;
    min-width: 0;
}

.wode-contact-row__label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.3;
}

.wode-contact-row__value {
    font-size: 15px;
    line-height: 1.5;
    word-break: break-all;
    color: #333;
    font-weight: 500;
}

.wode-contact-row__value.is-empty {
    color: #999;
    font-weight: 400;
}

.wode-contact-row__value--upstream:not(.is-empty) {
    color: #444;
    font-weight: 500;
}

.wode-contact-row__action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 56px;
    max-width: 40%;
    padding-top: 2px;
    text-align: right;
}

.wode-contact-card .btn-resolve.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    transform: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.12);
}

.wode-contact-card .btn-resolve.btn-sm:hover:not(:disabled) {
    transform: translateY(-1px);
}

/* 弱提示：不占大块宽、不抢视觉，避免挤压左侧文案 */
.wode-contact-row__readonly {
    font-size: 12px;
    color: #c5c5c5;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
}

.contact-modal-hint {
    font-size: 13px;
    color: #888;
    margin: 0 0 12px;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .wode-contact-card {
        padding: 14px;
    }

    .wode-contact-row {
        gap: 10px;
        padding: 12px 0;
    }

    .wode-contact-row__action {
        max-width: 36%;
        min-width: 52px;
    }

    .wode-contact-card .btn-resolve.btn-sm {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ========== 提现方式管理弹窗 ========== */
#withdrawMethodModal.modal-overlay {
    z-index: 1100;
}

#addWithdrawMethodModal.modal-overlay {
    z-index: 1200;
}

.withdraw-method-add-btn {
    padding: 14px;
    background: #f8f9fa;
    border: 1px dashed #667eea;
    border-radius: 10px;
    text-align: center;
    color: #667eea;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.withdraw-method-add-btn:hover {
    background: #f0f4ff;
    border-color: #764ba2;
}

.withdraw-method-list {
    max-height: 350px;
    overflow-y: auto;
}

.user-withdraw-method-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
}

.user-withdraw-method-item:last-child {
    margin-bottom: 0;
}

.user-withdraw-method-info {
    flex: 1;
}

.user-withdraw-method-type {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
}

.user-withdraw-method-account {
    font-size: 13px;
    color: #666;
}

.user-withdraw-method-actions {
    display: flex;
    gap: 8px;
}

@media (max-width: 767px) {
    .withdraw-method-inline-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .withdraw-method-inline-tip {
        text-align: left;
    }

    .user-withdraw-method-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .user-withdraw-method-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

.btn-danger {
    background: #f44336;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #d32f2f;
}

/* ========== 提现方式字段 ========== */
.withdraw-fields {
    margin-top: 16px;
}

/* ========== 提现记录紧凑布局 ========== */
.withdraw-record-item {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

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

.withdraw-record-item .withdraw-record-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 4px;
}

.withdraw-record-item .withdraw-record-row:last-child {
    margin-bottom: 0;
}

.withdraw-record-item .withdraw-record-amount {
    color: #11998e;
    font-weight: 600;
    font-size: 15px;
}

.withdraw-record-item .withdraw-record-method {
    color: #666;
    flex: 1;
}

.withdraw-record-item .withdraw-record-status {
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.withdraw-record-item .withdraw-record-status.pending {
    background: #fff3e0;
    color: #ff9800;
}

.withdraw-record-item .withdraw-record-status.success {
    background: #e8f5e9;
    color: #4caf50;
}

.withdraw-record-item .withdraw-record-status.fail {
    background: #ffebee;
    color: #f44336;
}

.withdraw-record-item .withdraw-record-time {
    color: #999;
    font-size: 13px;
}

.withdraw-record-reason {
    font-size: 12px;
    color: #f44336;
    margin-top: 4px;
    padding: 6px 10px;
    background: #ffebee;
    border-radius: 6px;
}

/* ========== 任务类型卡片网格 ========== */
.task-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.task-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    background: #f8f9fa;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s;
}

.task-type-card:hover {
    border-color: #667eea;
}

.task-type-card.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.task-type-card-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
}

.task-type-card-kicker {
    font-size: 11px;
    color: #7b8796;
    letter-spacing: 0.2px;
}

.task-type-card.active .task-type-card-name {
    color: #fff;
}

.task-type-card.active .task-type-card-kicker {
    color: rgba(255, 255, 255, 0.76);
}

.task-type-card-price {
    font-size: 12px;
    color: #11998e;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 6px;
    text-align: center;
    overflow-wrap: anywhere;
}

.task-type-card.active .task-type-card-price {
    color: rgba(255, 255, 255, 0.85);
}

.option-empty {
    font-size: 13px;
    color: #999;
    padding: 6px 0;
    display: inline-block;
}

/* ========================================
   登录/注册页样式
======================================== */

/* ========== 认证页通用布局 ========== */
.auth-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo-icon {
    font-size: 56px;
    margin-bottom: 12px;
    line-height: 1;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

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

.auth-form {
    width: 100%;
    max-width: 360px;
    background: white;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.auth-form .form-group:last-of-type {
    margin-bottom: 10px;
}

.auth-form .btn-block {
    margin-top: 10px;
}

.auth-error {
    background: #ffebee;
    color: #f44336;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
}

.invite-hint {
    font-size: 12px;
    color: #667eea;
    margin-top: 4px;
}

.auth-footer {
    margin-top: 24px;
    font-size: 14px;
    color: #999;
}

.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

/* ========== 按钮禁用态 ========== */
.btn:disabled,
.btn:disabled:hover {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========== 退出登录 ========== */
.logout-section {
    margin-top: 16px;
}

#page-wode {
    position: relative;
}

#page-wode.trade-gate-active > :not(.wode-trade-gate) {
    filter: blur(2px);
    pointer-events: none;
    user-select: none;
}

.wode-trade-gate {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(244, 247, 255, 0.86);
    backdrop-filter: blur(6px);
}

.wode-trade-gate-panel {
    width: min(100%, 420px);
    padding: 20px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 36px rgba(57, 76, 123, 0.18);
    border: 1px solid rgba(217, 226, 243, 0.95);
}

.wode-trade-gate-title {
    font-size: 20px;
    font-weight: 700;
    color: #27354b;
}

.wode-trade-gate-desc {
    margin-top: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.7;
    color: #6a778b;
}

.logout-btn {
    background: white;
    color: #f44336;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.logout-btn:hover {
    background: #ffebee;
}

/* ========== 我的页用户信息行 ========== */
.asset-user-inline {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.asset-user-overline {
    display: none;
}

.asset-user-name-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.asset-user-name {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.08;
}

.asset-user-username {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.2;
}

.asset-user-meta {
    font-size: 12px;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.74);
    white-space: nowrap;
    text-align: left;
}

.asset-head-label {
    flex-shrink: 0;
    font-size: 12px;
    line-height: 1.1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.76);
    white-space: nowrap;
    padding-bottom: 3px;
}

@media (max-width: 520px) {
    .asset-card {
        padding: 16px 14px 14px;
        border-radius: 18px;
    }

    .asset-card-head {
        gap: 10px;
        align-items: flex-end;
    }

    .asset-user-name {
        font-size: 18px;
    }

    .asset-balance-block {
        margin-top: 10px;
    }

    .asset-metrics {
        gap: 10px;
        margin-top: 14px;
        padding-top: 14px;
    }

    .asset-metric {
        padding: 11px 10px 10px;
        border-radius: 14px;
    }

    .asset-metric-label {
        font-size: 11px;
    }

    .asset-metric-value {
        font-size: 20px;
        gap: 4px;
    }

    .asset-metric-unit,
    .asset-head-label,
    .asset-user-meta {
        font-size: 11px;
    }

    .asset-metric-desc {
        font-size: 10px;
        line-height: 1.32;
    }

    .contact-service-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (min-width: 768px) {
    .asset-card {
        padding: 26px 24px 22px;
        border-radius: 24px;
    }

    .asset-card-head {
        align-items: center;
    }

    .asset-metrics {
        gap: 14px;
    }
}
