/* =====================================================================
   查询订单独立页样式（不依赖 user.css / 模板 style.css）
   2026-04 重做：去掉单调的"白底 + 浅灰边"配色，改成现代渐变 + 卡片层次
   ===================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 14px; color: #1f2937; line-height: 1.6;
    background: #f0f3fb;
    background-image: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
                      radial-gradient(ellipse 60% 50% at 100% 0%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ============ Header ============ */
.fo-header {
    height: 60px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
    position: sticky; top: 0; z-index: 100;
}
.fo-header-inner {
    max-width: 1320px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; height: 100%;
}
.fo-header-logo {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 17px; font-weight: 700; color: #0f172a;
    margin-right: 14px;
}
.fo-header-logo__text { font-size: 17px; font-weight: 700; color: #0f172a; letter-spacing: 0.3px; }
.fo-header-logo__img,
.fo-header-logo img {
    height: 32px !important;
    width: auto;
    max-width: 200px;
    display: block;
    object-fit: contain;
}
/* 兼容旧版"图标徽章"模式（保留以防其它代码引用） */
.fo-header-logo__mark {
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff; border-radius: 8px; font-size: 15px;
    box-shadow: 0 2px 6px rgba(99,102,241,0.35);
}
.fo-header-title {
    font-size: 13px; color: #6366f1; font-weight: 500;
    padding: 4px 12px;
    background: #eef2ff;
    border-radius: 999px;
    display: inline-flex; align-items: center; gap: 5px;
    letter-spacing: 0.3px;
}
.fo-header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.fo-header-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 14px; font-size: 13px; color: #475569;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
    transition: all 0.15s;
}
.fo-header-btn:hover {
    color: #6366f1; border-color: #c7d2fe; background: #f5f7ff;
}

/* ============ PJAX Loading ============ */
.fo-loading {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(2px);
    display: none; align-items: center; justify-content: center;
}
.fo-loading.is-active { display: flex; }
.fo-loading-spinner {
    width: 36px; height: 36px;
    border: 3px solid #e0e7ff; border-top-color: #6366f1;
    border-radius: 50%;
    animation: fo-spin 0.7s linear infinite;
}
@keyframes fo-spin { to { transform: rotate(360deg); } }

/* ============ 容器 ============ */
.fo-wrap {
    max-width: 920px;
    margin: 28px auto 80px;
    padding: 0 16px;
}
.fo-card {
    background: #fff;
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04),
                0 8px 32px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.08);
}

/* ============ 默认查询表单：hero + tabs + form ============
   2026-04 第二轮：去掉紫渐变 + 装饰圆，改成左侧 accent 竖线 + 深色标题，
   走"安静的 SaaS 工具页"风格，避免一打开就是大色块的"AI 生成感"
   ============================================================ */
.fo-hero {
    position: relative;
    padding: 26px 32px 22px 30px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}
.fo-hero::before {
    content: '';
    position: absolute;
    left: 0; top: 26px; bottom: 22px;
    width: 3px;
    background: #6366f1;
    border-radius: 0 2px 2px 0;
}
.fo-hero__title {
    font-size: 17px; font-weight: 600;
    color: #0f172a;
    letter-spacing: 0.2px;
    margin-bottom: 4px;
}
.fo-hero__sub {
    font-size: 12.5px;
    color: #94a3b8;
}

/* 查询表单整体 */
.find-order-layout { padding: 24px 32px 32px; }

