:root {
    --primary: #1a7f37; --primary-dark: #13662b; --primary-light: #e8f5e9;
    --accent: #4caf50; --bg: #f5f7f5; --card-bg: #ffffff;
    --text: #1f2937; --text-light: #6b7280; --border: #e5e7eb;
    --shadow: 0 4px 20px rgba(0,0,0,0.06); --radius: 16px; --radius-sm: 10px;
    --sidebar-width: 240px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; height: 100vh; overflow: hidden; }
.app-container { display: flex; height: 100vh; }

/* ─── 侧边栏 ─── */
.sidebar { width: var(--sidebar-width); background: linear-gradient(180deg, #145a25 0%, #1a7f37 100%); color: white; display: flex; flex-direction: column; padding: 20px 14px; box-shadow: 2px 0 12px rgba(0,0,0,0.1); }
.logo-area { display: flex; flex-direction: column; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.logo-brand-row { display: flex; align-items: center; gap: 10px; }
.logo { width: 70px; height: 70px; object-fit: contain; border-radius: 10px; flex-shrink: 0; }
.brand { flex: 1; min-width: 0; }
.brand h1 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.brand p { font-size: 12px; opacity: 0.85; line-height: 1.3; }
.logo-tagline { font-size: 11px; opacity: 0.7; text-align: center; letter-spacing: 2px; margin: -6px 0 0; }
.user-actions-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.user-actions-row .user-auth-btn,
.user-actions-row .vip-register-btn {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 5px 8px;
    font-size: 11px;
}
.vip-register-btn {
    background: linear-gradient(90deg, #ffd700, #ffaa00);
    color: #5c3d00;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 170, 0, 0.35);
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    gap: 1px;
}
.vip-register-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255, 170, 0, 0.5); }
.vip-register-btn.is-member { background: linear-gradient(90deg, #8e44ad, #9b59b6); color: #fff; cursor: pointer; box-shadow: 0 2px 8px rgba(142, 68, 173, 0.35); }
.vip-register-btn.is-member:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(142, 68, 173, 0.5); }
.vip-register-main { font-size: inherit; font-weight: inherit; }
.vip-register-sub { font-size: 9px; font-weight: 500; opacity: 0.95; line-height: 1.1; }
.user-auth-btn .vip-badge-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 4px;
    font-size: 10px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #5c3d00;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    vertical-align: middle;
}
.user-auth-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.user-auth-btn:hover { background: rgba(255,255,255,0.22); }
#btn-logout {
    background: rgba(239,68,68,0.2);
    border-color: rgba(239,68,68,0.4);
}
#btn-logout:hover { background: rgba(239,68,68,0.35); }
.sidebar-menu { margin-top: 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; border: none; background: transparent; color: white; font-size: 15px; cursor: pointer; transition: all 0.2s; text-align: left; }
.menu-item:hover { background: rgba(255,255,255,0.12); }
.menu-item.active { background: rgba(255,255,255,0.22); font-weight: 600; }
.menu-item .icon { font-size: 18px; width: 24px; text-align: center; }
.sidebar-footer { font-size: 12px; opacity: 0.7; text-align: center; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.1); }

/* ─── 主内容区 ─── */
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.view { display: none; flex-direction: column; height: 100%; animation: fadeIn 0.25s ease; }
.view.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.chat-header { background: var(--card-bg); padding: 18px 28px; border-bottom: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.03); z-index: 10; }
.chat-header h2 { font-size: 19px; color: var(--primary-dark); margin-bottom: 2px; }
.chat-header p { font-size: 13px; color: var(--text-light); }
.assistant-header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.assistant-header-row p { margin: 0; }
.field-selector-wrap { display: flex; align-items: center; gap: 8px; }
.field-selector-wrap label { font-size: 13px; color: var(--text-light); white-space: nowrap; }
.field-selector-wrap select { padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; background: var(--bg); color: var(--text); cursor: pointer; outline: none; max-width: 240px; }
.field-selector-wrap select:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(26,127,55,0.15); }

