* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft Yahei", sans-serif;
    background: #fff2f9;
    color: #4a2a45;
    min-height: 100vh;
    padding: 16px 12px 60px;
    overflow-x: hidden;
}

.bg-glow { position: fixed; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; z-index: 0; }
.bg-glow-1 { width: 300px; height: 300px; background: #ffc2e2; top: -110px; right: -90px; }
.bg-glow-2 { width: 280px; height: 280px; background: #cdc2ff; bottom: -120px; left: -90px; }

.app { max-width: 560px; margin: 0 auto; position: relative; z-index: 1; }

/* ============ 顶部 ============ */
.hero { text-align: center; padding: 34px 0 20px; position: relative; }
.hero-title { font-size: 25px; font-weight: 800; color: #b3419c; letter-spacing: .5px; text-shadow: 0 2px 10px rgba(255,150,200,.35); }
.hero-sub { margin-top: 8px; font-size: 13px; color: #a2739a; }

.hero-pet { position: absolute; right: -6px; top: 6px; pointer-events: none; animation: petSway 3.2s ease-in-out infinite alternate; transform-origin: bottom center; }
@keyframes petSway { 0% { transform: rotate(-4deg); } 100% { transform: rotate(4deg); } }
.pet-bubble { position: absolute; right: 44px; top: 12px; background: #fff; border: 2px solid #ffb9dd; border-radius: 12px; padding: 4px 9px; font-size: 11px; color: #a04e88; white-space: nowrap; box-shadow: 0 3px 8px rgba(255,180,220,.3); }
.pet-bubble::after { content: ""; position: absolute; right: -8px; top: 10px; border: 6px solid transparent; border-left-color: #ffb9dd; }
.pet-body { width: 46px; height: 62px; position: relative; }
.pet-head { width: 42px; height: 42px; border-radius: 50%; background: #ffddbc; position: absolute; left: 2px; top: 2px; z-index: 2; }
.pet-ear { position: absolute; width: 13px; height: 18px; border-radius: 50% 50% 0 0; background: #ffb377; top: -8px; }
.ear-l { left: 2px; transform: rotate(-18deg); }
.ear-r { right: 2px; transform: rotate(18deg); }
.pet-eye { width: 5px; height: 7px; background: #3a2a33; border-radius: 50%; position: absolute; top: 17px; }
.eye-l { left: 10px; }
.eye-r { right: 10px; }
.pet-mouth { position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%); width: 9px; height: 4px; border-bottom: 2px solid #c97a4a; border-radius: 0 0 8px 8px; }
.pet-torso { width: 36px; height: 22px; background: #ffbc80; border-radius: 16px 16px 6px 6px; position: absolute; left: 5px; top: 38px; z-index: 1; }

/* ============ 卡片 ============ */
.card { background: #fff; border-radius: 20px; border: 2px solid #ffd0e7; box-shadow: 0 8px 22px rgba(255,170,215,.16); margin-bottom: 16px; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; }
.card-head.expandable { cursor: pointer; user-select: none; }
.card-title { font-size: 15px; font-weight: 700; color: #a83a8f; display: flex; align-items: center; gap: 6px; }
.ico { font-size: 15px; }
.card-arrow { font-size: 12px; color: #c17bb0; background: #fff0f8; border-radius: 10px; padding: 4px 10px; }

.panel { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; }
.panel.open { max-height: 2000px; padding: 4px 18px 18px; }
.panel.open[style*="max-height:none"] { padding: 4px 18px 18px; }

.divider { height: 2px; background: linear-gradient(90deg, transparent, #ffd6ea, transparent); margin: 16px 0; }

/* ============ 表单 ============ */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: #8c4a80; margin-bottom: 7px; }
input[type="text"], input[type="password"], input[type="number"], input[type="time"], input[type="datetime-local"], input[type="email"], textarea, select, input[type="date"] {
    width: 100%; font-family: inherit; font-size: 14px; color: #4a2a45;
    background: #fff8fc; border: 2px solid #ffd6ea; border-radius: 12px; padding: 11px 13px;
    outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
input:focus, textarea:focus, select:focus { border-color: #ff9ccd; box-shadow: 0 0 0 3px rgba(255,156,205,.16); }
textarea { resize: vertical; line-height: 1.6; min-height: 64px; }
.hint { margin-top: 6px; font-size: 11.5px; color: #b58dae; line-height: 1.5; }
.mt8 { margin-top: 8px; }
.mt14 { margin-top: 14px; }

.field-row { display: flex; gap: 10px; }
.field-row .btn { flex: 1; }
.inline-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-row input[type="number"] { width: 76px; text-align: center; }
.inline-row input[type="time"] { width: 120px; }
.inline-row select { width: 120px; }
.unit { font-size: 13px; color: #8c4a80; font-weight: 600; }

/* ============ 按钮 ============ */
.btn { font-family: inherit; font-size: 14px; font-weight: 700; border: none; border-radius: 14px; padding: 12px 18px; cursor: pointer; transition: transform .15s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, #ff8ec4, #b57bff); color: #fff; box-shadow: 0 6px 16px rgba(219,120,210,.32); }
.btn-ghost { background: #fff0f8; color: #b3419c; border: 2px solid #ffcbe5; }
.btn-block { width: 100%; padding: 13px; font-size: 15px; margin-top: 4px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.mini-btn { font-family: inherit; font-size: 11.5px; color: #d8466a; background: #fff3f5; border: 1.5px solid #ffd0da; border-radius: 9px; padding: 4px 10px; cursor: pointer; }
.icon-btn { font-family: inherit; font-size: 15px; color: #b3419c; background: #fff0f8; border: 2px solid #ffdcee; border-radius: 10px; width: 34px; height: 34px; cursor: pointer; }

/* ============ 登录 ============ */
.auth-card { padding: 20px 20px 24px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.auth-tab { flex: 1; font-family: inherit; font-size: 14px; font-weight: 700; padding: 10px; border-radius: 12px; border: 2px solid #ffdcee; background: #fff8fc; color: #b174a5; cursor: pointer; }
.auth-tab.active { background: linear-gradient(135deg, #ff9dcd, #c294ff); color: #fff; border-color: transparent; }
.auth-tip { font-size: 12px; color: #b58dae; text-align: center; margin-top: 10px; }
.auth-footer { text-align: center; font-size: 12.5px; margin-top: 20px; }
.auth-footer a { color: #b3419c; text-decoration: none; }

/* ============ 主界面 ============ */
.topbar { display: flex; align-items: flex-start; justify-content: space-between; padding: 16px 4px 12px; gap: 10px; }
.site-name { font-size: 19px; font-weight: 800; color: #a83a8f; }
.site-notice { font-size: 11.5px; color: #c0609f; background: #fff0f8; border: 1.5px solid #ffdcee; border-radius: 10px; padding: 5px 10px; margin-top: 6px; }
.topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.user-chip { font-size: 12px; color: #8c4a80; background: #fff; border: 2px solid #ffdcee; border-radius: 12px; padding: 5px 10px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-tabs { display: flex; gap: 6px; margin-bottom: 14px; background: rgba(255,255,255,.7); padding: 5px; border-radius: 16px; border: 2px solid #ffdcee; }
.nav-tab { flex: 1; font-family: inherit; font-size: 12.5px; font-weight: 700; color: #b174a5; background: transparent; border: none; border-radius: 12px; padding: 10px 4px; cursor: pointer; transition: all .2s; }
.nav-tab.active { background: linear-gradient(135deg, #ff9dcd, #c294ff); color: #fff; box-shadow: 0 4px 12px rgba(220,130,210,.28); }

.tab-panel { animation: fadeIn .22s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ============ 统计 ============ */
.stat-row { display: flex; gap: 9px; margin-bottom: 14px; }
.stat-card { flex: 1; background: #fff; border: 2px solid #ffdcee; border-radius: 16px; padding: 12px 8px; text-align: center; }
.stat-num { font-size: 20px; font-weight: 800; color: #d6408f; font-family: Consolas, monospace; }
.stat-label { font-size: 11px; color: #a2739a; margin-top: 3px; }

/* ============ 类型 ============ */
.type-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.type-tab { flex: 1 1 calc(33.333% - 7px); min-width: 88px; font-family: inherit; font-size: 12.5px; font-weight: 600; color: #b174a5; background: #fff4fb; border: 2px solid #ffdcee; border-radius: 12px; padding: 9px 6px; cursor: pointer; transition: all .2s; }
.type-tab.active { background: linear-gradient(135deg, #ff9dcd, #c294ff); border-color: transparent; color: #fff; box-shadow: 0 5px 14px rgba(220,130,210,.28); }
.type-body { margin-bottom: 2px; }
.hidden { display: none !important; }

.check-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #8c4a80; margin-bottom: 14px; cursor: pointer; }
.check-line input[type="checkbox"] { width: 18px; height: 18px; accent-color: #ff8ec4; -webkit-appearance: auto; appearance: auto; }

.color-picker { display: flex; gap: 12px; align-items: center; padding: 4px 0; }
.color-dot { width: 26px; height: 26px; border-radius: 50%; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 2px #ffdcee; transition: transform .15s; }
.color-dot.none { background: #f5eef3; position: relative; }
.color-dot.none::after { content: "✕"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #c9a9c0; }
.color-dot.active { transform: scale(1.18); box-shadow: 0 0 0 3px #ff8ec4; }

.adv-toggle { font-size: 12.5px; color: #b174a5; padding: 10px 2px; cursor: pointer; user-select: none; }
.adv-panel { background: #fff8fc; border: 2px dashed #ffdcee; border-radius: 14px; padding: 14px 14px 2px; margin-bottom: 12px; }

/* ============ 任务 ============ */
.task-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 10px; }
.task-head h2 { font-size: 16px; color: #a83a8f; font-weight: 800; }
.task-count { font-size: 12px; color: #b174a5; background: #fff; border: 2px solid #ffdcee; border-radius: 12px; padding: 3px 10px; }

.search-bar { margin-bottom: 10px; }
.search-bar input { border-radius: 14px; }

.sort-box { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.sort-box select { flex: 1; padding: 8px 12px; font-size: 12.5px; }

.task-list { display: flex; flex-direction: column; gap: 12px; }
.empty { text-align: center; color: #c09ab8; font-size: 13px; padding: 34px 0; background: rgba(255,255,255,.7); border: 2px dashed #ffd6ea; border-radius: 18px; }

.task-card { background: #fff; border-radius: 18px; border: 2px solid #ffd0e7; box-shadow: 0 6px 18px rgba(255,170,215,.14); padding: 15px; }
.task-card.off { opacity: .62; }
.task-top { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.task-badge { flex-shrink: 0; font-size: 11px; font-weight: 700; color: #fff; border-radius: 8px; padding: 3px 8px; background: linear-gradient(135deg, #ff9dcd, #c294ff); margin-top: 1px; }
.task-badge.finished { background: #c9c2cf; }
.task-badge.paused { background: #cfc6d3; }
.task-title { flex: 1; font-size: 15px; font-weight: 700; color: #5c2f54; line-height: 1.45; word-break: break-word; }
.task-sub { font-size: 11.5px; color: #b087a6; margin-bottom: 8px; }
.task-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.task-tag { font-size: 10.5px; color: #b3419c; background: #fff0f8; border: 1.5px solid #ffdcee; border-radius: 7px; padding: 1px 7px; }
.task-content { font-size: 12.5px; color: #9b6a92; line-height: 1.6; margin-bottom: 10px; white-space: pre-wrap; word-break: break-word; }

.task-time-row { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: #92708a; background: #fff6fb; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.task-time-row .k { color: #b087a6; }
.task-time-row .v { color: #7d4472; font-weight: 700; }
.countdown { color: #d6408f !important; font-family: Consolas, monospace; font-weight: 800; }

.task-status { font-size: 11.5px; margin-bottom: 10px; }
.task-status.success { color: #1fa06a; }
.task-status.failed { color: #e34a6b; }

.task-actions { display: flex; gap: 7px; }
.act-btn { flex: 1; font-family: inherit; font-size: 12px; font-weight: 700; padding: 9px 4px; border-radius: 11px; border: none; cursor: pointer; }
.act-toggle { background: #fff0f8; color: #b3419c; border: 2px solid #ffcbe5; }
.act-toggle.on { background: #f0fff8; color: #1a9463; border-color: #b8e9d2; }
.act-edit { background: #fffaf0; color: #b3801f; border: 2px solid #ffe4b5; }
.act-test { background: #f2f0ff; color: #7658d0; border: 2px solid #d6ccff; }
.act-del { background: #fff3f5; color: #d8466a; border: 2px solid #ffd0da; }

.finished-wrap { margin-top: 14px; }
.finished-head { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #a2739a; padding: 8px 4px; cursor: pointer; user-select: none; }
.finished-head .mini-btn { margin-left: auto; }

/* ============ 通道 ============ */
.mode-switch { display: flex; gap: 10px; margin-bottom: 12px; }
.mode-btn { flex: 1; min-width: 0; text-align: left; font-family: inherit; background: #fff8fc; border: 2px solid #ffdcee; border-radius: 14px; padding: 12px; cursor: pointer; transition: all .2s; }
.mode-btn.active { border-color: #ff9ccd; background: #fff0f8; box-shadow: 0 0 0 3px rgba(255,156,205,.14); }
.mode-btn.disabled { opacity: .55; cursor: not-allowed; }
.mode-name { font-size: 13.5px; font-weight: 700; color: #a83a8f; }
.mode-desc { font-size: 11px; color: #b58dae; margin-top: 4px; line-height: 1.4; }

.ch-item { border: 2px solid #ffe3f2; border-radius: 14px; padding: 12px; margin-bottom: 10px; background: #fffcfd; }
.ch-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ch-head.no-border { margin-bottom: 4px; }
.ch-name { font-size: 13.5px; font-weight: 700; color: #7d4472; }
.ch-body input, .ch-body textarea { margin-bottom: 8px; }
.ch-body input:last-child, .ch-body textarea:last-child { margin-bottom: 0; }

.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #e8dbe6; border-radius: 24px; transition: .25s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s; }
.switch input:checked + span { background: linear-gradient(135deg, #ff8ec4, #b57bff); }
.switch input:checked + span::before { transform: translateX(20px); }

/* ============ 记录 ============ */
.hist-filter { display: flex; gap: 7px; padding: 0 18px 10px; }
.hist-tab { font-family: inherit; font-size: 12px; font-weight: 600; color: #b174a5; background: #fff8fc; border: 1.5px solid #ffdcee; border-radius: 9px; padding: 5px 14px; cursor: pointer; }
.hist-tab.active { background: linear-gradient(135deg, #ff9dcd, #c294ff); color: #fff; border-color: transparent; }

.hist-item { padding: 11px 12px; border-radius: 12px; background: #fff8fc; border: 1.5px solid #ffe3f2; margin-bottom: 9px; }
.hist-item.err { background: #fff6f8; border-color: #ffdbe2; }
.hist-line1 { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.hist-dot { width: 7px; height: 7px; border-radius: 50%; background: #46d18e; flex-shrink: 0; }
.hist-item.err .hist-dot { background: #ff6b8a; }
.hist-title { flex: 1; font-size: 13px; font-weight: 700; color: #5c2f54; word-break: break-word; }
.hist-kind { font-size: 10.5px; color: #b174a5; background: #fff; border: 1.5px solid #ffdcee; border-radius: 7px; padding: 1px 6px; flex-shrink: 0; }
.hist-line2 { font-size: 11.5px; color: #9b6a92; line-height: 1.5; padding-left: 14px; word-break: break-word; }

/* ============ 设置 ============ */
.account-info { background: #fff8fc; border: 1.5px solid #ffe3f2; border-radius: 12px; padding: 12px; }
.info-line { display: flex; justify-content: space-between; font-size: 12.5px; color: #92708a; padding: 5px 0; }
.info-line b { color: #7d4472; font-weight: 700; }

/* ============ 弹窗 / Toast ============ */
.modal-mask { position: fixed; inset: 0; background: rgba(60,25,55,.42); backdrop-filter: blur(3px); z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { width: 100%; max-width: 420px; max-height: 86vh; background: #fff; border-radius: 22px; border: 2px solid #ffd0e7; box-shadow: 0 18px 50px rgba(180,100,160,.3); display: flex; flex-direction: column; overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 2px solid #fff0f8; }
.modal-head h3 { font-size: 16px; color: #a83a8f; font-weight: 800; }
.modal-close { font-size: 16px; color: #c09ab8; cursor: pointer; padding: 2px 8px; }
.modal-body { padding: 16px 18px; overflow-y: auto; flex: 1; }
.modal-foot { display: flex; gap: 10px; padding: 12px 18px 16px; border-top: 2px solid #fff0f8; }
.modal-foot .btn { flex: 1; padding: 11px; font-size: 14px; }
#editMsg { padding: 0 18px 10px; }

.msg-line { font-size: 12.5px; margin-top: 10px; min-height: 16px; line-height: 1.5; }
.msg-line.ok { color: #1fa06a; }
.msg-line.err { color: #e34a6b; }

.toast { position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px); background: rgba(60,25,55,.88); color: #fff; font-size: 13.5px; padding: 11px 22px; border-radius: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 9999; max-width: 84vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ 会员 ============ */
.section-title { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 800; color: #a83a8f; margin: 16px 2px 10px; }
.section-title::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, #ff9dcd, #c294ff); }

.member-card { background: linear-gradient(135deg, #ffffff 0%, #fff5fb 100%); border: 2px solid #ffdcee; border-radius: 20px; padding: 18px; box-shadow: 0 8px 20px rgba(255,170,215,.16); }
.member-card.vip { background: linear-gradient(135deg, #fff8e2 0%, #ffeaf6 55%, #f2e6ff 100%); border-color: #ffd08a; box-shadow: 0 8px 22px rgba(255,180,90,.2); }
.member-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.member-plan-name { font-size: 19px; font-weight: 800; color: #a83a8f; }
.member-card.vip .member-plan-name { color: #b3741f; }
.member-plan-sub { font-size: 11.5px; color: #b58dae; margin-top: 4px; }
.member-badge { flex-shrink: 0; font-size: 10.5px; font-weight: 800; letter-spacing: 1px; color: #fff; border-radius: 9px; padding: 5px 10px; background: linear-gradient(135deg, #ff9dcd, #c294ff); }
.member-card.vip .member-badge { background: linear-gradient(135deg, #ffc45c, #ff9d5c); }
.member-bar { height: 8px; background: #ffeaf5; border-radius: 6px; overflow: hidden; margin: 14px 0 10px; }
.member-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #ff9dcd, #c294ff); transition: width .4s ease; }
.member-card.vip .member-bar { background: #fff0d8; }
.member-card.vip .member-bar i { background: linear-gradient(90deg, #ffc45c, #ff9d5c); }
.member-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: #92708a; }
.member-foot b { color: #d6408f; font-weight: 800; }

.plan-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.plan-item { display: flex; gap: 12px; background: #fff; border: 2px solid #ffe0f0; border-radius: 16px; padding: 14px; box-shadow: 0 5px 14px rgba(255,170,215,.12); }
.plan-item.current { border-color: #ffb3d8; background: #fff8fc; }
.plan-main { flex: 1; min-width: 0; }
.plan-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 15px; font-weight: 800; color: #7d4472; }
.plan-badge { font-style: normal; font-size: 10px; font-weight: 700; color: #fff; border-radius: 6px; padding: 2px 6px; background: linear-gradient(135deg, #ff9d5c, #ff7aa8); }
.plan-desc { font-size: 11.5px; color: #b087a6; line-height: 1.45; margin: 5px 0 9px; word-break: break-word; }
.plan-benefits { display: flex; flex-wrap: wrap; gap: 5px; }
.plan-benefits span { font-size: 10.5px; color: #a45a92; background: #fff0f8; border-radius: 6px; padding: 2px 7px; }
.plan-side { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.plan-price { font-size: 21px; font-weight: 800; color: #d6408f; font-family: Consolas, monospace; }
.plan-price i { font-style: normal; font-size: 12px; margin-right: 2px; }
.plan-buy { margin-top: 10px; padding: 8px 15px; font-size: 12.5px; border-radius: 11px; }

.order-list { display: flex; flex-direction: column; gap: 9px; padding-top: 12px; }
.order-item { background: #fff8fc; border: 1.5px solid #ffe3f2; border-radius: 12px; padding: 11px 12px; }
.order-line1 { display: flex; align-items: center; gap: 8px; }
.order-plan { flex: 1; font-size: 13px; font-weight: 700; color: #5c2f54; }
.order-amount { font-size: 13px; font-weight: 800; color: #d6408f; font-family: Consolas, monospace; }
.order-status { font-size: 10.5px; font-weight: 700; border-radius: 6px; padding: 2px 7px; background: #f2eef5; color: #8a7a99; }
.order-status.paid { background: #e8f8ef; color: #1a9463; }
.order-status.pending { background: #fff6e3; color: #b3801f; }
.order-status.closed { background: #f2f2f4; color: #9b9b9b; }
.order-line2 { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: #b087a6; margin-top: 5px; }
.order-line2 span { word-break: break-all; }

.pay-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff8fc; border: 1.5px solid #ffe3f2; border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.pay-plan-name { font-size: 15px; font-weight: 800; color: #7d4472; }
.pay-plan-desc { font-size: 11.5px; color: #b087a6; margin-top: 4px; word-break: break-all; }
.pay-amount { font-size: 23px; font-weight: 800; color: #d6408f; font-family: Consolas, monospace; }
.pay-amount i { font-style: normal; font-size: 13px; margin-right: 2px; }
.pay-methods { display: flex; gap: 10px; margin-bottom: 8px; }
.pay-method { flex: 1; font-family: inherit; font-size: 13.5px; font-weight: 700; color: #b174a5; background: #fff8fc; border: 2px solid #ffdcee; border-radius: 12px; padding: 11px; cursor: pointer; transition: all .2s; }
.pay-method.active { background: linear-gradient(135deg, #ff9dcd, #c294ff); border-color: transparent; color: #fff; }

.empty.small { padding: 16px 0; font-size: 12px; }

/* ============ 小屏 ============ */
@media (max-width: 380px) {
    body { padding: 12px 10px 50px; }
    .hero-title { font-size: 21px; }
    .hero-pet { transform: scale(.86); transform-origin: top right; }
    .pet-bubble { font-size: 10px; padding: 3px 7px; }
    .type-tab { min-width: 74px; font-size: 12px; }
    .nav-tab { font-size: 11.5px; }
    .inline-row input[type="number"] { width: 62px; }
    .mode-switch { flex-direction: column; }
    .mode-btn { width: 100%; padding: 10px 12px; }
    .color-dot { width: 23px; height: 23px; }
    .act-btn { font-size: 11px; padding: 8px 3px; }
}

/* ============ 新增：注册协议 / 找回密码 ============ */
.agree-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #8b7aa5;
    margin: 4px 0 12px;
    line-height: 1.6;
}
.agree-label { display: inline-flex; align-items: center; gap: 6px; }
.agree-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: #b57bff; }
.agree-row a { color: #8f6be0; text-decoration: none; }
.forgot-line { text-align: right; margin: 10px 2px 0; font-size: 12.5px; }
.forgot-line a { color: #9b88b5; text-decoration: none; }

/* ============ 新增：任务模板 ============ */
.tpl-box { margin: 4px 0 14px; }
.tpl-title { font-size: 12px; color: #9b88b5; margin: 0 2px 8px; }
.tpl-row { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 6px; }
.tpl-row::-webkit-scrollbar { display: none; }
.tpl-chip {
    flex: 0 0 auto;
    font-family: inherit;
    font-size: 12.5px;
    color: #7a5fa8;
    background: #fff;
    border: 1.5px dashed #e0d2f6;
    border-radius: 999px;
    padding: 7px 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s;
}
.tpl-chip:hover { border-color: #b57bff; color: #8f6be0; background: #faf5ff; }

.task-head-right { display: flex; align-items: center; gap: 8px; }

/* ============ 新增：邀请 ============ */
.invite-code-row { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; }
.invite-code {
    flex: 1;
    font-family: ui-monospace, monospace;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #8f6be0;
    background: #faf5ff;
    border: 1.5px dashed #d9c6f5;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}
.invite-stat { display: flex; gap: 10px; margin: 12px 0; }
.invite-stat > div {
    flex: 1;
    background: #fdfbff;
    border: 1.5px solid #efe7fa;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
}
.invite-stat b { display: block; font-size: 18px; color: #6b4d99; }
.invite-stat span { font-size: 11.5px; color: #9b88b5; }
.invite-list { margin-top: 10px; border-top: 1px dashed #efe7fa; padding-top: 8px; }
.invite-line {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #7d6a95;
    padding: 5px 0;
}

/* ============ 新增：客服悬浮球 ============ */
.fab-support {
    position: fixed;
    right: 14px;
    bottom: 22px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ffa8d5, #b58cff);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 10px 26px rgba(181, 140, 255, .42);
    cursor: pointer;
    z-index: 60;
    transition: transform .2s;
}
.fab-support:active { transform: scale(.94); }
.support-value {
    font-size: 15px;
    word-break: break-all;
    background: #faf5ff;
    border: 1.5px dashed #d9c6f5;
    border-radius: 12px;
    padding: 14px;
    margin: 8px 0 14px;
    color: #6b4d99;
    text-align: center;
}
.notice-text { font-size: 13.5px; line-height: 1.9; color: #4a3d5e; }
.card-title.small { font-size: 13px; margin-bottom: 8px; color: #7a5fa8; }

/* ============ 深色模式 ============ */
body.dark {
    background: #14101c;
    color: #e9e2f7;
}
body.dark .bg-glow { opacity: .22; }
body.dark .card,
body.dark .stat-card,
body.dark .task-card,
body.dark .plan-item,
body.dark .order-line,
body.dark .modal,
body.dark .invite-stat > div,
body.dark .toast {
    background: #211a2e;
    border-color: #342a48;
    color: #e9e2f7;
}
body.dark .topbar { background: rgba(33, 26, 46, .92); border-bottom-color: #342a48; }
body.dark .site-name,
body.dark .user-chip,
body.dark .card-title,
body.dark .section-title,
body.dark .stat-num,
body.dark .task-head h2,
body.dark .modal-head h3,
body.dark .plan-name,
body.dark .member-plan-name {
    color: #f1eaff;
}
body.dark .nav-tabs { background: #211a2e; }
body.dark .nav-tab { color: #9b8fb5; }
body.dark .nav-tab.active { color: #d3b6ff; background: #302546; }
body.dark input,
body.dark textarea,
body.dark select,
body.dark .color-picker,
body.dark .search-bar input {
    background: #191322;
    color: #e9e2f7;
    border-color: #3a2f50;
}
body.dark input::placeholder,
body.dark textarea::placeholder { color: #6f6488; }
body.dark .hint,
body.dark .member-plan-sub,
body.dark .stat-label,
body.dark .task-content,
body.dark .empty,
body.dark .auth-tip,
body.dark .agree-row,
body.dark .invite-line,
body.dark .info-line span { color: #9b8fb5; }
body.dark .task-title { color: #e4dbf5; }
body.dark .ch-item,
body.dark .adv-panel,
body.dark .invite-code,
body.dark .support-value,
body.dark .notice-text { background: #1c1626; border-color: #352a4a; color: #b9a9d6; }
body.dark .divider { background: #302546; }
body.dark .plan-item.active,
body.dark .mode-btn { background: #1c1626; border-color: #352a4a; }
body.dark .mode-name { color: #d9cdf0; }
body.dark .tpl-chip { background: #211a2e; border-color: #3a2f50; color: #b9a9d6; }
body.dark .mini-btn { background: #2c2340; color: #cfc1e6; border-color: #3a2f50; }
body.dark .toast { background: rgba(48, 37, 70, .96); }


/* 悬浮客服球不压住内容 */
.tab-panel { padding-bottom: 78px; }

/* 反馈行：输入框占满，按钮不换行 */
.fb-row { align-items: flex-start; }
.fb-row input { flex: 1; min-width: 0; }
.fb-row .btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 76px;
    height: 46px;
    white-space: nowrap;
    padding: 0 18px;
}

/* 邮箱绑定行不换行 */
.email-row { flex-wrap: nowrap; }
.email-row input { flex: 1; min-width: 0; }
.email-row .mini-btn { flex: 0 0 auto; }

/* 深色模式补充控件 */
body.dark .type-tab,
body.dark .hist-tab { background: #2a2138; color: #b9a9d6; border-color: #3a2f50; }
body.dark .type-tab.active { background: linear-gradient(135deg, #ff9ecb, #a97ce8); color: #fff; }
body.dark .btn-ghost { background: #2a2138; color: #cfc1e6; border-color: #3a2f50; }
body.dark .search-bar,
body.dark .search-bar input { background: #211a2e; }

/* 只读展示框（绑定邮箱等）*/
.readonly-box {
    padding: 13px 14px;
    border-radius: 12px;
    border: 1.5px dashed #e9d5ee;
    background: #faf6fd;
    color: #7b5f92;
    font-size: 14px;
    word-break: break-all;
}
.readonly-box.empty { color: #b9a8c9; }
body.dark .readonly-box { background: #2a2340; border-color: #4a3d63; color: #d6c8e8; }

.hist-line3 { font-size: 11px; color: #9b87ad; margin-top: 4px; word-break: break-all; line-height: 1.5; }
body.dark .hist-line3 { color: #a495bd; }

.site-footer { padding: 18px 16px 26px; text-align: center; }
.site-icp { font-size: 11.5px; color: #a08bb2; line-height: 1.6; word-break: break-all; }
.site-icp a { color: #a08bb2; text-decoration: none; }
body.dark .site-icp { color: #8d7fa6; }

/* ===== 站内公告弹窗（渐变卡片版）===== */
.notice-modal { max-width: 430px; }
.notice-head {
    display: flex; align-items: center; gap: 12px;
    padding: 20px 18px;
    background: linear-gradient(135deg, #ffa8cd, #c99bf5);
    color: #fff; position: relative; overflow: hidden;
}
.notice-head::after {
    content: ''; position: absolute; right: -30px; top: -40px;
    width: 120px; height: 120px; border-radius: 50%;
    background: rgba(255,255,255,.22);
}
.notice-badge {
    width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px;
    background: rgba(255,255,255,.28); display: flex; align-items: center;
    justify-content: center; font-size: 22px; backdrop-filter: blur(2px);
}
.notice-head-text { flex: 1; min-width: 0; }
.notice-head-text h3 {
    font-size: 17px; font-weight: 800; color: #fff; margin: 0;
    line-height: 1.35; word-break: break-word;
}
.notice-sub { font-size: 11.5px; color: rgba(255,255,255,.85); margin-top: 4px; letter-spacing: .5px; }
.notice-close { color: #fff; opacity: .9; font-size: 17px; z-index: 1; }
.notice-text { font-size: 13.8px; line-height: 1.95; color: #4a3d5e; }
.notice-line { margin: 0 0 6px; }
.notice-line:first-child { margin-top: 0; }
.notice-foot { gap: 10px; }
.notice-foot .notice-btn { flex: 1; padding: 12px; font-size: 14.5px; border-radius: 14px; }
.notice-foot .notice-btn:only-child { flex: 1 1 100%; }
.notice-modal.shake { animation: noticeShake .38s ease; }
@keyframes noticeShake {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-7px); }
    50% { transform: translateX(7px); }
    75% { transform: translateX(-4px); }
}
body.dark .notice-text { color: #cbbfe0; }