/* tabs：现代 segmented control */
.find-order-tabs {
    display: flex; gap: 6px;
    padding: 6px;
    margin-bottom: 22px;
    background: #f5f7fb;
    border-radius: 10px;
}
.find-order-tab {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 14px;
    font-size: 13.5px; color: #64748b; font-weight: 500;
    background: transparent; border: 0; border-radius: 7px;
    cursor: pointer; transition: all 0.18s;
    white-space: nowrap;
}
.find-order-tab i { font-size: 13px; }
.find-order-tab:hover { color: #4338ca; background: rgba(255, 255, 255, 0.5); }
.find-order-tab.active {
    color: #4338ca; background: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
}

/* 面板进入动画 */
.find-order-panel { animation: fo-panel-in 0.25s ease-out; }
@keyframes fo-panel-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 提示条 */
.find-order-hint {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    background: #f0f4ff;
    border: 1px solid #dbe4ff;
    color: #4338ca;
    font-size: 13px;
    border-radius: 8px;
    margin-bottom: 14px;
}
.find-order-hint i { color: #6366f1; font-size: 14px; }

/* 表单字段 */
.find-order-form { padding: 4px 2px; }
.find-order-form-group { margin-bottom: 16px; }
.find-order-form-group label {
    display: block; margin-bottom: 8px;
    font-size: 13px; color: #475569; font-weight: 500;
}
.find-order-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px; color: #1f2937;
    background: #fff; border: 1.5px solid #e2e8f0; border-radius: 8px;
    transition: all 0.15s;
    outline: none;
}
.find-order-input::placeholder { color: #94a3b8; }
.find-order-input:hover { border-color: #cbd5e1; }
.find-order-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

/* 算术 captcha 行：表达式 chip + 输入框 + 换一题按钮，inline 紧凑布局 */
.fo-captcha-row { margin-bottom: 16px; }
.fo-captcha {
    display: flex; align-items: stretch; gap: 8px;
}
.fo-captcha__expr {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 110px;
    padding: 0 16px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 15px; font-weight: 600;
    color: #4338ca; letter-spacing: 1px;
    background: #eef2ff;
    border: 1.5px solid #c7d2fe;
    border-radius: 8px;
    user-select: none;
    flex-shrink: 0;
}
.fo-captcha__input {
    flex: 1;
    /* 复用 .find-order-input 的视觉，仅覆盖宽度让它跟同行排开 */
}
.fo-captcha__refresh {
    flex-shrink: 0;
    width: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #6366f1;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.fo-captcha__refresh:hover {
    color: #4338ca;
    border-color: #c7d2fe;
    background: #f5f7ff;
}
.fo-captcha__refresh i { font-size: 14px; }
.fo-captcha__refresh i.fa-spin { animation: fo-spin 0.7s linear infinite; }

/* 提交按钮：去掉渐变 + transform 浮起 + 大阴影
   改成实色紫 + hover 加深，工具页风格而非营销页风格 */
.find-order-submit {
    width: 100%;
    padding: 11px 16px;
    font-size: 14px; font-weight: 500; color: #fff;
    letter-spacing: 0.5px;
    background: #4f46e5;
    border: 0; border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.find-order-submit:hover { background: #4338ca; }
.find-order-submit:active { background: #3730a3; }
.find-order-submit:disabled {
    background: #c7d2fe;
    cursor: not-allowed;
}

/* 加载状态 */
.find-order-loading {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 40px 20px;
    color: #64748b; font-size: 13px;
}
.find-order-spinner {
    width: 32px; height: 32px;
    border: 3px solid #e0e7ff; border-top-color: #6366f1;
    border-radius: 50%;
    animation: fo-spin 0.7s linear infinite;
}

/* 空状态 / 错误 */
.find-order-empty {
    padding: 40px 20px;
    text-align: center;
    color: #64748b; font-size: 14px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}
.find-order-empty small { display: block; margin-top: 8px; font-size: 12.5px; color: #94a3b8; }
.find-order-error {
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}

/* ============ 查询结果列表 ============ */
.find-order-results { margin-top: 18px; }
.find-order-results-header {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 13px; color: #166534;
}
.find-order-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.find-order-item:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.08);
    transform: translateY(-1px);
}
.find-order-item-header {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 10px; margin-bottom: 10px;
    border-bottom: 1px dashed #f1f5f9;
}
.find-order-no {
    font-size: 12.5px; color: #475569;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: #f1f5f9; padding: 3px 8px; border-radius: 4px;
}
.find-order-status {
    display: inline-flex; align-items: center;
    padding: 2px 9px;
    font-size: 12px; font-weight: 500;
    border-radius: 11px;
}
.find-order-status--awaiting {
    gap: 5px;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.18);
}
.find-order-status__spin {
    font-size: 11px;
    line-height: 1;
    opacity: 0.95;
}
/* 商品行：每个 goods 自身是一个浅灰小块，多个商品堆叠时
   行间距 + 独立背景能立刻区分出"这是 N 件不同商品"，不再糊成一坨 */
.find-order-goods {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    background: #fafbfc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    margin-bottom: 6px;
    transition: background 0.15s, border-color 0.15s;
}
.find-order-goods:last-of-type { margin-bottom: 0; }
.find-order-goods:hover {
    background: #f5f7ff;
    border-color: #e0e7ff;
}
.find-order-goods-img {
    width: 44px; height: 44px;
    border-radius: 6px; object-fit: cover;
    background: #fff; flex-shrink: 0;
    border: 1px solid #f1f5f9;
}
.find-order-goods-info { flex: 1; min-width: 0; }
.find-order-goods-name {
    font-size: 13.5px; color: #1f2937; font-weight: 500;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    line-height: 1.4;
}
.find-order-goods-spec {
    display: inline-block;
    font-size: 11.5px; color: #6366f1;
    background: #eef2ff;
    padding: 1px 7px;
    border-radius: 3px;
    margin-top: 4px;
}
.find-order-goods-price {
    font-size: 13.5px;
    color: #4f46e5; font-weight: 600;
    flex-shrink: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* item footer：下单时间 + 实付金额 —— 与商品行用细虚线分隔 */
.find-order-item-footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    padding-top: 10px; margin-top: 8px;
    border-top: 1px dashed #f1f5f9;
}
.find-order-time {
    font-size: 12.5px; color: #94a3b8;
    display: inline-flex; align-items: center; gap: 5px;
}
.find-order-time::before {
    content: '\f017'; /* fa-clock-o */
    font-family: FontAwesome;
    font-size: 11px;
    color: #cbd5e1;
}
.find-order-total {
    font-size: 13px; color: #64748b;
}
.find-order-total strong {
    font-size: 15px; font-weight: 700;
    color: #4f46e5 !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    margin-left: 2px;
}

/* 行内操作区（结果列表项底部）：右对齐排开按钮 */
.find-order-actions {
    display: flex; align-items: center; justify-content: flex-end;
    gap: 8px;
    margin-top: 12px; padding-top: 10px;
    border-top: 1px dashed #f1f5f9;
}
.find-order-action-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px;
    font-size: 12.5px; font-weight: 500;
    color: #4338ca;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 6px;
    transition: all 0.15s;
    cursor: pointer;
}
.find-order-action-btn:hover {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}
.find-order-action-btn::before {
    content: '\f06e';  /* fa-eye */
    font-family: FontAwesome;
    font-size: 11px;
}

/* ============ 订单详情页 ============ */
.fo-detail { padding: 0; }
.fo-detail__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 28px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
}
.fo-detail__title {
    font-size: 18px; font-weight: 700; letter-spacing: 0.5px;
    display: inline-flex; align-items: center; gap: 8px;
}
.fo-detail__title i { font-size: 18px; opacity: 0.9; }
.fo-detail__back {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 14px;
    font-size: 13px; color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    transition: background 0.15s;
}
.fo-detail__back:hover { background: rgba(255, 255, 255, 0.28); }

/* 元信息表 —— 双栏 row 紧凑布局 */
.fo-detail__meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 24px;
    padding: 4px 28px 12px;
    background: #fff;
}
@media (max-width: 640px) { .fo-detail__meta { grid-template-columns: 1fr; column-gap: 0; } }
.fo-detail__row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 14px;
}
.fo-detail__row:nth-last-child(-n+2) { border-bottom: 0; }
.fo-detail__label { font-size: 12.5px; color: #94a3b8; flex-shrink: 0; }
.fo-detail__value {
    font-size: 13px; color: #1f2937; font-weight: 500;
    text-align: right; word-break: break-all;
}
.fo-detail__amount {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #4f46e5 !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* 详情页彩色 status pill */
.fo-status-pill {
    display: inline-flex; align-items: center;
    padding: 3px 12px;
    font-size: 12.5px; font-weight: 600;
    border-radius: 11px;
    letter-spacing: 0.3px;
}

/* 信息分区（收货地址 / 商品明细 / 备注）—— 用浅灰大间隔分隔区块 */
.fo-detail__section {
    padding: 16px 28px;
    border-top: 8px solid #f5f7fb;
}
.fo-detail__section-title {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 600; color: #1f2937;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}
.fo-detail__section-title i { color: #6366f1; font-size: 13px; }

/* 商品明细 */
.fo-detail__goods {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 0;
    border-bottom: 1px dashed #f1f5f9;
}
.fo-detail__goods:last-child { border-bottom: 0; }
.fo-detail__goods-cover {
    width: 56px; height: 56px;
    border-radius: 8px; object-fit: cover;
    background: #f1f5f9; flex-shrink: 0;
    border: 1px solid #f1f5f9;
}
.fo-detail__goods-cover--empty {
    display: flex; align-items: center; justify-content: center;
    color: #cbd5e1; font-size: 16px;
}
.fo-detail__goods-body { flex: 1; min-width: 0; }
.fo-detail__goods-title {
    font-size: 14px; color: #1f2937; font-weight: 500;
    line-height: 1.4;
}
.fo-detail__goods-spec { font-size: 12px; color: #94a3b8; margin-top: 4px; }
.fo-detail__goods-price {
    font-size: 13.5px; color: #4f46e5; font-weight: 600;
    flex-shrink: 0;
    text-align: right; line-height: 1.5;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* 发货内容（卡密 / 链接等） */
.fo-detail__delivery {
    margin-top: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}
.fo-detail__delivery-label {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; color: #4338ca; font-weight: 500;
    margin-bottom: 6px;
}
.fo-detail__delivery-content {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    color: #1f2937;
    background: #fff;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #f1f5f9;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 240px;
    overflow-y: auto;
}

/* 异步发货中：状态角标旁转圈 */
.fo-status-pill--awaiting {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.fo-status-pill__spin {
    font-size: 13px;
    opacity: 0.9;
}

/* 备注 */
.fo-detail__remark {
    padding: 10px 14px;
    background: #fffbeb;
    border-left: 3px solid #fcd34d;
    color: #78350f;
    font-size: 13px;
    border-radius: 4px;
    line-height: 1.7;
}

/* 移动端 */
@media (max-width: 640px) {
    .fo-wrap { margin-top: 16px; padding: 0 12px; }
    .fo-hero { padding: 22px 20px 18px 22px; }
    .fo-hero::before { top: 22px; bottom: 18px; }
    .fo-hero__title { font-size: 16px; }
    .find-order-layout { padding: 18px 18px 22px; }
    .fo-captcha__expr { min-width: 92px; padding: 0 10px; font-size: 14px; letter-spacing: 0.5px; }
    .fo-captcha__refresh { width: 40px; }
    .find-order-tabs { gap: 4px; padding: 4px; }
    .find-order-tab { padding: 8px 8px; font-size: 12.5px; }
    .find-order-tab i { display: none; }
    .fo-detail__header { padding: 18px 18px; flex-wrap: wrap; gap: 10px; }
    .fo-detail__title { font-size: 16px; }
    .fo-detail__meta,
    .fo-detail__section { padding-left: 18px; padding-right: 18px; }
}

/* =====================================================================
   暴龙AI统一深色皮肤：和商城首页 / 商品详情保持一致
   ===================================================================== */
:root {
    --fo-bg: #050a0f;
    --fo-panel: rgba(15, 20, 28, 0.92);
    --fo-panel-strong: rgba(17, 23, 32, 0.96);
    --fo-border: rgba(255, 255, 255, 0.09);
    --fo-border-strong: rgba(255, 122, 43, 0.34);
    --fo-text: #f6f7f9;
    --fo-muted: #9eabbc;
    --fo-soft: #c9d0d9;
    --fo-orange: #ff7a2b;
    --fo-orange-2: #ffb064;
}
body {
    color: var(--fo-text);
    background:
        radial-gradient(circle at 52% 0%, rgba(255, 122, 43, 0.16), transparent 34%),
        radial-gradient(circle at 80% 55%, rgba(255, 176, 100, 0.08), transparent 32%),
        linear-gradient(180deg, #050a0f 0%, #070c12 52%, #05090e 100%);
}
.fo-header {
    background: rgba(5, 9, 14, 0.88);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    box-shadow: none;
}
.fo-header-logo,
.fo-header-logo__text {
    color: #fff;
}
.fo-header-logo__img,
.fo-header-logo img {
    height: 38px !important;
    filter: drop-shadow(0 8px 20px rgba(255, 122, 43, 0.18));
}
.fo-header-title {
    color: #ffbd7d;
    background: rgba(255,122,43,0.11);
    border: 1px solid rgba(255,122,43,0.18);
}
.fo-header-btn {
    color: #ffd8b8;
    background: rgba(255,122,43,0.10);
    border-color: rgba(255,122,43,0.16);
}
.fo-header-btn:hover {
    color: #fff;
    background: rgba(255,122,43,0.18);
    border-color: rgba(255,122,43,0.34);
}
.fo-wrap {
    max-width: 960px;
    margin-top: 34px;
}
.fo-card {
    background: linear-gradient(180deg, var(--fo-panel-strong), rgba(10,14,20,0.96));
    border-color: var(--fo-border);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(0,0,0,0.34), 0 0 0 1px rgba(255,122,43,0.04);
}
.fo-hero {
    background:
        linear-gradient(135deg, rgba(255,122,43,0.12), rgba(255,176,100,0.04)),
        rgba(255,255,255,0.02);
    border-bottom-color: rgba(255,255,255,0.08);
}
.fo-hero::before {
    background: linear-gradient(180deg, var(--fo-orange), var(--fo-orange-2));
}
.fo-hero__title {
    color: #fff;
    font-size: 19px;
    font-weight: 900;
}
.fo-hero__sub {
    color: var(--fo-muted);
}
.find-order-tabs {
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.08);
}
.find-order-tab {
    color: #a9b2c0;
}
.find-order-tab:hover {
    color: #fff;
    background: rgba(255,122,43,0.10);
}
.find-order-tab.active {
    color: #111418;
    background: linear-gradient(135deg, #ff8a34, #ffb064);
    box-shadow: 0 12px 28px rgba(255,122,43,0.18);
}
.find-order-hint {
    background: rgba(255,122,43,0.08);
    border-color: rgba(255,122,43,0.20);
    color: #ffcfaa;
}
.find-order-hint i {
    color: #ffb064;
}
.find-order-form-group label {
    color: var(--fo-soft);
}
.find-order-input,
.fo-captcha__refresh {
    color: #eef3f8;
    background: rgba(255,255,255,0.055);
    border-color: rgba(255,255,255,0.12);
}
.find-order-input::placeholder {
    color: #737f8f;
}
.find-order-input:hover,
.fo-captcha__refresh:hover {
    border-color: rgba(255,122,43,0.36);
}
.find-order-input:focus {
    border-color: rgba(255,122,43,0.62);
    box-shadow: 0 0 0 4px rgba(255,122,43,0.12);
}
.fo-captcha__expr {
    color: #ffbd7d;
    background: rgba(255,122,43,0.11);
    border-color: rgba(255,122,43,0.28);
}
.fo-captcha__refresh {
    color: #ffbd7d;
}
.find-order-submit {
    color: #15100c;
    background: linear-gradient(135deg, #ff8a34, #ff6d25);
    border-radius: 12px;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(255,112,38,0.22);
}
.find-order-submit:hover,
.find-order-submit:active {
    background: linear-gradient(135deg, #ff9b4c, #ff7629);
}
.find-order-submit:disabled {
    background: rgba(255,122,43,0.28);
    color: rgba(255,255,255,0.56);
}
.find-order-loading,
.find-order-empty {
    color: var(--fo-muted);
}
.find-order-spinner,
.fo-loading-spinner {
    border-color: rgba(255,255,255,0.12);
    border-top-color: var(--fo-orange);
}
.find-order-empty {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.10);
}
.find-order-empty small {
    color: #737f8f;
}
.find-order-error {
    background: rgba(255,82,82,0.10);
    border-color: rgba(255,82,82,0.24);
    color: #ffb4b4;
}
.find-order-results-header {
    background: rgba(85,209,154,0.10);
    border-color: rgba(85,209,154,0.22);
    color: #a7f3c9;
}
.find-order-item {
    background: rgba(255,255,255,0.045);
    border-color: rgba(255,255,255,0.09);
}
.find-order-item:hover {
    border-color: rgba(255,122,43,0.30);
    box-shadow: 0 14px 34px rgba(0,0,0,0.22);
}
.find-order-item-header,
.find-order-item-footer,
.find-order-actions {
    border-color: rgba(255,255,255,0.08);
}
.find-order-no {
    color: #ffcfaa;
    background: rgba(255,122,43,0.10);
}
.find-order-goods {
    background: rgba(5,9,14,0.38);
    border-color: rgba(255,255,255,0.08);
}
.find-order-goods:hover {
    background: rgba(255,122,43,0.08);
    border-color: rgba(255,122,43,0.20);
}
.find-order-goods-img {
    background: #090e15;
    border-color: rgba(255,255,255,0.10);
}
.find-order-goods-name {
    color: #fff;
}
.find-order-goods-spec {
    color: #ffbd7d;
    background: rgba(255,122,43,0.11);
}
.find-order-goods-price,
.find-order-total strong {
    color: #ff8a34 !important;
}
.find-order-time,
.find-order-total {
    color: var(--fo-muted);
}
.find-order-time::before {
    color: #697485;
}
.find-order-action-btn {
    color: #ffbd7d;
    background: rgba(255,122,43,0.11);
    border-color: rgba(255,122,43,0.26);
}
.find-order-action-btn:hover {
    color: #15100c;
    background: linear-gradient(135deg, #ff8a34, #ffb064);
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(255,122,43,0.22);
}
.fo-detail__header {
    background: linear-gradient(135deg, rgba(255,122,43,0.92), rgba(255,176,100,0.72));
    color: #111418;
}
.fo-detail__title,
.fo-detail__title i {
    color: #111418;
}
.fo-detail__back {
    color: #15100c;
    background: rgba(17,20,24,0.10);
}
.fo-detail__back:hover {
    background: rgba(17,20,24,0.18);
}
.fo-detail__meta {
    background: transparent;
}
.fo-detail__row,
.fo-detail__section,
.fo-detail__goods {
    border-color: rgba(255,255,255,0.08);
}
.fo-detail__row:nth-last-child(-n+2) {
    border-bottom-color: rgba(255,255,255,0.08);
}
.fo-detail__label,
.fo-detail__goods-spec {
    color: var(--fo-muted);
}
.fo-detail__value,
.fo-detail__section-title,
.fo-detail__goods-title {
    color: #fff;
}
.fo-detail__amount,
.fo-detail__goods-price {
    color: #ff8a34 !important;
}
.fo-detail__section {
    border-top-color: rgba(255,255,255,0.055);
}
.fo-detail__section-title {
    border-bottom-color: rgba(255,255,255,0.08);
}
.fo-detail__section-title i,
.fo-detail__delivery-label {
    color: #ffbd7d;
}
.fo-detail__goods-cover {
    background: #090e15;
    border-color: rgba(255,255,255,0.10);
}
.fo-detail__delivery,
.fo-detail__delivery-content {
    background: rgba(5,9,14,0.42);
    border-color: rgba(255,255,255,0.10);
}
.fo-detail__delivery-content {
    color: #f6f7f9;
}
.fo-detail__remark {
    background: rgba(255,122,43,0.10);
    border-left-color: #ff8a34;
    color: #ffcfaa;
}
.fo-loading {
    background: rgba(5,9,14,0.48);
}

/* 卡密插件发货内容：插件自带浅色内联样式，查单详情页强制同步黑橙 */
.vc-delivery {
    width: min(720px, 100%) !important;
    margin: 14px 0 0 !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, rgba(15,20,28,0.96), rgba(9,14,21,0.96)) !important;
    box-shadow: 0 16px 42px rgba(0,0,0,0.24), 0 0 0 1px rgba(255,122,43,0.05) !important;
    overflow: hidden !important;
}
.vc-delivery__head,
.vc-delivery__actions {
    background: rgba(255,255,255,0.045) !important;
    border-color: rgba(255,255,255,0.09) !important;
    color: #f7f7f2 !important;
}
.vc-delivery__title {
    color: #f7f7f2 !important;
    font-weight: 800 !important;
}
.vc-delivery__title .fa {
    color: #ffbd7d !important;
}
.vc-delivery__count {
    color: #8e97a5 !important;
}
.vc-delivery__info {
    background: rgba(255,122,43,0.12) !important;
    border-bottom-color: rgba(255,122,43,0.22) !important;
    color: #ffcfaa !important;
}
.vc-delivery__info .fa {
    color: #ffbd7d !important;
}
.vc-delivery__item {
    background: rgba(255,255,255,0.055) !important;
    border-color: rgba(255,255,255,0.09) !important;
    border-radius: 10px !important;
}
.vc-delivery__idx {
    color: #6f7886 !important;
}
.vc-delivery__code {
    color: #e8eef7 !important;
}
.vc-delivery__btn {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.10) !important;
    color: #d9e1ec !important;
    border-radius: 8px !important;
}
.vc-delivery__btn:hover {
    background: rgba(255,122,43,0.14) !important;
    border-color: rgba(255,122,43,0.38) !important;
    color: #ffbd7d !important;
}
.vc-delivery__btn--primary,
.vc-delivery__btn--export,
.vc-delivery__btn.is-copied {
    background: linear-gradient(135deg, #ff7a2b, #ff6d25) !important;
    border-color: transparent !important;
    color: #15100c !important;
    font-weight: 800 !important;
    box-shadow: 0 12px 28px rgba(255,122,43,0.22) !important;
}

@media (max-width: 640px) {
    .fo-header-inner {
        padding: 0 14px;
    }
    .fo-header-title {
        display: none;
    }
    .fo-wrap {
        margin-top: 18px;
    }
    .find-order-tabs {
        flex-direction: column;
    }
    .find-order-tab i {
        display: inline-block;
    }
    .vc-delivery__head,
    .vc-delivery__actions,
    .vc-delivery__item {
        align-items: flex-start !important;
    }
    .vc-delivery__item {
        flex-wrap: wrap !important;
    }
    .vc-delivery__btn--copy {
        margin-left: auto !important;
    }
}

/* ==========================================================
   Baolong AI light skin
   ========================================================== */
.fo-theme-toggle .theme-toggle__icon {
    font-size: 13px;
    line-height: 1;
}
.fo-theme-toggle .theme-toggle__icon--dark {
    display: none;
}
html[data-theme="light"] .fo-theme-toggle .theme-toggle__icon--light {
    display: none;
}
html[data-theme="light"] .fo-theme-toggle .theme-toggle__icon--dark {
    display: inline-block;
}

html[data-theme="light"] {
    --fo-bg: #f6f4fd;
    --fo-panel: rgba(255,255,255,0.94);
    --fo-panel-strong: rgba(255,255,255,0.98);
    --fo-border: rgba(116,91,237,0.12);
    --fo-border-strong: rgba(124,92,255,0.28);
    --fo-text: #1b1b33;
    --fo-muted: #7d8497;
    --fo-soft: #4b556b;
    --fo-orange: #7c5cff;
    --fo-orange-2: #a78bfa;
    color-scheme: light;
}
html[data-theme="light"] body {
    color: #1b1b33;
    background:
        radial-gradient(circle at 48% -12%, rgba(124,92,255,0.16), transparent 36%),
        radial-gradient(circle at 86% 12%, rgba(56,189,248,0.10), transparent 34%),
        linear-gradient(180deg, #fbfbff 0%, #f5f2fd 48%, #f7f5fc 100%);
}
html[data-theme="light"] .fo-header {
    background: rgba(255,255,255,0.88);
    border-bottom: 1px solid rgba(116,91,237,0.10);
    box-shadow: 0 12px 34px rgba(73,63,120,0.07);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
html[data-theme="light"] .fo-header-logo,
html[data-theme="light"] .fo-header-logo__text {
    color: #1b1b33;
}
html[data-theme="light"] .fo-header-logo__img,
html[data-theme="light"] .fo-header-logo img {
    filter: drop-shadow(0 8px 18px rgba(124,92,255,0.14));
}
html[data-theme="light"] .fo-header-title,
html[data-theme="light"] .fo-header-btn {
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(116,91,237,0.13);
    color: #4b556b;
    box-shadow: 0 8px 24px rgba(73,63,120,0.07);
}
html[data-theme="light"] .fo-header-title,
html[data-theme="light"] .fo-header-title i,
html[data-theme="light"] .fo-header-btn:hover {
    color: #7c5cff;
}
html[data-theme="light"] .fo-header-btn:hover {
    background: #fff;
    border-color: rgba(124,92,255,0.28);
}
html[data-theme="light"] .fo-wrap {
    max-width: 960px;
    margin-top: 34px;
}
html[data-theme="light"] .fo-card {
    background: rgba(255,255,255,0.94);
    border-color: rgba(116,91,237,0.12);
    box-shadow: 0 18px 50px rgba(73,63,120,0.10);
}
html[data-theme="light"] .fo-hero {
    background: #fff;
    border-bottom-color: rgba(116,91,237,0.10);
}
html[data-theme="light"] .fo-hero::before {
    background: linear-gradient(180deg, #7c5cff, #a78bfa);
}
html[data-theme="light"] .fo-hero__title,
html[data-theme="light"] .fo-detail__section-title,
html[data-theme="light"] .fo-detail__value,
html[data-theme="light"] .fo-detail__goods-title,
html[data-theme="light"] .find-order-goods-name {
    color: #1b1b33;
}
html[data-theme="light"] .fo-hero__sub,
html[data-theme="light"] .fo-detail__label,
html[data-theme="light"] .fo-detail__goods-spec,
html[data-theme="light"] .find-order-loading,
html[data-theme="light"] .find-order-empty,
html[data-theme="light"] .find-order-empty small,
html[data-theme="light"] .find-order-time,
html[data-theme="light"] .find-order-total {
    color: #7d8497;
}
html[data-theme="light"] .find-order-tabs {
    background: #f3f0ff;
    border: 1px solid rgba(116,91,237,0.10);
}
html[data-theme="light"] .find-order-tab {
    color: #5f6678;
}
html[data-theme="light"] .find-order-tab:hover {
    color: #7c5cff;
    background: rgba(255,255,255,0.68);
}
html[data-theme="light"] .find-order-tab.active {
    background: #fff;
    color: #7c5cff;
    box-shadow: 0 10px 26px rgba(124,92,255,0.12);
}
html[data-theme="light"] .find-order-hint {
    background: #f3f0ff;
    border-color: rgba(124,92,255,0.16);
    color: #6d5bd0;
}
html[data-theme="light"] .find-order-hint i,
html[data-theme="light"] .fo-detail__section-title i,
html[data-theme="light"] .fo-detail__delivery-label {
    color: #7c5cff;
}
html[data-theme="light"] .find-order-form-group label {
    color: #4b556b;
}
html[data-theme="light"] .find-order-input,
html[data-theme="light"] .fo-captcha__refresh {
    color: #1f2937;
    background: #fff;
    border-color: rgba(116,91,237,0.14);
}
html[data-theme="light"] .find-order-input::placeholder {
    color: #a7adbd;
}
html[data-theme="light"] .find-order-input:hover,
html[data-theme="light"] .fo-captcha__refresh:hover {
    border-color: rgba(124,92,255,0.28);
}
html[data-theme="light"] .find-order-input:focus {
    border-color: rgba(124,92,255,0.58);
    box-shadow: 0 0 0 4px rgba(124,92,255,0.12);
}
html[data-theme="light"] .fo-captcha__expr {
    color: #7c5cff;
    background: #f3f0ff;
    border-color: rgba(124,92,255,0.22);
}
html[data-theme="light"] .fo-captcha__refresh {
    color: #7c5cff;
}
html[data-theme="light"] .find-order-submit {
    color: #fff;
    background: linear-gradient(135deg, #7c5cff, #9f7aea);
    box-shadow: 0 16px 34px rgba(124,92,255,0.22);
}
html[data-theme="light"] .find-order-submit:hover,
html[data-theme="light"] .find-order-submit:active {
    background: linear-gradient(135deg, #6d5bd0, #8b5cf6);
}
html[data-theme="light"] .find-order-submit:disabled {
    background: #d8d0ff;
    color: rgba(255,255,255,0.82);
}
html[data-theme="light"] .find-order-spinner,
html[data-theme="light"] .fo-loading-spinner {
    border-color: #e6e1ff;
    border-top-color: #7c5cff;
}
html[data-theme="light"] .find-order-empty {
    background: #fbfaff;
    border-color: rgba(116,91,237,0.16);
}
html[data-theme="light"] .find-order-error {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}
html[data-theme="light"] .find-order-results-header {
    background: #ecfdf5;
    border-color: rgba(22,163,74,0.18);
    color: #15803d;
}
html[data-theme="light"] .find-order-item {
    background: rgba(255,255,255,0.94);
    border-color: rgba(116,91,237,0.12);
}
html[data-theme="light"] .find-order-item:hover {
    border-color: rgba(124,92,255,0.24);
    box-shadow: 0 20px 44px rgba(124,92,255,0.12);
}
html[data-theme="light"] .find-order-item-header,
html[data-theme="light"] .find-order-item-footer,
html[data-theme="light"] .find-order-actions,
html[data-theme="light"] .fo-detail__row,
html[data-theme="light"] .fo-detail__section,
html[data-theme="light"] .fo-detail__goods,
html[data-theme="light"] .fo-detail__section-title {
    border-color: rgba(116,91,237,0.10);
}
html[data-theme="light"] .find-order-no {
    color: #6d5bd0;
    background: #f3f0ff;
}
html[data-theme="light"] .find-order-goods {
    background: #fbfaff;
    border-color: rgba(116,91,237,0.10);
}
html[data-theme="light"] .find-order-goods:hover {
    background: #f7f5ff;
    border-color: rgba(124,92,255,0.20);
}
html[data-theme="light"] .find-order-goods-img,
html[data-theme="light"] .fo-detail__goods-cover {
    background: #f3f0ff;
    border-color: rgba(116,91,237,0.12);
}
html[data-theme="light"] .find-order-goods-spec {
    color: #7c5cff;
    background: #f3f0ff;
}
html[data-theme="light"] .find-order-goods-price,
html[data-theme="light"] .find-order-total strong,
html[data-theme="light"] .fo-detail__amount,
html[data-theme="light"] .fo-detail__goods-price {
    color: #7c5cff !important;
}
html[data-theme="light"] .find-order-time::before {
    color: #a7adbd;
}
html[data-theme="light"] .find-order-action-btn {
    color: #7c5cff;
    background: #f3f0ff;
    border-color: rgba(124,92,255,0.20);
}
html[data-theme="light"] .find-order-action-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, #7c5cff, #9f7aea);
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(124,92,255,0.22);
}
html[data-theme="light"] .fo-detail__header {
    background: linear-gradient(135deg, #7c5cff, #a78bfa);
    color: #fff;
}
html[data-theme="light"] .fo-detail__title,
html[data-theme="light"] .fo-detail__title i {
    color: #fff;
}
html[data-theme="light"] .fo-detail__back {
    color: #fff;
    background: rgba(255,255,255,0.18);
}
html[data-theme="light"] .fo-detail__back:hover {
    background: rgba(255,255,255,0.28);
}
html[data-theme="light"] .fo-detail__meta {
    background: transparent;
}
html[data-theme="light"] .fo-detail__row:nth-last-child(-n+2) {
    border-bottom-color: rgba(116,91,237,0.10);
}
html[data-theme="light"] .fo-detail__section {
    border-top-color: #f3f0ff;
}
html[data-theme="light"] .fo-detail__delivery,
html[data-theme="light"] .fo-detail__delivery-content {
    background: #fbfaff;
    border-color: rgba(116,91,237,0.12);
}
html[data-theme="light"] .fo-detail__delivery-content {
    color: #1f2937;
}
html[data-theme="light"] .fo-detail__remark {
    background: #fffbeb;
    border-left-color: #f59e0b;
    color: #78350f;
}
html[data-theme="light"] .fo-loading {
    background: rgba(31,27,61,0.24);
}
html[data-theme="light"] .vc-delivery {
    background: rgba(255,255,255,0.96) !important;
    border-color: rgba(116,91,237,0.12) !important;
    box-shadow: 0 18px 46px rgba(73,63,120,0.10) !important;
}
html[data-theme="light"] .vc-delivery__head,
html[data-theme="light"] .vc-delivery__actions,
html[data-theme="light"] .vc-delivery__item {
    background: #f8f7fe !important;
    border-color: rgba(116,91,237,0.12) !important;
    color: #1b1b33 !important;
}
html[data-theme="light"] .vc-delivery__title,
html[data-theme="light"] .vc-delivery__code {
    color: #1b1b33 !important;
}
html[data-theme="light"] .vc-delivery__title .fa,
html[data-theme="light"] .vc-delivery__btn:hover {
    color: #7c5cff !important;
}
html[data-theme="light"] .vc-delivery__info {
    background: #f3f0ff !important;
    border-bottom-color: rgba(116,91,237,0.12) !important;
    color: #6d5bd0 !important;
}
html[data-theme="light"] .vc-delivery__btn {
    background: #fff !important;
    border-color: rgba(116,91,237,0.14) !important;
    color: #4b556b !important;
}
html[data-theme="light"] .vc-delivery__btn--primary,
html[data-theme="light"] .vc-delivery__btn--export,
html[data-theme="light"] .vc-delivery__btn.is-copied {
    background: linear-gradient(135deg, #7c5cff, #9f7aea) !important;
    color: #fff !important;
    box-shadow: 0 14px 30px rgba(124,92,255,0.22) !important;
}

@media (max-width: 640px) {
    .fo-theme-toggle {
        width: 34px;
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }
    .fo-theme-toggle [data-theme-label] {
        display: none;
    }
}

/* Light skin contrast polish */
html[data-theme="light"] {
    --fo-muted: #4f5b6d;
    --fo-soft: #30384a;
    --fo-orange: #5b3fd6;
    --fo-orange-2: #7c5cff;
}
html[data-theme="light"] .fo-hero__sub,
html[data-theme="light"] .fo-detail__label,
html[data-theme="light"] .fo-detail__goods-spec,
html[data-theme="light"] .find-order-loading,
html[data-theme="light"] .find-order-empty,
html[data-theme="light"] .find-order-empty small,
html[data-theme="light"] .find-order-time,
html[data-theme="light"] .find-order-total {
    color: #4f5b6d;
}
html[data-theme="light"] .fo-header-title,
html[data-theme="light"] .fo-header-title i,
html[data-theme="light"] .fo-header-btn:hover,
html[data-theme="light"] .find-order-tab:hover,
html[data-theme="light"] .find-order-tab.active,
html[data-theme="light"] .find-order-hint,
html[data-theme="light"] .find-order-hint i,
html[data-theme="light"] .fo-detail__section-title i,
html[data-theme="light"] .fo-detail__delivery-label,
html[data-theme="light"] .fo-captcha__expr,
html[data-theme="light"] .fo-captcha__refresh,
html[data-theme="light"] .find-order-goods-spec,
html[data-theme="light"] .find-order-goods-price,
html[data-theme="light"] .find-order-total strong,
html[data-theme="light"] .fo-detail__amount,
html[data-theme="light"] .fo-detail__goods-price,
html[data-theme="light"] .find-order-action-btn {
    color: #5b3fd6 !important;
}
html[data-theme="light"] .find-order-submit,
html[data-theme="light"] .find-order-action-btn:hover,
html[data-theme="light"] .vc-delivery__btn--primary,
html[data-theme="light"] .vc-delivery__btn--export,
html[data-theme="light"] .vc-delivery__btn.is-copied {
    background: linear-gradient(135deg, #5b3fd6, #7c5cff) !important;
    color: #fff !important;
    text-shadow: 0 1px 1px rgba(25, 20, 70, 0.18);
}
html[data-theme="light"] .find-order-form-group label {
    color: #30384a;
}
html[data-theme="light"] .find-order-input::placeholder {
    color: #778195;
}