/* ═══════════ 一、智能问答样式 ═══════════ */
.chat-messages { flex: 1; overflow-y: auto; padding: 20px 28px; display: flex; flex-direction: column; gap: 16px; }
.message { display: flex; gap: 10px; max-width: 85%; animation: msgIn 0.3s ease; }
.message.user { align-self: flex-end; flex-direction: row-reverse; }
.message.bot { align-self: flex-start; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; background: white; box-shadow: 0 2px 6px rgba(0,0,0,0.08); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.message.user .avatar { background: var(--primary-light); }
.bubble { background: white; padding: 14px 16px; border-radius: 16px; border-top-left-radius: 4px; box-shadow: var(--shadow); font-size: 14px; color: var(--text); line-height: 1.7; }
.message.user .bubble { background: var(--primary); color: white; border-top-left-radius: 16px; border-top-right-radius: 4px; }
.bubble p { margin-bottom: 6px; }
.bubble p:last-child { margin-bottom: 0; }
.bubble strong { color: var(--primary-dark); }
.message.user .bubble strong { color: #c8e6c9; }

/* 产品卡片 */
.product-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.product-card { background: linear-gradient(135deg, #f8fff8 0%, #fff 100%); border: 1px solid rgba(26,127,55,0.12); border-radius: 12px; padding: 12px; transition: all 0.2s; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(26,127,55,0.1); }
.product-card h4 { font-size: 14px; color: var(--primary-dark); margin-bottom: 6px; }
.product-card .dosage { font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.product-card .dosage strong { color: var(--accent); font-size: 15px; }
.product-card .note { font-size: 11px; color: var(--text-light); background: rgba(26,127,55,0.05); padding: 4px 6px; border-radius: 4px; }

/* 价格表格 */
.price-table { margin-top: 12px; width: 100%; border-collapse: collapse; font-size: 13px; }
.price-table th { background: var(--primary-light); color: var(--primary-dark); padding: 8px 10px; text-align: left; }
.price-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); }
.price-table tr:last-child td { border-bottom: none; }
.price-table .price-highlight { color: #e65100; font-weight: 700; font-size: 16px; }

/* 天气提示条 */
.weather-alert-bar { margin-top: 12px; background: #fff3e0; border-left: 4px solid #ff9800; padding: 10px 14px; border-radius: 8px; font-size: 13px; color: #e65100; }

.tips-box { margin-top: 14px; background: #fff8e1; border-left: 4px solid #ffb300; padding: 10px 14px; border-radius: 8px; }
.tips-box h5 { font-size: 13px; color: #f57f17; margin-bottom: 4px; }
.tips-box ul { margin-left: 16px; font-size: 12px; color: #6d4c41; }
.tips-box li { margin-bottom: 3px; }

/* AI 反馈学习条（v3.4.0） */
.ai-feedback-bar {
    margin-top: 14px; padding: 10px 12px; border-top: 1px solid #e0e0e0;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ai-feedback-bar .fb-label { font-size: 12px; color: #757575; }
.ai-feedback-bar .fb-btn {
    border: 1px solid #e0e0e0; background: #f5f5f5; border-radius: 16px;
    padding: 4px 12px; font-size: 12px; cursor: pointer; transition: all 0.2s;
    color: #424242;
}
.ai-feedback-bar .fb-btn:hover:not(:disabled) { background: #e8f5e9; border-color: #66bb6a; }
.ai-feedback-bar .fb-btn:disabled { opacity: 0.5; cursor: default; }
.ai-feedback-bar .fb-useful:hover:not(:disabled) { background: #e8f5e9; border-color: #43a047; color: #2e7d32; }
.ai-feedback-bar .fb-useless:hover:not(:disabled) { background: #fff3e0; border-color: #ff9800; color: #e65100; }
.ai-feedback-bar .fb-correct:hover:not(:disabled) { background: #e3f2fd; border-color: #42a5f5; color: #1565c0; }
.ai-feedback-bar .fb-thanks { font-size: 12px; color: #43a047; font-weight: 500; width: 100%; }
.ai-feedback-form {
    margin-top: 8px; padding: 10px; background: #f5f5f5; border-radius: 8px;
}
.ai-feedback-form .fb-correction-input {
    width: 100%; border: 1px solid #ddd; border-radius: 6px; padding: 8px 10px;
    font-size: 13px; resize: vertical; min-height: 60px; box-sizing: border-box;
    font-family: inherit;
}
.ai-feedback-form .fb-form-actions { display: flex; gap: 8px; margin-top: 8px; }
.ai-feedback-form .fb-submit {
    background: var(--primary, #16a34a); color: #fff; border: none; border-radius: 6px;
    padding: 6px 16px; font-size: 13px; cursor: pointer;
}
.ai-feedback-form .fb-submit:disabled { opacity: 0.6; cursor: default; }
.ai-feedback-form .fb-cancel {
    background: #e0e0e0; color: #616161; border: none; border-radius: 6px;
    padding: 6px 16px; font-size: 13px; cursor: pointer;
}

.typing { display: flex; gap: 5px; padding: 16px 20px; align-items: center; }
.typing span { width: 7px; height: 7px; background: var(--primary); border-radius: 50%; animation: bounce 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-5px); } }

.quick-questions { padding: 10px 44px 10px 28px; background: var(--card-bg); border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: relative; }
.quick-questions.hidden { display: none; }
.quick-label { font-size: 12px; color: var(--text-light); white-space: nowrap; }
.quick-list { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.quick-tag { padding: 6px 12px; background: var(--primary-light); color: var(--primary-dark); border: 1px solid rgba(26,127,55,0.15); border-radius: 16px; font-size: 12px; cursor: pointer; transition: all 0.2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.quick-tag:hover { background: var(--primary); color: white; }
.quick-close-btn { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border: none; background: transparent; color: var(--text-light); font-size: 20px; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s; z-index: 2; line-height: 1; padding: 0; }
.quick-close-btn:hover, .quick-close-btn:active { background: rgba(0,0,0,0.08); color: var(--text-dark); }
.quick-show-btn { width: 100%; padding: 8px 28px; background: var(--card-bg); border: none; border-top: 1px solid var(--border); color: var(--primary); font-size: 13px; cursor: pointer; text-align: center; transition: background 0.2s; }
.quick-show-btn:hover { background: var(--primary-light); }

.input-area { padding: 12px 28px 20px; background: var(--card-bg); border-top: 1px solid var(--border); }
.image-preview { display: flex; gap: 8px; margin-bottom: 8px; }
.preview-item { position: relative; width: 70px; height: 70px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-item .remove { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,0.55); color: white; border: none; cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.input-row { display: flex; gap: 10px; align-items: center; }
.upload-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: all 0.2s; flex-shrink: 0; }
.upload-btn:hover { background: var(--primary-light); border-color: var(--primary); }
/* ─── 语音按钮（微信式：按住说话，松开发送） ─── */
.voice-btn {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--border); background: white;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 18px; transition: all 0.18s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0; position: relative; user-select: none; -webkit-user-select: none;
    -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
    touch-action: none;
}
.voice-btn:hover { background: var(--primary-light); border-color: var(--primary); }
.voice-btn:active { transform: scale(0.92); }
.voice-btn.recording {
    width: 56px; height: 56px; background: #f44336; border-color: #d32f2f; color: white;
    animation: voicePulse 1.2s ease-in-out infinite;
}
.voice-btn.recording .voice-btn-text { display: none; }
@keyframes voicePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(244,67,54,0.45); } 50% { box-shadow: 0 0 0 12px rgba(244,67,54,0); } }

/* 微信式语音录音浮层 */
.voice-toast {
    position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: rgba(30,30,30,0.95); color: #fff;
    padding: 12px 20px; border-radius: 10px;
    font-size: 13px; line-height: 1.5; max-width: 90vw;
    z-index: 10001; opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    text-align: center;
}
.voice-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.voice-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,0.55);
    display: flex; align-items: center; justify-content: center;
    animation: voiceFadeIn 0.2s ease;
}
@keyframes voiceFadeIn { from { opacity: 0; } to { opacity: 1; } }
.voice-overlay-content {
    background: rgba(40,40,40,0.92); backdrop-filter: blur(8px);
    border-radius: 24px; padding: 34px 44px;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    color: white; min-width: 180px; text-align: center;
    transition: all 0.2s ease;
}
.voice-overlay-content.cancelling { background: rgba(180,40,40,0.92); }

.voice-mic-wrap { position: relative; width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; }
.voice-mic-circle {
    width: 64px; height: 64px; border-radius: 50%; background: white; color: #f44336;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25); z-index: 2;
}
.voice-mic-circle svg { width: 32px; height: 32px; }
.voice-ripple {
    position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.55);
    animation: voiceRipple 1.6s ease-out infinite;
}
.voice-ripple-delay { animation-delay: 0.8s; }
@keyframes voiceRipple {
    0% { transform: scale(0.85); opacity: 1; }
    100% { transform: scale(1.45); opacity: 0; }
}
.voice-hint-title { font-size: 16px; font-weight: 500; letter-spacing: 0.5px; }
.voice-hint-sub { font-size: 13px; color: rgba(255,255,255,0.65); }
.voice-cancel-icon {
    display: none; flex-direction: column; align-items: center; gap: 6px;
    color: white; animation: voiceFadeIn 0.2s ease;
    cursor: pointer;
    pointer-events: auto;
    padding: 18px 28px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.voice-cancel-icon:hover { background: rgba(255,255,255,0.15); }
.voice-cancel-icon:active { transform: scale(0.94); background: rgba(255,255,255,0.22); }
.voice-cancel-icon svg { width: 46px; height: 46px; }
.voice-cancel-icon span { font-size: 13px; font-weight: 500; }
.voice-overlay-content.cancelling .voice-mic-wrap,
.voice-overlay-content.cancelling .voice-hint-title,
.voice-overlay-content.cancelling .voice-hint-sub { display: none; }
.voice-overlay-content.cancelling .voice-cancel-icon {
    display: flex;
    background: rgba(255,255,255,0.14);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    animation: voiceCancelPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes voiceCancelPop {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* 移动端语音体验优化 */
@media (max-width: 640px) {
    .input-area { padding: 10px 12px calc(16px + env(safe-area-inset-bottom, 0px)); }
    .input-row { gap: 8px; }
    .upload-btn, .voice-btn { width: 42px; height: 42px; }
    .voice-btn.recording { width: 52px; height: 52px; }
    .chat-input { padding: 0 14px; font-size: 15px; }
    .send-btn { padding: 0 18px; font-size: 14px; }
    .voice-overlay-content { padding: 28px 34px; min-width: 160px; }
    .voice-mic-wrap { width: 76px; height: 76px; }
    .voice-mic-circle { width: 58px; height: 58px; }
    .voice-mic-circle svg { width: 28px; height: 28px; }
}

.chat-input { flex: 1; height: 44px; border: 1px solid var(--border); border-radius: 22px; padding: 0 18px; font-size: 14px; outline: none; transition: all 0.2s; }
.chat-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,127,55,0.08); }
.send-btn { height: 44px; padding: 0 24px; border: none; border-radius: 22px; background: var(--primary); color: white; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; flex-shrink: 0; }
.send-btn:hover { background: var(--primary-dark); }
.send-btn:disabled { background: #9ca3af; cursor: not-allowed; }

.image-result { margin-top: 12px; background: #e3f2fd; border-radius: 10px; padding: 12px; }
.image-result h5 { color: #1565c0; font-size: 13px; margin-bottom: 8px; }
.prediction-list { display: flex; gap: 8px; flex-wrap: wrap; }
.prediction-tag { background: white; padding: 5px 10px; border-radius: 16px; font-size: 12px; color: #1565c0; border: 1px solid #bbdefb; }

/* ═══════════ 二、扫农药样式 ═══════════ */
.scan-container { flex: 1; overflow-y: auto; padding: 24px 28px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.scan-card { width: 100%; max-width: 560px; }
.scan-visual { background: var(--card-bg); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); display: flex; justify-content: center; margin-bottom: 16px; }
.scan-frame { width: 240px; height: 240px; border: 3px dashed var(--primary); border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; background: #f9fafb; cursor: pointer; transition: all 0.3s; }
.scan-frame:hover { border-color: var(--accent); background: var(--primary-light); }
.scan-frame.scanning { border-style: solid; }
.scan-line { position: absolute; top: 0; left: 10%; width: 80%; height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: scanDown 1.5s ease-in-out infinite; display: none; }
.scan-frame.scanning .scan-line { display: block; }
@keyframes scanDown { 0% { top: 10%; } 50% { top: 85%; } 100% { top: 10%; } }
.scan-icon { font-size: 48px; margin-bottom: 12px; }
.scan-frame p { font-size: 13px; color: var(--text-light); text-align: center; }
.scan-input-area { background: var(--card-bg); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.scan-or { text-align: center; color: var(--text-light); font-size: 13px; margin-bottom: 14px; }
.scan-input-row { display: flex; gap: 10px; margin-bottom: 14px; }
.scan-text-input { flex: 1; height: 42px; border: 1px solid var(--border); border-radius: 10px; padding: 0 14px; font-size: 14px; outline: none; }
.scan-text-input:focus { border-color: var(--primary); }
.scan-btn { height: 42px; padding: 0 20px; border: none; border-radius: 10px; background: var(--primary); color: white; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.scan-btn:hover { background: var(--primary-dark); }
.scan-samples { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--text-light); }
.sample-code { padding: 4px 10px; border: 1px solid var(--border); border-radius: 12px; background: white; font-size: 12px; cursor: pointer; transition: all 0.2s; color: var(--primary-dark); }
.sample-code:hover { background: var(--primary-light); border-color: var(--primary); }

.scan-result { width: 100%; max-width: 560px; background: var(--card-bg); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.result-header { padding: 20px 24px; font-size: 17px; font-weight: 700; }
.result-header.genuine { background: #e8f5e9; color: #2e7d32; border-bottom: 2px solid #4caf50; }
.result-header.fake { background: #ffebee; color: #c62828; border-bottom: 2px solid #f44336; }
.result-header.uncertain { background: #fff3e0; color: #e65100; border-bottom: 2px solid #ff9800; }
.result-body { padding: 20px 24px; }
.cert-section { margin-bottom: 18px; }
.cert-section:last-child { margin-bottom: 0; }
.cert-section h4 { font-size: 14px; color: var(--primary-dark); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.cert-item { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; border-bottom: 1px solid #f5f5f5; }
.cert-item:last-child { border-bottom: none; }
.cert-item .cert-label { color: var(--text-light); }
.cert-item .cert-value { color: var(--text); font-weight: 500; }
.cert-item .cert-status { color: #2e7d32; font-weight: 600; }
.product-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 13px; }
.product-info-grid .pi-label { color: var(--text-light); }
.product-info-grid .pi-value { color: var(--text); font-weight: 500; }

/* 扫描方式 Tab 切换 */
.scan-tabs { display: flex; gap: 8px; margin-bottom: 16px; background: var(--card-bg); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); }
.scan-tab { flex: 1; padding: 10px 14px; border: none; border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; background: transparent; color: var(--text-light); }
.scan-tab:hover { background: #f5f5f5; }
.scan-tab.active { background: var(--primary); color: white; }
.scan-tab-panel { display: none; }
.scan-tab-panel.active { display: block; }

/* 上传图片扫码 */
.upload-area { background: var(--card-bg); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.upload-dropzone { border: 2px dashed var(--border); border-radius: 14px; padding: 40px 20px; text-align: center; cursor: pointer; transition: all 0.3s; }
.upload-dropzone:hover, .upload-dropzone.dragover { border-color: var(--primary); background: var(--primary-light); }
.upload-icon { font-size: 48px; margin-bottom: 12px; }
.upload-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.upload-hint { font-size: 12px; color: var(--text-light); }
.upload-preview { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.upload-preview img { max-width: 100%; max-height: 300px; border-radius: 10px; border: 1px solid var(--border); }
.upload-retry-btn { padding: 8px 18px; border: 1px solid var(--border); border-radius: 8px; background: white; font-size: 13px; cursor: pointer; transition: all 0.2s; }
.upload-retry-btn:hover { border-color: var(--primary); color: var(--primary); }
.upload-status { margin-top: 12px; text-align: center; font-size: 13px; }
.upload-success { color: #2e7d32; }
.upload-error { color: #c62828; }
.upload-loading { color: var(--primary); }

/* 手机扫码引导 */
.mobile-guide { background: var(--card-bg); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); text-align: center; }
.mobile-guide-steps { display: flex; justify-content: center; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.guide-step { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; }
.mobile-url-box { background: #f9fafb; border-radius: 12px; padding: 20px; }
.mobile-url-label { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.mobile-url-row { display: flex; gap: 8px; align-items: center; justify-content: center; margin-bottom: 16px; }
.mobile-url-row code { background: white; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); font-size: 13px; word-break: break-all; max-width: 320px; }
.copy-url-btn { padding: 8px 14px; border: none; border-radius: 8px; background: var(--primary); color: white; font-size: 13px; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.copy-url-btn:hover { background: var(--primary-dark); }
.mobile-url-note { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
#mobile-qr-canvas { border: 1px solid var(--border); border-radius: 10px; }

/* ═══════════ 三、田间助手样式 ═══════════ */
.assistant-grid {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 20px 16px;
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(min-content, max-content);
    gap: 10px;
    align-content: start;
    align-items: start;
}
.assistant-grid > div {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: var(--shadow);
    min-height: 0;
    overflow: visible;
}
.assistant-grid h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* 通用面板头：标题 + 右侧迷你统计 */
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border);
}
.panel-header h3 { margin-bottom: 0; }
.panel-mini-stat {
    font-size: 11px;
    color: var(--text-light);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: 10px;
    max-width: 60%;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 天气主卡片 — 全宽水平布局 */
.weather-hero {
    grid-column: 1 / -1;
    display: flex;
    gap: 0;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    min-height: 0;
}
.weather-now {
    flex: 0 0 170px;
    text-align: center;
    padding: 16px 14px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.weather-icon-large { font-size: 42px; margin-bottom: 2px; line-height: 1; }
.weather-temp-large { font-size: 34px; font-weight: 700; color: #1565c0; line-height: 1.1; }
.weather-desc { font-size: 13px; color: #424242; margin: 2px 0 6px; }
.weather-detail { display: flex; justify-content: center; gap: 12px; font-size: 11px; color: #616161; flex-wrap: wrap; }

/* 7日预报横条 */
.weather-forecast-strip {
    flex: 1;
    min-width: 0;
    display: flex;
    -webkit-display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 4px;
    padding: 14px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.weather-forecast-strip::-webkit-scrollbar { height: 4px; }
.weather-forecast-strip::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 2px; }
.forecast-day {
    flex: 1 1 0;
    min-width: 50px;
    max-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 3px;
    border-radius: 8px;
    transition: all 0.2s;
    gap: 4px;
}
.forecast-day:hover { background: #f5f5f5; transform: translateY(-2px); }
.forecast-day.today { background: var(--primary-light); }
.forecast-day .fd-date { font-size: 11px; color: var(--text-light); text-align: center; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; width: 100%; }
.forecast-day .fd-icon { font-size: 22px; line-height: 1; }
.forecast-day .fd-cond { font-size: 10px; color: var(--text); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; width: 100%; line-height: 1.2; }
.forecast-day .fd-temp { font-size: 13px; color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.forecast-day .fd-temp .low { color: var(--text-light); font-weight: 400; font-size: 11px; }
.forecast-day .fd-rain { font-size: 9px; color: var(--primary); line-height: 1; white-space: nowrap; }

/* 气温走势 + 病虫害预警：左右并列紧凑布局 */
.trend-pest-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.trend-pest-row > div { min-height: 280px; }

/* 气温走势面板 */
.weather-trend-panel { grid-column: auto !important; display: flex; flex-direction: column; }
.trend-chart {
    flex: 1;
    min-height: 200px;
    display: flex;
    -webkit-display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
    padding: 28px 4px 8px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background:
        linear-gradient(180deg, transparent 0%, rgba(232,245,233,0.35) 100%);
    border-radius: 8px 8px 0 0;
}
.trend-chart::-webkit-scrollbar { display: none; }
.trend-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 44px;
    position: relative;
    height: 100%;
    justify-content: flex-end;
}
.trend-bar-wrap::before {
    content: attr(data-temp);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #fff;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    background: linear-gradient(180deg, #ef5350, #e53935);
    padding: 3px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(229,57,53,0.35);
    letter-spacing: 0.3px;
    z-index: 3;
}
.trend-bar-wrap .trend-low-tag {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #1565c0;
    font-weight: 600;
    background: rgba(255,255,255,0.95);
    border: 1px solid #bbdefb;
    padding: 1px 6px;
    border-radius: 8px;
    line-height: 1.2;
    z-index: 2;
}
.trend-bar-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 100%;
    height: auto;
}
.trend-bar {
    width: 36px;
    border-radius: 6px 6px 4px 4px;
    transition: all 0.3s cubic-bezier(.4,1.4,.6,1);
    position: relative;
}
.trend-bar.high {
    background: linear-gradient(180deg, #ff7043 0%, #ef5350 50%, #c62828 100%);
    box-shadow:
        inset 2px 0 0 rgba(255,255,255,0.35),
        inset -2px 0 0 rgba(0,0,0,0.18),
        inset 0 2px 0 rgba(255,255,255,0.45),
        0 4px 8px rgba(239,83,80,0.28);
}
.trend-bar.high::after {
    content: '';
    position: absolute;
    inset: 2px 60% 30% 4px;
    background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0));
    border-radius: 4px 4px 2px 2px;
    pointer-events: none;
}
.trend-bar.low {
    background: linear-gradient(180deg, #64b5f6 0%, #42a5f5 50%, #1976d2 100%);
    box-shadow:
        inset 2px 0 0 rgba(255,255,255,0.4),
        inset -2px 0 0 rgba(0,0,0,0.18),
        inset 0 2px 0 rgba(255,255,255,0.5),
        0 4px 8px rgba(66,165,245,0.25);
    opacity: 0.95;
    width: 30px;
    border-radius: 4px 4px 6px 6px;
}
.trend-bar.low::after {
    content: '';
    position: absolute;
    inset: 2px 60% 30% 4px;
    background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0));
    border-radius: 2px 2px 4px 4px;
    pointer-events: none;
}
.trend-bar-wrap:hover .trend-bar { transform: translateY(-3px) scaleY(1.04); filter: brightness(1.08); }
.trend-bar-wrap:hover::before { transform: translateX(-50%) translateY(-2px) scale(1.06); }
.trend-bar-label {
    font-size: 11px;
    color: var(--text-light);
    white-space: nowrap;
    margin-top: 4px;
    font-weight: 500;
}
/* 柱底基座 */
.trend-bar-base {
    width: 44px;
    height: 6px;
    margin-top: 1px;
    background: linear-gradient(180deg, #c8e6c9, #a5d6a7);
    border-radius: 3px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.6),
        0 1px 2px rgba(0,0,0,0.1);
}

/* 趋势信息条（3 列） */
.trend-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 10px;
    background: linear-gradient(135deg, #f8fbf6 0%, #ffffff 100%);
    border-radius: 10px;
    padding: 8px 0;
    border: 1px solid #e8f5e9;
}
.trend-info-item {
    text-align: center;
    padding: 4px 6px;
    border-right: 1px dashed #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.trend-info-item:last-child { border-right: none; }
.trend-info-label { font-size: 10px; color: var(--text-light); }
.trend-info-value { font-size: 13px; color: var(--primary-dark); font-weight: 700; }

/* ═══════════ v3.22.85 农事提醒卡片化样式 ═══════════ */
.alerts-panel { grid-column: 1 / -1; }
.alerts-panel .no-alert { color: #6b7280; font-size: 13px; text-align: center; padding: 12px; }
/* PC 端：双列卡片网格 - v3.22.87: 紧凑排版 + 进场动画 */
.alerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
    padding: 4px 0;
}
.alert-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: alertSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.alert-item:nth-child(1) { animation-delay: 0.04s; }
.alert-item:nth-child(2) { animation-delay: 0.10s; }
.alert-item:nth-child(3) { animation-delay: 0.16s; }
.alert-item:nth-child(4) { animation-delay: 0.22s; }
.alert-item:nth-child(5) { animation-delay: 0.28s; }
.alert-item:nth-child(n+6) { animation-delay: 0.32s; }
.alert-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}
.alert-item::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}
.alert-item:hover::before { transform: translateX(100%); }
.alert-item-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1px;
}
.alert-icon { font-size: 18px; line-height: 1; flex-shrink: 0; }
.alert-level-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: tagGlow 2.4s ease-in-out infinite;
}
.alert-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}
.alert-desc {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
}
@keyframes alertSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes tagGlow {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.15); }
}
/* 级别配色 */
.alert-item.warning {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
    border-left: 3px solid #ff9800;
}
.alert-item.warning .alert-level-tag { background: rgba(255,152,0,0.18); color: #e65100; }
.alert-item.success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    border-left: 3px solid #4caf50;
}
.alert-item.success .alert-level-tag { background: rgba(76,175,80,0.18); color: #2e7d32; }
.alert-item.tip {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    color: #6a1b9a;
    border-left: 3px solid #9c27b0;
}
.alert-item.tip .alert-level-tag { background: rgba(156,39,176,0.18); color: #6a1b9a; }
.alert-item.info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    border-left: 3px solid #2196f3;
}
.alert-item.info .alert-level-tag { background: rgba(33,150,243,0.18); color: #1565c0; }

/* 附近门店 */
.stores-panel { grid-column: 1 / -1; }
/* v3.22.85: 分段式布局 - 左侧信息区 + 右侧操作按钮区 */
.stores-feature-desc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border: 1px solid #bae6fd;
}
.sfd-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sfd-title {
    font-size: 13px;
    font-weight: 600;
    color: #0369a1;
    line-height: 1.3;
}
.sfd-text {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.4;
}
.sfd-action { flex-shrink: 0; }
/* v3.22.87: 申请按钮 - 缩小紧凑 + 扫光动画 */
.partner-apply-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #f43f5e 0%, #dc2626 100%);
    padding: 4px 8px;
    border-radius: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(220,38,38,0.30);
    user-select: none;
    position: relative;
    overflow: hidden;
}
.partner-apply-badge::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
    animation: pabShine 2.4s ease-in-out infinite;
}
.pab-dot {
    width: 5px; height: 5px;
    background: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pabPulse 1.5s ease-in-out infinite;
}
.pab-arrow {
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    opacity: 0.95;
    animation: pabArrow 1.4s ease-in-out infinite;
}
.partner-apply-badge:hover {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 3px 10px rgba(220,38,38,0.45);
}
.partner-apply-badge:active { transform: translateY(0) scale(0.97); }
@keyframes pabPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.4); opacity: 0.6; }
}
@keyframes pabArrow {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(2px); }
}
@keyframes pabShine {
    0%       { left: -100%; }
    60%, 100% { left: 130%; }
}
.stores-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
/* v3.23.26: 附近门店查看更多 */
.stores-more-wrap { grid-column: 1 / -1; text-align: center; margin-top: 4px; }
.stores-more-btn { background: var(--primary-light); color: var(--primary-dark); border: 1px solid var(--primary); border-radius: 999px; padding: 10px 22px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.15s; }
.stores-more-btn:hover { background: var(--primary); color: #fff; }
.stores-more-list { display: flex; flex-direction: column; gap: 12px; }
.store-card {
    background: var(--card-bg); border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex; flex-direction: column;
}
.store-card:hover {
    transform: translateY(-4px);
    border-color: rgba(26,127,55,0.35);
    box-shadow: 0 12px 28px rgba(26,127,55,0.12);
}
.store-media {
    position: relative; width: 100%; aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #f0f7f0 0%, #ffffff 100%);
    overflow: hidden; flex-shrink: 0;
}
.store-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.45s ease;
}
.store-card:hover .store-media img { transform: scale(1.05); }
.store-media img.logo-fallback {
    object-fit: contain; padding: 28px;
    background: linear-gradient(135deg, #f0f7f0 0%, #ffffff 100%);
}
.store-badge {
    position: absolute; top: 12px; left: 12px;
    background: rgba(26,127,55,0.9); color: #fff;
    font-size: 11px; font-weight: 500; padding: 3px 9px;
    border-radius: 20px; backdrop-filter: blur(2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.store-dist-badge {
    position: absolute; top: 12px; right: 12px;
    background: rgba(255,255,255,0.95); color: var(--accent);
    font-size: 12px; font-weight: 700; padding: 4px 10px;
    border-radius: 20px; box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: none;
}
.store-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.store-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.store-dist { background: var(--primary-light); color: var(--primary-dark); font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.store-card .store-name {
    font-size: 17px; font-weight: 700; color: var(--primary-dark);
    margin-bottom: 0; display: flex; align-items: center; gap: 6px;
    min-width: 0; overflow: hidden;
}
.store-card .store-name .store-icon { font-size: 18px; line-height: 1; flex-shrink: 0; }
.store-card .store-name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.store-card .store-addr { font-size: 13px; color: var(--text-light); margin-bottom: 10px; line-height: 1.5; }
.store-card .store-meta {
    display: flex; gap: 10px 16px; font-size: 12px; color: var(--text-light);
    flex-wrap: wrap; margin-bottom: 10px;
}
.store-card .store-meta span { display: inline-flex; align-items: center; gap: 4px; }
.store-card .store-services { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.store-card .service-tag {
    padding: 4px 10px; background: var(--primary-light); color: var(--primary-dark);
    border-radius: 20px; font-size: 12px; font-weight: 500;
}
@media (max-width: 768px) {
    .stores-list { grid-template-columns: 1fr; }
}

/* v3.23.37: 门店「定位与地址不符」高亮 */
.store-card.store-card-warn { border-color: #ffb84d; background: #fff8ec; }
.store-card.store-card-warn .store-name { color: #c47a00; }
.store-dist.store-dist-warn {
    background: #fff3cd; color: #c47a00;
    border: 1px solid #ffd591;
    padding: 3px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 700;
    white-space: nowrap;
}

/* ═══════════ 四、我的田块样式 ═══════════ */
.field-layout { display: flex; height: 100%; }
.field-map-container { flex: 1; position: relative; min-width: 0; }
#field-map { width: 100%; height: 100%; }
.map-toolbar { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; z-index: 1000; flex-wrap: wrap; }
.map-btn { padding: 8px 14px; border: none; border-radius: 8px; font-size: 13px; cursor: pointer; background: white; color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,0.12); transition: all 0.2s; white-space: nowrap; }
.map-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.18); }
.map-btn.primary { background: var(--primary); color: white; }
.map-btn.primary:hover { background: var(--primary-dark); }
.map-btn.active-mode { background: #e65100; color: white; }
.map-locate-info { position: absolute; bottom: 20px; left: 14px; background: rgba(0,0,0,0.7); color: white; padding: 6px 12px; border-radius: 6px; font-size: 12px; z-index: 1000; pointer-events: none; }

/* v3.22.41: 隐藏天地图logo/版权标识和缩放控件 */
.leaflet-control-attribution { display: none !important; }
.leaflet-control-zoom { display: none !important; }
.leaflet-bottom { display: none !important; }

/* 手动定位弹窗 */
.locate-modal { width: min(720px, 96vw); max-height: 92vh; background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.25); }
.locate-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 28px; line-height: 1; color: #6b7280; cursor: pointer; z-index: 2; }
.locate-close:hover { color: #333; }
.locate-header { padding: 22px 24px 14px; background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%); border-bottom: 1px solid #e0e0e0; text-align: center; }
.locate-icon { font-size: 36px; line-height: 1; margin-bottom: 4px; }
.locate-header h3 { margin: 0 0 4px; font-size: 20px; color: #1b5e20; }
.locate-sub { margin: 0; color: #666; font-size: 13px; }
.locate-body { padding: 16px 24px; flex: 1; overflow-y: auto; }
.locate-section { margin-bottom: 16px; }
.locate-section > label { display: block; font-size: 13px; color: #333; font-weight: 600; margin-bottom: 6px; }
.locate-search-row, .locate-coord-row { display: flex; gap: 8px; align-items: center; }
.locate-search-row input, .locate-coord-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #cfd8dc; border-radius: 8px; font-size: 14px; outline: none; transition: border-color 0.2s; }
.locate-search-row input:focus, .locate-coord-row input:focus { border-color: var(--primary); }
.locate-search-row button, .locate-coord-row button { padding: 10px 18px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-size: 14px; cursor: pointer; transition: all 0.2s; flex: none; white-space: nowrap; }
.locate-search-row button:hover, .locate-coord-row button:hover { background: #1b5e20; }
.locate-search-results { margin-top: 8px; max-height: 200px; overflow-y: auto; border: 1px solid #e0e0e0; border-radius: 8px; display: none; }
.locate-search-results.has-results { display: block; }
.locate-search-results .lsr-item { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; cursor: pointer; font-size: 13px; transition: background 0.15s; }
.locate-search-results .lsr-item:hover { background: #f1f8e9; }
.locate-search-results .lsr-item:last-child { border-bottom: none; }
.locate-search-results .lsr-addr { color: #666; font-size: 12px; margin-top: 2px; }
.locate-hint { font-size: 12px; color: #6b7280; margin-bottom: 6px; }
#locate-mini-map { width: 100%; height: 240px; border-radius: 8px; border: 1px solid #e0e0e0; }
.locate-current { padding: 10px 12px; background: #f5f5f5; border-radius: 8px; font-size: 13px; color: #555; }
.locate-current strong { color: #1b5e20; }
.locate-footer { padding: 14px 24px; border-top: 1px solid #e0e0e0; display: flex; justify-content: flex-end; gap: 10px; background: #fafafa; }
.locate-btn { padding: 10px 22px; border-radius: 22px; font-size: 14px; font-weight: 500; cursor: pointer; border: none; transition: all 0.2s; }
.locate-btn.ghost { background: #f0f0f0; color: #555; }
.locate-btn.ghost:hover { background: #e0e0e0; }
.locate-btn.primary { background: var(--primary); color: #fff; }
.locate-btn.primary:hover { background: #1b5e20; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(46,125,50,0.3); }
@media (max-width: 600px) {
    .locate-search-row, .locate-coord-row { flex-wrap: wrap; }
    .locate-search-row button, .locate-coord-row button { width: 100%; }
    #locate-mini-map { height: 180px; }
}
.grid-info { position: absolute; bottom: 56px; left: 14px; background: white; border-radius: 10px; padding: 10px 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.15); font-size: 13px; display: flex; align-items: center; gap: 10px; z-index: 1001; }
.grid-info strong { color: var(--primary); font-size: 16px; }

.field-panel { width: 360px; background: var(--card-bg); border-left: 1px solid var(--border); display: flex; flex-direction: column; overflow-y: auto; position: relative; flex-shrink: 0; }
.field-panel-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 20px; text-align: center; }
.field-panel-empty .empty-icon { font-size: 52px; margin-bottom: 12px; opacity: 0.8; }
.field-panel-empty h3 { font-size: 17px; color: var(--text); margin-bottom: 6px; }
.field-panel-empty p { font-size: 13px; color: var(--text-light); line-height: 1.8; }
.field-panel-empty .empty-hint { font-size: 12px; color: #6b7280; margin-top: 10px; }

.field-list-container { padding: 18px; }
.field-list-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-light); }
.field-list-title { font-size: 16px; color: var(--primary-dark); margin-bottom: 2px; }
.field-list-subtitle { font-size: 12px; color: var(--text-light); margin: 0; }
.field-list-subtitle .subtitle-sep { margin: 0 6px; color: #ddd; }
.field-list { display: flex; flex-direction: column; gap: 10px; }
.field-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 12px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 10px; }
.field-card:hover { border-color: var(--primary); box-shadow: 0 2px 10px rgba(26,127,55,0.1); transform: translateX(2px); }
.field-card-main { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.field-card-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.field-card-info { flex: 1; min-width: 0; }
.field-card-name-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.field-card-name { font-size: 15px; font-weight: 600; color: var(--text); }
.field-badge { font-size: 10px; padding: 2px 6px; border-radius: 8px; font-weight: 600; line-height: 1; }
.field-badge.default { background: #fff3e0; color: #e65100; }
.field-badge.active { background: #e8f5e9; color: #2e7d32; }
.field-badge.inactive { background: #f5f5f5; color: #757575; }
.field-card-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.field-card-meta span { display: inline-flex; align-items: center; gap: 3px; }
.field-card-location { font-size: 11px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field-card-actions { display: flex; flex-direction: column; gap: 6px; opacity: 0; transition: opacity 0.2s; }
.field-card:hover .field-card-actions { opacity: 1; }
.fca-btn { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.fca-btn:hover { background: var(--primary-light); border-color: var(--primary); }
.fca-btn.delete:hover { background: #ffebee; border-color: #ef9a9a; }
.empty-login-btn { margin-top: 16px; padding: 8px 22px; background: var(--primary); color: #fff; border: none; border-radius: 20px; font-size: 13px; cursor: pointer; transition: all 0.2s; }
.empty-login-btn:hover { background: var(--primary-dark); }

.field-detail-container { padding: 18px; }
.back-btn { display: inline-flex; align-items: center; gap: 4px; background: none; border: none; color: var(--primary); font-size: 13px; cursor: pointer; padding: 4px 0; margin-bottom: 10px; }
.back-btn:hover { text-decoration: underline; }
.field-detail-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--primary-light); }
.field-detail-header h3 { font-size: 18px; color: var(--primary-dark); }
.field-status { padding: 3px 10px; border-radius: 10px; font-size: 11px; background: var(--primary-light); color: var(--primary-dark); font-weight: 600; }
.field-detail-info { background: #f9fafb; border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.info-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #f0f0f0; }
.info-row:last-child { border-bottom: none; }
.info-label { font-size: 13px; color: var(--text-light); }
.info-value { font-size: 13px; color: var(--text); font-weight: 500; text-align: right; max-width: 60%; }
.field-detail-actions { display: flex; gap: 8px; margin-bottom: 20px; }
.action-btn { flex: 1; padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; background: white; font-size: 13px; cursor: pointer; transition: all 0.2s; text-align: center; }
.action-btn:hover { background: var(--primary-light); border-color: var(--primary); }
.action-btn.danger { color: #c62828; border-color: #ffcdd2; }
.action-btn.danger:hover { background: #ffebee; border-color: #c62828; }
.action-btn.sm { padding: 5px 12px; font-size: 12px; flex: none; }

.field-logs { border-top: 1px solid var(--border); padding-top: 14px; }
.logs-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.logs-header h4 { font-size: 14px; color: var(--text); }
.logs-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.log-item { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 12px; position: relative; }
.log-item .log-type { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 11px; margin-bottom: 4px; }
.log-type.spray { background: #e3f2fd; color: #1565c0; }
.log-type.fertilize { background: #e8f5e9; color: #2e7d32; }
.log-type.irrigation { background: #e0f7fa; color: #00838f; }
.log-type.observation { background: #fff3e0; color: #e65100; }
.log-type.harvest { background: #fce4ec; color: #c62828; }
.log-type.other { background: #f3e5f5; color: #7b1fa2; }
.log-item .log-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.log-item .log-desc { font-size: 12px; color: var(--text-light); line-height: 1.4; margin-bottom: 4px; }
.log-item .log-meta { display: flex; gap: 12px; font-size: 11px; color: #6b7280; }
.log-item .log-delete { position: absolute; top: 8px; right: 8px; background: none; border: none; color: #ccc; cursor: pointer; font-size: 14px; padding: 1px 4px; border-radius: 3px; }
.log-item .log-delete:hover { color: #c62828; background: #ffebee; }
.no-logs { text-align: center; color: #6b7280; padding: 20px; font-size: 13px; }

/* ─── 模态框 ─── */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.modal-dialog { background: white; border-radius: 14px; padding: 24px; width: 420px; max-width: 90vw; max-height: 85vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.modal-dialog h3 { font-size: 17px; color: var(--primary-dark); margin-bottom: 2px; }
/* 带 header/body 结构的新弹窗：去除 dialog 自身 padding，由 header/body 各自控制 */
.modal-dialog:has(.modal-header) { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #eee; flex-shrink: 0; }
.modal-header h3 { margin: 0; }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer { flex-shrink: 0; padding: 14px 20px; background: #fff; border-top: 1px solid #eee; box-shadow: 0 -4px 12px rgba(0,0,0,0.04); }
.modal-close { position: static; background: none; border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 22px; line-height: 1; color: #6b7280; cursor: pointer; transition: all 0.2s; }
.modal-close:hover { background: #f5f5f5; color: #333; }
/* v3.23.3: modal-box 基础样式（背景/圆角/阴影），修复订单详情弹窗透明不可读 */
.modal-box { background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,0.25); overflow: hidden; }

/* v3.10.0: 消息系统样式 */
.msg-badge { position: absolute; top: -6px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #f44336; color: #fff; font-size: 10px; font-weight: 700; text-align: center; line-height: 16px; border: 1.5px solid #fff; animation: msgBadgePulse 1.5s ease-in-out infinite; }
@keyframes msgBadgePulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.12)} }
.mobile-msg-btn, .user-msg-btn { position: relative; background: rgba(255,255,255,0.15); border: none; border-radius: 8px; padding: 6px 10px; font-size: 18px; cursor: pointer; color: #fff; transition: background 0.2s; }
.mobile-msg-btn:hover, .user-msg-btn:hover { background: rgba(255,255,255,0.28); }
.user-msg-btn { font-size: 16px; padding: 5px 8px; }
.msg-list-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid #f0f0f0; background: #fafafa; }
.msg-filter-tabs { display: flex; gap: 4px; }
.msg-filter-tab { padding: 5px 14px; border: none; background: none; border-radius: 6px; font-size: 13px; color: #666; cursor: pointer; transition: all 0.2s; }
.msg-filter-tab.active { background: var(--primary); color: #fff; font-weight: 600; }
.msg-read-all-btn { padding: 5px 12px; border: 1px solid var(--border); border-radius: 6px; background: #fff; font-size: 12px; color: var(--primary); cursor: pointer; transition: all 0.2s; }
.msg-read-all-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.msg-list-container { max-height: 60vh; overflow-y: auto; }
.msg-item { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #f5f5f5; cursor: pointer; transition: background 0.15s; position: relative; }
.msg-item:hover { background: #f9f9f9; }
.msg-item.unread { background: rgba(26,127,55,0.03); }
.msg-item.unread::before { content: ''; position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 7px; height: 7px; border-radius: 50%; background: #f44336; }
.msg-item-icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.msg-item-icon.expert_reply { background: #e3f2fd; }
.msg-item-icon.post_reply { background: #e8f5e9; }
.msg-item-icon.post_review { background: #fff8e1; }
.msg-item-icon.order, .msg-item-icon.appointment { background: #fff3e0; }
.msg-item-icon.system { background: #f3e5f5; }
.msg-item-body { flex: 1; min-width: 0; }
.msg-item-title { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-item.unread .msg-item-title { color: var(--primary); }
.msg-item-desc { font-size: 12px; color: #888; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.msg-item-time { font-size: 11px; color: #bbb; margin-top: 4px; }
.msg-item-status { flex-shrink: 0; align-self: flex-start; font-size: 11px; color: #ccc; margin-top: 4px; }
.msg-empty { text-align: center; padding: 48px 20px; color: #bbb; font-size: 14px; }
.msg-empty-icon { font-size: 42px; margin-bottom: 10px; opacity: 0.4; }

/* v3.12.0: 新消息 toast 提示 */
.msg-toast {
    position: fixed; top: 20px; right: 50%; transform: translateX(50%) translateY(-80px);
    z-index: 10000; display: flex; align-items: center; gap: 8px;
    padding: 12px 20px; border-radius: 12px; font-size: 14px; color: #fff;
    background: linear-gradient(135deg, #1a7f37, #2d9e4f); cursor: pointer;
    box-shadow: 0 6px 24px rgba(26,127,55,0.35); opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
    max-width: 90vw; white-space: nowrap;
}
.msg-toast.show { transform: translateX(50%) translateY(0); opacity: 1; }
.msg-toast-icon { font-size: 18px; }
.msg-toast strong { font-size: 16px; }

/* v3.12.0: 铃铛抖动动画 */
@keyframes msg-bell-shake {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(-12deg); }
    30% { transform: rotate(10deg); }
    45% { transform: rotate(-8deg); }
    60% { transform: rotate(6deg); }
    75% { transform: rotate(-4deg); }
}
.msg-bell-shake { animation: msg-bell-shake 0.8s ease-in-out 1; transform-origin: top center; }

/* v3.12.0: 记录高亮（点击消息跳转后定位） */
@keyframes msg-highlight-pulse {
    0% { background-color: rgba(26,127,55,0.15); box-shadow: 0 0 0 3px rgba(26,127,55,0.2); }
    50% { background-color: rgba(26,127,55,0.08); box-shadow: 0 0 0 2px rgba(26,127,55,0.1); }
    100% { background-color: transparent; box-shadow: none; }
}
.msg-highlight { animation: msg-highlight-pulse 3s ease-out 1; border-radius: 8px; }

@media (max-width: 768px) {
    .msg-toast { top: auto; bottom: 80px; right: 16px; transform: translateY(120px); }
    .msg-toast.show { transform: translateY(0); }
}

/* v3.23.42: 权限同步 toast 提示（审核通过后自动弹出） */
.perm-toast {
    position: fixed; top: 20px; right: 50%; transform: translateX(50%) translateY(-80px);
    z-index: 10001; display: flex; align-items: center; gap: 8px;
    padding: 14px 24px; border-radius: 12px; font-size: 14px; color: #fff;
    background: linear-gradient(135deg, #1a7f37, #2d9e4f); cursor: default;
    box-shadow: 0 8px 30px rgba(26,127,55,0.4); opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s;
    max-width: 90vw; white-space: nowrap;
}
.perm-toast.show { transform: translateX(50%) translateY(0); opacity: 1; }
.perm-toast-icon { font-size: 20px; }
.perm-toast strong { font-size: 15px; }
@media (max-width: 768px) {
    .perm-toast { top: auto; bottom: 80px; right: 16px; transform: translateY(120px); }
    .perm-toast.show { transform: translateY(0); }
}
.modal-sub { font-size: 12px; color: var(--text-light); margin-bottom: 18px; }
.modal-row { display: flex; gap: 12px; }
.form-group { margin-bottom: 14px; }
.form-group.flex-1 { flex: 1; }
.form-group label { display: block; font-size: 12px; color: var(--text-light); margin-bottom: 5px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; outline: none; font-family: inherit; transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,127,55,0.06); }
.form-group input[readonly] { background: #f9fafb; color: #6b7280; cursor: default; }
.modal-actions { display: flex; gap: 10px; margin-top: 4px; justify-content: flex-end; }
.modal-btn { padding: 9px 20px; border: none; border-radius: 8px; font-size: 13px; cursor: pointer; transition: all 0.2s; }
.modal-btn.cancel { background: #f5f5f5; color: var(--text); }
.modal-btn.cancel:hover { background: #e0e0e0; }
.modal-btn.confirm { background: var(--primary); color: white; }
.modal-btn.confirm:hover { background: var(--primary-dark); }

/* ─── 扫农药 - 摄像头 ─── */
.scan-camera-wrapper { position: relative; width: 100%; max-width: 400px; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #1a1a2e; }
#qr-reader { width: 100%; }
#qr-reader video { width: 100% !important; height: auto !important; border-radius: 0 !important; }
.scan-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.scan-corner-frame { width: 200px; height: 200px; border: 2px solid rgba(76,175,80,0.8); border-radius: 12px; position: relative; }
.scan-corner-frame::before, .scan-corner-frame::after { content: ''; position: absolute; width: 20px; height: 20px; border-color: #4caf50; border-style: solid; }
.scan-corner-frame::before { top: -2px; left: -2px; border-width: 3px 0 0 3px; border-radius: 4px 0 0 0; }
.scan-corner-frame::after { bottom: -2px; right: -2px; border-width: 0 3px 3px 0; border-radius: 0 0 4px 0; }
.scan-overlay p { color: rgba(255,255,255,0.8); font-size: 12px; margin-top: 16px; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.scan-camera-controls { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.camera-btn { padding: 10px 22px; border: none; border-radius: 10px; font-size: 14px; cursor: pointer; background: var(--primary); color: white; font-weight: 600; transition: all 0.2s; }
.camera-btn:hover { background: var(--primary-dark); }
.camera-btn.stop { background: #ef5350; }
.camera-btn.stop:hover { background: #c62828; }

/* ─── 田块工具栏 ─── */
.field-toolbar { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 6px; z-index: 1001; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); padding: 6px; border-radius: 28px; box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.ft-pill { border: none; border-radius: 20px; padding: 8px 16px; font-size: 13px; font-weight: 500; cursor: pointer; background: transparent; color: var(--text); transition: all 0.2s; white-space: nowrap; }
.ft-pill:hover { background: #f0f0f0; }
.ft-pill.active { background: var(--primary); color: white; }
.ft-pill.sm { padding: 8px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.ft-sep { width: 1px; height: 20px; background: #e0e0e0; margin: 0 4px; }

/* ─── 选择操作栏 ─── */
.selection-action-bar { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); background: rgba(31,41,55,0.95); backdrop-filter: blur(10px); border-radius: 14px; padding: 10px 18px; display: flex; align-items: center; gap: 16px; z-index: 1002; box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.sab-info { display: flex; align-items: center; gap: 8px; color: white; font-size: 14px; white-space: nowrap; }
.sab-info strong { color: #4caf50; }
.sab-icon { font-size: 20px; }
.sab-actions { display: flex; gap: 8px; }
.sab-btn { padding: 7px 16px; border: none; border-radius: 8px; font-size: 13px; cursor: pointer; font-weight: 500; transition: all 0.2s; white-space: nowrap; }
.sab-btn.ghost { background: rgba(255,255,255,0.12); color: #ccc; }
.sab-btn.ghost:hover { background: rgba(255,255,255,0.2); color: #fff; }
.sab-btn.primary { background: var(--primary); color: white; }
.sab-btn.primary:hover { background: var(--accent); transform: scale(1.02); }
/* v3.5.2: 移动端选中操作栏适配（小屏幕分两行显示） */
@media (max-width: 768px) {
    .selection-action-bar {
        left: 12px; right: 12px; transform: none;
        width: auto; max-width: none;
        padding: 10px 12px;
        flex-wrap: wrap; justify-content: space-between;
        gap: 8px;
    }
    .sab-info { font-size: 13px; }
    .sab-actions { gap: 6px; }
    .sab-btn { padding: 6px 12px; font-size: 12px; }
}

/* ─── 拖拽选择矩形 ─── */
.drag-select-rect { position: absolute; border: 2px dashed #ff9800; background: rgba(255,152,0,0.12); pointer-events: none; z-index: 1001; border-radius: 4px; display: none; }

/* ─── 多点画图顶点标签 ─── */
.poly-vertex-label { background: #ff9800 !important; color: white !important; border: none !important; border-radius: 50% !important; box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important; padding: 1px 5px !important; font-size: 11px !important; font-weight: bold !important; }

/* v3.22.45: 多点画图绘制阶段顶点Marker（绿色编号方块标签，参照网格框选风格） */
.poly-vertex-draw .pv-draw-dot {
    width: 28px; height: 28px; border-radius: 6px;
    background: #1a7f37; color: #fff; border: 2.5px solid #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: bold; cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
    transition: transform 0.15s, background 0.15s;
}
.poly-vertex-draw .pv-draw-dot:hover { transform: scale(1.2); background: #2e7d32; }
.poly-vertex-draw .pv-draw-first {
    background: #1565c0; border-color: #fff; box-shadow: 0 3px 12px rgba(21,101,192,0.5);
}
.poly-vertex-draw .pv-draw-first:hover { background: #1976d2; }

/* v3.22.38: 可拖拽顶点Marker（闭合状态） */
.poly-vertex-drag .pv-dot {
    width: 24px; height: 24px; border-radius: 6px;
    background: #1a7f37; color: #fff; border: 2.5px solid #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: bold; cursor: move;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: transform 0.15s, background 0.15s;
}
.poly-vertex-drag .pv-dot:hover { transform: scale(1.25); background: #2e7d32; }
.poly-vertex-drag .pv-dot:active { transform: scale(1.1); background: #1b5e20; }

/* v3.22.38: 边中点Marker（点击插入新顶点） */
.poly-midpoint .pm-dot {
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(255,255,255,0.85); border: 2px dashed #1a7f37;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: bold; color: #1a7f37; cursor: pointer;
    transition: all 0.15s; line-height: 1;
}
.poly-midpoint .pm-dot:hover { background: #1a7f37; color: #fff; transform: scale(1.4); border-style: solid; }

/* v3.22.41: 工具栏移动端换行适配（更紧凑） */
@media (max-width: 768px) {
    .field-toolbar { flex-wrap: wrap; max-width: calc(100% - 24px); padding: 4px; gap: 4px; border-radius: 20px; }
    .ft-pill { padding: 6px 10px; font-size: 12px; border-radius: 16px; }
    .ft-pill.sm { padding: 6px; width: 30px; height: 30px; font-size: 14px; }
    .ft-sep { margin: 0 2px; height: 16px; }
}
@media (max-width: 380px) {
    .field-toolbar { padding: 3px; gap: 3px; }
    .ft-pill { padding: 5px 8px; font-size: 11px; }
    .ft-pill.sm { width: 28px; height: 28px; font-size: 13px; }
}

/* v3.22.44: polygon hover 提示（非永久，hover 时显示田块名） */
.leaflet-tooltip.field-hover-tooltip {
    background: rgba(27,94,32,0.92); color: #fff; border: none;
    border-radius: 6px; padding: 3px 10px; font-size: 13px; font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25); white-space: nowrap;
}
.leaflet-tooltip.field-hover-tooltip::before { display: none; }

/* v3.22.44: 田块详情 popup 弹窗样式 */
.leaflet-popup.field-popup-container .leaflet-popup-content-wrapper {
    border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,0.15); padding: 0; overflow: hidden;
}
.leaflet-popup.field-popup-container .leaflet-popup-content { margin: 0; width: auto !important; }
.leaflet-popup.field-popup-container .leaflet-popup-tip { background: #fff; }
.field-popup { padding: 0; min-width: 220px; font-family: -apple-system, 'Segoe UI', sans-serif; }
.field-popup-title {
    background: linear-gradient(135deg, #2e7d32, #43a047); color: #fff;
    padding: 10px 16px; font-size: 16px; font-weight: 700; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.field-popup-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 16px; font-size: 13px; border-bottom: 1px solid #f0f0f0;
}
.field-popup-row span { color: #888; }
.field-popup-row b { color: #333; max-width: 140px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field-popup-btn {
    display: block; width: calc(100% - 24px); margin: 10px 12px 12px;
    padding: 8px 0; background: linear-gradient(135deg, #2e7d32, #43a047);
    color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 600;
    cursor: pointer; text-align: center; transition: opacity 0.2s;
}
.field-popup-btn:hover { opacity: 0.85; }

/* ─── 认领表单面板（滑入） ─── */
.claim-form-panel { position: absolute; top: 0; right: 0; width: 100%; height: 100%; background: var(--card-bg); z-index: 10; display: flex; flex-direction: column; overflow-y: auto; animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: -6px 0 24px rgba(0,0,0,0.08); }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0.3; } to { transform: translateX(0); opacity: 1; } }
.cfp-header { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%); }
.cfp-back { background: none; border: none; color: var(--primary); font-size: 13px; cursor: pointer; padding: 4px 0; display: flex; align-items: center; gap: 2px; }
.cfp-back:hover { text-decoration: underline; }
.cfp-header h3 { font-size: 17px; color: var(--primary-dark); margin: 0; }
.cfp-body { padding: 18px; }
.cfp-summary { background: linear-gradient(135deg, #fff8e1 0%, #fff3e0 100%); border: 1px solid rgba(255,152,0,0.2); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; display: flex; align-items: center; gap: 14px; }
.cfp-summary-icon { font-size: 32px; }
.cfp-summary-info { flex: 1; }
.cfp-summary-area { font-size: 22px; font-weight: 700; color: #e65100; }
.cfp-summary-unit { font-size: 13px; color: #6b7280; }
.cfp-summary-detail { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.cfp-positions { margin-bottom: 14px; }
.cfp-positions label { display: block; font-size: 12px; color: var(--text-light); margin-bottom: 5px; font-weight: 500; }
.cfp-positions input { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; outline: none; background: #f9fafb; color: #6b7280; }
.cfp-submit { width: 100%; padding: 13px; border: none; border-radius: 10px; background: var(--primary); color: white; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 8px; transition: all 0.2s; }
.cfp-submit:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,127,55,0.2); }

/* ─── 网格悬浮提示 ─── */
.grid-tooltip { background: rgba(0,0,0,0.8); color: white; padding: 3px 8px; border-radius: 4px; font-size: 11px; white-space: nowrap; pointer-events: none; }

/* ─── 网格悬浮提示 ─── */
.grid-tooltip { background: rgba(0,0,0,0.8); color: white; padding: 3px 8px; border-radius: 4px; font-size: 11px; white-space: nowrap; pointer-events: none; }

/* ─── 菜单分隔线 ─── */
.menu-divider { height: 1px; background: rgba(255,255,255,0.15); margin: 8px 4px; }

/* ─── 病虫害预警面板（紧凑化） ─── */
.pest-forecast-panel {
    grid-column: auto !important;
    display: flex;
    flex-direction: column;
}
.pest-forecast-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
    margin-right: -4px;
}
.pest-forecast-list::-webkit-scrollbar { width: 4px; }
.pest-forecast-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 2px; }
.pest-risk-item {
    border-radius: 10px;
    padding: 10px 12px;
    border-left: 3px solid;
    transition: all 0.2s;
    background: white;
    border: 1px solid #f0f0f0;
    border-left-width: 3px;
}
.pest-risk-item:hover { transform: translateX(2px); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.pest-risk-item.high { border-left-color: #f44336; background: linear-gradient(90deg, #ffebee 0%, #ffffff 60%); }
.pest-risk-item.medium { border-left-color: #ff9800; background: linear-gradient(90deg, #fff3e0 0%, #ffffff 60%); }
.pest-risk-item.low { border-left-color: #4caf50; background: linear-gradient(90deg, #e8f5e9 0%, #ffffff 60%); }
.pest-risk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.pest-risk-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pest-risk-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}
.pest-risk-badge.high { background: #f44336; color: white; }
.pest-risk-badge.medium { background: #ff9800; color: white; }
.pest-risk-badge.low { background: #4caf50; color: white; }
.pest-risk-advice { font-size: 12px; color: #555; line-height: 1.5; margin-top: 2px; }
.pest-risk-weather { font-size: 11px; color: #6b7280; margin-top: 4px; padding-top: 4px; border-top: 1px dashed #eee; }

/* ─── 田块Tab ─── */
.field-tabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 2px solid var(--border); }
.field-tab { padding: 8px 16px; border: none; background: none; font-size: 13px; color: var(--text-light); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.field-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ─── 农事日历 ─── */
.calendar-timeline { position: relative; padding-left: 20px; }
.calendar-timeline::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.calendar-stage { position: relative; margin-bottom: 16px; }
.calendar-stage::before { content: ''; position: absolute; left: -20px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--border); border: 2px solid white; box-shadow: 0 0 0 1px var(--border); z-index: 1; }
.calendar-stage.done::before { background: #9e9e9e; }
.calendar-stage.current::before { background: var(--primary); box-shadow: 0 0 0 3px rgba(26,127,55,0.2); }
.calendar-stage.urgent::before { background: #f44336; box-shadow: 0 0 0 3px rgba(244,67,54,0.2); animation: pulse 1.5s infinite; }
.calendar-stage.upcoming::before { background: #ff9800; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(244,67,54,0.2); } 50% { box-shadow: 0 0 0 6px rgba(244,67,54,0.1); } }
.calendar-stage-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.calendar-stage-name { font-size: 14px; font-weight: 600; color: var(--text); }
.calendar-stage-date { font-size: 12px; color: var(--text-light); }
.calendar-stage-status { padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.calendar-stage-status.done { background: #f5f5f5; color: #6b7280; }
.calendar-stage-status.current { background: var(--primary-light); color: var(--primary-dark); }
.calendar-stage-status.urgent { background: #ffebee; color: #c62828; }
.calendar-stage-status.upcoming { background: #fff3e0; color: #e65100; }
.calendar-stage-status.future { background: #f5f5f5; color: #6b7280; }
.calendar-stage-tasks { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.calendar-task-tag { padding: 3px 8px; background: var(--primary-light); color: var(--primary-dark); border-radius: 8px; font-size: 11px; }
.calendar-stage-advice { font-size: 12px; color: var(--text-light); background: #fffde7; padding: 6px 10px; border-radius: 8px; border-left: 3px solid #fff9c4; }

/* ─── 多田块对比 ─── */
.field-list-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-light); }
.compare-btn { padding: 6px 14px; border: 1px solid var(--primary); border-radius: 8px; background: white; color: var(--primary); font-size: 12px; cursor: pointer; transition: all 0.2s; }
.compare-btn:hover { background: var(--primary); color: white; }
.compare-view { padding: 16px; }
.compare-view-title { font-size: 16px; color: var(--primary-dark); margin-bottom: 14px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare-table th { background: var(--primary-light); color: var(--primary-dark); padding: 8px 10px; text-align: left; font-weight: 600; }
.compare-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); }
.compare-table tr:hover td { background: #f9fafb; }
.compare-bar-chart { margin-top: 16px; }
.compare-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.compare-bar-label { width: 100px; font-size: 12px; text-align: right; color: var(--text-light); flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compare-bar-track { flex: 1; height: 24px; background: #f0f0f0; border-radius: 6px; overflow: hidden; position: relative; }
.compare-bar-fill { height: 100%; border-radius: 6px; transition: width 0.5s ease; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; color: white; font-size: 11px; font-weight: 600; }

/* ═══════════ 五、应用市场样式 ═══════════ */
.market-container { flex: 1; overflow-y: auto; padding: 24px 28px; }
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.market-app-card { background: var(--card-bg); border-radius: 16px; padding: 20px; cursor: pointer; transition: all 0.3s; border: 2px solid transparent; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.market-app-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); border-color: var(--primary); }
.market-app-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.market-app-card[data-color="#1a7f37"]::before { background: #1a7f37; }
.market-app-card[data-color="#ff9800"]::before { background: #ff9800; }
.market-app-card[data-color="#2196f3"]::before { background: #2196f3; }
.market-app-card[data-color="#e91e63"]::before { background: #e91e63; }
.market-app-card[data-color="#9c27b0"]::before { background: #9c27b0; }
.market-app-card[data-color="#009688"]::before { background: #009688; }
.market-app-card[data-color="#795548"]::before { background: #795548; }
.market-app-icon { font-size: 40px; margin-bottom: 10px; }
.market-app-name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.market-app-category { font-size: 11px; color: var(--text-light); margin-bottom: 8px; }
.market-app-desc { font-size: 12px; color: var(--text-light); line-height: 1.5; }
.market-app-badge { position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 600; color: white; }

/* v3.8.5: 应用市场排序手柄 / 排名 / 拖动反馈 */
.market-app-grip {
    position: absolute; top: 6px; left: 8px;
    font-size: 18px; color: var(--text-light);
    cursor: grab; user-select: none;
    opacity: 0.45; line-height: 1;
    padding: 4px 6px; border-radius: 6px;
    transition: opacity 0.2s, background 0.2s;
}
.market-app-grip:hover { opacity: 0.85; background: rgba(0,0,0,0.04); }
.market-app-grip:active { cursor: grabbing; background: rgba(26,127,55,0.12); }
.market-app-rank {
    position: absolute; top: 8px; left: 36px;
    width: 22px; height: 22px;
    background: linear-gradient(135deg, #ffd54f, #ff9800);
    color: #5d4037;
    border-radius: 50%;
    font-size: 11px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(255,152,0,0.4);
    z-index: 1;
}
.market-app-actions {
    position: absolute; bottom: 12px; left: 16px; right: 16px;
    display: flex; justify-content: flex-end;
    opacity: 0; transform: translateY(4px);
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
}
.market-app-card:hover .market-app-actions { opacity: 1; transform: translateY(0); pointer-events: auto; }
.market-app-open {
    background: var(--primary); color: #fff; border: none;
    padding: 6px 14px; border-radius: 18px;
    font-size: 12px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.market-app-open:hover { background: var(--primary-dark); transform: translateX(2px); }

/* 拖拽状态 */
.market-app-card.is-dragging {
    opacity: 0.4; transform: scale(0.97);
    border-style: dashed; border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(26,127,55,0.25);
}
.market-app-card.drag-over {
    border-color: var(--primary); border-style: dashed;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(26,127,55,0.2);
}
.market-app-card.is-dragging-hold {
    opacity: 0.85; transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

/* 在移动端始终展示「立即打开」按钮（避免依赖 hover） */
@media (max-width: 768px) {
    .market-app-grip { opacity: 0.85; font-size: 16px; }
    .market-app-actions { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .market-app-rank { width: 20px; height: 20px; font-size: 10px; top: 10px; left: 32px; }
    .market-app-card { padding: 16px 14px 36px; }
    .market-app-icon { font-size: 32px; margin-bottom: 6px; }
    .market-app-name { font-size: 14px; }
    .market-app-desc { font-size: 11px; }
    .market-app-grid-tip { padding: 8px 12px; font-size: 11px; }
}

.market-app-grid-tip {
    background: linear-gradient(135deg, #fff7e6, #fff);
    border: 1px dashed #ffd54f;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
    color: #8d6e00;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.market-app-grid-tip-icon { font-size: 16px; }

/* 应用详情 */
.market-app-detail { animation: fadeIn 0.3s ease; }
.mad-back { display: inline-flex; align-items: center; gap: 4px; background: none; border: none; color: var(--primary); font-size: 14px; cursor: pointer; margin-bottom: 16px; }
.mad-back:hover { text-decoration: underline; }
.mad-header { display: flex; align-items: center; gap: 14px; padding: 20px; background: var(--card-bg); border-radius: 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.mad-header-icon { font-size: 44px; }
.mad-header-info { flex: 1; }
.mad-header-name { font-size: 20px; font-weight: 700; color: var(--text); }
.mad-header-desc { font-size: 13px; color: var(--text-light); }
.mad-partner-btn { padding: 8px 16px; border: 1px dashed var(--primary); border-radius: 8px; background: var(--primary-light); color: var(--primary-dark); font-size: 12px; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.mad-partner-btn:hover { background: var(--primary); color: white; }

/* 通用应用内组件 */
.mad-section { background: var(--card-bg); border-radius: 16px; padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.mad-section h4 { font-size: 15px; color: var(--primary-dark); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.mad-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.mad-form .form-group { margin-bottom: 0; }
.mad-form-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.mad-smart-input { display: flex; gap: 8px; margin-bottom: 12px; align-items: flex-end; }
.mad-smart-input textarea { flex: 1; padding: 8px 12px; border: 1px dashed var(--primary); border-radius: 8px; font-size: 13px; resize: none; outline: none; background: #f0fdf4; color: var(--text); box-sizing: border-box; }
.mad-smart-input textarea:focus { border-style: solid; background: #fff; }
.mad-ai-btn { padding: 8px 16px; border: none; border-radius: 8px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: all 0.2s; }
.mad-ai-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.mad-ai-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.mad-add-btn { padding: 9px 20px; border: none; border-radius: 8px; background: var(--primary); color: white; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.mad-add-btn:hover { background: var(--primary-dark); }
.mad-list { display: flex; flex-direction: column; gap: 8px; }
.mad-list-item { background: #fafafa; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; transition: all 0.2s; }
.mad-list-item:hover { border-color: var(--primary); }
.mad-list-item-info { flex: 1; }
.mad-list-item-title { font-size: 14px; font-weight: 600; color: var(--text); }
.mad-list-item-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-light); margin-top: 2px; flex-wrap: wrap; }
.mad-list-item-amount { font-size: 16px; font-weight: 700; color: #e65100; }
.mad-delete-btn { width: 28px; height: 28px; border: none; border-radius: 6px; background: #ffebee; color: #c62828; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mad-delete-btn:hover { background: #c62828; color: white; }
.mad-edit-btn { width: 28px; height: 28px; border: none; border-radius: 6px; background: #e3f2fd; color: #1565c0; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s; }
.mad-edit-btn:hover { background: #1565c0; color: white; }
.mad-cancel-btn { padding: 9px 20px; border: none; border-radius: 8px; background: #f5f5f5; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.mad-cancel-btn:hover { background: #e0e0e0; }
.mad-empty { text-align: center; padding: 32px; color: var(--text-light); font-size: 14px; }

/* v3.14.0: 子标签栏 */
.app-sub-tabs {
    display: flex; gap: 4px; padding: 8px 0; margin-bottom: 8px;
    border-bottom: 2px solid var(--border); overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.app-sub-tabs::-webkit-scrollbar { display: none; }
.app-sub-tab {
    flex-shrink: 0; padding: 8px 16px; border: none; background: none;
    font-size: 13px; font-weight: 600; color: var(--text-light);
    cursor: pointer; border-radius: 8px 8px 0 0; transition: all 0.2s;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.app-sub-tab:hover { color: var(--primary); background: rgba(26,127,55,0.06); }
.app-sub-tab.active { color: var(--primary); border-bottom-color: var(--primary); background: rgba(26,127,55,0.08); }

/* v3.14.0: 工具结果展示 */
.mad-desc { font-size: 13px; color: var(--text-light); margin-bottom: 14px; }
.mad-result { margin-top: 14px; }
.mad-result-card {
    background: linear-gradient(135deg, #f0f7f0 0%, #e8f5e9 100%);
    border: 1px solid #c8e6c9; border-radius: 12px; padding: 16px;
    display: flex; flex-direction: column; gap: 10px;
}
.mad-result-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 12px; background: rgba(255,255,255,0.6); border-radius: 8px;
    font-size: 14px;
}
.mad-result-row span { color: var(--text-light); }
.mad-result-row strong { color: var(--text); font-size: 15px; }
.mad-result-row.highlight {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border: 1px solid #ffcc80;
}
.mad-result-row.highlight strong { color: #e65100; font-size: 16px; }
.mad-tip-list { display: flex; flex-direction: column; gap: 6px; }
.mad-tip-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 12px; background: #f5f5f5; border-radius: 8px;
    font-size: 13px; transition: background 0.2s;
}
.mad-tip-item:hover { background: #e8f5e9; }
.mad-tip-item span:first-child { font-weight: 600; color: var(--text); }
.mad-tip-item span:last-child { color: var(--text-light); }
.fc-tip-item {
    display: flex; gap: 12px; padding: 12px;
    background: #f5f5f5; border-radius: 10px; margin-bottom: 8px;
    transition: background 0.2s;
}
.fc-tip-item:hover { background: #e8f5e9; }
.fc-tip-icon { font-size: 24px; flex-shrink: 0; }
.fc-tip-body { flex: 1; }
.fc-tip-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.fc-tip-desc { font-size: 13px; color: var(--text-light); line-height: 1.5; }
.fc-weather-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px; padding: 16px; margin-bottom: 12px;
}
.fc-weather-main { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.fc-weather-temp { font-size: 28px; font-weight: 700; color: #1565c0; }
.fc-weather-desc { font-size: 14px; color: #1976d2; }
.fc-weather-extra { display: flex; gap: 16px; font-size: 13px; color: #42a5f5; flex-wrap: wrap; }
.fc-tip-list { display: flex; flex-direction: column; gap: 6px; }

/* v3.10.0: 专家课堂样式 */
.ec-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ec-search-box { display: flex; gap: 6px; }
.ec-search-box input { padding: 7px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; width: 200px; outline: none; font-family: inherit; }
.ec-search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(103,58,183,0.06); }
.ec-search-box button { padding: 7px 12px; border: none; border-radius: 8px; background: #673ab7; color: #fff; cursor: pointer; font-size: 13px; }
.ec-categories { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 14px; scrollbar-width: thin; }
.ec-categories::-webkit-scrollbar { height: 4px; }
.ec-categories::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }
.ec-cat-chip { flex-shrink: 0; padding: 6px 18px; border: 1px solid var(--border); border-radius: 20px; background: #fff; font-size: 13px; color: #666; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.ec-cat-chip:hover { border-color: #673ab7; color: #673ab7; }
.ec-cat-chip.active { background: #673ab7; color: #fff; border-color: #673ab7; font-weight: 600; }
.ec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ec-card { background: #fff; border-radius: 12px; overflow: hidden; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; border: 1px solid #f0f0f0; }
.ec-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.ec-card-cover { position: relative; width: 100%; aspect-ratio: 16/9; background: #f5f5f5; overflow: hidden; }
.ec-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.ec-cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 42px; background: linear-gradient(135deg, #ede7f6, #f3e5f5); }
.ec-duration { position: absolute; bottom: 6px; right: 6px; padding: 2px 8px; border-radius: 4px; background: rgba(0,0,0,0.7); color: #fff; font-size: 11px; font-weight: 500; }
.ec-play-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(103,58,183,0.85); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; }
.ec-card:hover .ec-play-overlay { opacity: 1; }
.ec-card-info { padding: 10px 12px 12px; }
.ec-card-title { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 6px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ec-card-meta { display: flex; gap: 10px; font-size: 11px; color: #6b7280; margin-bottom: 6px; }
.ec-card-cat { font-size: 11px; color: #673ab7; background: #f3e5f5; padding: 2px 8px; border-radius: 4px; }
.ec-player { animation: fadeIn 0.3s; }
.ec-video-wrap { width: 100%; max-width: 800px; margin: 0 auto 20px; }
.ec-video-player { width: 100%; border-radius: 12px; background: #000; aspect-ratio: 16/9; }
.ec-no-video { width: 100%; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; background: #f5f5f5; border-radius: 12px; color: #6b7280; font-size: 16px; }
.ec-video-info { max-width: 800px; margin: 0 auto 20px; }
.ec-video-title { font-size: 20px; font-weight: 700; color: #333; margin-bottom: 10px; }
.ec-video-stats { display: flex; gap: 16px; font-size: 13px; color: #888; margin-bottom: 12px; flex-wrap: wrap; }
.ec-video-actions { margin-bottom: 14px; }
.ec-like-btn { padding: 8px 20px; border: 1px solid #673ab7; border-radius: 20px; background: #fff; color: #673ab7; font-size: 14px; cursor: pointer; transition: all 0.2s; }
.ec-like-btn:hover { background: #673ab7; color: #fff; }
.ec-like-btn:disabled { cursor: default; }
.ec-video-desc { padding: 14px; background: #f9f9f9; border-radius: 8px; font-size: 14px; color: #555; line-height: 1.6; }
.ec-related { max-width: 800px; margin: 0 auto; }
.ec-related h3 { font-size: 16px; margin-bottom: 12px; color: #333; }
.ec-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.ec-related-card { cursor: pointer; transition: transform 0.15s; }
.ec-related-card:hover { transform: translateY(-2px); }
.ec-related-cover { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: #f5f5f5; margin-bottom: 6px; }
.ec-related-cover img { width: 100%; height: 100%; object-fit: cover; }
.ec-related-card h5 { font-size: 12px; color: #333; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 2px; }
.ec-related-card span { font-size: 11px; color: #6b7280; }
@media (max-width: 768px) {
    .ec-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .ec-title-row { flex-direction: column; align-items: stretch; }
    .ec-search-box input { width: 100%; }
    .ec-video-title { font-size: 16px; }
}

/* 摘要卡片 */
.mad-summary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.mad-summary-card { background: linear-gradient(135deg, #f8fff8 0%, #fff 100%); border: 1px solid rgba(26,127,55,0.12); border-radius: 12px; padding: 14px; text-align: center; }
.mad-summary-card .msc-value { font-size: 24px; font-weight: 700; color: var(--primary-dark); }
.mad-summary-card .msc-label { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.mad-summary-card .msc-value.expense { color: #e65100; }

/* 市场行情 */
.market-price-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.market-price-table th { background: var(--primary-light); color: var(--primary-dark); padding: 10px; text-align: left; font-weight: 600; }
.market-price-table td { padding: 10px; border-bottom: 1px solid var(--border); }
.market-price-trend { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.market-price-trend.up { color: #f44336; }
.market-price-trend.down { color: #4caf50; }
.market-price-trend.stable { color: #6b7280; }
.market-news-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.market-news-item:last-child { border-bottom: none; }
.market-news-title { font-size: 13px; font-weight: 500; color: var(--text); }
.market-news-meta { font-size: 11px; color: var(--text-light); margin-top: 2px; }

/* ═══ 市场行情3D炫酷展示 ═══ */
.market-3d-section {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1456 50%, #2d1b69 100%);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    position: relative;
}
.market-3d-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}
.market-3d-header h3 {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}
.market-3d-header h3 .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 12px #4caf50;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}
.market-3d-header .updated {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}
.market-3d-wrap {
    position: relative;
    width: 100%;
    height: 480px;
    background:
        radial-gradient(circle at 30% 20%, rgba(156, 39, 176, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(0, 229, 255, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #0a0e27 0%, #1a1456 100%);
}
.market-3d-canvas {
    width: 100%;
    height: 100%;
}
.market-3d-tooltip {
    position: absolute;
    pointer-events: none;
    background: rgba(10, 14, 39, 0.95);
    border: 1px solid rgba(0, 229, 255, 0.6);
    border-radius: 10px;
    padding: 10px 14px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.3);
    backdrop-filter: blur(8px);
    z-index: 10;
    min-width: 160px;
}
.m3d-tip-title { font-size: 12px; color: rgba(255, 255, 255, 0.7); margin-bottom: 4px; }
.m3d-tip-price { font-size: 22px; font-weight: 700; color: #ffd700; }
.m3d-tip-unit { font-size: 12px; color: rgba(255, 255, 255, 0.6); font-weight: 400; }
.m3d-tip-trend { font-size: 13px; margin-top: 4px; font-weight: 600; }
.market-3d-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    gap: 12px;
    background: rgba(10, 14, 39, 0.8);
}
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 229, 255, 0.2);
    border-top-color: #00e5ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 3D交互说明 */
.market-3d-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    pointer-events: none;
    text-align: center;
    z-index: 5;
}

/* 资讯卡片 */
.market-news-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}
.market-news-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.15);
    transform: translateY(-2px);
}
.market-news-card .news-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.market-news-card .news-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}
.market-news-card .news-tag.today { background: #ffebee; color: #c62828; }
.market-news-card .news-tag.recent { background: #fff3e0; color: #e65100; }
.market-news-card .news-tag.old { background: #f5f5f5; color: #6b7280; }
.market-news-card .news-source {
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}
.market-news-card .news-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 6px;
}
.market-news-card .news-summary {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.market-news-card .news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-light);
}
.market-news-card .news-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.market-news-card .news-link:hover { text-decoration: underline; }
.market-news-empty {
    text-align: center;
    padding: 24px;
    color: var(--text-light);
    font-size: 13px;
}

/* 资讯头部 */
.market-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.market-news-header h4 {
    margin: 0;
    font-size: 14px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}
.market-refresh-btn {
    background: var(--primary-light);
    color: var(--primary-dark);
    border: none;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}
.market-refresh-btn:hover { background: var(--primary); color: #fff; }
.market-refresh-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.market-refresh-btn.loading::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 1.5px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 4px;
    vertical-align: middle;
}

/* ═══ 市场行情走势图 ═══ */
.market-trend-wrap { position: relative; width: 100%; padding: 12px 0 8px; }
.market-trend-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; justify-content: center; }
.market-trend-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.market-trend-chip:hover { background: rgba(255,255,255,0.18); }
.market-trend-chip.active { background: rgba(0,229,255,0.25); border-color: #00e5ff; color: #fff; }
.market-trend-chip .chip-price { opacity: 0.75; font-size: 11px; }
.market-trend-chart { width: 100%; height: 460px; }
.market-trend-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 6px 16px 10px;
    font-size: 11px;
    color: rgba(255,255,255,0.6);
}
.market-trend-legend .legend-line { display: inline-block; width: 24px; height: 3px; border-radius: 2px; vertical-align: middle; }
.market-trend-legend .legend-line.dashed { background: repeating-linear-gradient(90deg, currentColor 0, currentColor 4px, transparent 4px, transparent 7px); height: 2px; }
.market-trend-hint { text-align: center; font-size: 11px; color: rgba(255,255,255,0.45); padding: 0 16px 12px; }

/* ═══ 市场资讯详情弹窗（站内查看，不跳转外网） ═══ */
.market-news-modal { position: fixed; inset: 0; z-index: 1000; }
.market-news-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(3px); }
.market-news-modal-box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 680px;
    max-height: 82vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.market-news-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--primary-light);
}
.market-news-modal-header h4 { margin: 0; font-size: 15px; color: var(--text); flex: 1; padding-right: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-news-modal-close { background: none; border: none; font-size: 24px; color: var(--text-light); cursor: pointer; line-height: 1; }
.market-news-modal-close:hover { color: var(--text); }
.market-news-modal-meta { padding: 10px 18px; font-size: 11px; color: var(--text-light); border-bottom: 1px solid var(--border); background: #fafafa; }
.market-news-modal-body { padding: 16px 18px; overflow-y: auto; font-size: 14px; line-height: 1.85; color: var(--text); }
.market-news-modal-body p { margin: 0 0 12px; }

@media (max-width: 768px) {
    .market-trend-chart { height: 360px; }
    .market-trend-chip { font-size: 11px; padding: 4px 8px; }
}

/* 团购卡片 */
.group-buy-card { background: #fafafa; border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.group-buy-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.group-buy-name { font-size: 15px; font-weight: 600; color: var(--text); }
.group-buy-status { padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.group-buy-status.open { background: #e8f5e9; color: #2e7d32; }
.group-buy-status.full { background: #ffebee; color: #c62828; }
.group-buy-status.pending { background: #fff3cd; color: #856404; }
.group-buy-card.is-mine { border-left: 4px solid var(--primary); }
.group-buy-reply { margin-top: 10px; padding: 10px 12px; background: #f1f8e9; border-left: 3px solid #c5e1a5; border-radius: 8px; font-size: 13px; line-height: 1.7; color: var(--text); }
.group-buy-reply-time { font-size: 11px; color: #6b7280; margin-top: 4px; }
.group-buy-progress { height: 8px; background: #f0f0f0; border-radius: 4px; margin: 8px 0; overflow: hidden; }
.group-buy-progress-fill { height: 100%; background: var(--primary); border-radius: 4px; transition: width 0.5s; }
.group-buy-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-light); }
.group-buy-prices { display: flex; gap: 16px; margin-top: 8px; }
.group-buy-price-item { font-size: 12px; }
.group-buy-price-item .gbi-label { color: var(--text-light); }
.group-buy-price-item .gbi-value { font-weight: 700; font-size: 15px; }
.group-buy-price-item .gbi-value.group { color: #c62828; }
.group-buy-join-btn { padding: 6px 16px; border: none; border-radius: 8px; background: var(--primary); color: white; font-size: 12px; cursor: pointer; margin-top: 8px; }
.group-buy-join-btn:hover { background: var(--primary-dark); }
.group-buy-join-btn:disabled { background: #ccc; cursor: not-allowed; }

/* v3.15.0 农资商城 */
.mall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.mall-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.mall-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.mall-card-img { height: 100px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mall-card-img img { width: 100%; height: 100%; object-fit: cover; }
.mall-emoji { font-size: 40px; }
.mall-card-info { padding: 8px 10px; flex: 1; }
.mall-card-name { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; margin-bottom: 2px; }
.mall-card-spec { font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.mall-card-price { font-size: 16px; font-weight: 700; color: #e53935; }
.mall-card-stock { font-size: 11px; color: #6b7280; margin-top: 2px; }
.mall-poster-btn { margin-top: 6px; width: 100%; padding: 5px; border: 1px solid #2e7d32; border-radius: 8px; background: #e8f5e9; color: #2e7d32; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .2s; }
.mall-poster-btn:active { transform: scale(0.96); }
.mall-poster-btn:hover { background: #c8e6c9; }
/* v3.22.55: 产品海报弹窗 */
.poster-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; animation: posterFadeIn .25s ease; }
@keyframes posterFadeIn { from { opacity: 0; } to { opacity: 1; } }
.poster-overlay img { max-width: 100%; max-height: 75vh; border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,.5); }
.poster-loading { color: #fff; font-size: 16px; text-align: center; padding: 40px; }
.poster-loading .spinner { width: 36px; height: 36px; border: 3px solid rgba(255,255,255,.2); border-top-color: #4caf50; border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.poster-actions { display: flex; gap: 12px; margin-top: 16px; }
.poster-actions button { padding: 10px 24px; border: none; border-radius: 24px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all .2s; }
.poster-btn-save { background: linear-gradient(135deg, #2e7d32, #4caf50); color: #fff; }
.poster-btn-save:active { transform: scale(0.95); }
.poster-btn-close { background: rgba(255,255,255,.15); color: #fff; }
.poster-btn-close:active { transform: scale(0.95); }
.mall-card-actions { padding: 6px 10px 10px; }
.mall-add-btn { width: 100%; padding: 6px; border: none; border-radius: 8px; background: var(--primary); color: #fff; font-size: 13px; cursor: pointer; }
.mall-add-btn:hover { background: var(--primary-dark); }
.mall-qty-control { display: flex; align-items: center; justify-content: center; gap: 8px; }
.mall-qty-control button { width: 28px; height: 28px; border: 1px solid #ddd; border-radius: 50%; background: #fff; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mall-qty-control span { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.mall-cart-bar { display: none !important; }
/* v3.22.46: 浮动购物车按钮 + 滑出面板 */
.mall-float-cart-btn { position: fixed; right: 16px; bottom: 80px; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #e65100, #ff9800); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 4px 16px rgba(230,81,0,.35); z-index: 200; transition: transform .2s, box-shadow .2s; }
.mall-float-cart-btn:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(230,81,0,.45); }
.mall-float-cart-btn:active { transform: scale(0.95); }
.mall-float-cart-btn .cart-badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; border-radius: 11px; background: #f44336; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.mall-float-cart-btn .cart-badge:empty { display: none; }
.mall-float-cart-btn.cart-bounce { animation: cartBounce .4s ease; }
@keyframes cartBounce { 0%,100% { transform: scale(1); } 30% { transform: scale(1.2); } 60% { transform: scale(0.9); } }
.mall-cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 299; opacity: 0; pointer-events: none; transition: opacity .25s; }
.mall-cart-overlay.open { opacity: 1; pointer-events: auto; }
.mall-cart-panel { position: fixed; right: 0; top: 0; bottom: 0; width: 400px; max-width: 92vw; background: #fff; z-index: 300; transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; box-shadow: -4px 0 24px rgba(0,0,0,.12); }
.mall-cart-panel.open { transform: translateX(0); }
.mall-cart-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: linear-gradient(135deg, #e65100, #ff9800); color: #fff; flex-shrink: 0; }
.mall-cart-panel-header h3 { margin: 0; font-size: 18px; font-weight: 700; }
.mall-cart-panel-header .cart-close-btn { width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(255,255,255,.2); color: #fff; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.mall-cart-panel-header .cart-close-btn:hover { background: rgba(255,255,255,.35); }
.mall-cart-panel-body { flex: 1; overflow-y: auto; padding: 12px 16px; background: #fafafa; }
.mall-cart-panel-body .cart-empty-hint { text-align: center; padding: 60px 20px; color: #999; font-size: 15px; }
.mall-cart-panel-body .cart-empty-hint .emoji { font-size: 48px; display: block; margin-bottom: 12px; opacity: .4; }
.mall-cart-panel-item { display: flex; gap: 12px; padding: 12px; background: #fff; border-radius: 10px; margin-bottom: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.04); transition: box-shadow .2s; }
.mall-cart-panel-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.mall-cart-panel-item .item-info { flex: 1; min-width: 0; }
.mall-cart-panel-item .item-name { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mall-cart-panel-item .item-spec { font-size: 12px; color: #999; margin-bottom: 6px; }
.mall-cart-panel-item .item-price { font-size: 15px; color: #e65100; font-weight: 700; }
.mall-cart-panel-item .item-price .old-price { font-size: 12px; color: #ccc; font-weight: 400; text-decoration: line-through; margin-left: 4px; }
.mall-cart-panel-item .item-qty { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.mall-cart-panel-item .item-qty button { width: 28px; height: 28px; border: 1px solid #ddd; border-radius: 6px; background: #fff; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.mall-cart-panel-item .item-qty button:hover { background: #fff3e0; border-color: #ff9800; color: #e65100; }
.mall-cart-panel-item .item-qty button:active { transform: scale(0.9); }
.mall-cart-panel-item .item-qty .qty-val { min-width: 28px; text-align: center; font-size: 14px; font-weight: 600; color: #333; }
.mall-cart-panel-item .item-remove { width: 28px; height: 28px; border: none; background: transparent; color: #ccc; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 6px; transition: all .15s; flex-shrink: 0; align-self: flex-start; }
.mall-cart-panel-item .item-remove:hover { color: #f44336; background: #ffebee; }
.mall-cart-panel-footer { flex-shrink: 0; background: #fff; border-top: 1px solid #eee; padding: 16px 20px; box-shadow: 0 -2px 8px rgba(0,0,0,.04); }
.mall-cart-panel-footer .fee-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; color: #666; }
.mall-cart-panel-footer .fee-row.total { font-size: 18px; font-weight: 700; color: #e65100; border-top: 1px solid #eee; margin-top: 8px; padding-top: 10px; }
.mall-cart-panel-footer .checkout-btn { width: 100%; margin-top: 12px; padding: 14px; border: none; border-radius: 24px; background: linear-gradient(135deg, #e65100, #ff9800); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.mall-cart-panel-footer .checkout-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(230,81,0,.3); }
.mall-cart-panel-footer .checkout-btn:active { transform: translateY(0); }
.mall-cart-panel-footer .clear-cart-btn { width: 100%; margin-top: 8px; padding: 8px; border: none; background: transparent; color: #999; font-size: 13px; cursor: pointer; }
.mall-cart-panel-footer .clear-cart-btn:hover { color: #f44336; }
@media (max-width: 768px) { .mall-float-cart-btn { right: 12px; bottom: 72px; width: 50px; height: 50px; font-size: 22px; } .mall-cart-panel { width: 92vw; } }
.mall-cart-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.mall-cart-item-info { flex: 1; }
.mall-cart-item-name { font-size: 14px; font-weight: 600; color: var(--text); }
.mall-cart-item-price { font-size: 13px; color: #666; }
.mall-cart-item-actions { display: flex; align-items: center; gap: 8px; }
.mall-cart-item-actions button { width: 28px; height: 28px; border: 1px solid #ddd; border-radius: 50%; background: #fff; font-size: 16px; cursor: pointer; }
.mall-cart-summary { font-size: 14px; color: var(--text); }
.mall-fee-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: var(--text); }
.mall-fee-total { border-top: 1px solid #eee; margin-top: 4px; padding-top: 10px; font-weight: 700; font-size: 16px; }
.mall-order-card { background: #fafafa; border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.mall-order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mall-order-id { font-size: 13px; font-weight: 600; color: var(--text); }
.mall-order-items { font-size: 13px; color: var(--text); line-height: 1.6; margin-bottom: 6px; }
.mall-order-addr { font-size: 12px; color: #666; margin-bottom: 4px; }
.mall-order-fee { font-size: 13px; color: var(--text); font-weight: 600; }
.mall-order-time { font-size: 11px; color: #6b7280; margin-top: 4px; }
.mall-order-note { font-size: 12px; color: #e65100; margin-top: 4px; padding: 6px 10px; background: #fff3e0; border-radius: 6px; }
@media (max-width: 380px) { .mall-grid { grid-template-columns: repeat(2, 1fr); } }

/* v3.22.5: 农资商城首页优化 - 大型购物网站风格 */
.mall-banner { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 14px; padding: 20px 18px; margin-bottom: 14px; color: #fff; position: relative; overflow: hidden; }
.mall-banner::after { content: ''; position: absolute; top: -20px; right: -20px; width: 100px; height: 100px; background: rgba(255,255,255,0.08); border-radius: 50%; }
.mall-banner h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.mall-banner p { margin: 0; font-size: 13px; opacity: 0.9; }
.mall-banner-tag { display: inline-block; background: rgba(255,255,255,0.2); padding: 2px 10px; border-radius: 10px; font-size: 11px; margin-top: 8px; }

.mall-cat-nav { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.mall-cat-nav::-webkit-scrollbar { display: none; }
.mall-cat-pill { padding: 6px 16px; border: 1px solid var(--border); border-radius: 20px; background: #fff; font-size: 13px; color: var(--text); cursor: pointer; white-space: nowrap; transition: all 0.2s; flex-shrink: 0; }
.mall-cat-pill:hover { border-color: var(--primary); color: var(--primary); }
.mall-cat-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }

.mall-search-wrap { display: flex; gap: 8px; margin-bottom: 14px; align-items: center; }
.mall-search-wrap input { flex: 1; padding: 10px 14px; border: 2px solid var(--border); border-radius: 22px; font-size: 14px; outline: none; transition: border-color 0.2s; background: #fff; }
.mall-search-wrap input:focus { border-color: var(--primary); }
.mall-search-wrap button { padding: 10px 18px; border: none; border-radius: 22px; background: var(--primary); color: #fff; font-size: 14px; cursor: pointer; white-space: nowrap; }
.mall-search-wrap button:hover { background: var(--primary-dark); }

.mall-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.mall-card { border-radius: 14px; border: 1px solid #eee; overflow: hidden; display: flex; flex-direction: column; transition: all 0.2s; background: #fff; }
.mall-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.mall-card-img { height: 140px; background: linear-gradient(135deg, #f8f9fa, #e9ecef); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.mall-card-img img { width: 100%; height: 100%; object-fit: cover; }
.mall-emoji { font-size: 48px; filter: grayscale(0.2); }
.mall-card-badge { position: absolute; top: 8px; left: 8px; background: rgba(229,57,53,0.9); color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.mall-card-info { padding: 10px 12px; flex: 1; display: flex; flex-direction: column; }
.mall-card-name { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mall-card-spec { font-size: 12px; color: var(--text-light); margin-bottom: 6px; }
.mall-card-brand { display: inline-block; font-size: 11px; color: var(--primary); background: rgba(0,0,0,0.04); padding: 1px 6px; border-radius: 4px; margin-bottom: 4px; }
.mall-card-price { font-size: 18px; font-weight: 700; color: #e53935; }
.mall-card-price small { font-size: 12px; font-weight: 400; color: #6b7280; }
.mall-card-stock { font-size: 11px; color: #6b7280; margin-top: 2px; }
.mall-poster-btn { margin-top: 6px; width: 100%; padding: 5px; border: 1px solid #2e7d32; border-radius: 8px; background: #e8f5e9; color: #2e7d32; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .2s; }
.mall-poster-btn:active { transform: scale(0.96); }
.mall-poster-btn:hover { background: #c8e6c9; }
/* v3.22.55: 产品海报弹窗 */
.poster-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; animation: posterFadeIn .25s ease; }
@keyframes posterFadeIn { from { opacity: 0; } to { opacity: 1; } }
.poster-overlay img { max-width: 100%; max-height: 75vh; border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,.5); }
.poster-loading { color: #fff; font-size: 16px; text-align: center; padding: 40px; }
.poster-loading .spinner { width: 36px; height: 36px; border: 3px solid rgba(255,255,255,.2); border-top-color: #4caf50; border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.poster-actions { display: flex; gap: 12px; margin-top: 16px; }
.poster-actions button { padding: 10px 24px; border: none; border-radius: 24px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all .2s; }
.poster-btn-save { background: linear-gradient(135deg, #2e7d32, #4caf50); color: #fff; }
.poster-btn-save:active { transform: scale(0.95); }
.poster-btn-close { background: rgba(255,255,255,.15); color: #fff; }
.poster-btn-close:active { transform: scale(0.95); }
.mall-card-actions { padding: 8px 12px 12px; }

/* v3.22.5: 结算弹窗优化 */
.mall-checkout-section { background: #fff; border-radius: 10px; padding: 14px; margin-bottom: 12px; border: 1px solid #eee; }
.mall-checkout-section h4 { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; }
.mall-checkout-field { margin-bottom: 10px; }
.mall-checkout-field label { display: block; font-size: 12px; color: #888; margin-bottom: 4px; font-weight: 500; }
.mall-checkout-field input, .mall-checkout-field textarea, .mall-checkout-field select { width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; box-sizing: border-box; outline: none; transition: border-color 0.2s; }
.mall-checkout-field input:focus, .mall-checkout-field textarea:focus, .mall-checkout-field select:focus { border-color: var(--primary); }
.mall-checkout-addr-preview { background: #f0f7ff; border: 1px solid #d0e3ff; border-radius: 8px; padding: 10px 12px; margin-top: 8px; font-size: 13px; color: #1565c0; display: none; }
.mall-checkout-addr-preview.show { display: block; }
.mall-checkout-confirm { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; margin-top: 8px; padding: 10px 12px; background: #fffde7; border: 1px solid #fdd835; border-radius: 8px; }
.mall-checkout-confirm input { width: 18px; height: 18px; cursor: pointer; }
.mall-checkout-summary { background: #fafafa; border-radius: 10px; padding: 14px; border: 1px solid #eee; }
.mall-checkout-summary .mall-fee-row { padding: 4px 0; }
.mall-checkout-summary .mall-fee-total { font-size: 18px; color: #e53935; }
/* v3.22.9: 支付方式选项 — 紧凑两栏 */
.mall-pay-options { display: flex; gap: 10px; margin-top: 8px; }
.mall-pay-options .mall-pay-option {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px 10px; border: 2px solid #e5e7eb; border-radius: 10px;
    cursor: pointer; transition: all 0.2s; background: #fff; font-size: 14px; font-weight: 500;
}
.mall-pay-options .mall-pay-option input { display: none; }
.mall-pay-options .mall-pay-option:has(input:checked) { border-color: var(--primary); background: #f0fff0; box-shadow: 0 2px 8px rgba(26,127,55,0.12); }
.mall-pay-options .mall-pay-option.disabled { opacity: 0.4; cursor: not-allowed; background: #f5f5f5; }
.mall-pay-tip { font-size: 12px; color: #6b7280; margin: 8px 0 0; text-align: center; }
/* v3.22.9: 提交按钮 — 大尺寸高视觉权重 */
#mall-submit-order {
    background: linear-gradient(135deg, #07c160, #00a854) !important;
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    padding: 15px 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(7,193,96,0.3);
    letter-spacing: 1px;
}

/* v3.22.7: 结算页商品清单项 — 可删除+可调整数量 */
.mall-checkout-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; margin-bottom: 8px; background: #fafafa; border-radius: 8px; border: 1px solid #f0f0f0; transition: background 0.2s; }
.mall-checkout-item:hover { background: #f5f5f5; }
.mall-checkout-item-info { flex: 1; min-width: 0; }
.mall-checkout-item-name { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mall-checkout-item-spec { font-size: 12px; color: #6b7280; margin: 2px 0; }
.mall-checkout-item-price { font-size: 13px; color: #e53935; font-weight: 500; }
.mall-checkout-item-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mall-checkout-qty { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 20px; padding: 2px; border: 1px solid #e0e0e0; }
.mall-qty-btn { width: 28px; height: 28px; border: none; border-radius: 50%; background: #f0f0f0; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.mall-qty-btn:hover { background: #e0e0e0; }
.mall-qty-btn:active { background: #d0d0d0; }
.mall-qty-num { min-width: 24px; text-align: center; font-size: 14px; font-weight: 600; color: var(--text); }
.mall-checkout-item-subtotal { font-size: 14px; font-weight: 700; color: #e53935; min-width: 70px; text-align: right; }
.mall-checkout-del { width: 32px; height: 32px; border: none; border-radius: 50%; background: #fff0f0; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.mall-checkout-del:hover { background: #ffcdd2; }
@media (max-width: 480px) {
    .mall-checkout-item { flex-direction: column; align-items: stretch; gap: 8px; }
    .mall-checkout-item-actions { justify-content: space-between; }
    .mall-checkout-item-subtotal { min-width: auto; }
}


/* 社区帖子 - 小红书风格瀑布流 */
.xhs-feed { column-count: 2; column-gap: 10px; }
.xhs-card { break-inside: avoid; background: #fff; border-radius: 12px; overflow: hidden; margin-bottom: 10px; box-shadow: 0 1px 6px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; }
.xhs-card:hover { transform: translateY(-3px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.xhs-card-img { width: 100%; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 48px; background: linear-gradient(135deg, #f0f4f8 0%, #e8f0fe 100%); position: relative; }
.xhs-card-img img { width: 100%; height: 100%; object-fit: cover; }
.xhs-card-body { padding: 10px 12px 8px; }
.xhs-card-title { font-size: 14px; font-weight: 600; color: #333; line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xhs-card-content { font-size: 12px; color: #888; line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xhs-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.xhs-tag { padding: 2px 8px; border-radius: 10px; font-size: 10px; background: #fff0f5; color: #e91e63; }
.xhs-card-footer { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 10px; }
.xhs-author { display: flex; align-items: center; gap: 6px; }
.xhs-avatar { width: 22px; height: 22px; border-radius: 50%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.xhs-author-name { font-size: 11px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 80px; }
.xhs-actions { display: flex; gap: 12px; }
.xhs-action { display: flex; align-items: center; gap: 3px; font-size: 11px; color: #6b7280; cursor: pointer; }
.xhs-action:hover { color: #e91e63; }
.xhs-action.liked { color: #e91e63; }
.xhs-status-badge { display: inline-block; padding: 1px 6px; border-radius: 8px; font-size: 10px; margin-left: 4px; }
.xhs-status-badge.pending { background: #fff3cd; color: #856404; }
.xhs-status-badge.approved { background: #d4edda; color: #155724; }
.xhs-card-actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; opacity: 0; transition: opacity 0.2s; }
.xhs-card:hover .xhs-card-actions { opacity: 1; }
.xhs-card-actions button { background: rgba(255,255,255,0.9); border: none; border-radius: 6px; padding: 2px 6px; font-size: 10px; cursor: pointer; }
.xhs-publish-fab { position: fixed; bottom: 80px; right: 20px; width: 48px; height: 48px; border-radius: 50%; background: #e91e63; color: #fff; border: none; font-size: 24px; cursor: pointer; box-shadow: 0 2px 12px rgba(233,30,99,0.4); z-index: 100; display: flex; align-items: center; justify-content: center; transition: transform 0.2s; }
.xhs-publish-fab:hover { transform: scale(1.1); }
.xhs-publish-modal { background: #fff; border-radius: 16px; padding: 20px; max-width: 500px; margin: 0 auto; }
.xhs-publish-modal h3 { font-size: 18px; margin-bottom: 16px; color: #333; }
.xhs-publish-modal .form-group { margin-bottom: 12px; }
.xhs-publish-modal label { font-size: 13px; color: #666; margin-bottom: 4px; display: block; }
.xhs-publish-modal input, .xhs-publish-modal textarea, .xhs-publish-modal select { width: 100%; padding: 8px 12px; border: 1px solid #eee; border-radius: 8px; font-size: 14px; box-sizing: border-box; }
.xhs-publish-modal input:focus, .xhs-publish-modal textarea:focus, .xhs-publish-modal select:focus { border-color: #e91e63; outline: none; }
.xhs-cat-bar { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; margin-bottom: 8px; -webkit-overflow-scrolling: touch; }
.xhs-cat-bar::-webkit-scrollbar { display: none; }
.xhs-cat-btn { padding: 6px 16px; border-radius: 20px; font-size: 13px; white-space: nowrap; border: 1px solid #eee; background: #fff; color: #666; cursor: pointer; transition: all 0.2s; }
.xhs-cat-btn.active { background: #e91e63; color: #fff; border-color: #e91e63; }

/* v3.16.0: 精华轮播图 - v3.18.0: 添加响应式比例 + 大屏居中 */
.cm-carousel { position: relative; width: 100%; max-width: 680px; margin: 0 auto 12px; aspect-ratio: 16/9; max-height: 380px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.12); background: #f5f5f5; }
.cm-carousel-track { display: flex; width: 100%; height: 100%; transition: transform 0.5s ease; }
.cm-carousel-track > div { flex: 0 0 100%; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.cm-carousel-track > div img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4); color: #fff; border: none; border-radius: 50%; width: 32px; height: 32px; font-size: 16px; cursor: pointer; z-index: 3; opacity: 0; transition: opacity 0.3s; }
.cm-carousel:hover .cm-carousel-btn { opacity: 1; }
.cm-carousel-btn.prev { left: 8px; }
.cm-carousel-btn.next { right: 8px; }
.cm-carousel-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.cm-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s; }
.cm-carousel-dot.active { background: #fff; width: 20px; border-radius: 4px; }

/* v3.18.0: 大屏PC端农友圈布局优化 - 限制最大宽度、居中、合理栏数 */
.xhs-app-wrap { max-width: 920px; margin: 0 auto; }
.xhs-feed { column-count: 2; column-gap: 10px; }
.xhs-card { break-inside: avoid; background: #fff; border-radius: 12px; overflow: hidden; margin-bottom: 10px; box-shadow: 0 1px 6px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; }
.xhs-card:hover { transform: translateY(-3px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.xhs-card-img { width: 100%; aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center; font-size: 48px; background: linear-gradient(135deg, #f0f4f8 0%, #e8f0fe 100%); position: relative; }
.xhs-card-img img { width: 100%; height: 100%; object-fit: cover; }
.xhs-card-body { padding: 10px 12px 8px; }
.xhs-card-title { font-size: 14px; font-weight: 600; color: #333; line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xhs-card-content { font-size: 12px; color: #888; line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xhs-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.xhs-card-footer { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 10px; }

/* 大屏：3列布局，限制最大宽度 */
@media (min-width: 768px) {
    .cm-carousel { aspect-ratio: 16/9; max-height: 320px; }
    .xhs-app-wrap { max-width: 1100px; }
    .xhs-feed { column-count: 3; column-gap: 14px; }
    .xhs-card-img { aspect-ratio: 1/1; }
}

@media (min-width: 1100px) {
    .xhs-app-wrap { max-width: 1200px; padding: 0 16px; }
    .cm-carousel { max-height: 360px; }
}
.community-like-btn { background: none; border: none; color: #6b7280; cursor: pointer; font-size: 12px; display: flex; align-items: center; gap: 4px; }
.community-like-btn:hover { color: #e91e63; }
.community-like-btn.liked { color: #e91e63; }

/* 专家问答 */
.expert-qa-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow); transition: transform 0.2s; }
.expert-qa-item:hover { transform: translateY(-2px); }
.expert-qa-item.is-mine { border-left: 4px solid var(--primary); }
.expert-qa-question { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.expert-qa-q-icon { color: var(--primary); flex-shrink: 0; font-weight: 700; }
.expert-qa-a-icon { color: #f9a825; flex-shrink: 0; font-weight: 700; margin-right: 6px; }
.expert-qa-answer { font-size: 13px; color: var(--text-light); line-height: 1.7; background: #fffde7; padding: 10px 12px; border-radius: 8px; border-left: 3px solid #fff9c4; }
.expert-qa-meta { display: flex; gap: 12px; font-size: 11px; color: #6b7280; margin-top: 8px; flex-wrap: wrap; }
.expert-ask-form { background: #f8fffe; border: 1px solid #b2dfdb; border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.expert-ask-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 13px; resize: vertical; min-height: 80px; outline: none; font-family: inherit; box-sizing: border-box; }
.expert-ask-form textarea:focus { border-color: var(--primary); }
.expert-ask-form select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; background: #fff; }
.expert-ask-form select:focus { border-color: var(--primary); outline: none; }
.expert-pending-tip { background: #fff3cd; color: #856404; padding: 10px 12px; border-radius: 8px; font-size: 12px; margin-bottom: 12px; }
.expert-my-list { display: flex; flex-direction: column; gap: 10px; }
.expert-my-answer { background: #f1f8e9; padding: 10px 12px; border-radius: 8px; margin-top: 8px; border-left: 3px solid #c5e1a5; font-size: 13px; line-height: 1.7; color: var(--text-light); }
.expert-my-waiting { background: #e3f2fd; color: #1565c0; padding: 10px 12px; border-radius: 8px; margin-top: 8px; font-size: 13px; }
.expert-status-badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 10px; margin-left: auto; font-weight: 500; }
.expert-status-badge.pending { background: #fff3cd; color: #856404; }
.expert-status-badge.answered { background: #d4edda; color: #155724; }
.expert-featured-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #fff8e1; color: #f57f17; font-weight: 500; }

/* 合作接口提示 */
.partner-interface { margin-top: 16px; padding: 14px; background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%); border: 1px dashed var(--primary); border-radius: 12px; }
.partner-interface h5 { font-size: 13px; color: var(--primary-dark); margin-bottom: 4px; }
.partner-interface p { font-size: 12px; color: var(--text-light); line-height: 1.5; }
.partner-api-code { margin-top: 8px; padding: 8px 10px; background: #263238; color: #80cbc4; border-radius: 6px; font-size: 11px; font-family: monospace; overflow-x: auto; }

/* 响应式 */
@media (max-width: 1100px) {
    .weather-hero { flex-direction: column; }
    .weather-now { flex: none; width: 100%; border-radius: 16px 16px 0 0; }
    .weather-forecast-strip { padding: 16px; gap: 4px; }
    .forecast-day { min-width: 52px; padding: 8px 2px; }
    .assistant-grid { grid-template-columns: 1fr; }
    .trend-pest-row { grid-template-columns: 1fr; }
    .trend-pest-row > div { min-height: auto; }
}

/* ═══════════ v3.8.6 田间助手移动端紧凑重构（仅 html[data-device="mobile"] 生效） ═══════════ */

/* 移动端只针对 html[data-device="mobile"] 生效 */
html[data-device="mobile"] {
    --mobile-compact: 1;
}

html[data-device="mobile"] .assistant-grid { padding: 8px 10px; gap: 8px; }
html[data-device="mobile"] .assistant-grid > div { padding: 10px 12px !important; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }

/* 头部压缩 */
html[data-device="mobile"] .chat-header h2 { font-size: 16px; margin-bottom: 4px; }
html[data-device="mobile"] .chat-header h2 .as-icon { font-size: 18px; margin-right: 4px; }
html[data-device="mobile"] .assistant-header-row { flex-wrap: wrap; gap: 4px; align-items: center; }
html[data-device="mobile"] .assistant-header-row p { font-size: 12px; margin: 0; }
html[data-device="mobile"] .field-selector-wrap label { font-size: 11px; }
html[data-device="mobile"] .field-selector-wrap select { font-size: 12px; padding: 3px 8px; }

/* 天气主卡片 — 垂直堆叠，全宽完整展示（无横向溢出） */
html[data-device="mobile"] .weather-hero { flex-direction: column !important; padding: 0; overflow: hidden; }
html[data-device="mobile"] .weather-now {
    flex: none !important;
    width: 100% !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    padding: 10px 14px !important;
    gap: 6px;
    border-radius: 12px 12px 0 0 !important;
}
html[data-device="mobile"] .weather-icon-large { font-size: 34px !important; margin-bottom: 0; line-height: 1; }
html[data-device="mobile"] .weather-temp-large { font-size: 30px !important; line-height: 1; }
html[data-device="mobile"] .weather-desc { font-size: 12px; margin: 0; }
html[data-device="mobile"] .weather-detail {
    font-size: 10px; gap: 8px; line-height: 1.4;
    width: 100%; justify-content: center; margin-top: 2px;
}
html[data-device="mobile"] .weather-detail span { display: inline-flex; align-items: center; gap: 2px; }
html[data-device="mobile"] .weather-detail span i { font-style: normal; }
html[data-device="mobile"] .weather-mini-stats {
    display: flex !important; gap: 6px; margin-top: 2px;
    font-size: 10px; color: #1565c0; width: 100%; justify-content: center;
}
html[data-device="mobile"] .wms-item {
    background: rgba(255,255,255,0.65); padding: 2px 8px;
    border-radius: 8px; font-weight: 600;
}
html[data-device="mobile"] #wms-min, html[data-device="mobile"] #wms-max, html[data-device="mobile"] #wms-rain { display: inline-block; }

html[data-device="mobile"] .weather-forecast-strip {
    flex: none; width: 100%; min-width: 0;
    padding: 8px 6px !important;
    gap: 2px;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(135deg, #f5faf6 0%, #ffffff 100%);
    justify-content: space-between;
}
html[data-device="mobile"] .forecast-day {
    min-width: 0 !important;
    flex: 1 1 0 !important;
    max-width: 56px;
    padding: 6px 2px !important;
    gap: 2px;
    border-radius: 6px;
}
html[data-device="mobile"] .forecast-day .fd-date { font-size: 9px; line-height: 1.1; }
html[data-device="mobile"] .forecast-day .fd-icon { font-size: 18px !important; }
html[data-device="mobile"] .forecast-day .fd-cond { font-size: 8px; max-width: 100%; width: 100%; line-height: 1.1; }
html[data-device="mobile"] .forecast-day .fd-temp { font-size: 11px; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
html[data-device="mobile"] .forecast-day .fd-temp .low { font-size: 9px; }
html[data-device="mobile"] .forecast-day .fd-rain { font-size: 7px; }

/* 趋势 + 预警：移动端上下堆叠 */
html[data-device="mobile"] .trend-pest-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    background: transparent !important;
    padding: 0 !important;
}
html[data-device="mobile"] .trend-pest-row .weather-trend-panel,
html[data-device="mobile"] .trend-pest-row .pest-forecast-panel {
    display: block;
    padding: 10px 12px !important;
    border-radius: 0 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-bottom: none;
}
html[data-device="mobile"] .trend-pest-row .weather-trend-panel { border-radius: 12px 12px 0 0 !important; border-bottom: 1px dashed var(--border); }
html[data-device="mobile"] .trend-pest-row .pest-forecast-panel { border-radius: 0 0 12px 12px !important; border-bottom: 1px solid var(--border); }

/* 趋势柱状图压缩 — 关键：高度大幅压缩 */
html[data-device="mobile"] .trend-chart {
    min-height: 90px !important;
    height: 90px !important;
    padding: 14px 2px 4px !important;
    gap: 2px !important;
    border-bottom: none;
}
html[data-device="mobile"] .trend-bar-wrap { min-width: 28px !important; gap: 2px; }
html[data-device="mobile"] .trend-bar { width: 18px !important; border-radius: 3px 3px 2px 2px; }
html[data-device="mobile"] .trend-bar.low { width: 14px !important; border-radius: 2px 2px 3px 3px; }
html[data-device="mobile"] .trend-bar.high::after,
html[data-device="mobile"] .trend-bar.low::after { display: none; }
html[data-device="mobile"] .trend-bar-wrap::before {
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 6px;
    background: #ef5350;
    box-shadow: none;
}
html[data-device="mobile"] .trend-bar-wrap .trend-low-tag {
    font-size: 9px;
    padding: 0 3px;
    border-radius: 4px;
}
html[data-device="mobile"] .trend-bar-base { width: 24px !important; height: 3px !important; }
html[data-device="mobile"] .trend-bar-label { font-size: 9px; margin-top: 1px; }

/* SVG sparkline 折线图（替代柱状图） */
html[data-device="mobile"] .trend-chart-svg {
    width: 100%;
    height: 100%;
    display: block;
}
html[data-device="mobile"] .trend-chart-svg .sparkline-area { fill: url(#sparklineGradient); opacity: 0.35; }
html[data-device="mobile"] .trend-chart-svg .sparkline-line { fill: none; stroke: url(#sparklineLineGradient); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
html[data-device="mobile"] .trend-chart-svg .sparkline-dot { fill: #ef5350; stroke: white; stroke-width: 1.5; }
html[data-device="mobile"] .trend-chart-svg .sparkline-dot-min { fill: #1976d2; }
html[data-device="mobile"] .trend-chart-svg .sparkline-label { font-size: 9px; font-weight: 700; fill: #c62828; }
html[data-device="mobile"] .trend-chart-svg .sparkline-label-min { font-size: 9px; font-weight: 700; fill: #1565c0; }
html[data-device="mobile"] .trend-chart-svg .sparkline-axis { font-size: 8px; fill: #999; }

/* 趋势信息条：紧凑横向一行 */
html[data-device="mobile"] .trend-info {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 0 !important;
    margin-top: 6px !important;
    padding: 4px 0 !important;
    border-radius: 8px !important;
}
html[data-device="mobile"] .trend-info-item { padding: 2px 4px !important; gap: 1px; }
html[data-device="mobile"] .trend-info-label { font-size: 9px !important; }
html[data-device="mobile"] .trend-info-value { font-size: 11px !important; }

/* 面板头压缩 */
html[data-device="mobile"] .panel-header {
    margin-bottom: 6px !important;
    padding-bottom: 4px !important;
    gap: 6px;
}
html[data-device="mobile"] .panel-header h3 { font-size: 13px !important; }
html[data-device="mobile"] .panel-mini-stat { font-size: 10px !important; padding: 1px 6px !important; }

/* 病虫害预警：紧凑列表，仅显示前 3 条 */
html[data-device="mobile"] #pest-forecast-list {
    max-height: 220px !important;
    overflow-y: auto;
    padding-right: 2px;
}
html[data-device="mobile"] .pest-risk-item {
    padding: 6px 8px !important;
    margin-bottom: 4px !important;
    border-radius: 8px;
}
html[data-device="mobile"] .pest-risk-header { margin-bottom: 2px !important; }
html[data-device="mobile"] .pest-risk-name { font-size: 12px !important; }
html[data-device="mobile"] .pest-risk-badge { font-size: 9px !important; padding: 1px 5px !important; }
html[data-device="mobile"] .pest-risk-advice { font-size: 11px !important; line-height: 1.4; }
html[data-device="mobile"] .pest-risk-weather { font-size: 10px !important; margin-top: 2px; }
html[data-device="mobile"] .mobile-pest-more {
    display: block !important;
    width: 100%;
    margin-top: 6px;
    padding: 4px 8px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}
html[data-device="mobile"] .mobile-pest-more.expanded { background: var(--primary); color: white; }
html[data-device="mobile"] #pest-forecast-list.collapsed .pest-risk-item:nth-child(n+4) { display: none; }

/* v3.22.85: 农事提醒 - 纵向卡片堆叠（取代v3.22.81横向滚动）*/
html[data-device="mobile"] .alerts-panel h3 { display: none; }
html[data-device="mobile"] .alerts-panel .panel-header { display: flex; }
html[data-device="mobile"] .alerts-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 5px !important;
    padding: 4px 0 !important;
}
html[data-device="mobile"] .alert-item {
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    padding: 8px 11px !important;
    border-radius: 9px;
    font-size: 12px !important;
    line-height: 1.4;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
    position: relative;
    overflow: hidden;
}
html[data-device="mobile"] .alert-item-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1px;
}
html[data-device="mobile"] .alert-icon { font-size: 16px !important; }
html[data-device="mobile"] .alert-level-tag {
    font-size: 9px !important;
    padding: 1px 6px !important;
    font-weight: 600;
}
html[data-device="mobile"] .alert-title {
    font-size: 13px !important;
    line-height: 1.3;
    font-weight: 600;
}
html[data-device="mobile"] .alert-desc {
    font-size: 11px !important;
    line-height: 1.5;
    color: var(--text-light);
}

/* v3.22.87: 移动端门店描述分段式布局 - 紧凑 */
html[data-device="mobile"] .stores-feature-desc {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    padding: 7px 10px !important;
}
html[data-device="mobile"] .sfd-info { gap: 1px; }
html[data-device="mobile"] .sfd-title { font-size: 12px !important; }
html[data-device="mobile"] .sfd-text { font-size: 10px !important; line-height: 1.4; }
html[data-device="mobile"] .sfd-action {
    display: flex;
    justify-content: center;
}
html[data-device="mobile"] .partner-apply-badge {
    font-size: 10px !important;
    padding: 3px 7px !important;
    gap: 3px !important;
    width: auto;
    justify-content: center;
}
html[data-device="mobile"] .pab-dot { width: 4px; height: 4px; }
html[data-device="mobile"] .pab-arrow { font-size: 11px !important; }
html[data-device="mobile"] .alert-item .alert-icon {
    flex-shrink: 0;
    font-size: 16px !important;
    line-height: 1;
}
html[data-device="mobile"] .no-alert {
    font-size: 12px !important;
    padding: 8px !important;
    color: #6b7280;
}

/* 附近门店：纵向堆叠完整展示（v3.22.16 改为竖向，不再横滚） */
html[data-device="mobile"] .stores-panel h3 { display: none; }
html[data-device="mobile"] .stores-panel .panel-header { display: flex; }
html[data-device="mobile"] .stores-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    overflow-x: hidden !important;
    max-height: none !important;
    padding: 4px 0 !important;
}
html[data-device="mobile"] .stores-list::-webkit-scrollbar { height: 2px; }
html[data-device="mobile"] .stores-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 1px; }
html[data-device="mobile"] .store-card {
    flex: 0 0 auto !important;
    max-width: 100% !important;
    flex-direction: row !important;
    padding: 8px !important;
    gap: 8px !important;
    overflow: hidden;
}
html[data-device="mobile"] .store-media {
    flex: 0 0 70px !important;
    width: 70px !important;
    height: 70px !important;
    aspect-ratio: auto !important;
    border-radius: 8px !important;
}
html[data-device="mobile"] .store-img { height: 70px !important; width: 70px !important; object-fit: cover !important; }
html[data-device="mobile"] .store-body { padding: 0 !important; flex: 1; min-width: 0; overflow: hidden; }
html[data-device="mobile"] .store-head { gap: 4px; margin-bottom: 2px; }
html[data-device="mobile"] .store-name { font-size: 13px !important; gap: 2px; margin-bottom: 0; }
html[data-device="mobile"] .store-name .store-icon { font-size: 13px; }
html[data-device="mobile"] .store-name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-device="mobile"] .store-dist { font-size: 10px !important; padding: 1px 6px !important; }
html[data-device="mobile"] .store-addr { font-size: 11px !important; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
html[data-device="mobile"] .store-meta { font-size: 11px !important; line-height: 1.3; gap: 4px; flex-wrap: wrap; }
html[data-device="mobile"] .store-services { display: none !important; }
html[data-device="mobile"] .store-badge { font-size: 9px !important; padding: 1px 4px !important; }

/* 粮价走势图（应用到市场行情应用页后） */
html[data-device="mobile"] .market-trend-chart { height: 220px !important; }
html[data-device="mobile"] .market-trend-hint { font-size: 10px; padding: 4px 6px; }

/* 桌面端：隐藏移动端专属元素 */
html:not([data-device="mobile"]) .mobile-pest-more { display: none !important; }
html:not([data-device="mobile"]) .weather-mini-stats { display: none !important; }

/* v3.8.6: 超小屏幕 田间助手 进一步压缩 */
@media (max-width: 380px) {
    html[data-device="mobile"] .assistant-grid { padding: 6px 8px; gap: 6px; }
    html[data-device="mobile"] .weather-now { padding: 8px 10px !important; gap: 4px; }
    html[data-device="mobile"] .weather-icon-large { font-size: 28px !important; }
    html[data-device="mobile"] .weather-temp-large { font-size: 26px !important; }
    html[data-device="mobile"] .weather-detail { gap: 6px; font-size: 9px; }
    html[data-device="mobile"] .weather-mini-stats { gap: 4px; font-size: 9px; }
    html[data-device="mobile"] .wms-item { padding: 1px 6px; }
    html[data-device="mobile"] .forecast-day { max-width: 48px; padding: 4px 1px !important; gap: 1px !important; }
    html[data-device="mobile"] .forecast-day .fd-icon { font-size: 15px !important; }
    html[data-device="mobile"] .forecast-day .fd-cond { font-size: 7px !important; line-height: 1; }
    html[data-device="mobile"] .forecast-day .fd-temp { font-size: 10px !important; }
    html[data-device="mobile"] .forecast-day .fd-temp .low { font-size: 8px !important; }
    html[data-device="mobile"] .forecast-day .fd-rain { font-size: 6px !important; }
    html[data-device="mobile"]     .trend-chart { min-height: 70px !important; height: 70px !important; }
    html[data-device="mobile"] .store-media { flex: 0 0 56px !important; width: 56px !important; height: 56px !important; }
    html[data-device="mobile"] .store-img { height: 56px !important; width: 56px !important; }
    html[data-device="mobile"] .store-dist { font-size: 9px !important; padding: 1px 4px !important; }
}

/* ═══════════ 六、农友社区样式 ═══════════ */
.community-subtabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.com-subtab { padding: 10px 20px; border: none; border-radius: 20px; background: var(--card-bg); color: var(--text-light); font-size: 14px; cursor: pointer; transition: all 0.2s; border: 1px solid var(--border); }
.com-subtab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.com-subtab:hover:not(.active) { border-color: var(--primary); color: var(--primary); }
.com-panel { display: none; }
.com-panel.active { display: block; }
.com-post-form { background: var(--card-bg); border-radius: 14px; padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.com-input { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; outline: none; transition: border-color 0.2s; box-sizing: border-box; }
.com-input:focus { border-color: var(--primary); }
.com-list { display: flex; flex-direction: column; gap: 14px; }
.com-card { background: var(--card-bg); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); transition: transform 0.2s; }
.com-card:hover { transform: translateY(-2px); }
.com-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.com-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; flex-shrink: 0; }
.com-author { font-size: 14px; font-weight: 600; color: var(--text); }
.com-time { font-size: 12px; color: var(--text-light); }
.com-like-btn { margin-left: auto; padding: 6px 12px; border: 1px solid var(--border); border-radius: 20px; background: var(--card-bg); cursor: pointer; font-size: 13px; color: var(--text-light); transition: all 0.2s; }
.com-like-btn:hover { border-color: var(--primary); color: var(--primary); }
.com-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.com-content { font-size: 14px; color: var(--text-light); line-height: 1.6; }
.com-tag { display: inline-block; padding: 2px 8px; background: var(--primary-light); color: var(--primary-dark); border-radius: 10px; font-size: 11px; margin-left: 4px; }
.com-budget { margin-left: auto; font-size: 16px; font-weight: 700; color: var(--accent); }
.com-join-btn { margin-top: 10px; align-self: flex-start; padding: 8px 20px; font-size: 13px; }
.gb-progress-wrap { width: 100%; height: 8px; background: #f0f0f0; border-radius: 4px; margin: 8px 0; overflow: hidden; }
.gb-progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--primary)); border-radius: 4px; transition: width 0.3s; }
.com-status-badge {
    display: inline-block;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: 500;
}
.com-status-badge.pending { background: #fff3cd; color: #856404; }
.com-status-badge.approved { background: #d4edda; color: #155724; }
.com-status-badge.rejected { background: #f8d7da; color: #721c24; }
.com-status-badge.open { background: #e8f5e9; color: #2e7d32; }
.com-status-badge.full { background: #ffebee; color: #c62828; }
.experts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.expert-card { background: var(--card-bg); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); display: flex; gap: 14px; transition: transform 0.2s; }
.expert-card:hover { transform: translateY(-3px); }
.expert-avatar { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.expert-avatar img { width: 100%; height: 100%; object-fit: cover; }
.expert-info { flex: 1; min-width: 0; }
.expert-name { font-size: 16px; font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }
.expert-title-badge { font-size: 11px; font-weight: 400; color: var(--text-light); padding: 2px 8px; background: #f0f0f0; border-radius: 10px; }
.expert-tags { margin-bottom: 6px; }
.expert-bio { font-size: 13px; color: var(--text-light); line-height: 1.5; margin-bottom: 6px; }
.expert-call { font-size: 12px; padding-top: 6px; border-top: 1px solid var(--border); }

/* 专家拨打按钮 */
.expert-call-btn {
    display: inline-block;
    padding: 6px 14px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.expert-call-btn:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(22,163,74,0.4); }
.expert-call-btn:active { transform: scale(0.98); }

/* ═══════════ 专家通话弹窗样式 ═══════════ */
#modal-call .modal-dialog { padding: 0; overflow: hidden; }

.call-dialing, .call-calling, .call-ending, .call-ended, .call-error {
    text-align: center; padding: 40px 24px; color: #fff;
}

.call-avatar-big {
    width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 16px;
    background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center;
    font-size: 40px; position: relative;
}
.call-avatar-big.active {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    box-shadow: 0 0 30px rgba(76,175,80,0.5);
}
.call-avatar-big.active::before {
    content: ''; position: absolute; top: -8px; left: -8px; right: -8px; bottom: -8px;
    border-radius: 50%; border: 2px solid rgba(76,175,80,0.3);
    animation: call-ring 1.5s ease-out infinite;
}
@keyframes call-ring {
    0% { transform: scale(0.95); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

.call-name { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.call-phone { font-size: 16px; color: #4CAF50; margin-bottom: 16px; letter-spacing: 1px; }
.call-status-text { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 12px; }

.call-pulse {
    width: 12px; height: 12px; border-radius: 50%; background: #4CAF50; margin: 20px auto 0;
    animation: call-pulse-anim 1s ease-in-out infinite;
}
@keyframes call-pulse-anim {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.call-timer {
    font-size: 32px; font-weight: 300; color: #fff; margin: 16px 0;
    font-variant-numeric: tabular-nums; letter-spacing: 2px;
}
.call-timer-sep { margin: 0 8px; color: rgba(255,255,255,0.4); }

.call-progress-bar {
    width: 100%; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px;
    margin: 12px 0; overflow: hidden;
}
.call-progress-fill {
    height: 100%; background: linear-gradient(90deg, #4CAF50, #FF9800, #f44336);
    border-radius: 2px; transition: width 1s linear; width: 0%;
}

.call-hint { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 24px; }

.call-hangup-btn {
    padding: 12px 32px; border: none; border-radius: 28px;
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
    transition: all 0.2s; box-shadow: 0 4px 16px rgba(244,67,54,0.4);
}
.call-hangup-btn:hover { transform: scale(1.05); }
.call-hangup-btn:active { transform: scale(0.98); }

.call-spinner {
    width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 16px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: #4CAF50;
    animation: call-spin 0.8s linear infinite;
}
@keyframes call-spin { to { transform: rotate(360deg); } }

.call-duration { font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 8px; }

.call-icon-ended {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
    background: rgba(76,175,80,0.2); display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #4CAF50; font-weight: bold;
}
.call-icon-error {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
    background: rgba(244,67,54,0.2); display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #f44336; font-weight: bold;
}

.call-result-info {
    background: rgba(255,255,255,0.08); border-radius: 10px; padding: 16px;
    margin: 16px 0; font-size: 14px; color: rgba(255,255,255,0.9); line-height: 2;
    text-align: left;
}
.call-result-info strong { color: #4CAF50; font-size: 16px; }

.call-timeout-tip {
    font-size: 13px; color: #FF9800; margin: 8px 0 16px;
    background: rgba(255,152,0,0.1); padding: 8px 12px; border-radius: 8px;
}

.call-error-msg { font-size: 14px; color: #f44336; margin-bottom: 16px; }

.call-close-btn {
    padding: 10px 28px; border: 1px solid rgba(255,255,255,0.3); border-radius: 24px;
    background: transparent; color: #fff; font-size: 14px; cursor: pointer; transition: all 0.2s;
}
.call-close-btn:hover { background: rgba(255,255,255,0.1); }

/* ═══════════ 会员弹窗样式 ═══════════ */
.vip-modal {
    position: relative;
    width: 92vw;
    max-width: 480px;
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
    background: white;
    border: none;
}
.vip-header {
    background: linear-gradient(145deg, #168a36 0%, #0f6b28 55%, #0a4a1b 100%);
    color: white;
    text-align: center;
    padding: 36px 24px 28px;
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}
.vip-header::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -40%;
    width: 180%;
    height: 180%;
    background: radial-gradient(circle at 25% 15%, rgba(255, 215, 0, 0.28), transparent 42%),
                radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.10), transparent 32%);
    pointer-events: none;
}
.vip-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.12), transparent);
    pointer-events: none;
}
.vip-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.95);
    font-size: 26px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.vip-close:hover {
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    transform: scale(1.05);
}
.vip-avatar-ring {
    position: relative;
    width: 92px;
    height: 92px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vip-avatar-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #ffd700, #ffeb3b, #ffd700, #ffaa00, #ffd700);
    animation: vip-rotate 5s linear infinite;
    filter: blur(1px);
}
.vip-avatar-ring::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff8dc, #ffe082);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.08);
}
.vip-avatar {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    background: linear-gradient(145deg, #ffffff, #fff3c4);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18), inset 0 -2px 6px rgba(0,0,0,0.06);
}
.vip-shine {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 3;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, rgba(255,255,255,0) 70%);
    opacity: 0.9;
}
@keyframes vip-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.vip-title-wrap {
    position: relative;
    z-index: 2;
    display: inline-block;
    padding: 10px 22px;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(2px);
    margin-bottom: 12px;
}
.vip-header h3 {
    position: relative;
    z-index: 1;
    font-size: 22px;
    font-weight: 900;
    margin: 0;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35), 0 0 20px rgba(255,215,0,0.25);
}
.vip-subtitle {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 13px;
    color: rgba(255, 248, 220, 0.95);
    letter-spacing: 1.5px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.vip-price-bar {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 8px 22px;
    backdrop-filter: blur(4px);
    margin-top: 4px;
}
.vip-price-prefix {
    font-size: 13px;
    opacity: 0.95;
    font-weight: 600;
}
.vip-price {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}
.vip-price .price-num {
    font-size: 34px;
    font-weight: 900;
    margin-right: 2px;
}
.vip-price .price-unit { opacity: 0.95; }
.vip-benefits, .vip-compare, .vip-form { padding: 22px 24px; border-bottom: 1px solid var(--border); }
.vip-benefits h4, .vip-compare h4, .vip-form h4 {
    font-size: 16px;
    margin: 0 0 16px;
    color: var(--text);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vip-benefits h4::before {
    content: '';
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--primary), #8bc34a);
}
.benefit-list { display: flex; flex-direction: column; gap: 12px; }
.benefit-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #edf4ed;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(20, 90, 37, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}
.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(20, 90, 37, 0.08);
}
.benefit-item > div { flex: 1; min-width: 0; }
.benefit-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.benefit-icon svg { width: 24px; height: 24px; fill: currentColor; }
.vip-icon-qa { background: linear-gradient(135deg, #e3f2fd, #bbdefb); color: #1565c0; }
.vip-icon-call { background: linear-gradient(135deg, #fce4ec, #f8bbd0); color: #c62828; }
.vip-icon-guide { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); color: #2e7d32; }
.vip-icon-delivery { background: linear-gradient(135deg, #fff3e0, #ffe0b2); color: #ef6c00; }
.vip-icon-vip { background: linear-gradient(135deg, #fffde7, #fff9c4); color: #f9a825; }
.benefit-item strong { font-size: 15px; color: var(--text); }
.benefit-item p { margin: 4px 0 0; font-size: 12px; color: var(--text-light); line-height: 1.45; }
.benefit-tag {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #ff9800, #ff5722);
    padding: 3px 8px;
    border-radius: 999px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(255, 87, 34, 0.25);
}
.vip-compare-table { width: 100%; border-collapse: collapse; font-size: 13px; border-radius: 10px; overflow: hidden; }
.vip-compare-table th, .vip-compare-table td { padding: 11px 10px; text-align: center; border-bottom: 1px solid #eef2f0; }
.vip-compare-table th { background: #f3faf4; color: var(--text-light); font-weight: 600; }
.vip-compare-table td:first-child { text-align: left; color: var(--text); font-weight: 500; }
.vip-compare-table td:last-child { color: var(--primary); font-weight: 700; }
.vip-compare-table tbody tr:hover { background: #f8fff8; }
.pay-options { display: flex; gap: 10px; }
.pay-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 10px;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.pay-option input { display: none; }
.pay-option:has(input:checked) { border-color: var(--primary); background: #f0fff0; box-shadow: 0 2px 8px rgba(26,127,55,0.12); }
.pay-option span { font-size: 14px; font-weight: 500; }
.vip-tip { font-size: 12px; color: var(--text-light); margin: 10px 0; text-align: center; }

/* 当前会员权益面板 */
.vip-current-benefits {
    padding: 22px 24px; border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #f6fff6, #ffffff);
}
.vip-current-benefits h4 {
    font-size: 16px; color: var(--text); margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}
.vip-current-benefits h4::before {
    content: ''; display: inline-block; width: 4px; height: 18px;
    border-radius: 2px; background: linear-gradient(180deg, var(--primary), #8bc34a);
}
.current-benefit-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.cb-card {
    background: #ffffff; border: 1px solid #e3f2e3; border-radius: 14px;
    padding: 16px; text-align: center; box-shadow: 0 2px 8px rgba(20,90,37,0.05);
    transition: transform 0.2s, box-shadow 0.2s; position: relative; cursor: default;
}
.cb-card[class*="cb-click-"] { cursor: pointer; }
.cb-card[class*="cb-click-"]:hover {
    transform: translateY(-3px); box-shadow: 0 8px 20px rgba(20,90,37,0.15);
    border-color: var(--primary);
}
.cb-card .cb-icon { font-size: 26px; margin-bottom: 4px; }
.cb-card .cb-arrow {
    position: absolute; top: 12px; right: 14px; font-size: 18px; color: var(--primary);
    opacity: 0; transition: opacity 0.2s, transform 0.2s;
}
.cb-card[class*="cb-click-"]:hover .cb-arrow { opacity: 1; transform: translateX(2px); }
.cb-card .cb-tip { font-size: 11px; color: var(--primary); margin-top: 6px; opacity: 0.85; }
.cb-card { padding: 16px; }
.cb-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(20,90,37,0.1); }
.cb-card .cb-num { font-size: 28px; font-weight: 800; color: var(--primary-dark); line-height: 1.2; }
.cb-card .cb-label { font-size: 13px; color: var(--text); font-weight: 600; margin-top: 6px; }
.cb-card .cb-sub { font-size: 11px; color: var(--text-light); margin-top: 4px; }
.current-benefit-tip {
    margin-top: 14px; padding: 10px 14px; background: #fff8e1; border-radius: 10px;
    font-size: 12px; color: #7c4d00; text-align: center; border: 1px solid #ffe082;
}
/* 续费板块 */
.vip-renewal {
    margin-top: 18px;
    padding: 18px;
    background: linear-gradient(145deg, #fff8e1, #fff3c4);
    border: 1px solid #ffe082;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(255, 170, 0, 0.12);
}
.vip-renewal .renewal-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.vip-renewal .renewal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #ff9800, #ff5722);
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(255, 87, 34, 0.25);
    flex-shrink: 0;
}
.vip-renewal .renewal-text {
    font-size: 13px;
    color: #7c4d00;
    font-weight: 500;
}
.vip-renewal .renewal-price {
    text-align: center;
    margin-bottom: 12px;
}
.vip-renewal .renewal-amount {
    font-size: 32px;
    font-weight: 900;
    color: #e65100;
    margin-right: 2px;
}
.vip-renewal .renewal-unit {
    font-size: 13px;
    color: #8d6e63;
    font-weight: 500;
}
.vip-renewal .btn-primary {
    background: linear-gradient(90deg, #ff9800, #ff5722);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}
.vip-renewal .btn-primary:hover {
    background: linear-gradient(90deg, #f57c00, #e64a19);
    box-shadow: 0 6px 16px rgba(255, 87, 34, 0.4);
}
.vip-renewal .vip-tip {
    margin-top: 10px;
    color: #8d6e63;
}
@media (max-width: 768px) {
    .current-benefit-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cb-card { padding: 14px 10px; }
    .cb-card .cb-num { font-size: 24px; }
    .vip-current-benefits { padding: 18px; }
}
#modal-call .modal-close { position: absolute; top: 12px; right: 16px; background: rgba(255,255,255,0.12); border: none; width: 34px; height: 34px; border-radius: 50%; font-size: 24px; line-height: 34px; color: rgba(255,255,255,0.9); cursor: pointer; transition: all 0.2s; z-index: 2; }
#modal-call .modal-close:hover { color: white; background: rgba(255,255,255,0.22); }
@media (max-width: 768px) {
    .experts-grid { grid-template-columns: 1fr; }
    .vip-modal { width: 94vw; max-height: 88vh; border-radius: 18px; }
    .vip-header { padding: 32px 18px 24px; border-radius: 18px 18px 0 0; }
    .vip-avatar-ring { width: 84px; height: 84px; }
    .vip-avatar { width: 72px; height: 72px; font-size: 38px; }
    .vip-close { top: 10px; right: 10px; width: 32px; height: 32px; font-size: 22px; }
    .vip-title-wrap { padding: 8px 18px; }
    .vip-header h3 { font-size: 20px; }
    .vip-benefits, .vip-compare, .vip-form { padding: 18px; }
}

/* ═══════════ 社区信息滚动展示 ═══════════ */
/* v3.23.23: 佣金列表不嵌套滚动——外层 .modal-body 已自带 overflow-y:auto+max-height:85vh，唯一滚动由其接管；
   这里仅给个极小底距让最后一张卡不贴边，不限制 max-height 避免嵌套滚动卡顿及小窗口下卡片被切的问题 */
.comm-list { padding-bottom: 12px; }
/* v3.23.22: 佣金筛选行（全部/待结算/已结算/刷新）— 窄屏自动换行 */
.comm-filter-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; align-items: center; }
.comm-filter-bar .comm-filter-btn { flex: 0 0 auto; }
.comm-filter-bar #comm-refresh { margin-left: auto; }
@media (max-width: 480px) {
    .comm-filter-bar .comm-filter-btn { padding: 5px 10px; font-size: 11px; }
    .comm-filter-bar #comm-refresh { margin-left: 0; }
}
.com-scroller {
    overflow: hidden;
    position: relative;
    max-height: 400px;
}
.com-scroller-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: comScrollUp 20s linear infinite;
}
.com-scroller:hover .com-scroller-inner { animation-play-state: paused; }
@keyframes comScrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
.com-scroller-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    flex-shrink: 0;
}
.com-scroller-mask {
    position: absolute;
    left: 0; right: 0; pointer-events: none;
    z-index: 1;
}
.com-scroller-mask.top { top: 0; height: 30px; background: linear-gradient(to bottom, var(--bg), transparent); }
.com-scroller-mask.bottom { bottom: 0; height: 30px; background: linear-gradient(to top, var(--bg), transparent); }

/* ═══ 权益服务（上门指导/购物车）通用样式 ═══ */
.srv-loading { text-align: center; padding: 32px; color: var(--text-light); }
.srv-empty { text-align: center; padding: 20px; color: #6b7280; font-size: 13px; background: #f8f8f8; border-radius: 8px; }
.srv-remaining-tip {
    background: linear-gradient(90deg, #e8f5e9, #f1f8e9);
    border: 1px solid #c8e6c9; border-radius: 8px; padding: 10px 14px;
    margin-bottom: 14px; font-size: 13px; color: var(--primary-dark);
}
.srv-remaining-tip strong { font-size: 18px; color: var(--primary); padding: 0 2px; }
.srv-input {
    width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px;
    font-size: 14px; box-sizing: border-box; background: #fff;
}
.srv-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(76,175,80,0.1); }
.srv-my-section { margin-top: 20px; padding-top: 16px; border-top: 1px dashed #e0e0e0; }
.srv-my-section h4 { font-size: 14px; color: var(--text); margin: 0 0 10px; }
.srv-badge {
    display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600;
}
.srv-badge.pending { background: #fff3e0; color: #e65100; }
.srv-badge.confirmed { background: #e3f2fd; color: #1565c0; }
.srv-badge.completed { background: #e8f5e9; color: #2e7d32; }
.srv-badge.rejected, .srv-badge.cancelled { background: #ffebee; color: #c62828; }
.srv-record {
    border: 1px solid #eee; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; background: #fafafa;
}
.srv-record-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.srv-type { font-weight: 600; font-size: 13px; color: var(--text); }
.srv-record-body { font-size: 12px; color: #666; line-height: 1.7; }
/* v3.23.1: 大农户免邮页紧凑模式 —— 仅显示订单列表 */
.modal-shopping--dnh .srv-my-section { margin-top: 0; padding-top: 0; border-top: none; }
.modal-shopping--dnh .srv-record { padding: 8px 10px; margin-bottom: 6px; }
.modal-shopping--dnh .srv-record-body { line-height: 1.6; }
.srv-order-items { margin: 4px 0; padding-left: 18px; color: #888; }

/* 购物车列表 */
.cart-list { max-height: 280px; overflow-y: auto; border: 1px solid #eee; border-radius: 8px; margin-bottom: 12px; }
.cart-item { display: flex; align-items: center; padding: 10px; border-bottom: 1px solid #f5f5f5; }
.cart-item:last-child { border-bottom: none; }
.cart-emoji { font-size: 28px; margin-right: 10px; }
.cart-info { flex: 1; min-width: 0; }
.cart-name { font-size: 13px; font-weight: 600; color: var(--text); }
.cart-spec { font-size: 11px; color: #6b7280; margin: 2px 0; }
.cart-price { font-size: 14px; color: #e65100; font-weight: 700; }
.cart-qty { display: flex; align-items: center; gap: 4px; }
.qty-minus, .qty-plus {
    width: 28px; height: 28px; border: 1px solid #ddd; background: #fff; border-radius: 6px;
    font-size: 16px; cursor: pointer; color: var(--primary); font-weight: 700;
}
.qty-minus:hover, .qty-plus:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.qty-input {
    width: 50px; height: 28px; border: 1px solid #ddd; border-radius: 6px; text-align: center;
    font-size: 14px; background: #fafafa;
}
.cart-summary {
    display: flex; justify-content: space-between; align-items: center;
    background: #f8f8f8; padding: 12px 14px; border-radius: 8px; margin-bottom: 14px;
    font-size: 14px;
}
.cart-summary strong { color: #e65100; font-size: 16px; }
.pay-options { display: flex; gap: 12px; }
.pay-option { cursor: pointer; padding: 8px 14px; border: 1px solid #ddd; border-radius: 8px; }
.pay-option.active { border-color: var(--primary); background: #e8f5e9; }
.cart-success { text-align: center; padding: 20px 10px; }
.cart-success-icon { font-size: 56px; margin-bottom: 8px; }
.cart-success h3 { color: var(--primary-dark); margin: 0 0 16px; }
.cart-success-detail {
    background: #f8f8f8; border-radius: 8px; padding: 14px;
    text-align: left; font-size: 13px; line-height: 1.8; margin-bottom: 16px;
}
.cart-success-row.total { font-size: 15px; border-top: 1px solid #ddd; padding-top: 8px; margin-top: 8px; }
.cart-success-row strong { color: #e65100; }
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }

/* 3步流程通用样式 */
.srv-steps {
    display: flex; align-items: center; justify-content: center;
    margin: 12px 0 18px; gap: 0;
}
.srv-step-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: #6b7280; transition: color .2s;
}
.srv-step-item.active { color: var(--primary); font-weight: 600; }
.srv-step-item.done { color: var(--primary); }
.srv-step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%;
    background: #e0e0e0; color: #fff; font-size: 12px; font-weight: 700;
    transition: background .2s;
}
.srv-step-item.active .srv-step-num { background: var(--primary); }
.srv-step-item.done .srv-step-num { background: var(--primary); }
.srv-step-line {
    flex: 0 0 30px; height: 2px; background: #e0e0e0; margin: 0 6px;
}
.srv-step-content { animation: srv-fade-in .25s ease; }
@keyframes srv-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.srv-step-btns { display: flex; gap: 10px; margin-top: 14px; }
.srv-step-btn { flex: 1; }
.btn-secondary {
    background: #f5f5f5; color: #666; border: 1px solid #ddd;
    padding: 10px 16px; border-radius: 8px; font-size: 14px;
    cursor: pointer; transition: all .2s;
}
.btn-secondary:hover { background: #eee; }

/* 田块选择列表（卡片式单选） */
.field-select-list {
    display: flex; flex-direction: column; gap: 8px;
}
.field-select-card {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border: 2px solid #eee; border-radius: 10px;
    cursor: pointer; transition: all .2s; background: #fff;
}
.field-select-card:hover { border-color: var(--primary-light, #81c784); background: #f9fbf9; }
.field-select-card.selected {
    border-color: var(--primary); background: #e8f5e9;
    box-shadow: 0 2px 8px rgba(22,163,74,.12);
}
.field-select-card .fsc-emoji { font-size: 24px; }
.field-select-card .fsc-info { flex: 1; min-width: 0; }
.field-select-card .fsc-name { font-size: 14px; font-weight: 600; color: var(--text); }
.field-select-card .fsc-meta { font-size: 12px; color: #6b7280; margin-top: 2px; }
.field-select-card .fsc-check {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid #ddd; flex-shrink: 0; transition: all .2s;
}
.field-select-card.selected .fsc-check {
    border-color: var(--primary); background: var(--primary);
    position: relative;
}
.field-select-card.selected .fsc-check::after {
    content: '✓'; color: #fff; font-size: 12px;
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
}

/* 地址选项（单选列表） */
.addr-options { display: flex; flex-direction: column; gap: 8px; }
.addr-option {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px; border: 2px solid #eee; border-radius: 10px;
    cursor: pointer; transition: all .2s; background: #fff;
}
.addr-option:hover { border-color: var(--primary-light, #81c784); }
.addr-option.selected {
    border-color: var(--primary); background: #e8f5e9;
}
.addr-option .ao-radio {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid #ddd; flex-shrink: 0; margin-top: 2px;
    transition: all .2s; position: relative;
}
.addr-option.selected .ao-radio {
    border-color: var(--primary); background: var(--primary);
}
.addr-option.selected .ao-radio::after {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: #fff; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.addr-option .ao-content { flex: 1; min-width: 0; }
.addr-option .ao-label { font-size: 12px; color: #6b7280; margin-bottom: 2px; }
.addr-option .ao-text { font-size: 13px; color: var(--text); line-height: 1.5; word-break: break-all; }
.addr-option .ao-contact { font-size: 12px; color: #888; margin-top: 4px; }

/* 地址确认提示 */
.addr-confirmed-tip {
    background: #e8f5e9; border: 1px solid var(--primary);
    border-radius: 8px; padding: 8px 14px; font-size: 13px;
    color: var(--primary-dark); margin-top: 10px;
}

/* 步骤3地址摘要 */
.srv-addr-summary {
    background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px;
    padding: 10px 14px; margin-bottom: 12px; font-size: 13px; line-height: 1.6;
}
.srv-addr-summary .sas-label { color: #6b7280; font-size: 12px; }
.srv-addr-summary .sas-text { color: var(--text); font-weight: 500; }
.srv-addr-summary .sas-contact { color: #888; font-size: 12px; margin-top: 2px; }

/* ═════════════════════════════════════════════════════════ */
/* 移动端导航栏（v3.4.0，仅 max-width:768px 显示）           */
/* ═════════════════════════════════════════════════════════ */

/* 默认隐藏移动端元素 */
.mobile-header { display: none; }
.bottom-nav { display: none; }

/* 设备 = mobile 时才显示顶部栏 + 底部导航栏（与窗口宽度无关，PC 缩窄也不会出现） */
html[data-device="mobile"] .mobile-header { display: flex; }
html[data-device="mobile"] .bottom-nav { display: flex; }

/* 移动端顶部栏 */
.mobile-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 52px;
    background: linear-gradient(135deg, #145a25 0%, #1a7f37 100%);
    color: #fff;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.mobile-header-left { display: flex; align-items: center; gap: 8px; }
.mobile-logo { width: 50px; height: 50px; border-radius: 6px; }
.mobile-brand { font-size: 16px; font-weight: 700; letter-spacing: 0.5px; }
.mobile-brand-wrap { display: flex; flex-direction: column; gap: 1px; }
.mobile-brand-sub { font-size: 9px; opacity: 0.7; letter-spacing: 1px; }
.mobile-header-right { display: flex; align-items: center; gap: 8px; }
.mobile-vip-btn {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #5d4037; border: none; border-radius: 16px;
    padding: 4px 10px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.mobile-auth-btn {
    background: rgba(255,255,255,0.15);
    color: #fff; border: 1px solid rgba(255,255,255,0.3);
    border-radius: 16px; padding: 4px 14px; font-size: 13px; cursor: pointer;
}

/* 移动端底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1000;
    height: 60px;
    background: #fff;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    border-top: 1px solid #e0e0e0;
    /* 适配 iPhone 底部安全区 */
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 6px 0;
    color: #9e9e9e;
    transition: color 0.2s;
}
.bottom-nav-item .bn-icon { font-size: 20px; line-height: 1; }
.bottom-nav-item .bn-label { font-size: 11px; line-height: 1; }
.bottom-nav-item.active { color: #1a7f37; }
.bottom-nav-item.active .bn-icon { transform: scale(1.15); transition: transform 0.2s; }

/* ═══ 移动端整体布局调整 (data-device=mobile 优先，其次 max-width 兜底) ═══ */
html[data-device="mobile"] { overflow-x: hidden; }
html[data-device="mobile"] body { overflow-x: hidden; }
html[data-device="mobile"] .sidebar { display: none; }
html[data-device="mobile"] .app-container { flex-direction: column; }
html[data-device="mobile"] .main-content {
    flex: 1;
    padding-top: 52px;   /* 顶部栏高度 */
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); /* 底部导航高度 + iPhone安全区 */
    overflow: hidden;
}

@media (max-width: 768px) {
    /* 小窗口也保持桌面布局（除非设备真是 mobile） */

    /* 问答区调整 */
    .chat-header { padding: 10px 14px 6px; }
    .chat-header h2 { font-size: 18px; }
    .chat-header p { font-size: 12px; }
    .chat-messages { padding: 8px 12px; }
    .quick-questions { padding: 6px 12px; }
    .quick-list { gap: 6px; }
    .quick-list .qq-item { font-size: 12px; padding: 5px 10px; }
    .input-area { padding: 8px 10px; }
    .input-row { gap: 6px; }
    .chat-input { font-size: 14px; padding: 8px 12px; }
    .send-btn { padding: 8px 16px; font-size: 14px; }
    .upload-btn, .voice-btn { width: 36px; height: 36px; font-size: 16px; }

    /* v3.8.6: 田间助手通过 data-device="mobile" 媒体查询控制紧凑布局，此处不再覆写 */
    /* v3.5.2: 移动端田间布局 — 地图在上（60%高度），田块面板在下（40%高度可滚动） */
    .field-layout { flex-direction: column; height: 100%; }
    .field-map-container { flex: 0 0 60%; min-height: 320px; width: 100%; }
    #field-map { width: 100%; height: 100%; }
    .field-panel { width: 100%; flex: 1; border-left: none; border-top: 1px solid var(--border); max-height: 40%; }
    .market-grid { grid-template-columns: 1fr 1fr; }
    .mad-form { grid-template-columns: 1fr; }

    /* 扫农药视图 */
    .scan-container { padding: 12px; }
    .scan-options { flex-direction: column; gap: 10px; }

    /* 社区/应用市场卡片调整 */
    .com-post-form { padding: 12px; }
    .market-grid { gap: 10px; }
    .market-grid .app-card { padding: 12px; }

    /* 弹窗适配 */
    .modal-overlay .modal-content {
        width: 94vw; max-width: none;
        margin: 0 auto; max-height: 86vh; overflow-y: auto;
    }
    .modal-overlay { padding: 0; align-items: flex-start; padding-top: 20px; }

    /* 会员弹窗 */
    .vip-modal { width: 94vw; max-width: none; }

    /* 专家通话弹窗 */
    .call-modal { width: 92vw; max-width: none; }

    /* 权益中心面板 */
    .benefit-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .benefit-card { padding: 12px; }

    /* 步骤流程 */
    .srv-step-indicator { font-size: 12px; }
    .srv-step-content { padding: 12px; }

    /* v3.14.0: 子标签栏移动端紧凑 */
    .app-sub-tabs { padding: 6px 4px; }
    .app-sub-tab { padding: 6px 10px; font-size: 12px; }
    .mad-section { padding: 14px; }
    .mad-header { padding: 14px; gap: 10px; }
    .mad-header-icon { font-size: 36px; }
    .mad-header-name { font-size: 17px; }
    .mad-partner-btn { font-size: 11px; padding: 4px 8px; }
    .mad-result-row { padding: 6px 10px; font-size: 13px; }
    .mad-tip-item { font-size: 12px; padding: 6px 10px; }

    /* 田块列表 */
    .field-list-container { padding: 10px 12px; }
    .field-card { padding: 12px; }

    /* 地址选择 */
    .addr-options { grid-template-columns: 1fr; }
}

/* ═══ 超小屏幕优化 (max-width: 380px) ═══ */
@media (max-width: 380px) {
    .market-grid { grid-template-columns: 1fr; }
    .benefit-grid { grid-template-columns: 1fr; }
    .chat-header h2 { font-size: 16px; }
    .bottom-nav-item .bn-label { font-size: 10px; }
    .bottom-nav-item .bn-icon { font-size: 18px; }
    .bottom-nav { height: 56px; }
    .main-content { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}

/* ═══════════ v3.8.5: 粮价卡片网格 / 走势图折叠 / 详情弹窗 ═══════════ */

/* 走势图折叠按钮（解决移动端高度撑破屏幕问题） */
.market-chart-toggle {
    display: block;
    width: 100%;
    margin: 8px 12px 0;
    padding: 10px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px dashed rgba(0,229,255,0.4);
    border-radius: 10px;
    color: #00e5ff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.market-chart-toggle:hover { background: rgba(0,229,255,0.12); }
.market-trend-collapsed {
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

/* 价格卡片网格 — 移动端主力展示 */
.market-price-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 4px;
}
.price-card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 12px 12px 10px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.price-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); border-color: var(--primary); }
.price-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.price-card-up::before { background: linear-gradient(90deg, #ef4444, #fb923c); }
.price-card-down::before { background: linear-gradient(90deg, #16a34a, #4ade80); }
.price-card-stable::before { background: linear-gradient(90deg, #6b7280, #94a3b8); }
.price-card-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 6px;
}
.price-card-crop { display: flex; align-items: center; gap: 4px; min-width: 0; }
.price-card-emoji { font-size: 16px; }
.price-card-name {
    font-size: 13px; font-weight: 600; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 110px;
}
.price-card-trend-icon { font-size: 14px; }
.price-card-price-row {
    display: flex; align-items: baseline; gap: 4px;
    margin-bottom: 4px;
}
.price-card-price {
    font-size: 22px; font-weight: 800; color: var(--text);
    font-variant-numeric: tabular-nums;
}
.price-card-unit {
    font-size: 11px; color: var(--text-light);
}
.price-card-change-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
    font-size: 11px;
}
.price-card-change { font-weight: 700; font-variant-numeric: tabular-nums; }
.price-card-trend-tag {
    padding: 1px 7px; border-radius: 8px; font-size: 10px;
    background: rgba(107,114,128,0.1);
}
.price-card-up .price-card-trend-tag { background: rgba(239,68,68,0.12); color: #b91c1c; }
.price-card-down .price-card-trend-tag { background: rgba(22,163,74,0.12); color: #15803d; }
.price-card-sparkline {
    margin: 4px -2px 6px;
    height: 28px;
    overflow: hidden;
}
.price-card-sparkline svg { display: block; width: 100%; height: 28px; }
.price-card-action {
    text-align: center;
    font-size: 10px; color: var(--primary);
    padding-top: 4px;
    border-top: 1px dashed var(--border);
}

.price-cards-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 4px 10px;
}
.price-cards-header h4 { font-size: 14px; font-weight: 700; margin: 0; }
.price-cards-hint { font-size: 11px; color: var(--text-light); }

/* 单品种走势图弹窗 */
.price-card-detail-modal {
    position: fixed; inset: 0;
    z-index: 9999;
    display: flex; align-items: flex-end; justify-content: center;
    animation: fadeInModal 0.25s ease;
}
@keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }
.price-card-detail-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
}
.price-card-detail-box {
    position: relative;
    width: 96vw; max-width: 480px;
    max-height: 88vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1456 50%, #2d1b69 100%);
    border-radius: 18px 18px 0 0;
    padding: 18px 18px 24px;
    color: #fff;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (min-width: 768px) {
    .price-card-detail-modal { align-items: center; }
    .price-card-detail-box { border-radius: 18px; max-height: 80vh; }
}
.price-card-detail-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 14px;
}
.price-card-detail-title {
    display: flex; align-items: center; gap: 10px;
}
.pcd-name { font-size: 16px; font-weight: 700; }
.pcd-sub { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.price-card-detail-close {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none; color: #fff; font-size: 20px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.price-card-detail-close:hover { background: rgba(255,255,255,0.2); }

.pcd-price-row {
    display: flex; align-items: baseline; gap: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.pcd-price { font-size: 30px; font-weight: 800; }
.pcd-unit { font-size: 13px; color: rgba(255,255,255,0.7); }
.pcd-change {
    font-size: 13px; font-weight: 700;
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}
.pcd-trend {
    font-size: 11px; padding: 3px 9px; border-radius: 10px;
    margin-left: 8px;
}

.pcd-chart-tabs {
    display: flex; gap: 6px; margin-bottom: 8px;
}
.pcd-tab {
    flex: 1;
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.pcd-tab:hover { background: rgba(255,255,255,0.1); color: #fff; }
.pcd-tab.active { background: #00e5ff; color: #0a0e27; border-color: #00e5ff; font-weight: 700; }

.pcd-chart {
    width: 100%; height: 240px;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    margin-bottom: 14px;
}

.pcd-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.pcd-stat {
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
}
.pcd-stat-label { font-size: 11px; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.pcd-stat-val { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* 移动端价格卡片 — 单列 */
@media (max-width: 380px) {
    .market-price-cards { grid-template-columns: 1fr; }
    .price-card-name { max-width: 200px; font-size: 14px; }
    .price-card-price { font-size: 24px; }
}

/* ═══════════ v3.22.6: 超小屏适配（≤360px, iPhone SE等） ═══════════ */
@media (max-width: 360px) {
    .chat-header h2 { font-size: 14px; }
    .bottom-nav-item .bn-label { font-size: 9px; }
    .bottom-nav-item .bn-icon { font-size: 16px; }
    .bottom-nav { height: 52px; }
    .main-content { padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px)); }
    .mall-grid { grid-template-columns: 1fr; }
    .mall-card { padding: 8px; }
    .mall-card-name { font-size: 13px; }
    .mall-card-price { font-size: 16px; }
    .modal-box { max-width: 95vw !important; margin: 8px; }
    .quick-tag { padding: 4px 8px; font-size: 11px; max-width: 80px; }
    .chat-input-area { padding: 6px 8px; }
    .chat-input-area input { font-size: 13px; }
}

/* ═══════════ v3.9.0 PC端田间助手紧凑三列布局（≥1101px） ═══════════ */
@media (min-width: 1101px) {
    /* 头部压缩 */
    .chat-header { padding: 10px 24px 8px; }
    .chat-header h2 { font-size: 16px; margin-bottom: 0; }
    .chat-header h2 .as-icon { font-size: 18px; }
    .assistant-header-row { margin-top: 2px; gap: 10px; }
    .assistant-header-row p { font-size: 12px; }
    .field-selector-wrap label { font-size: 12px; }
    .field-selector-wrap select { font-size: 12px; padding: 3px 10px; }

    /* 三列网格主容器 */
    .assistant-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 8px 16px 12px;
        align-content: start;
        align-items: stretch;
    }
    .assistant-grid > div {
        padding: 10px 12px;
        border-radius: 10px;
    }
    .panel-header { margin-bottom: 8px; padding-bottom: 6px; }
    .panel-header h3 { font-size: 13px; }
    .panel-mini-stat { font-size: 10px; padding: 2px 8px; }

    /* ── 行1：天气主卡片（全宽紧凑） ── */
    .weather-hero { grid-column: 1 / -1; min-height: 0; }
    .weather-now {
        flex: 0 0 150px;
        padding: 14px 12px;
    }
    .weather-icon-large { font-size: 38px; margin-bottom: 2px; }
    .weather-temp-large { font-size: 28px; }
    .weather-desc { font-size: 12px; margin: 2px 0 4px; }
    .weather-detail { font-size: 11px; gap: 8px; }
    .weather-mini-stats { display: none; }
    .weather-forecast-strip { padding: 12px 8px; gap: 3px; }
    .forecast-day { min-width: 50px; max-width: 90px; padding: 6px 3px; gap: 3px; }
    .forecast-day .fd-date { font-size: 10px; }
    .forecast-day .fd-icon { font-size: 20px; }
    .forecast-day .fd-cond { font-size: 9px; line-height: 1.1; width: 100%; }
    .forecast-day .fd-temp { font-size: 12px; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    .forecast-day .fd-temp .low { font-size: 10px; }
    .forecast-day .fd-rain { font-size: 8px; }

    /* ── 行2：趋势+病虫害（跨左2列） + 农事提醒（第3列） ── */
    .trend-pest-row {
        grid-column: 1 / 3;
        gap: 10px;
    }
    .trend-pest-row > div { min-height: 220px; }

    /* 气温走势图压缩 */
    .trend-chart {
        min-height: 150px;
        padding: 24px 4px 6px;
        gap: 4px;
    }
    .trend-bar { width: 28px; }
    .trend-bar.low { width: 22px; }
    .trend-bar-base { width: 36px; height: 5px; }
    .trend-bar-wrap { min-width: 40px; gap: 4px; }
    .trend-bar-wrap::before { font-size: 10px; padding: 2px 6px; }
    .trend-bar-wrap .trend-low-tag { font-size: 9px; padding: 1px 4px; }
    .trend-bar-label { font-size: 10px; margin-top: 2px; }

    /* 趋势信息条紧凑 */
    .trend-info { margin-top: 6px; padding: 6px 0; gap: 0; }
    .trend-info-label { font-size: 9px; }
    .trend-info-value { font-size: 12px; }

    /* 病虫害预警列表 */
    .pest-forecast-list { max-height: 170px; }
    .pest-forecast-list .pest-item { padding: 8px 10px; margin-bottom: 6px; }
    .pest-forecast-list .pest-item .pest-name { font-size: 13px; }
    .pest-forecast-list .pest-item .pest-desc { font-size: 11px; line-height: 1.4; }

    /* 农事提醒：第3列，与趋势+病虫害并排 */
    .alerts-panel {
        grid-column: 3;
        display: flex;
        flex-direction: column;
    }
    #weather-alerts {
        flex-direction: column;
        gap: 6px;
        flex: 1;
        overflow-y: auto;
        max-height: 220px;
        padding-right: 4px;
    }
    .alert-item {
        min-width: 0;
        padding: 8px 12px;
        font-size: 12px;
        line-height: 1.45;
        border-radius: 8px;
    }

    /* ── 行3：附近门店（全宽紧凑卡片） ── */
    .stores-panel { grid-column: 1 / -1; }
    .stores-list {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 8px;
    }
    .store-card { border-radius: 10px; }
    .store-media { aspect-ratio: 16 / 9; }
    .store-body { padding: 8px 10px; }
    .store-head { gap: 6px; margin-bottom: 4px; }
    .store-dist { font-size: 10px; padding: 2px 7px; }
    .store-card .store-name { font-size: 14px; margin-bottom: 0; }
    .store-card .store-name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .store-card .store-addr { font-size: 11px; margin-bottom: 6px; line-height: 1.4; }
    .store-card .store-meta { font-size: 11px; gap: 6px 12px; margin-bottom: 6px; }
    .store-card .service-tag { font-size: 10px; padding: 2px 8px; }
    .store-badge { font-size: 10px; padding: 2px 7px; top: 8px; left: 8px; }
}

/* ═══ v3.22.52: 在线考试系统 ═══ */
.exam-list { display: flex; flex-direction: column; gap: 14px; }
.exam-card { background: var(--card-bg, #fff); border-radius: 14px; padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); border: 1px solid #f0f0f0; transition: box-shadow 0.2s; }
.exam-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.exam-card-header { display: flex; gap: 12px; align-items: flex-start; }
.exam-card-icon { font-size: 28px; }
.exam-card-info { flex: 1; }
.exam-card-info h4 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.exam-card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: #888; }
.exam-card-desc { margin: 10px 0 0; font-size: 13px; color: #666; line-height: 1.5; }
.exam-card-actions { display: flex; gap: 10px; margin-top: 14px; }
.exam-btn-study { padding: 8px 16px; border-radius: 8px; border: 1px solid #bae6fd; background: #eff6ff; color: #0369a1; font-size: 14px; cursor: pointer; }
.exam-btn-start { padding: 8px 16px; border-radius: 8px; border: none; background: linear-gradient(135deg, #f57c00, #ef6c00); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }

.exam-header { padding: 20px; background: var(--card-bg, #fff); border-radius: 14px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.exam-header h3 { margin: 0 0 8px; font-size: 18px; }
.exam-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: #666; }
.exam-desc { margin: 8px 0 0; font-size: 13px; color: #999; }
.exam-questions { display: flex; flex-direction: column; gap: 14px; }
.exam-question { background: var(--card-bg, #fff); border-radius: 12px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); border: 1px solid #f0f0f0; }
.q-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.q-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #2e7d32; color: #fff; font-size: 13px; font-weight: 700; }
.q-type-badge { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: #e8f5e9; color: #2e7d32; }
.q-score { font-size: 12px; color: #999; margin-left: auto; }
.q-content { font-size: 15px; line-height: 1.6; margin-bottom: 10px; }
.q-options { display: flex; flex-direction: column; gap: 8px; }
.q-option { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; border: 1px solid #e5e7eb; cursor: pointer; transition: all 0.15s; }
.q-option:hover { background: #f8fafc; border-color: #cbd5e1; }
.q-option input[type="radio"] { width: 18px; height: 18px; accent-color: #2e7d32; }
.q-option-label { font-size: 14px; }
.q-fill-input { width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; }
.exam-submit-bar { text-align: center; padding: 20px 0; display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px; }
.exam-submit-bar button { padding: 12px 40px; font-size: 16px; }
.btn-disabled { opacity: 0.5; cursor: not-allowed !important; }

.study-material { background: var(--card-bg, #fff); border-radius: 14px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.study-title { margin: 0 0 8px; font-size: 18px; }
.study-meta { display: flex; gap: 14px; font-size: 13px; color: #999; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.study-content { font-size: 15px; line-height: 1.8; color: #333; white-space: pre-wrap; }
.study-actions { text-align: center; padding: 16px 0; }

.exam-result { background: var(--card-bg, #fff); border-radius: 14px; padding: 20px; }
.result-stats > div { min-width: 0; }
.mad-back { display: inline-block; padding: 8px 16px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; color: #666; font-size: 14px; cursor: pointer; margin-bottom: 14px; }
.mad-back:hover { background: #f8fafc; }

/* v3.22.79: 农技闯关向导 */
.chz-wizard { background: var(--card-bg, #fff); border-radius: 14px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.chz-step-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.chz-step-dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; background: #e5e7eb; color: #999; flex-shrink: 0; }
.chz-step-dot.active { background: #3b82f6; color: #fff; }
.chz-step-dot.done { background: #16a34a; color: #fff; }
.chz-kb-types { display: flex; gap: 12px; flex-wrap: wrap; }
.chz-kb-type-card { flex: 1; min-width: 140px; padding: 20px 16px; border-radius: 14px; border: 2px solid #e5e7eb; background: #fff; text-align: center; cursor: pointer; transition: all 0.2s; }
.chz-kb-type-card:hover { border-color: #93c5fd; background: #eff6ff; }
.chz-kb-type-card.active { border-color: #3b82f6; background: #eff6ff; box-shadow: 0 2px 8px rgba(59,130,246,0.15); }
.chz-product-pick { max-height: 400px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.chz-product-pick-item { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; border: 1px solid #e5e7eb; background: #fff; cursor: pointer; transition: all 0.15s; }
.chz-product-pick-item:hover { border-color: #93c5fd; background: #f8fafc; }
.chz-product-pick-item input { width: 18px; height: 18px; flex-shrink: 0; }
.chz-product-info { flex: 1; min-width: 0; }
.chz-custom-items { display: flex; flex-direction: column; gap: 8px; }
.chz-custom-item-row { display: flex; gap: 8px; align-items: center; }
.chz-custom-name { flex: 2; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; }
.chz-custom-note { flex: 3; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; }
.chz-field-pick { display: flex; flex-direction: column; gap: 8px; }
.chz-field-pick-item { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 10px; border: 2px solid #e5e7eb; background: #fff; cursor: pointer; transition: all 0.15s; }
.chz-field-pick-item:hover { border-color: #86efac; }
.chz-field-pick-item.active { border-color: #16a34a; background: #f0fdf4; }
.chz-field-pick-item input { width: 18px; height: 18px; flex-shrink: 0; }
.chz-qtypes { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chz-qtype-chip { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 20px; border-radius: 12px; border: 2px solid #e5e7eb; background: #fff; cursor: pointer; transition: all 0.15s; min-width: 100px; }
.chz-qtype-chip:hover { border-color: #93c5fd; }
.chz-qtype-chip.active { border-color: #3b82f6; background: #eff6ff; box-shadow: 0 2px 8px rgba(59,130,246,0.15); }
.chz-ai-loading { text-align: center; padding: 60px 20px; }
.chz-loading-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.chz-loading-dots span { width: 10px; height: 10px; border-radius: 50%; background: #3b82f6; animation: chz-bounce 1.4s infinite ease-in-out both; }
.chz-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.chz-loading-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes chz-bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
.chz-action-btn { padding: 8px 16px; border-radius: 8px; background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; border: none; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.chz-action-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(59,130,246,0.3); }
.chz-action-btn:active { transform: scale(0.97); }
.btn-disabled { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 640px) {
    .chz-kb-types { flex-direction: column; }
    .chz-qtypes { flex-direction: column; }
    .chz-custom-item-row { flex-direction: column; align-items: stretch; }
}

/* ═══ v3.22.82: 农技闯关UI全面优化（农业主题+趣味感+排版对齐） ═══ */

/* ── 首页卡片：农业渐变+居中布局 ── */
.chz-home-hero {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 40%, #388e3c 80%, #43a047 100%);
    border-radius: 18px;
    padding: 28px 20px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.25);
}
.chz-home-hero::before {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 120px; height: 120px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}
.chz-home-hero::after {
    content: '';
    position: absolute;
    bottom: -30px; left: -10px;
    width: 80px; height: 80px;
    background: rgba(255, 215, 0, 0.12);
    border-radius: 50%;
}
.chz-home-hero-icon { font-size: 42px; margin-bottom: 8px; position: relative; z-index: 1; }
.chz-home-hero-title { font-size: 22px; font-weight: 800; margin: 0 0 6px; position: relative; z-index: 1; letter-spacing: 1px; }
.chz-home-hero-desc { font-size: 13px; opacity: 0.85; margin: 0 0 18px; position: relative; z-index: 1; line-height: 1.5; }
.chz-home-hero-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #ffd54f, #ffb300);
    color: #3e2723;
    border: none; border-radius: 24px;
    font-size: 16px; font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(255, 179, 0, 0.4);
    transition: all 0.2s;
    position: relative; z-index: 1;
}
.chz-home-hero-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 16px rgba(255, 179, 0, 0.5); }
.chz-home-hero-btn:active { transform: scale(0.97); }
.chz-home-flow {
    display: flex; align-items: center; justify-content: center;
    gap: 4px; margin-top: 18px;
    position: relative; z-index: 1;
    flex-wrap: wrap;
}
.chz-home-flow-item {
    display: flex; align-items: center; gap: 4px;
    font-size: 12px; opacity: 0.9;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px; border-radius: 12px;
}
.chz-home-flow-arrow { font-size: 14px; opacity: 0.6; }

/* ── 闯关列表卡片：农业主题+双按钮 ── */
.chz-session-card {
    border: none !important;
    border-left: 4px solid #2e7d32 !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbf8 100%) !important;
    transition: all 0.2s;
}
.chz-session-card:hover { box-shadow: 0 4px 16px rgba(46, 125, 50, 0.12) !important; transform: translateY(-1px); }
.chz-session-card .exam-card-header { align-items: flex-start; }
.chz-session-card h4 {
    font-size: 15px; font-weight: 700; color: #1b5e20;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.chz-session-card .exam-card-meta { gap: 6px; }
.chz-status-badge { white-space: nowrap; }
.chz-session-card .exam-card-actions {
    display: flex; gap: 8px; margin-top: 12px; padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
}
.chz-btn-study {
    flex: 1; padding: 9px 14px; border-radius: 10px;
    background: linear-gradient(135deg, #43a047, #2e7d32);
    color: #fff; border: none; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all 0.15s;
}
.chz-btn-study:hover { box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3); }
.chz-btn-study:active { transform: scale(0.97); }
.chz-btn-exam {
    flex: 1; padding: 9px 14px; border-radius: 10px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff; border: none; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all 0.15s;
}
.chz-btn-exam:hover { box-shadow: 0 2px 8px rgba(245, 124, 0, 0.3); }
.chz-btn-exam:active { transform: scale(0.97); }
.chz-btn-single {
    width: 100%; padding: 9px 14px; border-radius: 10px;
    background: linear-gradient(135deg, #43a047, #2e7d32);
    color: #fff; border: none; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all 0.15s;
}
.chz-btn-single:hover { box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3); }

/* ── 完成卡片成绩展示 ── */
.chz-score-row { display: flex; gap: 10px; margin: 12px 0; }
.chz-score-box {
    flex: 1; text-align: center; padding: 12px 8px; border-radius: 12px;
}
.chz-score-box.pass { background: linear-gradient(135deg, #e8f5e9, #f1f8e9); }
.chz-score-box.fail { background: linear-gradient(135deg, #ffebee, #fce4ec); }
.chz-score-box.info { background: linear-gradient(135deg, #e3f2fd, #f3f5f9); }
.chz-score-num { font-size: 26px; font-weight: 800; line-height: 1.2; }
.chz-score-label { font-size: 12px; color: #666; margin-top: 2px; }

/* ── 学习页面 ── */
.chz-study-card {
    background: linear-gradient(135deg, #f8fbf8, #ffffff);
    border-radius: 16px; padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8f5e9;
}
.chz-study-title { font-size: 18px; font-weight: 700; color: #1b5e20; margin: 0 0 12px; display: flex; align-items: center; gap: 6px; }
.chz-study-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 13px; color: #666; }
.chz-study-progress-wrap { margin: 14px 0; }
.chz-study-progress-bar { height: 10px; background: #e8f5e9; border-radius: 5px; overflow: hidden; }
.chz-study-progress-fill { height: 100%; background: linear-gradient(90deg, #66bb6a, #2e7d32); border-radius: 5px; transition: width 0.5s; }
.chz-study-content {
    background: #fff; border-radius: 12px; padding: 16px;
    font-size: 15px; line-height: 1.85; color: #333;
    border: 1px solid #f0f0f0; max-height: 60vh; overflow-y: auto;
    white-space: pre-wrap; word-break: break-word;
}
.chz-study-actions { display: flex; gap: 10px; margin-top: 16px; }
.chz-study-actions .chz-btn-study { flex: 1; }
.chz-study-actions .chz-btn-exam { flex: 1; }

/* ── 考试答题页 ── */
.chz-exam-header {
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border-radius: 14px; padding: 16px 20px; margin-bottom: 16px;
    text-align: center;
}
.chz-exam-header h3 { margin: 0 0 8px; color: #1b5e20; font-size: 18px; }
.chz-exam-meta { display: flex; justify-content: center; gap: 16px; font-size: 13px; color: #555; flex-wrap: wrap; }

/* ── 结果页 ── */
.chz-result-hero {
    text-align: center; padding: 28px 20px; border-radius: 16px; margin-bottom: 16px;
    position: relative; overflow: hidden;
}
.chz-result-hero.pass { background: linear-gradient(135deg, #c8e6c9 0%, #e8f5e9 50%, #f1f8e9 100%); }
.chz-result-hero.fail { background: linear-gradient(135deg, #ffcdd2 0%, #ffebee 50%, #fce4ec 100%); }
.chz-result-icon { font-size: 48px; }
.chz-result-msg { font-size: 16px; font-weight: 700; margin: 8px 0 6px; }
.chz-result-score { font-size: 44px; font-weight: 800; }
.chz-result-detail { margin-top: 6px; font-size: 14px; color: #666; }
.chz-result-stats { display: flex; gap: 10px; margin-bottom: 16px; }
.chz-result-stat { flex: 1; text-align: center; padding: 14px 8px; border-radius: 12px; }
.chz-result-stat.correct { background: #f0fdf4; }
.chz-result-stat.wrong { background: #fef2f2; }
.chz-result-stat.time { background: #eff6ff; }
.chz-result-stat-num { font-size: 28px; font-weight: 700; }
.chz-result-stat-label { font-size: 13px; color: #666; margin-top: 2px; }

/* ── AI学习建议卡片 ── */
.chz-ai-suggestion {
    background: linear-gradient(135deg, #fff8e1, #fff3e0);
    border: 2px solid #ffe0b2;
    border-radius: 14px; padding: 18px 20px;
    margin: 16px 0;
    position: relative; overflow: hidden;
}
.chz-ai-suggestion::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #ff9800, #ffb74d, #ffa726);
}
.chz-ai-sug-header {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 12px;
}
.chz-ai-sug-icon { font-size: 28px; }
.chz-ai-sug-title { font-size: 16px; font-weight: 700; color: #e65100; }
.chz-ai-sug-content {
    font-size: 14px; line-height: 1.85; color: #5d4037;
    white-space: pre-wrap; word-break: break-word;
}
.chz-ai-sug-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: 10px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff; border: none; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
    margin: 0 auto;
}
.chz-ai-sug-btn:hover { box-shadow: 0 3px 12px rgba(245, 124, 0, 0.3); transform: translateY(-1px); }
.chz-ai-sug-btn:active { transform: scale(0.97); }
.chz-ai-sug-btn:disabled { opacity: 0.6; cursor: wait; }
.chz-ai-sug-prompt {
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg, #fff8e1, #fff3e0);
    border: 1.5px dashed #ffcc80; border-radius: 12px;
    padding: 14px 16px; margin: 12px 0;
}
.chz-ai-sug-prompt-icon { font-size: 32px; flex-shrink: 0; }
.chz-ai-sug-prompt-text { flex: 1; }

/* ── 答题详情卡片 ── */
.chz-q-detail {
    padding: 14px; border-radius: 12px; margin-bottom: 10px;
    border-left: 4px solid;
}
.chz-q-detail.correct { background: #f0fdf4; border-color: #16a34a; }
.chz-q-detail.wrong { background: #fef2f2; border-color: #ef4444; }
.chz-q-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.chz-q-detail-body { margin-top: 8px; }
.chz-q-detail-content { font-size: 15px; margin: 6px 0; }
.chz-q-detail-options { font-size: 13px; color: #666; margin: 4px 0; }
.chz-q-detail-explanation {
    margin-top: 8px; padding: 8px 12px;
    background: #fffbeb; border-radius: 8px;
    font-size: 13px; color: #92400e; line-height: 1.6;
}

/* ── v3.22.88: 专业考评系统样式 ── */
.chz-grade-badge {
    display: inline-block; margin-top: 10px;
    padding: 5px 18px; border-radius: 20px;
    font-size: 15px; font-weight: 800; letter-spacing: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.chz-type-analysis {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 14px 16px; margin-bottom: 16px;
}
.chz-type-analysis-title { font-size: 14px; font-weight: 700; color: #1e3a5f; margin-bottom: 10px; }
.chz-type-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.chz-type-bar:last-child { margin-bottom: 0; }
.chz-type-name { width: 56px; font-size: 13px; color: #555; flex-shrink: 0; font-weight: 600; }
.chz-type-track {
    flex: 1; height: 10px; border-radius: 5px;
    background: #f1f5f9; overflow: hidden;
}
.chz-type-fill { height: 100%; border-radius: 5px; transition: width 0.6s cubic-bezier(0.16,1,0.3,1); }
.chz-type-rate { width: 86px; font-size: 13px; font-weight: 700; text-align: right; flex-shrink: 0; }
.chz-type-rate em { font-style: normal; font-weight: 400; color: #999; font-size: 12px; }
.chz-history-card {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border: 1px solid #ddd6fe; border-radius: 12px;
    padding: 14px 16px; margin-bottom: 16px;
}
.chz-history-title { font-size: 14px; font-weight: 700; color: #5b21b6; margin-bottom: 10px; }
.chz-history-stats { display: flex; gap: 8px; }
.chz-history-stat {
    flex: 1; text-align: center; background: rgba(255,255,255,0.8);
    border-radius: 10px; padding: 8px 4px;
    display: flex; flex-direction: column; gap: 2px;
}
.chz-hs-num { font-size: 18px; font-weight: 800; }
.chz-hs-label { font-size: 11px; color: #7c6f9e; }
.chz-history-trend { margin-top: 10px; font-size: 13px; color: #6d28d9; text-align: center; font-weight: 600; }
.chz-detail-filter { display: flex; gap: 8px; margin-bottom: 12px; }
.chz-filter-btn {
    padding: 6px 16px; border-radius: 18px; font-size: 13px; font-weight: 600;
    border: 1.5px solid #d1d5db; background: #fff; color: #666; cursor: pointer;
    transition: all 0.2s;
}
.chz-filter-btn.active { background: #1b5e20; border-color: #1b5e20; color: #fff; }
.chz-filter-btn.wrong.active { background: #ef4444; border-color: #ef4444; }
.chz-filter-btn:hover { border-color: #1b5e20; }
.chz-filter-btn.wrong:hover { border-color: #ef4444; }
.chz-ai-sug-section {
    display: flex; align-items: center; gap: 6px;
    margin: 14px 0 6px; font-size: 15px; font-weight: 800; color: #bf360c;
}
.chz-ai-sug-section::before {
    content: ''; width: 4px; height: 16px; border-radius: 2px;
    background: linear-gradient(180deg, #ff9800, #f57c00); flex-shrink: 0;
}
.chz-ai-suggestion .chz-ai-sug-section:first-child { margin-top: 0; }
.chz-ai-sug-regen {
    margin-left: auto; padding: 4px 12px; border-radius: 14px;
    border: 1px solid #ffb74d; background: #fff; color: #e65100;
    font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.chz-ai-sug-regen:hover { background: #fff3e0; transform: translateY(-1px); }
.chz-ai-loading { text-align: center; }
.chz-ai-loading-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 0; }
.chz-ai-spinner {
    width: 36px; height: 36px; border-radius: 50%;
    border: 4px solid #ffe0b2; border-top-color: #ff9800;
    animation: chzSpin 0.9s linear infinite;
}
@keyframes chzSpin { to { transform: rotate(360deg); } }
/* v3.22.95: AI学习总结生成进度条 */
.chz-ai-progress-track {
    position: relative; width: 100%; max-width: 420px; height: 22px;
    background: #fff3e0; border-radius: 11px; overflow: hidden;
    border: 1px solid #ffe0b2; margin-top: 4px;
}
.chz-ai-progress-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #ffb74d, #ff9800, #f57c00);
    border-radius: 11px; transition: width 0.25s ease;
}
.chz-ai-progress-pct {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #e65100;
    text-shadow: 0 0 3px #fff;
}

/* ── 产品选择卡片增强 ── */
.chz-product-pick-item {
    border-radius: 12px !important;
    border: 1px solid #e0e0e0 !important;
    background: #fff !important;
}
.chz-product-pick-item:hover { border-color: #81c784 !important; background: #f1f8e9 !important; }
.chz-product-source-tag {
    display: inline-block; font-size: 10px; padding: 1px 6px;
    border-radius: 8px; margin-left: 4px; vertical-align: middle;
}
.chz-product-source-tag.mall { background: #e3f2fd; color: #1565c0; }
.chz-product-source-tag.store { background: #fce4ec; color: #c2185b; }

/* ── 移动端适配 ── */
@media (max-width: 640px) {
    .chz-home-hero { padding: 22px 16px; }
    .chz-home-hero-title { font-size: 20px; }
    .chz-home-flow { gap: 3px; }
    .chz-home-flow-item { font-size: 11px; padding: 3px 8px; }
    .chz-result-stats { flex-direction: column; gap: 8px; }
    .chz-type-bar { gap: 6px; }
    .chz-type-name { width: 46px; font-size: 12px; }
    .chz-type-rate { width: 72px; font-size: 12px; }
    .chz-history-stats { flex-wrap: wrap; }
    .chz-history-stat { flex: 1 1 40%; }
    .chz-ai-sug-header { flex-wrap: wrap; }
    .chz-ai-sug-regen { margin-left: 0; }
    .chz-score-row { flex-direction: column; gap: 8px; }
    .chz-study-actions { flex-direction: column; }
    .chz-session-card .exam-card-actions { flex-direction: column; }
    .chz-session-card h4 { white-space: normal; }
}

/* v3.22.60: 田块档案（图片/视频/文字时间轴） */
.field-archive-container { padding: 0; }
.archive-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: linear-gradient(135deg, #e8f5e9, #f1f8e9); border-radius: 12px; margin-bottom: 12px; }
.archive-title { display: flex; align-items: center; gap: 10px; }
.archive-icon { font-size: 28px; line-height: 1; }
.archive-add-btn { display: flex; align-items: center; gap: 6px; padding: 9px 16px; background: linear-gradient(135deg, var(--primary), #2e7d32); color: #fff; border: none; border-radius: 24px; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3); transition: all 0.2s; min-height: 38px; -webkit-tap-highlight-color: rgba(255,255,255,0.2); user-select: none; }
.archive-add-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4); }
.archive-add-btn:active { transform: scale(0.97); }
.archive-add-btn span:first-child { font-size: 18px; line-height: 1; }
.archive-add-btn.open { background: linear-gradient(135deg, #888, #666); }

.archive-quick-actions { display: flex; gap: 8px; padding: 8px 14px 14px; flex-wrap: wrap; animation: slideDown 0.2s ease; }
.archive-qa-btn { flex: 1; min-width: 90px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; background: #fff; border: 1px solid var(--border, #e5e7eb); border-radius: 10px; font-size: 13px; color: #333; cursor: pointer; transition: all 0.2s; -webkit-tap-highlight-color: rgba(46,125,50,0.15); user-select: none; }
.archive-qa-btn:hover { background: var(--primary-light, #e8f5e9); border-color: var(--primary, #2e7d32); color: var(--primary, #2e7d32); transform: translateY(-1px); }
.archive-qa-btn:active { transform: scale(0.97); background: var(--primary-light, #e8f5e9); }
.archive-qa-btn .qa-emoji { font-size: 24px; line-height: 1; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.archive-timeline { position: relative; padding: 8px 0 8px 4px; min-height: 120px; }
.archive-timeline::before { content: ''; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--primary, #2e7d32) 0%, #c8e6c9 100%); border-radius: 1px; }
.archive-loading, .archive-empty { text-align: center; color: #999; font-size: 14px; padding: 40px 20px; }
.archive-empty .archive-empty-icon { font-size: 48px; opacity: 0.5; margin-bottom: 12px; display: block; }
.archive-empty .archive-empty-text { font-size: 14px; color: #666; margin-bottom: 4px; }
.archive-empty .archive-empty-tip { font-size: 12px; color: #999; }

.archive-item { position: relative; padding: 0 0 18px 38px; animation: fadeIn 0.3s ease; }
.archive-item::before { content: ''; position: absolute; left: 6px; top: 6px; width: 16px; height: 16px; background: #fff; border: 3px solid var(--primary, #2e7d32); border-radius: 50%; box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1); z-index: 1; }
.archive-item.is-image::before { border-color: #1976d2; box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.12); }
.archive-item.is-video::before { border-color: #d32f2f; box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.12); }
.archive-item.is-note::before { border-color: #f57c00; box-shadow: 0 0 0 4px rgba(245, 124, 0, 0.12); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.archive-card { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); border: 1px solid #f0f0f0; transition: box-shadow 0.2s; }
.archive-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.archive-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.archive-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.archive-tag.tag-image { background: #e3f2fd; color: #1976d2; }
.archive-tag.tag-video { background: #ffebee; color: #d32f2f; }
.archive-tag.tag-note { background: #fff3e0; color: #f57c00; }
.archive-time { font-size: 12px; color: #999; }
.archive-time-main { color: #555; font-weight: 500; }
.archive-delete { background: none; border: none; color: #ccc; font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 4px; transition: all 0.15s; }
.archive-delete:hover { color: #d32f2f; background: #ffebee; }

.archive-media { margin-top: 8px; border-radius: 8px; overflow: hidden; background: #f5f5f5; }
.archive-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)); gap: 4px; }
.archive-image-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; cursor: zoom-in; transition: opacity 0.2s; }
.archive-image-grid img:hover { opacity: 0.85; }
.archive-video-wrap { position: relative; cursor: pointer; max-width: 100%; }
.archive-video-wrap video { width: 100%; max-height: 280px; border-radius: 8px; background: #000; display: block; }
.archive-video-wrap .archive-play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; background: rgba(0,0,0,0.55); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; pointer-events: none; }
.archive-video-wrap .archive-video-size { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.55); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 3px; }

.archive-content { margin-top: 6px; font-size: 14px; line-height: 1.65; color: #333; white-space: pre-wrap; word-break: break-word; }
.archive-content.note-only { background: linear-gradient(135deg, #fff8e1, #fff3e0); padding: 12px 14px; border-radius: 8px; border-left: 3px solid #f57c00; font-size: 14px; }

/* 备注弹窗 */
.archive-modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn 0.2s ease; }
.archive-modal { width: 100%; max-width: 480px; background: #fff; border-radius: 14px; display: flex; flex-direction: column; max-height: 80vh; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.archive-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #f0f0f0; }
.archive-modal-header h3 { margin: 0; font-size: 16px; color: #2e7d32; }
.archive-modal-close { background: none; border: none; font-size: 24px; line-height: 1; color: #999; cursor: pointer; padding: 0 6px; }
.archive-modal-close:hover { color: #333; }
.archive-modal-body { padding: 16px 18px; flex: 1; overflow-y: auto; }
.archive-modal-preview { margin-bottom: 12px; border-radius: 8px; overflow: hidden; background: #f5f5f5; }
.archive-modal-preview img { width: 100%; max-height: 220px; object-fit: contain; background: #000; display: block; }
.archive-modal-preview video { width: 100%; max-height: 220px; background: #000; display: block; }
.archive-modal-textarea { width: 100%; min-height: 110px; padding: 10px 12px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 14px; line-height: 1.6; resize: vertical; box-sizing: border-box; font-family: inherit; }
.archive-modal-textarea:focus { outline: none; border-color: var(--primary, #2e7d32); }
/* v3.22.75: 计数行改为两端布局（左：时间提示，右：字数统计） */
.archive-modal-counter { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #999; margin-top: 4px; }
.archive-modal-footer { display: flex; gap: 10px; padding: 12px 18px; border-top: 1px solid #f0f0f0; background: #fafafa; }
.archive-modal-cancel, .archive-modal-confirm { flex: 1; padding: 10px 0; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; }
.archive-modal-cancel { background: #fff; border: 1px solid #e0e0e0; color: #666; }
.archive-modal-cancel:hover { background: #f5f5f5; }
.archive-modal-confirm { background: linear-gradient(135deg, var(--primary, #2e7d32), #1b5e20); color: #fff; }
.archive-modal-confirm:hover { box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3); }
.archive-modal-confirm:disabled { background: #ccc; cursor: not-allowed; box-shadow: none; }

/* 大图预览 */
.archive-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 11000; display: flex; align-items: center; justify-content: center; padding: 20px; }
/* v3.22.75: 轮播灯箱——内容区改为全宽滑动轨道容器 */
.archive-lightbox-content { width: 100%; height: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.archive-lb-track { display: flex; height: 100%; width: 100%; transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1); will-change: transform; }
.archive-lb-slide { flex: 0 0 100%; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.archive-lb-slide img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 4px; user-select: none; -webkit-user-drag: none; }
.archive-lb-slide video { max-width: 100%; max-height: 90vh; background: #000; border-radius: 4px; }
/* v3.22.77: 灯箱拍摄时间水印条——叠加在幻灯片底部 */
.archive-lb-watermark { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); background: rgba(0,0,0,0.6); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 16px; border-radius: 16px; z-index: 2; white-space: nowrap; pointer-events: none; letter-spacing: 0.5px; backdrop-filter: blur(2px); }
.archive-lb-slide { position: relative; }
.archive-lightbox-counter { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.5); color: #fff; font-size: 13px; padding: 4px 14px; border-radius: 14px; z-index: 11001; letter-spacing: 1px; }
.archive-lightbox-autoplay { position: fixed; top: 16px; left: 16px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.15); color: #fff; border: none; font-size: 15px; line-height: 1; cursor: pointer; z-index: 11001; transition: background 0.2s; display: flex; align-items: center; justify-content: center; }
.archive-lightbox-autoplay:hover { background: rgba(255,255,255,0.3); }
.archive-lightbox-close { position: fixed; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.15); color: #fff; border: none; font-size: 24px; line-height: 1; cursor: pointer; z-index: 11001; transition: background 0.2s; }
.archive-lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* v3.22.71: 多图横向滚动缩略图条 */
.archive-image-strip { display: flex; gap: 6px; overflow-x: auto; padding: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.archive-image-strip::-webkit-scrollbar { height: 4px; }
.archive-image-strip::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }
.archive-image-strip img { flex-shrink: 0; width: 100px; height: 100px; object-fit: cover; border-radius: 6px; cursor: zoom-in; border: 1px solid #e5e7eb; transition: opacity 0.2s; }
.archive-image-strip img:hover { opacity: 0.85; }
.archive-img-count { display: inline-block; margin-top: 4px; font-size: 11px; color: #888; background: #f0f0f0; padding: 2px 8px; border-radius: 10px; }

/* v3.22.71: 灯箱导航按钮 */
.archive-lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.15); color: #fff; border: none; font-size: 28px; line-height: 1; cursor: pointer; z-index: 11001; transition: background 0.2s; display: flex; align-items: center; justify-content: center; }
.archive-lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.archive-lightbox-prev { left: 12px; }
.archive-lightbox-next { right: 12px; }

/* v3.22.71: 灯箱圆点指示器 */
.archive-lightbox-dots { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 11001; }
.archive-lightbox-dot { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.3); transition: all 0.25s; cursor: pointer; }
.archive-lightbox-dot.active { background: #fff; width: 20px; }

/* ═══ v3.22.75: 时间线多图九宫格（微信朋友圈风格） ═══ */
.archive-image-grid.multi { grid-template-columns: repeat(3, 1fr); gap: 5px; }
.archive-grid-cell { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 6px; background: #f5f5f5; }
.archive-grid-cell img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; transition: transform 0.2s; }
.archive-grid-cell img:hover { transform: scale(1.05); }
.archive-grid-more { position: absolute; inset: 0; background: rgba(0,0,0,0.55); color: #fff; font-size: 22px; font-weight: 600; display: flex; align-items: center; justify-content: center; pointer-events: none; }

/* v3.22.71: 弹窗多图预览网格 */
.archive-modal-multi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.archive-modal-thumb { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 1 / 1; }
.archive-modal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.archive-modal-thumb-idx { position: absolute; top: 2px; right: 4px; background: rgba(0,0,0,0.5); color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 8px; }

/* 移动端 */
@media (max-width: 640px) {
    .archive-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
    .archive-add-btn { width: 100%; justify-content: center; }
    .archive-image-grid { grid-template-columns: repeat(3, 1fr); }
    .archive-image-strip img { width: 80px; height: 80px; }
    .archive-modal-multi-grid { grid-template-columns: repeat(3, 1fr); }
    .archive-item { padding-left: 34px; }
    .archive-timeline::before { left: 11px; }
    .archive-item::before { left: 4px; width: 14px; height: 14px; }
    .archive-modal { max-width: 100%; }
    .archive-lightbox-nav { width: 36px; height: 36px; font-size: 22px; }
}

/* ═══════════════════════════════════════════════════════ */
/*  v3.22.76: 门店管理（品牌商）+ 营销助手（业务员）        */
/* ═══════════════════════════════════════════════════════ */

/* ─── 门店管理通用 ─── */
.stm-tip { font-size: 13px; color: var(--text-light); background: var(--primary-light); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 14px; line-height: 1.6; }
.stm-tag { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 10px; vertical-align: middle; white-space: nowrap; }
.stm-tag-green { background: #e8f5e9; color: #2e7d32; }
.stm-tag-blue { background: #e3f2fd; color: #1565c0; }
.stm-tag-gray { background: #f1f3f4; color: #607d8b; }
.stm-tag-orange { background: #fff3e0; color: #ef6c00; }
.stm-tag-pink { background: #fce4ec; color: #c2185b; }
.stm-filter-bar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.stm-filter-bar select { padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card-bg); font-size: 13px; min-width: 150px; }

/* 门店卡片 */
.stm-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.stm-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.stm-card-title { font-size: 15px; font-weight: 700; min-width: 0; max-width: 100%; flex: 1 1 260px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; word-break: break-word; overflow-wrap: anywhere; line-height: 1.6; }
.stm-card-ops { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.stm-mini-btn { border: 1px solid var(--border); background: var(--card-bg); color: var(--text); font-size: 12px; padding: 4px 10px; border-radius: 14px; cursor: pointer; white-space: nowrap; transition: all 0.15s; }
.stm-mini-btn:hover { border-color: var(--primary); color: var(--primary); }
.stm-mini-danger:hover { border-color: #e53935; color: #e53935; }
.stm-card-info { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 13px; color: var(--text-light); min-width: 0; }
.stm-card-info span { min-width: 0; max-width: 100%; word-break: break-all; overflow-wrap: anywhere; line-height: 1.7; }
.stm-card-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.stm-card-stats span { font-size: 12px; background: var(--bg); border-radius: 12px; padding: 3px 10px; color: var(--text-light); }

/* 列表行 */
.stm-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 10px; }
.stm-row-main { flex: 1; min-width: 0; }
.stm-row-title { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stm-row-sub { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 5px; font-size: 12.5px; color: var(--text-light); }

/* v3.23.11: 子账号卡片布局（替代旧 stm-row，修复排版错乱） */
.stm-acc-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 10px; }
.stm-acc-card-info { flex: 1; min-width: 0; }
.stm-acc-card-title { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.stm-acc-card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--text-light); margin-bottom: 3px; }
.stm-acc-login { display: block; font-size: 12px; color: var(--text-light); }
.stm-acc-card-ops { display: flex; gap: 4px; flex-shrink: 0; }
.stm-acc-card-ops .stm-mini-btn { white-space: nowrap; }
@media (max-width: 640px) {
    .stm-acc-card { flex-direction: column; align-items: stretch; }
    .stm-acc-card-ops { justify-content: flex-end; }
}

/* 初始密码横幅 */
.stm-pwd-banner { margin-top: 14px; background: linear-gradient(90deg, #fff8e1, #fff3e0); border: 1px solid #ffcc80; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; color: #5d4037; }
.stm-pwd-banner b { font-family: monospace; font-size: 17px; letter-spacing: 1px; color: #e65100; }

/* 统计看板 */
.stm-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.stm-stat-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 8px; text-align: center; }
.stm-stat-num { font-size: 22px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.stm-stat-label { font-size: 12px; color: var(--text-light); margin-top: 3px; }
.stm-block { margin-top: 18px; }
.stm-block-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.stm-trend { display: flex; align-items: flex-end; gap: 8px; height: 130px; padding: 0 4px; }
.stm-trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.stm-trend-num { font-size: 11px; color: var(--text-light); margin-bottom: 3px; }
.stm-trend-bar { width: 100%; max-width: 38px; background: linear-gradient(180deg, var(--accent), var(--primary)); border-radius: 5px 5px 0 0; min-height: 4px; transition: height 0.4s; }
.stm-trend-date { font-size: 10.5px; color: var(--text-light); margin-top: 5px; }
.stm-rank-row { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px dashed var(--border); font-size: 13px; }
.stm-rank-row:last-child { border-bottom: none; }
.stm-rank-no { width: 22px; height: 22px; border-radius: 50%; background: var(--bg); color: var(--text-light); font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stm-rank-top { background: linear-gradient(135deg, #ffd700, #ffaa00); color: #5c3d00; font-weight: 700; }
.stm-rank-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stm-rank-val { color: var(--text-light); font-size: 12.5px; white-space: nowrap; }

/* v3.23.20: 门店发货产品明细（统计面板） */
.stm-ship-store { padding: 4px 0 8px; border-bottom: 1px solid var(--border); }
.stm-ship-store:last-child { border-bottom: none; }
.stm-ship-prod { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 5px 6px 5px 32px; background: var(--bg); border-radius: var(--radius-sm); margin-top: 6px; font-size: 12.5px; }
.stm-ship-prod-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
@media (max-width: 640px) {
    .stm-ship-prod { padding-left: 10px; flex-wrap: wrap; }
}

/* v3.23.21: 门店管理功能说明面板 */
.stm-guide h4 { display: flex; align-items: center; gap: 6px; user-select: none; }
.stm-guide-arrow { font-size: 12px; color: var(--text-light); }
.stm-guide-item { padding: 10px 12px; background: var(--bg); border-radius: var(--radius-sm); margin-bottom: 10px; font-size: 13px; }
.stm-guide-item:last-child { margin-bottom: 0; }
.stm-guide-item b { color: var(--primary); display: block; margin-bottom: 5px; }
.stm-guide-item ul { margin: 0; padding-left: 18px; color: var(--text); }
.stm-guide-item li { margin: 3px 0; line-height: 1.6; }
@media (max-width: 640px) {
    .stm-guide-item { padding: 9px 10px; font-size: 12.5px; }
}

/* 人员时间线 */
.stm-timeline { position: relative; padding-left: 6px; }
.stm-tl-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); align-items: flex-start; }
.stm-tl-item:last-child { border-bottom: none; }
.stm-tl-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.stm-tl-body { flex: 1; min-width: 0; }
.stm-tl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stm-tl-who { font-size: 12.5px; color: var(--text); }
.stm-tl-time { font-size: 12px; color: var(--text-light); }
.stm-tl-content { margin-top: 5px; font-size: 13.5px; line-height: 1.7; color: var(--text); white-space: pre-wrap; word-break: break-word; }

/* ─── 营销助手 ─── */
.mkt-scene-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.mkt-scene-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 10px; background: var(--card-bg); border: 2px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: all 0.15s; text-align: center; }
.mkt-scene-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.mkt-scene-card.active { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 2px 10px rgba(26,127,55,0.15); }
.mkt-scene-icon { font-size: 24px; }
.mkt-scene-label { font-size: 13.5px; font-weight: 700; }
.mkt-scene-hint { font-size: 11px; color: var(--text-light); line-height: 1.4; }
.mkt-pre { background: #fafcf9; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; font-size: 14px; line-height: 1.9; white-space: pre-wrap; word-break: break-word; font-family: inherit; color: var(--text); }
.mkt-result-ops { margin-top: 12px; display: flex; gap: 10px; }
/* v3.23.25: 每日次数用尽可视化提醒 */
.mkt-quota-banner { display: flex; align-items: center; gap: 14px; background: #fff1f0; border: 1px solid #ffa39e; border-left: 5px solid #f5222d; border-radius: 10px; padding: 16px 18px; }
.mkt-quota-banner .mkt-quota-icon { font-size: 2em; line-height: 1; }
.mkt-quota-banner .mkt-quota-body b { display: block; color: #cf1322; font-size: 1.05em; margin-bottom: 4px; }
.mkt-quota-banner .mkt-quota-body p { margin: 0 0 4px; color: #a8071a; font-size: 0.95em; }
.mkt-quota-banner .mkt-quota-body small { color: #8c8c8c; }

/* 分镜卡片 */
.mkt-sb-head { background: linear-gradient(135deg, var(--primary-light), #ffffff); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 12px; }
.mkt-sb-title { font-size: 16px; font-weight: 800; color: var(--primary-dark); }
.mkt-sb-intro { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.mkt-sb-list { display: flex; flex-direction: column; gap: 10px; }
.mkt-sb-card { display: flex; gap: 12px; background: var(--card-bg); border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: var(--radius-sm); padding: 12px 14px; }
.mkt-sb-no { display: flex; flex-direction: column; align-items: center; gap: 3px; flex-shrink: 0; }
.mkt-sb-no span { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mkt-sb-no em { font-style: normal; font-size: 11px; color: var(--text-light); background: var(--bg); border-radius: 8px; padding: 1px 6px; }
.mkt-sb-body { flex: 1; min-width: 0; }
.mkt-sb-body p { font-size: 13px; line-height: 1.7; margin-bottom: 3px; }
.mkt-sb-body b { color: var(--primary-dark); margin-right: 6px; }
.mkt-sb-extra { margin-top: 12px; background: #fffdf5; border: 1px dashed #ffcc80; border-radius: var(--radius-sm); padding: 12px 14px; }
.mkt-sb-extra p { font-size: 13px; line-height: 1.7; }
.mkt-sb-extra b { color: #e65100; margin-right: 6px; }

/* 历史记录 */
.mkt-rec-preview { margin-top: 6px; font-size: 12.5px; color: var(--text-light); line-height: 1.6; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* 记录查看弹窗 */
.mkt-view-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.mkt-view-dialog { background: var(--card-bg); border-radius: var(--radius); width: 100%; max-width: 640px; max-height: 82vh; display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.mkt-view-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.mkt-view-body { padding: 16px 18px; overflow-y: auto; }
.mkt-view-foot { padding: 12px 18px; border-top: 1px solid var(--border); text-align: right; }

@media (max-width: 640px) {
    .mkt-scene-grid { grid-template-columns: repeat(2, 1fr); }
    .stm-stat-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .stm-stat-num { font-size: 18px; }
    .stm-card { padding: 12px; }
    .stm-card-head { flex-direction: column; align-items: stretch; }
    .stm-card-title { flex-basis: 100%; font-size: 14.5px; }
    .stm-card-ops { flex-wrap: wrap; width: 100%; }
    .stm-card-ops .stm-mini-btn { flex: 1 1 auto; text-align: center; }
    .stm-card-info { gap: 4px 12px; font-size: 12.5px; }
    .stm-trend { height: 100px; }
}

/* ═══ v3.22.86: 营销助手-视频生成（v3.22.99 紧凑化+全部AI高级模式） ═══ */
.mkt-video-modes { display: flex; gap: 8px; margin-bottom: 12px; }
.mkt-vm-btn {
    flex: 1; padding: 8px 12px; border: 2px solid var(--border);
    border-radius: var(--radius-sm); background: var(--card-bg);
    cursor: pointer; transition: all 0.15s; text-align: center;
    font-size: 14px; font-weight: 600; color: var(--text);
    display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.mkt-vm-btn:hover { border-color: var(--accent); }
.mkt-vm-btn.active {
    border-color: var(--primary); background: var(--primary-light);
    color: var(--primary-dark); box-shadow: 0 2px 8px rgba(26,127,55,0.12);
}
.mkt-vm-btn small { font-size: 11px; font-weight: 400; color: var(--text-light); }
.mkt-vm-btn[data-mode="talking"].active {
    border-color: #7c4dff; background: #f3eefd; color: #5b2fd4;
    box-shadow: 0 2px 10px rgba(124,77,255,0.18);
}

/* ═══ v3.22.98: 营销助手-采集视频 ═══ */
.mkt-col-loading { display: flex; flex-direction: column; align-items: center; padding: 26px 10px; gap: 10px; }
.mkt-col-spinner {
    width: 34px; height: 34px; border: 3px solid var(--border); border-top-color: var(--primary);
    border-radius: 50%; animation: mktColSpin 0.9s linear infinite;
}
@keyframes mktColSpin { to { transform: rotate(360deg); } }
.mkt-col-stage { font-size: 14px; font-weight: 600; color: var(--primary-dark); }
.mkt-col-elapsed { font-size: 12px; color: var(--text-light); }

.mkt-col-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.mkt-col-badge {
    display: inline-block; padding: 2px 10px; border-radius: 10px;
    background: var(--primary-light); color: var(--primary-dark);
    font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.mkt-col-title { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.5; word-break: break-all; }
.mkt-col-text {
    width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); background: #fafcf9; font-size: 14px;
    line-height: 1.8; color: var(--text); resize: vertical;
}
.mkt-col-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.mkt-col-count { font-size: 12px; color: var(--text-light); }

.mkt-col-card { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card-bg); }
.mkt-col-card-media { position: relative; width: 120px; height: 160px; border-radius: 8px; overflow: hidden; background: #f2f4f2; flex-shrink: 0; }
.mkt-col-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkt-col-badge-abs { position: absolute; left: 6px; top: 6px; background: rgba(0,0,0,0.55); color: #fff; }
.mkt-col-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 480px) {
    .mkt-col-card { flex-direction: column; }
    .mkt-col-card-media { width: 100%; height: 200px; }
}

.mkt-v-section { margin-bottom: 14px; }
.mkt-v-label { font-size: 13px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.mkt-v-hint { font-size: 12px; color: var(--text-light); margin-bottom: 6px; line-height: 1.5; }

.mkt-v-upload-zone {
    border: 2px dashed var(--border); border-radius: var(--radius-sm);
    padding: 28px 16px; text-align: center; cursor: pointer;
    transition: all 0.2s; background: #fafcf9;
}
.mkt-v-upload-zone:hover { border-color: var(--primary); background: var(--primary-light); }
.mkt-v-upload-zone .mkt-v-up-icon { font-size: 32px; display: block; margin-bottom: 6px; }
.mkt-v-upload-zone .mkt-v-up-text { font-size: 13px; color: var(--text-light); }

.mkt-v-thumb-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px; margin-top: 10px;
}
.mkt-v-thumb {
    position: relative; border-radius: 8px; overflow: hidden;
    aspect-ratio: 4/3; border: 1px solid var(--border);
}
.mkt-v-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mkt-v-thumb-cover {
    position: absolute; top: 4px; left: 4px;
    background: var(--primary); color: #fff; font-size: 10px;
    font-weight: 700; padding: 2px 6px; border-radius: 4px;
}
.mkt-v-thumb-del {
    position: absolute; top: 4px; right: 4px;
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(0,0,0,0.5); color: #fff; border: none;
    font-size: 14px; cursor: pointer; display: flex;
    align-items: center; justify-content: center; line-height: 1;
}
.mkt-v-thumb-del:hover { background: rgba(220,53,69,0.85); }

.mkt-v-input {
    width: 100%; padding: 8px 12px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 14px; box-sizing: border-box;
    transition: border-color 0.2s;
}
.mkt-v-input:focus { border-color: var(--primary); outline: none; }

.mkt-v-textarea {
    width: 100%; min-height: 80px; padding: 10px 12px;
    border: 1px solid var(--border); border-radius: 8px;
    font-size: 14px; box-sizing: border-box; resize: vertical;
    font-family: inherit; transition: border-color 0.2s;
}
.mkt-v-textarea:focus { border-color: var(--primary); outline: none; }

.mkt-v-voice-bar { display: flex; gap: 8px; }
.mkt-v-voice-opt {
    flex: 1; padding: 8px 12px; border: 2px solid var(--border);
    border-radius: 8px; cursor: pointer; text-align: center;
    font-size: 13px; font-weight: 600; transition: all 0.15s;
    background: var(--card-bg); color: var(--text);
}
.mkt-v-voice-opt:hover { border-color: var(--accent); }
.mkt-v-voice-opt.active {
    border-color: var(--primary); background: var(--primary-light);
    color: var(--primary-dark);
}

.mkt-v-gen-btn {
    width: 100%; padding: 12px; border: none; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
    transition: opacity 0.2s; margin-top: 4px;
}
.mkt-v-gen-btn:hover { opacity: 0.9; }
.mkt-v-gen-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.mkt-v-progress {
    text-align: center; padding: 30px 20px;
    background: #fafcf9; border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.mkt-v-prog-icon { font-size: 36px; margin-bottom: 8px; }
.mkt-v-prog-text { font-size: 14px; color: var(--text); margin-bottom: 12px; }
.mkt-v-prog-bar-wrap {
    width: 100%; max-width: 320px; height: 8px; background: var(--border);
    border-radius: 4px; overflow: hidden; margin: 0 auto;
}
.mkt-v-prog-bar {
    height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px; transition: width 0.5s ease;
    width: 0%;
}

.mkt-v-result { text-align: center; }
.mkt-v-player {
    width: 100%; max-width: 640px; border-radius: var(--radius-sm);
    overflow: hidden; margin: 0 auto 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    aspect-ratio: 16/9; background: #000;
}
.mkt-v-result-ops { display: flex; gap: 10px; justify-content: center; }
.mkt-v-dl-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 20px; border: none; border-radius: 8px;
    background: var(--primary); color: #fff; font-size: 14px;
    font-weight: 600; cursor: pointer; text-decoration: none;
    transition: opacity 0.2s;
}
.mkt-v-dl-btn:hover { opacity: 0.9; }

.mkt-v-history { display: flex; flex-direction: column; gap: 10px; }
.mkt-v-task-row {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px; background: var(--card-bg);
    border: 1px solid var(--border); border-radius: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
    min-width: 0;
}
.mkt-v-task-row:hover { border-color: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.mkt-v-task-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f5e9 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.mkt-v-task-info { flex: 1; min-width: 0; overflow: hidden; }
.mkt-v-task-title {
    font-size: 14px; font-weight: 600; color: var(--text);
    line-height: 1.4; word-break: break-word;
    margin-bottom: 5px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.mkt-v-task-meta {
    display: flex; flex-wrap: wrap; gap: 5px; align-items: center;
    margin-bottom: 4px;
}
.mkt-v-task-type {
    font-size: 11px; padding: 2px 7px; border-radius: 4px;
    font-weight: 600; white-space: nowrap;
}
.mkt-v-task-type-prod { background: #e3f2fd; color: #1565c0; }
.mkt-v-task-type-talk { background: #fce4ec; color: #c2185b; }
.mkt-v-task-type-ai { background: #fff3e0; color: #e65100; }
.mkt-v-task-sub {
    font-size: 12px; color: var(--text-light);
    line-height: 1.5; word-break: break-word;
}
.mkt-v-task-badge {
    font-size: 11px; font-weight: 600; padding: 2px 8px;
    border-radius: 4px; flex-shrink: 0; white-space: nowrap;
}
.mkt-v-task-badge.completed { background: #e8f5e9; color: var(--primary-dark); }
.mkt-v-task-badge.processing { background: #fff3e0; color: #e65100; }
.mkt-v-task-badge.failed { background: #ffebee; color: #c62828; }
.mkt-v-task-badge.pending { background: #e3f2fd; color: #1565c0; }
.mkt-v-task-ops {
    display: flex; flex-direction: column; gap: 4px; align-items: center;
    flex-shrink: 0;
}
.mkt-v-task-icon-btn {
    width: 32px; height: 32px; border: 1px solid var(--border);
    border-radius: 6px; background: var(--card-bg);
    color: var(--text); cursor: pointer; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    padding: 0; text-decoration: none;
    transition: all 0.15s; flex-shrink: 0;
}
.mkt-v-task-icon-btn:hover { border-color: var(--accent); background: #f5f5f5; }
.mkt-v-task-retry { border-color: #ff9800; color: #ff9800; }
.mkt-v-task-retry:hover { background: #fff3e0; }
.mkt-v-task-del:hover { background: #ffebee; color: #c62828; border-color: #ffcdd2; }
.mkt-v-play-entry {
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 6px; padding: 4px 10px;
    background: var(--primary); color: #fff !important;
    border-radius: 14px; font-size: 12px; font-weight: 600;
    cursor: pointer; transition: opacity 0.15s;
}
.mkt-v-play-entry:hover { opacity: 0.85; }
@media (max-width: 640px) {
    .mkt-v-task-row { padding: 10px; gap: 8px; }
    .mkt-v-task-icon { width: 38px; height: 38px; font-size: 18px; }
    .mkt-v-task-title { font-size: 13.5px; -webkit-line-clamp: 2; }
    .mkt-v-task-ops { flex-direction: row; }
    .mkt-v-task-icon-btn { width: 30px; height: 30px; font-size: 14px; }
}

.mkt-v-empty {
    text-align: center; padding: 40px 20px; color: var(--text-light);
    font-size: 14px;
}
.mkt-v-empty .mkt-v-empty-icon { font-size: 32px; display: block; margin-bottom: 8px; }

/* ═══ v3.22.93: 视频播放UI修复（结果区关闭+历史模态框播放） ═══ */
.mkt-v-result-close {
    float: right; width: 30px; height: 30px; border: none; border-radius: 50%;
    background: #ffebee; color: #c62828; font-size: 15px; cursor: pointer;
    line-height: 1; transition: all 0.15s;
}
.mkt-v-result-close:hover { background: #c62828; color: #fff; }
.mkt-v-play-entry {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 6px; padding: 8px 16px; border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
    user-select: none; transition: opacity 0.15s, transform 0.15s;
}
.mkt-v-play-entry:hover { opacity: 0.9; transform: translateY(-1px); }
.mkt-v-play-entry:active { transform: scale(0.97); }
.mkt-v-play-icon {
    width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,0.25);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; padding-left: 2px;
}
.mkt-v-modal-mask {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.78); backdrop-filter: blur(2px);
    display: flex; align-items: center; justify-content: center;
    padding: 16px; animation: mktVModalIn 0.2s ease;
}
@keyframes mktVModalIn { from { opacity: 0; } to { opacity: 1; } }
.mkt-v-modal {
    width: 100%; max-width: 720px; background: #fff;
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: mktVModalUp 0.25s cubic-bezier(0.16,1,0.3,1);
}
@keyframes mktVModalUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.mkt-v-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.mkt-v-modal-title {
    font-size: 15px; font-weight: 700; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 80%;
}
.mkt-v-modal-close {
    width: 32px; height: 32px; border: none; border-radius: 50%;
    background: #ffebee; color: #c62828; font-size: 15px; cursor: pointer;
    flex-shrink: 0; transition: all 0.15s;
}
.mkt-v-modal-close:hover { background: #c62828; color: #fff; }
.mkt-v-modal-video {
    display: block; width: 100%; max-height: 68vh; background: #000;
}
.mkt-v-modal-foot {
    display: flex; justify-content: center; padding: 12px 16px;
    border-top: 1px solid var(--border);
}
@media (max-width: 640px) {
    .mkt-v-modal-mask { padding: 10px; align-items: flex-end; }
    .mkt-v-modal { border-radius: 14px 14px 0 0; }
    .mkt-v-modal-video { max-height: 60vh; }
}

@media (max-width: 640px) {
    .mkt-v-thumb-grid { grid-template-columns: repeat(3, 1fr); }
    .mkt-vm-btn small { display: none; }
    .mkt-v-player { max-width: 100%; }
}

/* ═══ v3.22.81: 合作商门店接入申请弹窗 ═══ */
.partner-apply-tip {
    font-size: 13px; color: var(--text-light); line-height: 1.5;
    background: #f0f7ff; border-radius: 8px; padding: 10px 12px;
    margin-bottom: 14px; border-left: 3px solid var(--primary);
}
.partner-form-group { margin-bottom: 12px; }
.partner-form-group label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--text-dark); margin-bottom: 4px;
}
.partner-form-group input,
.partner-form-group textarea {
    width: 100%; padding: 8px 10px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 14px; box-sizing: border-box;
    transition: border-color 0.2s;
}
.partner-form-group input:focus,
.partner-form-group textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(26,127,55,0.1);
}
.partner-apply-submit-btn {
    width: 100%; padding: 10px; border: none; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
    transition: opacity 0.2s, transform 0.1s; margin-top: 6px;
}
.partner-apply-submit-btn:active { transform: scale(0.98); }
.partner-apply-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.partner-apply-result {
    text-align: center; padding: 20px 10px;
}
.partner-apply-result .success-icon { font-size: 48px; margin-bottom: 8px; }
.partner-apply-result .success-text { font-size: 16px; font-weight: 600; color: var(--primary-dark); margin-bottom: 4px; }
.partner-apply-result .success-desc { font-size: 13px; color: var(--text-light); }
.partner-apply-result .reject-icon { font-size: 48px; margin-bottom: 8px; }
.partner-apply-result .reject-text { font-size: 16px; font-weight: 600; color: #ef4444; margin-bottom: 4px; }
.partner-apply-result .reject-desc { font-size: 13px; color: var(--text-light); line-height: 1.5; }

/* 移动端适配 - v3.22.87: 紧凑化 */
html[data-device="mobile"] .stores-feature-desc {
    padding: 4px 0 6px;
}
html[data-device="mobile"] .sfd-text { font-size: 11px; }
html[data-device="mobile"] .partner-apply-badge {
    font-size: 10px; padding: 3px 7px; gap: 3px;
}
html[data-device="mobile"] .pab-dot { width: 4px; height: 4px; }
html[data-device="mobile"] .pab-arrow { font-size: 11px; }
html[data-device="mobile"] .partner-apply-tip { font-size: 12px; }
html[data-device="mobile"] .partner-form-group label { font-size: 12px; }
html[data-device="mobile"] .partner-form-group input,
html[data-device="mobile"] .partner-form-group textarea { font-size: 13px; padding: 7px 9px; }
html[data-device="mobile"] .partner-apply-submit-btn { font-size: 14px; padding: 9px; }

/* ═══════════ v3.22.96 农事看板 — 市场行情 + 农友圈精华 推荐区 ═══════════ */
/* 双列信息面板（参考专业社区网站排版）：PC 双列，移动端单列堆叠 */
.dash-reco-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border: none !important;
    align-items: stretch;
}
.dash-reco-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.dash-reco-panel .no-alert { color: #6b7280; font-size: 13px; text-align: center; padding: 12px 4px; }

/* ── 市场行情列表行 ── */
.dash-market-list { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.dash-mkt-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fffdf7 0%, #fff8ee 100%);
    border: 1px solid #f5e9d8;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s;
    animation: alertSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.dash-mkt-item:nth-child(1) { animation-delay: 0.05s; }
.dash-mkt-item:nth-child(2) { animation-delay: 0.10s; }
.dash-mkt-item:nth-child(3) { animation-delay: 0.15s; }
.dash-mkt-item:nth-child(n+4) { animation-delay: 0.20s; }
.dash-mkt-item:hover { transform: translateY(-2px); box-shadow: 0 5px 14px rgba(245, 158, 11, 0.14); }
.dash-mkt-emoji { font-size: 16px; }
.dash-mkt-name { font-size: 13px; font-weight: 700; color: var(--text); min-width: 34px; }
.dash-mkt-price {
    flex: 1;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    color: #b45309;
    font-variant-numeric: tabular-nums;
}
.dash-mkt-price i { font-style: normal; font-size: 10px; font-weight: 500; color: #a16207; margin-left: 2px; }
.dash-mkt-chg { font-size: 11px; font-weight: 700; min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; }
.dash-mkt-chg.up { color: #ef4444; }     /* 红涨 */
.dash-mkt-chg.down { color: #16a34a; }   /* 绿跌 */
.dash-mkt-chg.flat { color: #6b7280; }

/* ── 农友圈精华卡片 ── */
.dash-cm-list { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dash-cm-item {
    display: flex;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #faf8ff 0%, #f4f0fc 100%);
    border: 1px solid #e8e0f5;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s;
    animation: alertSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.dash-cm-item:nth-child(1) { animation-delay: 0.05s; }
.dash-cm-item:nth-child(2) { animation-delay: 0.12s; }
.dash-cm-item:nth-child(3) { animation-delay: 0.19s; }
.dash-cm-item:hover { transform: translateY(-2px); box-shadow: 0 5px 14px rgba(139, 92, 246, 0.15); }
.dash-cm-cover {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea, #764ba2);
}
.dash-cm-cover img { width: 100%; height: 100%; object-fit: cover; }
.dash-cm-cover-emoji {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}
.dash-cm-cover img + .dash-cm-cover-emoji { display: none; }
.dash-cm-star {
    position: absolute;
    top: 2px;
    left: 2px;
    background: rgba(255, 165, 0, 0.92);
    color: #fff;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}
.dash-cm-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.dash-cm-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dash-cm-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #8b8296; overflow: hidden; white-space: nowrap; }
.dash-cm-cat {
    background: #efe9fb;
    color: #7c3aed;
    padding: 1px 7px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 10px;
    flex-shrink: 0;
}

/* ── 底部引导条 ── */
.dash-reco-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}
.dash-reco-hint { font-size: 10.5px; color: var(--text-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-reco-btn {
    flex-shrink: 0;
    border: none;
    background: linear-gradient(90deg, #16a34a, #15803d);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}
.dash-reco-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35); }
.dash-reco-btn:active { transform: scale(0.97); }

/* ── 移动端：双列改单列堆叠 ── */
html[data-device="mobile"] .dash-reco-row { grid-template-columns: 1fr; gap: 8px; }
html[data-device="mobile"] .dash-reco-panel { padding: 10px 12px; }
html[data-device="mobile"] .dash-cm-cover { width: 46px; height: 46px; }
html[data-device="mobile"] .dash-reco-footer { flex-wrap: wrap; }
/* v3.23.17: 移动端幻灯片 */
html[data-device="mobile"] .dash-expv-panel { padding: 10px 12px; }
html[data-device="mobile"] .dash-expv-slide { max-height: 200px; }
html[data-device="mobile"] .dash-expv-mask { padding: 22px 10px 8px; }
html[data-device="mobile"] .dash-expv-mask .dash-expv-title { font-size: 12.5px; }
html[data-device="mobile"] .dash-expv-arrow { width: 26px; height: 26px; font-size: 16px; }

/* ── v3.23.16: 专家答疑精华（精华视频 + 客户答疑精选） ── */
.dash-star-inline {
    display: inline-block;
    vertical-align: 1px;
    background: rgba(255, 165, 0, 0.92);
    color: #fff;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
    margin-left: 2px;
}

/* v3.23.17: 专家精选视频 幻灯片面板 */
.dash-expv-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border: 1px solid #d4e8f7;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 2px 10px rgba(14, 132, 194, 0.06);
    margin-bottom: 12px;
}
.dash-expv-slide {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 240px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0f16 0%, #11243d 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.dash-expv-slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: scale(1.02);
    cursor: pointer;
}
.dash-expv-slide-item.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 1;
}
.dash-expv-slide-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}
/* v3.23.38: 封面图片轮播 */
.dash-expv-slide-item .dash-expv-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #0a0f16 0%, #11243d 100%);
}
.dash-expv-cover-ph {
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 14px;
    font-weight: 600;
}
.dash-expv-mask {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 14px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 70%, transparent 100%);
    color: #fff;
    pointer-events: none;
}
.dash-expv-mask .dash-expv-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    margin-bottom: 4px;
}
.dash-expv-mask .dash-cm-meta { color: rgba(255, 255, 255, 0.85); }
.dash-expv-mask .dash-cm-cat {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    backdrop-filter: blur(4px);
}
.dash-expv-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(4px);
}
.dash-expv-arrow:hover { background: rgba(0, 0, 0, 0.7); transform: translateY(-50%) scale(1.08); }
.dash-expv-arrow-prev { left: 8px; }
.dash-expv-arrow-next { right: 8px; }
.dash-expv-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}
.dash-expv-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background 0.2s, width 0.25s;
    border: none;
    padding: 0;
}
.dash-expv-dot:hover { background: rgba(255, 255, 255, 0.75); }
.dash-expv-dot.active {
    background: #fff;
    width: 22px;
    border-radius: 4px;
}

/* v3.23.39: 「去课堂观看」角标（封面右上角半透明胶囊） */
.dash-expv-golive {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    transition: background 0.2s;
}
.dash-expv-slide-item:hover .dash-expv-golive {
    background: rgba(22, 163, 74, 0.88);
    border-color: rgba(255, 255, 255, 0.55);
}

/* v3.23.39: 课程卡定位高亮闪烁（跳转专家课堂后定位） */
@keyframes ecCardFlash {
    0%, 100% {
        box-shadow: 0 0 0 2px rgba(250, 173, 20, 0), 0 2px 10px rgba(0, 0, 0, 0.08);
        transform: none;
    }
    50% {
        box-shadow: 0 0 0 3px rgba(250, 173, 20, 0.85), 0 4px 18px rgba(250, 173, 20, 0.35);
        transform: translateY(-2px);
    }
}
.ec-card-flash {
    animation: ecCardFlash 0.8s ease-in-out 3;
    border-color: rgba(250, 173, 20, 0.7) !important;
}

/* v3.23.39: 移动端兼容性优化（紧凑 + 视觉层次） */
/* 圆点移至顶部右侧，避免与底部 mask 文字重叠 */
html[data-device="mobile"] .dash-expv-dots {
    bottom: auto;
    top: 8px;
    right: 10px;
    left: auto;
    transform: none;
    gap: 5px;
}
/* 角标缩小，避开圆点区域 */
html[data-device="mobile"] .dash-expv-golive {
    top: 6px;
    right: auto;
    left: 8px;
    padding: 3px 8px;
    font-size: 10px;
}
/* 面板更紧凑 */
html[data-device="mobile"] .dash-expv-panel {
    padding: 10px 12px;
    gap: 6px;
    border-radius: 12px;
    margin-bottom: 10px;
}
html[data-device="mobile"] .dash-expv-slide {
    max-height: 200px;
    border-radius: 10px;
}
/* 标题单行省略，meta 保持一行，层次更清晰 */
html[data-device="mobile"] .dash-expv-mask { padding: 24px 10px 8px; }
html[data-device="mobile"] .dash-expv-mask .dash-expv-title {
    font-size: 12.5px;
    -webkit-line-clamp: 1;
    line-height: 1.35;
    margin-bottom: 3px;
}
/* 箭头缩小并上移点击热区（触屏仍可点） */
html[data-device="mobile"] .dash-expv-arrow {
    width: 28px;
    height: 28px;
    font-size: 15px;
    background: rgba(0, 0, 0, 0.4);
}
html[data-device="mobile"] .dash-expv-arrow-prev { left: 6px; }
html[data-device="mobile"] .dash-expv-arrow-next { right: 6px; }
/* 底部引导条紧凑 */
html[data-device="mobile"] .dash-reco-footer { padding-top: 6px; }
html[data-device="mobile"] .dash-reco-btn { font-size: 11px; padding: 5px 10px; }

.dash-expv-list { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dash-expv-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e8f4fd 100%);
    border: 1px solid #d4e8f7;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s;
    animation: alertSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.dash-expv-item:nth-child(1) { animation-delay: 0.05s; }
.dash-expv-item:nth-child(2) { animation-delay: 0.12s; }
.dash-expv-item:nth-child(3) { animation-delay: 0.19s; }
.dash-expv-item:hover { transform: translateY(-2px); box-shadow: 0 5px 14px rgba(14, 132, 194, 0.15); }
.dash-expv-video {
    width: 100%;
    max-height: 130px;
    border-radius: 8px;
    background: #0a0f16;
    object-fit: cover;
    display: block;
}
.dash-expv-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dash-qa-pick-list { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dash-qa-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f2fbf5 0%, #e9f8ef 100%);
    border: 1px solid #d3eede;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s;
    animation: alertSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.dash-qa-item:nth-child(1) { animation-delay: 0.05s; }
.dash-qa-item:nth-child(2) { animation-delay: 0.12s; }
.dash-qa-item:nth-child(3) { animation-delay: 0.19s; }
.dash-qa-item:hover { transform: translateY(-2px); box-shadow: 0 5px 14px rgba(22, 163, 74, 0.15); }
.dash-qa-q {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dash-qa-a {
    font-size: 11.5px;
    color: #4b7c5c;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
html[data-device="mobile"] .dash-expv-video { max-height: 110px; }

