/*
Theme Name: 辅料清单
Description: 服装辅料 BOM 清单表格主题：首页即全宽表格（款号 / 成衣图 / 辅料名称 / 辅料图片 / 颜色 / 用量 / 单价 / 供应商），1:1 对齐纸质清单样式。
Version: 1.0
Author: LBB
*/

/* 始终保留垂直滚动条占位，避免有无滚动条导致页面宽度跳动/不对齐 */
html { overflow-y: scroll; }

/* ===================== 卡片式详情页 ===================== */
.fl-card-page {
    max-width: 1700px; margin: 30px auto; padding: 0 20px;
    display: flex; flex-direction: column; gap: 20px;
}
.fl-card {
    background: #fff; border-radius: 10px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
/* Banner 在卡片页里自动变成圆角卡片 */
.fl-card-page .fl-banner {
    border: 0; border-radius: 10px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.fl-card-page .fl-banner-img { border-right: 1px solid #eee; }
/* 卡片标题（辅料明细 / 拉链辅料明细） */
.fl-card-title {
    padding: 14px 20px; font-size: 16px; font-weight: 600;
    color: #1e3a5f; background: #f0f7ff;
    border-bottom: 1px solid #e4eef7;
}
.fl-card-title::before {
    content: ''; display: inline-block; width: 4px; height: 14px;
    background: #0d6efd; border-radius: 2px; margin-right: 10px; vertical-align: -2px;
}
/* 卡片内容区内边距 */
.fl-card-material .fl-table-scroll { padding: 0; }
.fl-card-zip { padding: 0; border: 1px solid #3a3a3a; border-radius: 10px; overflow: hidden; }
.fl-card-zip > .fl-zip-block { margin-top: 0; padding: 16px 20px 20px; }
.fl-card-zip .fl-zip-title,
.fl-card-zip > .fl-zip-block > .fl-zip-title { display: none !important; }
/* 卡片页里的表强制铺满 */
.fl-card-page .fl-table,
.fl-card-page .fl-ztable { width: 100%; min-width: 0; }
.fl-card-page .fl-table-scroll { width: 100%; overflow-x: auto; }
.fl-card-page .fl-back {
    display: inline-block; margin-top: 0; padding: 10px 18px;
    color: #495057; font-size: 14px; text-decoration: none;
    border: 1px solid #dee2e6; border-radius: 6px; background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    align-self: flex-start;
}
.fl-card-page .fl-back:hover { background: #f8f9fa; color: #0d6efd; border-color: #0d6efd; }

/* ===================== Banner（左特色图 + 右标题） ===================== */
.fl-banner {
    display: flex; align-items: stretch; gap: 0;
    border: 1px solid var(--fl-border); border-bottom: 0;
    background: #fff; margin-bottom: 0;
}
.fl-banner-img {
    flex: 0 0 180px; width: 180px; height: 180px;
    border-right: 1px solid var(--fl-border);
    overflow: hidden; background: #f6f6f6; display: flex; align-items: center; justify-content: center;
}
.fl-banner-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fl-banner-img.fl-banner-empty { color: #bbb; font-size: 40px; }
.fl-banner-text {
    flex: 1; padding: 28px 32px; display: flex; flex-direction: column; justify-content: center;
}
.fl-banner-title {
    font-size: 26px; font-weight: 700; color: var(--fl-text); margin: 0 0 6px;
    letter-spacing: 0.5px;
}
.fl-banner-code {
    font-size: 14px; color: #666; letter-spacing: 1px;
}

/* ===================== 基础重置 ===================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --fl-border: #3a3a3a;
    --fl-text: #111111;
    --fl-head-bg: #f2f2f2;
    --fl-bg: #ffffff;
}

html, body {
    background: var(--fl-bg);
    color: var(--fl-text);
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

.fl-page {
    padding: 14px;
}

/* ===================== 顶部登录/注册栏 ===================== */
.fl-auth-bar {
    display: flex; justify-content: flex-end; align-items: center;
    gap: 8px;
    max-width: 1200px; margin: 0 auto 6px;
}
.fl-auth-hello { font-size: 13px; color: #475569; margin-right: 4px; }
.fl-auth-btn {
    padding: 5px 16px;
    font-size: 13px; font-weight: 600; line-height: 1.5;
    border-radius: 999px; cursor: pointer;
    border: 1px solid #cbd5e1; background: #fff; color: #334155;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.fl-auth-btn:hover { border-color: #6366f1; color: #4f46e5; }
.fl-auth-btn-primary { background: #6366f1; border-color: #6366f1; color: #fff; }
.fl-auth-btn-primary:hover { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.fl-auth-btn-admin { border-color: #d97706; color: #b45309; }
.fl-auth-btn-admin:hover { background: #d97706; border-color: #d97706; color: #fff; }
.fl-auth-modal { width: min(420px, 92vw); }
.fl-auth-switch { margin-top: 12px; font-size: 13px; color: #64748b; text-align: center; }
.fl-auth-switch a { color: #4f46e5; text-decoration: none; font-weight: 600; }
.fl-auth-switch a:hover { text-decoration: underline; }

.fl-wrap {
    max-width: 1000px;
    margin: 0 auto;
}

/* ===================== 辅料表格 ===================== */
.fl-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.fl-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

.fl-table col.col-code     { width: 13.3%; }
.fl-table col.col-garment  { width: 9.7%; }
.fl-table col.col-spec     { width: 12.9%; }
.fl-table col.col-image    { width: 12.8%; }
.fl-table col.col-color    { width: 10.8%; }
.fl-table col.col-qty      { width: 10.8%; }
.fl-table col.col-price    { width: 10.9%; }
.fl-table col.col-supplier { width: 12.8%; }
.fl-table col.col-note     { width: 14.0%; }

.fl-table th,
.fl-table td {
    border: 1px solid var(--fl-border);
    text-align: center;
    vertical-align: middle;
    padding: 8px 10px;
    word-break: break-word;
    font-weight: 400;
}

.fl-table thead th {
    background: var(--fl-head-bg);
    font-weight: 700;
    font-size: 16px;
    height: 42px;
    padding: 6px 8px;
    white-space: nowrap;
}

/* 款号格 */
.fl-table td.fl-code {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.5;
}
.fl-code-line { display: block; }

/* 图片格 */
.fl-table td.fl-img {
    padding: 0;
    background: #fff;
    line-height: 0;
}
.fl-table td.fl-img img {
    display: block;
    width: 100%;
    height: auto;
}
/* 款号可点击跳转：保持加粗黑字外观 */
.fl-code-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.fl-code-link:hover {
    text-decoration: underline;
}
.fl-code-link:focus-visible {
    outline: 2px solid #3a3a3a;
    outline-offset: 2px;
}

/* 文字列 */
.fl-table td.fl-spec  { font-size: 16px; }
.fl-table td.fl-color { font-size: 16px; line-height: 1.6; }
.fl-table td.fl-qty   { font-size: 16px; }
.fl-table td.fl-price { font-size: 16px; }
.fl-table td.fl-supplier { font-size: 16px; }
/* 供应商逐行拆分：PC 端显示本行供应商，wap 端显示全部供应商 */
.fl-table td.fl-supplier .fl-sup-all { display: none; }
.fl-table td.fl-supplier .fl-sup-cur { display: inline; }
.fl-table td.fl-note { font-size: 15px; line-height: 1.6; text-align: left; }
.fl-table td.fl-order { text-align: center; vertical-align: middle; }

.fl-order-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 5px 14px;
    background: #6366f1; color: #fff; border: 0; border-radius: 999px;
    font-size: 13px; font-weight: 600; line-height: 1.4;
    cursor: pointer; transition: background .15s ease;
}
.fl-order-btn:hover { background: #4f46e5; }

/* 操作列：下单 + 报账 */
.fl-act-btns { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fl-rb-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 5px 14px;
    background: #059669; color: #fff; border: 0; border-radius: 999px;
    font-size: 13px; font-weight: 600; line-height: 1.4;
    cursor: pointer; transition: background .15s ease;
}
.fl-rb-btn:hover { background: #047857; }

/* 下单弹窗 */
.fl-order-backdrop {
    position: fixed; inset: 0;
    background: rgba(17,24,39,.55);
    display: none;
    align-items: center; justify-content: center;
    z-index: 9999;
}
.fl-order-backdrop.is-open { display: flex; }
.fl-order-modal {
    background: #fff; border-radius: 10px;
    width: min(780px, 92vw); max-height: 86vh;
    display: flex; flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    overflow: hidden;
}
.fl-order-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid #e5e7eb;
}
.fl-order-title { font-size: 17px; font-weight: 700; color: #111827; }
.fl-order-close {
    width: 28px; height: 28px; border: 0; background: transparent;
    font-size: 22px; line-height: 1; color: #6b7280; cursor: pointer; border-radius: 6px;
}
.fl-order-close:hover { background: #f3f4f6; color: #111827; }
.fl-order-body { padding: 16px 20px; overflow-y: auto; }
.fl-order-footer {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 14px 20px; border-top: 1px solid #e5e7eb;
    background: #fafafa;
}
.fl-order-btn-primary, .fl-order-btn-secondary {
    padding: 8px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: 0;
}
.fl-order-btn-primary { background: #6366f1; color: #fff; }
.fl-order-btn-primary:hover { background: #4f46e5; }
.fl-order-btn-secondary { background: #f3f4f6; color: #374151; }
.fl-order-btn-secondary:hover { background: #e5e7eb; }

.fl-order-table { width: 100%; border-collapse: collapse; font-size: 14px; border: 1px solid #111; }
.fl-order-table th, .fl-order-table td {
    padding: 10px 8px; border: 1px solid #111;
    text-align: center; vertical-align: middle;
}
.fl-order-table thead th {
    background: #f8fafc; color: #475569; font-weight: 600; font-size: 13px;
}
.fl-order-table .fl-order-spec { font-weight: 600; color: #111827; max-width: 300px; word-break: break-all; }
.fl-order-table .fl-order-img { text-align: center; }
.fl-order-table .fl-order-img img { width: 120px; height: 120px; object-fit: cover; border-radius: 6px; border: 1px solid #e5e7eb; }
.fl-order-table .fl-order-color { color: #475569; }
.fl-order-table .fl-order-qty-input {
    width: 110px; padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 14px; text-align: center; font-weight: 600;
}
.fl-order-table .fl-order-qty-input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,.15); }
.fl-order-table .fl-order-color-select {
    width: 140px; padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 14px; background: #fff;
}
.fl-order-table .fl-order-color-select:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,.15); }
.fl-order-table .fl-order-note-input {
    width: 130px; padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 14px;
}
.fl-order-table .fl-order-note-input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,.15); }

.fl-order-form {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px;
    margin-top: 16px; padding-top: 16px; border-top: 1px solid #f1f5f9;
}
.fl-order-form-row { display: flex; flex-direction: column; gap: 4px; }
.fl-order-form-row-full { grid-column: 1 / -1; }
.fl-order-form-label { font-size: 12px; font-weight: 600; color: #64748b; }
.fl-order-form-input, .fl-order-form-textarea {
    padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 14px; font-family: inherit; background: #fff;
}
.fl-order-form-input:focus, .fl-order-form-textarea:focus {
    outline: none; border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,.15);
}

.fl-order-toast {
    position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
    padding: 10px 20px; background: #fff; border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    font-size: 14px; font-weight: 600; z-index: 10000;
    display: none;
}

/* ============ WAP：下单弹窗竖排卡片（图片→名称→颜色→数量→时间→备注） ============ */
@media (max-width: 767px) {
    .fl-order-modal { width: 94vw; max-height: 90vh; }
    .fl-order-header { padding: 14px 16px; }
    .fl-order-body { padding: 14px 16px; }
    .fl-order-footer { padding: 12px 16px; }
    .fl-order-footer button { flex: 1; padding: 10px 0; }
    .fl-order-table { border: 0; }
    .fl-order-table thead { display: none; }
    .fl-order-table tbody,
    .fl-order-table tr { display: block; border: 0; }
    .fl-order-table tr { display: flex; flex-direction: column; }
    .fl-order-table td {
        display: block; border: 0; padding: 7px 0;
        text-align: left; position: relative;
    }
    /* 顺序：图片 → 名称 → 颜色 → 数量 → 时间 → 备注（DOM 中名称在图片前） */
    .fl-order-table .fl-order-img  { order: 1; text-align: center; padding: 0 0 4px; }
    .fl-order-table .fl-order-img img {
        width: 110px; height: 110px;
        border-radius: 8px; border: 1px solid #e5e7eb;
    }
    .fl-order-table .fl-order-spec {
        order: 2; text-align: center;
        font-size: 16px; font-weight: 700; padding: 4px 0 10px;
        max-width: 100%;
    }
    .fl-order-table .fl-order-color { order: 3; padding-left: 64px; }
    .fl-order-table .fl-order-qty   { order: 4; padding-left: 64px; }
    .fl-order-table .fl-order-time  { order: 5; padding-left: 64px; line-height: 36px; }
    .fl-order-table .fl-order-color::before,
    .fl-order-table .fl-order-qty::before,
    .fl-order-table .fl-order-time::before {
        position: absolute; left: 0; top: 7px;
        width: 58px; font-weight: 600; color: #666; font-size: 14px;
        white-space: nowrap;
    }
    .fl-order-table .fl-order-color::before { content: "颜色："; }
    .fl-order-table .fl-order-qty::before   { content: "数量："; }
    .fl-order-table .fl-order-time::before  { content: "时间："; }
    .fl-order-table .fl-order-color-select,
    .fl-order-table .fl-order-qty-input {
        width: 100%; box-sizing: border-box;
        padding: 8px 10px; font-size: 14px; text-align: left;
    }
    /* 下单人/电话/备注联系信息单列堆叠 */
    .fl-order-form { grid-template-columns: 1fr; margin-top: 14px; padding-top: 14px; }
}

/* 报账弹窗 */
.fl-rb-modal { width: min(520px, 92vw); }
.fl-rb-head { display: flex; gap: 14px; align-items: center; margin-bottom: 4px; }
.fl-rb-img-wrap {
    flex: 0 0 auto; width: 84px; height: 84px;
    border-radius: 8px; border: 1px solid #e5e7eb; overflow: hidden;
    background: #f8fafc; display: flex; align-items: center; justify-content: center;
}
.fl-rb-img-wrap img { width: 84px; height: 84px; object-fit: cover; display: block; }
.fl-rb-head-info { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fl-rb-btn-primary {
    padding: 8px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
    cursor: pointer; border: 0; background: #059669; color: #fff;
}
.fl-rb-btn-primary:hover { background: #047857; }
.fl-rb-btn-primary:disabled { opacity: .6; cursor: default; }

/* 报账凭证上传 */
.fl-rb-vouchers { display: flex; gap: 12px; }
.fl-rb-voucher {
    position: relative; width: 92px; height: 92px; flex: 0 0 auto;
}
.fl-rb-voucher-add {
    width: 92px; height: 92px;
    border: 1px dashed #cbd5e1; border-radius: 8px;
    background: #f8fafc; color: #64748b;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; cursor: pointer; transition: border-color .15s ease, color .15s ease;
}
.fl-rb-voucher-add:hover { border-color: #059669; color: #059669; }
.fl-rb-voucher-add[hidden] { display: none; }
.fl-rb-voucher-plus { font-size: 22px; font-weight: 600; line-height: 1; }
.fl-rb-voucher-tip { font-size: 12px; }
.fl-rb-voucher-preview {
    position: relative; width: 92px; height: 92px;
    border-radius: 8px; overflow: hidden;
    border: 1px solid #e5e7eb; background: #f8fafc;
}
.fl-rb-voucher-preview[hidden] { display: none; }
.fl-rb-voucher-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fl-rb-voucher-del {
    position: absolute; top: 2px; right: 2px;
    width: 20px; height: 20px; padding: 0; line-height: 18px;
    border: 0; border-radius: 50%;
    background: rgba(17,24,39,.6); color: #fff;
    font-size: 14px; text-align: center; cursor: pointer;
}
.fl-rb-voucher-del:hover { background: #dc2626; }

/* 行高自适应：一个辅料多颜色时拆成多个子行，图片 rowspan 跨子行自然撑高 */
.fl-table tbody tr { height: auto; }

/* ===================== 文章正文卡片 ===================== */
.fl-card-content { padding: 16px 20px; }
.fl-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--fl-text);
    overflow-wrap: break-word;
}
.fl-content p { margin: 0 0 10px; }
.fl-content p:last-child { margin-bottom: 0; }
.fl-content img { max-width: 100%; height: auto; }
.fl-content h1, .fl-content h2, .fl-content h3 { margin: 14px 0 8px; }

/* ===================== 简单分页 ===================== */
.fl-pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.fl-pager a,
.fl-pager span {
    display: inline-block;
    min-width: 34px;
    padding: 6px 12px;
    border: 1px solid var(--fl-border);
    color: var(--fl-text);
    text-decoration: none;
    font-size: 14px;
    background: #fff;
}
.fl-pager a:hover { background: var(--fl-head-bg); }
.fl-pager .current { background: var(--fl-text); color: #fff; }

/* ===================== 空态/兜底页 ===================== */
.fl-empty {
    text-align: center;
    padding: 80px 20px;
    color: #666;
    font-size: 15px;
}
.fl-simple {
    max-width: 1700px;
    margin: 30px auto;
}
.fl-simple h1 {
    font-size: 22px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--fl-border);
}
.fl-simple .fl-back {
    display: inline-block;
    margin-top: 22px;
    color: #0645ad;
    font-size: 14px;
}
.fl-simple-list { list-style: none; }
.fl-simple-list li {
    padding: 12px 4px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.fl-simple-list a { color: #0645ad; font-weight: 700; text-decoration: none; }
.fl-simple-list .fl-meta { color: #888; font-size: 13px; white-space: nowrap; }

/* ===================== 移动端 ===================== */
@media (max-width: 860px) {
    .fl-page { padding: 8px; }
    .fl-table { font-size: 15px; }
    .fl-table td.fl-code { font-size: 18px; }
    .fl-table thead th,
    .fl-table td { padding: 6px 6px; }
    .fl-table tbody tr { height: auto; }
}

/* ===================== WAP 辅料明细：卡片式竖排 ===================== */
.fl-color .fl-color-all { display: none; }
@media (max-width: 767px) {
    html, body {
        background: #f2f3f5;
    }
    .fl-page {
        background: transparent;
    }
    .fl-table {
        min-width: 0;
        border: 0;
        background: transparent;
        /* 必须把表本身也转成 block：仅转 tbody/tr/td 时残留的 table 盒会生成匿名表格单元，
           把列收缩到 min-content（约 16px），导致文字竖排、卡片行宽只有 44px */
        display: block;
        width: 100%;
    }
    .fl-table thead { display: none; }
    .fl-table tbody,
    .fl-table tr {
        display: block;
        border: 0;
    }
    /* 只显示每组首行 tr（卡片式） */
    .fl-table tbody tr.fl-sub-row { display: none; }

    .fl-table tbody tr {
        display: flex;
        flex-direction: column;
        margin-bottom: 16px;
        background: #fff;
        border-radius: 12px;
        padding: 12px 14px;
        box-shadow: 0 1px 6px rgba(0,0,0,.06);
    }
    /* 卡片顺序：图片 → 名称 → 颜色/用量/单价/供应商/备注/操作（DOM 里名称在图片前） */
    .fl-table td.fl-img { order: -2; }
    .fl-table td.fl-spec { order: -1; }
    .fl-table td {
        display: block;
        position: relative;
        border: 0;
        /* 统一标签列：所有字段值（含备注内容、操作按钮）从同一竖线开始 */
        padding: 4px 0 4px 72px;
        /* 空值（如无备注）时也保留一行高度，避免标签与下一行重叠 */
        min-height: 30px;
        box-sizing: border-box;
        text-align: left !important;
        font-size: 15px;
        line-height: 1.7;
    }
    .fl-table td::before {
        content: attr(data-label) "：";
        font-weight: 600;
        color: #666;
        position: absolute;
        left: 0; top: 4px;
        width: 64px;
        white-space: nowrap;
        font-size: 13px;
    }
    .fl-table td.fl-img,
    .fl-table td.fl-spec,
    .fl-table td.fl-color,
    .fl-table td.fl-qty,
    .fl-table td.fl-price,
    .fl-table td.fl-supplier,
    .fl-table td.fl-note,
    .fl-table td.fl-order { display: block; }
    .fl-table td.fl-img,
    .fl-table td.fl-spec { padding-left: 0; }
    /* wap 端供应商显示全部 */
    .fl-table td.fl-supplier .fl-sup-all { display: inline; }
    .fl-table td.fl-supplier .fl-sup-cur { display: none; }
    .fl-table td.fl-img::before { display: none; content: ""; }
    .fl-table td.fl-img img {
        width: 120px; height: 120px; object-fit: cover;
        border-radius: 8px;
    }
    .fl-table td.fl-spec {
        font-size: 17px; font-weight: 700; color: #1a1a1a;
        text-align: left !important;
        padding: 10px 0 6px;
    }
    .fl-table td.fl-spec::before { content: ""; display: none; }
    .fl-table td.fl-note { font-size: 14px; line-height: 1.7; }
    .fl-table td.fl-order { padding-top: 8px; padding-bottom: 8px; }
    .fl-table td.fl-order::before { top: 8px; }
    .fl-act-btns {
        flex-direction: row;
        gap: 10px;
        justify-content: flex-start;
    }
    /* 颜色：移动端显示全部颜色 */
    .fl-color .fl-color-cur { display: none; }
    .fl-color .fl-color-all { display: inline; }

    /* Banner 改纵向堆叠：固定 180px 的左图在分屏小窗（≤320px）下会把标题挤出右侧 */
    .fl-banner { flex-direction: column; }
    .fl-banner-img {
        flex: none; width: 100%; height: 180px;
        border-right: 0; border-bottom: 1px solid var(--fl-border);
    }
    .fl-banner-text { padding: 18px 16px; }
    .fl-banner-title { font-size: 20px; }
    .fl-card-page { padding: 0 12px; }
}

/* 手机端（含分屏小窗）兜底：任何亚像素溢出都不允许横向拖动露出底层界面 */
@media (max-width: 767px) {
    html, body { max-width: 100%; overflow-x: hidden; }
}

/* ===================== 拉链辅料明细表（详情页，列式网格） ===================== */
.fl-zip-block { margin-top: 20px; }
.fl-zip-title { font-size: 19px; margin: 0 0 12px; color: #333; border-left: 4px solid #0d6efd; padding-left: 10px; }
.fl-zip-grid { display: flex; flex-direction: column; gap: 12px; overflow-x: auto; }
.fl-zip-grid .fl-ztable,
.fl-zip-lib .fl-ztable { width: auto; min-width: 100%; border-collapse: collapse; table-layout: auto; }
.fl-zip-grid .fl-ztable td,
.fl-zip-grid .fl-ztable th,
.fl-zip-lib .fl-ztable td,
.fl-zip-lib .fl-ztable th {
    border: 1px solid #3a3a3a; padding: 8px 10px; text-align: center; vertical-align: middle;
    white-space: nowrap; font-size: 13px;
}

/* 拉链主库页（首页拉链 Tab）：表格整体高度调高到约 120px */
.fl-zip-lib .fl-ztable td,
.fl-zip-lib .fl-ztable th { padding-top: 11px; padding-bottom: 11px; }
.fl-zip-lib .fl-ztable .fl-zqty-editable { padding-top: 6px !important; padding-bottom: 6px !important; }

/* 通用表头行（浅蓝色） */
.fl-ztable .fl-zgen-head { background: #bfe3f7; }
.fl-ztable .fl-zgen-head th { background: #bfe3f7; font-weight: 600; color: #23557c; }
.fl-ztable .fl-zcol-head { font-weight: 600; color: #23557c; }
.fl-ztable .fl-zcolor-head { font-weight: 600; color: #23557c; text-align: center; width: 180px; min-width: 180px; }

/* 拉链名称（rowspan 跨所有颜色对） */
.fl-ztable .fl-zname {
    background: #eaf4ff; text-align: left; vertical-align: middle;
    padding: 14px 14px; min-width: 160px;
}
.fl-ztable .fl-zname-text { font-weight: 600; color: #1e3a5f; font-size: 14px; margin-bottom: 4px; line-height: 1.6; }
.fl-ztable .fl-zname-text br { display: block; content: ""; margin-top: 2px; }
.fl-ztable .fl-zname-link { text-decoration: none; color: inherit; }
.fl-ztable .fl-zname-link:hover .fl-zname-text { color: #0d6efd; }
.fl-ztable .fl-zname-sup { font-size: 11px; color: #6c757d; margin-top: 4px; }
.fl-ztable .fl-zlib-link { font-size: 11px; color: #0d6efd; text-decoration: none; display: inline-block; }
.fl-ztable .fl-zlib-link:hover { text-decoration: underline; }

/* 颜色 cell：select + 明显下拉箭头 */
.fl-ztable .fl-zcolor-cell {
    background: #f0f7ff; border-right: 1px dashed #c4d4e4;
    padding: 6px 4px !important; position: relative;
    width: 180px; min-width: 180px;
}
.fl-ztable .fl-zcolor-select {
    width: 100%; min-width: 170px;
    border: 1px solid #0d6efd; background: #fff;
    padding: 3px 18px 3px 4px; font-weight: 600; color: #333;
    text-align: center; text-align-last: center;
    border-radius: 3px; outline: none; cursor: pointer;
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%230d6efd'/></svg>");
    background-repeat: no-repeat; background-position: right 3px center;
    background-size: 8px 5px;
}
.fl-ztable .fl-zcolor-select:hover { background-color: #f0f7ff; border-color: #0a58ca; }
.fl-ztable .fl-zcolor-select:focus { box-shadow: 0 0 0 2px rgba(13,110,253,.25); border-color: #0d6efd; }
/* 拉链主库列表：颜色下拉为只读展示（disabled），保持蓝框白底外观 */
.fl-zip-lib .fl-zcolor-select:disabled {
    background-color: #fff; color: #333; cursor: default; opacity: 1;
    -webkit-text-fill-color: #333;
}
.fl-ztable .fl-zcolor-plain { font-weight: 600; color: #333; display: block; text-align: center; }
.fl-ztable .fl-zcolor-more { font-weight: 400; color: #6c757d; display: block; text-align: center; font-size: 12px; margin-top: 2px; }
.fl-ztable .fl-zcolor-save { position: absolute; top: 2px; right: 4px; font-size: 11px; color: #0d6efd; z-index: 1; }

/* 尺寸值行 */
.fl-ztable .fl-zsize-row { background: #f6faff; }
.fl-ztable .fl-zsize-val {
    text-align: center; font-weight: 600; color: #1e3a5f;
    font-size: 13px;
}

/* 数量行 */
.fl-ztable .fl-zqty-row { background: #fff; }
.fl-ztable .fl-zqty-empty { color: #ccc; }
.fl-ztable .fl-zqty-editable { padding: 2px 4px !important; }
.fl-ztable .fl-zqty-input {
    width: 100%; min-width: 48px; border: 0; background: transparent;
    text-align: center; font-weight: 600; color: #dc3545;
    font-size: 14px; padding: 4px 2px; outline: none;
}
.fl-ztable .fl-zqty-input::placeholder { color: #cbd5e1; font-weight: 400; font-size: 12px; }
.fl-ztable .fl-zqty-input::-webkit-input-placeholder { color: #cbd5e1; font-weight: 400; font-size: 12px; }
.fl-ztable .fl-zqty-input::-moz-placeholder { color: #cbd5e1; font-weight: 400; font-size: 12px; opacity: 1; }
.fl-ztable .fl-zqty-input:hover { background: #fff8f8; }
.fl-ztable .fl-zqty-input:focus { background: #fff0f0; box-shadow: 0 0 0 1px #dc3545 inset; border-radius: 3px; }
.fl-ztable .fl-zqty-save {
    position: absolute; margin-top: -1px; right: 2px; font-size: 11px; color: #0d6efd;
}

/* 跨颜色的分隔（最后一个数量行 + 下一个颜色的尺寸值行） */
.fl-ztable .fl-zqty-row + .fl-zsize-row > td,
.fl-ztable .fl-zqty-row + .fl-zsize-row > th { border-top: 2px solid #3a3a3a; }
.fl-ztable .fl-zqty-row + .fl-zsize-row > .fl-zcolor-cell { border-top: 2px solid #3a3a3a; }

/* 通用表头和第一条数据的分隔 */
.fl-ztable .fl-zgen-head + .fl-zsize-row > td,
.fl-ztable .fl-zgen-head + .fl-zsize-row > th { border-top: 1px solid #3a3a3a; }

/* ===================== 首页（搜索 + 卡片列表） ===================== */
.fl-home-wrap {
    max-width: 1700px; margin: 30px auto; padding: 0 24px;
    display: flex; gap: 28px; align-items: flex-start;
}
/* 仅「拉链」Tab 的表格内容区收窄到 1000px，顶部菜单栏保持 1700px 与其他 Tab 一致 */
.fl-zip-lib { max-width: 1000px; margin: 0 auto; }
.fl-home-wrap.fl-home-simple { display: block; } /* 无侧栏版 */

/* --- 左侧栏（保留用于分类页，首页默认隐藏） --- */
.fl-sidebar {
    flex: 0 0 240px; position: sticky; top: 30px;
    background: #fff; border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
    padding: 20px 0; align-self: flex-start;
}
.fl-side-title {
    font-size: 16px; font-weight: 700; color: #1e3a5f;
    padding: 0 20px 14px; border-bottom: 1px solid #eef2f7; margin-bottom: 8px;
    letter-spacing: 1px;
}
.fl-side-title a { display: block; color: inherit; text-decoration: none; }
.fl-side-title a:hover { color: #0d6efd; }
.fl-side-section { padding: 2px 0; }
.fl-side-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 20px; color: #495057; text-decoration: none; font-size: 14px;
    border-left: 3px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.fl-side-item:hover { background: #f6faff; color: #0d6efd; }
.fl-side-item.fl-side-active {
    background: #eaf4ff; color: #0d6efd; border-left-color: #0d6efd; font-weight: 600;
}
.fl-side-item-count {
    font-size: 12px; color: #adb5bd; background: #f1f3f5;
    padding: 1px 8px; border-radius: 10px; min-width: 22px; text-align: center;
}
.fl-side-item.fl-side-active .fl-side-item-count { background: #0d6efd; color: #fff; }

/* --- 右侧主区 --- */
.fl-home-main { flex: 1; min-width: 0; }
.fl-home-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 22px; gap: 16px; flex-wrap: wrap;
}
.fl-home-title-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.fl-home-title {
    font-size: 24px; font-weight: 700; color: #111; margin: 0; letter-spacing: .5px;
}
.fl-home-title a { color: #111; text-decoration: none; }
.fl-home-title a:hover { color: #0d6efd; }
.fl-home-sub { font-size: 14px; color: #868e96; }

/* --- Tab 切换 --- */
.fl-home-tabs { display: flex; gap: 4px; }
.fl-home-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 16px; border-radius: 20px;
    font-size: 14px; color: #495057; text-decoration: none;
    border: 1px solid transparent;
    transition: color .15s, background .15s, border-color .15s;
}
.fl-home-tab:hover { color: #0d6efd; background: #f0f7ff; }
.fl-home-tab.active {
    color: #0d6efd; background: #eaf4ff;
    border-color: #cfe2ff; font-weight: 600;
}
.fl-home-tab-count {
    font-size: 12px; color: #868e96; background: #f1f3f5;
    padding: 0 8px; border-radius: 10px; min-width: 20px; text-align: center;
}
.fl-home-tab.active .fl-home-tab-count { background: #0d6efd; color: #fff; }

/* --- 搜索框 --- */
.fl-home-search {
    display: flex; align-items: center; gap: 8px;
    flex: 1 1 360px; max-width: 520px;
}
.fl-home-search-input {
    flex: 1; height: 40px; padding: 0 14px;
    border: 1px solid #dee2e6; border-radius: 20px; outline: none;
    font-size: 14px; background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.fl-home-search-input:focus {
    border-color: #0d6efd; box-shadow: 0 0 0 3px rgba(13,110,253,.12);
}
.fl-home-search-btn {
    height: 40px; padding: 0 20px; border: none; border-radius: 20px;
    background: #0d6efd; color: #fff; font-size: 14px; cursor: pointer;
    transition: background .15s;
}
.fl-home-search-btn:hover { background: #0b5ed7; }
.fl-home-search-clear {
    font-size: 13px; color: #868e96; text-decoration: none; white-space: nowrap;
}
.fl-home-search-clear:hover { color: #0d6efd; }
.fl-home-kw { font-size: 13px; color: #868e96; margin-bottom: 14px; }

/* --- 卡片网格（3 列自适应） --- */
.fl-home-grid {
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.fl-home-card {
    display: flex; flex-direction: column; text-decoration: none;
    background: #fff; border-radius: 10px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
    transition: transform .18s ease, box-shadow .18s ease;
    border: 1px solid rgba(0,0,0,.04);
}
.fl-home-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
}
.fl-home-card-img {
    aspect-ratio: 4 / 3; overflow: hidden; background: #f6f8fa;
    display: flex; align-items: center; justify-content: center;
}
.fl-home-card-img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .3s ease;
}
.fl-home-card:hover .fl-home-card-img img { transform: scale(1.04); }
.fl-home-card-empty {
    color: #ced4da; font-size: 14px; letter-spacing: 4px;
}
.fl-home-card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.fl-home-card-title {
    font-size: 16px; font-weight: 700; color: #111; line-height: 1.4;
    word-break: break-all;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.fl-home-card-meta {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: auto; padding-top: 4px;
}
.fl-home-card-date { font-size: 12px; color: #adb5bd; }
.fl-home-card-stat { font-size: 12px; color: #6c757d; }

/* --- 拉链主库卡片 --- */
.fl-home-card-zip .fl-home-card-title { line-height: 1.5; }
.fl-home-card-colors { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.fl-home-card-color {
    display: inline-block; font-size: 11px; line-height: 1.4;
    padding: 1px 6px; border-radius: 8px;
    background: #eef2ff; color: #4338ca; white-space: nowrap;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.fl-home-card-color-more {
    display: inline-block; font-size: 11px; line-height: 1.4;
    padding: 1px 6px; border-radius: 8px; background: #f3f4f6; color: #6b7280;
}
.fl-home-card-supplier {
    margin-top: 6px; font-size: 12px; color: #6c757d;
    display: flex; align-items: center; gap: 4px;
}

/* --- 首页「拉链」Tab 表格卡片 --- */
.fl-zip-lib { display: flex; flex-direction: column; gap: 16px; }
.fl-zip-lib-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
    padding: 14px 16px; box-shadow: 0 1px 3px rgba(0,0,0,.04);
    overflow-x: auto;
}

/* --- 响应式 --- */
@media (max-width: 900px) {
    .fl-home-wrap { flex-direction: column; gap: 18px; }
    .fl-sidebar { flex: none; position: static; width: 100%; }
}

/* --- 移动端（WAP）拉链卡片：名称+颜色在上方，尺寸逐行（尺寸|值|数量） --- */
.fl-zmob { display: none; }
@media (max-width: 767px) {
    .fl-zip-lib-card { padding: 10px; -webkit-overflow-scrolling: touch; }
    .fl-zip-lib .fl-ztable { display: none; }
    .fl-zmob { display: block; }
    .fl-zmob-head {
        border: 1px solid #3a3a3a; background: #eaf4ff;
        padding: 10px 10px 12px; text-align: center;
    }
    .fl-zmob-name { font-weight: 600; color: #1e3a5f; font-size: 14px; line-height: 1.6; }
    .fl-zmob-name:hover { color: #0d6efd; }
    .fl-zmob-color-label {
        background: #bfe3f7; color: #23557c; font-weight: 600; font-size: 13px;
        margin: 10px -10px 0; padding: 8px 10px; border-top: 1px solid #3a3a3a;
    }
    .fl-zmob-select {
        display: block; width: 100%; margin-top: 10px; padding: 7px 6px;
        font-size: 13px; border: 1px solid #94c6e8; border-radius: 3px;
        background: #fff; color: #333;
        text-align: center; text-align-last: center;
    }
    .fl-zmob-rows { border: 1px solid #3a3a3a; border-top: none; }
    .fl-zmob-row {
        display: flex; align-items: stretch;
        border-bottom: 1px solid #3a3a3a; background: #fff;
    }
    .fl-zmob-row:last-child { border-bottom: none; }
    .fl-zmob-size-label {
        flex: 0 0 56px; display: flex; align-items: center; justify-content: center;
        background: #bfe3f7; color: #23557c; font-weight: 600; font-size: 13px;
        padding: 11px 4px; border-right: 1px solid #3a3a3a;
    }
    .fl-zmob-size-val {
        flex: 1 1 auto; display: flex; align-items: center; justify-content: center;
        font-size: 13px; padding: 11px 4px; border-right: 1px solid #3a3a3a;
    }
    .fl-zmob-qty { flex: 0 0 88px; display: flex; align-items: center; padding: 6px 8px; }
    .fl-zmob-qty .fl-zqty-input {
        width: 100%; padding: 5px 6px; font-size: 13px; text-align: center;
        border: 1px solid #d5dde5; border-radius: 3px; background: #fff; outline: none;
    }
    .fl-zmob-qty .fl-zqty-input::placeholder { color: #cbd5e1; }
}

/* ===================== 前台用户中心（my.php，.myf- 前缀） ===================== */
.myf-wrap {
    max-width: 1200px; margin: 0 auto 30px;
    display: flex; flex-direction: column; gap: 16px;
}
.myf-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
}
.myf-head h2 { font-size: 20px; font-weight: 600; color: #1e3a5f; margin: 0; }
.myf-head h2::before {
    content: ''; display: inline-block; width: 4px; height: 16px;
    background: #0d6efd; border-radius: 2px; margin-right: 10px; vertical-align: -2px;
}

/* --- 按钮（与 .fl-auth-btn 同风格） --- */
.myf-btn {
    display: inline-block; padding: 7px 16px;
    font-size: 13px; font-weight: 600; line-height: 1.5;
    border-radius: 999px; cursor: pointer; text-decoration: none;
    border: 1px solid #cbd5e1; background: #fff; color: #334155;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
    user-select: none;
}
.myf-btn:hover { border-color: #6366f1; color: #4f46e5; }
.myf-btn-primary { background: #6366f1; border-color: #6366f1; color: #fff; }
.myf-btn-primary:hover { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.myf-btn-sm { padding: 5px 13px; font-size: 12px; }
.myf-btn-xs { padding: 2px 10px; font-size: 12px; }
.myf-btn-danger { border-color: #fecaca; color: #dc2626; }
.myf-btn-danger:hover { background: #dc2626; border-color: #dc2626; color: #fff; }
.myf-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* --- 未登录提示 --- */
.myf-login-tip {
    margin: 50px auto 30px; padding: 34px 20px;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    background: #fff; border-radius: 10px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    color: #64748b; font-size: 14px; text-align: center;
}

/* --- 清单卡片网格 --- */
.myf-grid {
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
}
.myf-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
    overflow: hidden; display: flex; flex-direction: column;
    transition: box-shadow .15s ease;
}
.myf-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .10); }
.myf-card-img { display: block; aspect-ratio: 4 / 3; background: #f1f5f9; overflow: hidden; }
.myf-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.myf-card-noimg {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #cbd5e1; font-size: 14px;
}
.myf-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.myf-card-title {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 8px; font-size: 15px; font-weight: 600; line-height: 1.45; color: #1e293b;
}
.myf-card-title a {
    color: inherit; text-decoration: none; min-width: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.myf-card-title a:hover { color: #0d6efd; }
.myf-card-meta { font-size: 12px; color: #94a3b8; display: flex; gap: 12px; flex-wrap: wrap; }
.myf-card-ops { margin-top: auto; padding-top: 2px; display: flex; gap: 8px; }

/* --- 状态徽章 --- */
.myf-badge {
    display: inline-block; flex: none;
    font-size: 11px; line-height: 1.6; font-weight: 600;
    padding: 1px 9px; border-radius: 999px; white-space: nowrap;
}
.myf-badge-pub { background: #dcfce7; color: #15803d; }
.myf-badge-draft { background: #f1f5f9; color: #64748b; }
.myf-badge-done { background: #dbeafe; color: #1d4ed8; }
.myf-badge-cancel { background: #fee2e2; color: #b91c1c; }

/* --- 空状态 --- */
.myf-empty {
    padding: 36px 20px; text-align: center;
    color: #94a3b8; font-size: 14px;
    background: #fff; border: 1px dashed #e2e8f0; border-radius: 10px;
}
.myf-empty .myf-btn { margin-left: 10px; }

/* --- 表单面板 --- */
.myf-panel {
    background: #fff; border-radius: 10px; padding: 16px 18px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
}
.myf-panel h3 {
    font-size: 15px; font-weight: 600; color: #1e3a5f; margin: 0;
}
.myf-form-grid {
    display: grid; gap: 12px 16px;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    margin-bottom: 12px;
}
.myf-field {
    display: flex; flex-direction: column; gap: 5px;
    font-size: 13px; color: #475569;
}
.myf-field input, .myf-field select, .myf-field textarea,
.myf-row-field input {
    width: 100%; padding: 8px 10px;
    font-size: 14px; font-family: inherit; color: #111;
    border: 1px solid #d5dde5; border-radius: 6px; background: #fff;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.myf-field input:focus, .myf-field select:focus, .myf-field textarea:focus,
.myf-row-field input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, .12); }
.myf-field textarea { resize: vertical; min-height: 56px; }
.myf-upload-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.myf-thumb {
    width: 54px; height: 54px; object-fit: cover;
    border-radius: 6px; border: 1px solid #e2e8f0; background: #f8fafc;
}

/* --- 明细行（div 卡片 + grid，规避移动端 table 竖排问题） --- */
.myf-rows-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 12px;
}
.myf-row {
    display: grid; align-items: end; gap: 8px 10px;
    grid-template-columns: 60px minmax(140px, 1.5fr) minmax(150px, 1.3fr) minmax(90px, 1fr) minmax(70px, .8fr) minmax(80px, .9fr) minmax(110px, 1.2fr) auto;
    padding: 12px; margin-bottom: 10px;
    border: 1px solid #e5edf5; border-radius: 8px; background: #fbfdff;
}
.myf-row-img { display: flex; align-items: flex-end; }
.myf-row-img .myf-thumb { width: 56px; height: 56px; }
.myf-row-field {
    display: flex; flex-direction: column; gap: 4px;
    font-size: 12px; color: #64748b; min-width: 0;
}
.myf-img-line { display: flex; align-items: center; gap: 6px; }
.myf-img-line input { flex: 1; min-width: 0; }
.myf-row-ops { display: flex; gap: 6px; }
.myf-save-line {
    display: flex; align-items: center; justify-content: flex-end;
    gap: 10px; margin-top: 4px;
}
#myfSaveTip { font-size: 13px; color: #475569; }
.myf-file-input { display: none; }

/* --- 我的订单 --- */
.myf-orders { display: flex; flex-direction: column; gap: 14px; }
.myf-order-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
    padding: 14px 16px;
    display: flex; flex-direction: column; gap: 10px;
}
.myf-order-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.myf-order-no { font-size: 14px; font-weight: 600; color: #1e293b; }
.myf-order-date { font-size: 12px; color: #94a3b8; margin-left: auto; }
.myf-order-title { font-size: 13px; color: #475569; }
.myf-order-meta { font-size: 12px; color: #64748b; display: flex; gap: 14px; flex-wrap: wrap; }
.myf-order-items {
    border-top: 1px dashed #e2e8f0; padding-top: 10px;
    display: flex; flex-direction: column; gap: 8px;
}
.myf-order-item { display: flex; align-items: center; gap: 10px; }
.myf-order-item img {
    flex: none; width: 44px; height: 44px; object-fit: cover;
    border-radius: 6px; border: 1px solid #e2e8f0; background: #f8fafc;
}
.myf-order-item-info { flex: 1; min-width: 0; }
.myf-oi-spec {
    font-size: 13px; font-weight: 600; color: #334155;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.myf-oi-meta { font-size: 12px; color: #94a3b8; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }

/* --- 响应式 --- */
@media (max-width: 900px) {
    .myf-row { grid-template-columns: 56px repeat(2, minmax(0, 1fr)); }
    .myf-row-spec { grid-column: 2 / -1; }
    .myf-row-ops { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (max-width: 767px) {
    .myf-wrap { margin-bottom: 20px; gap: 12px; }
    .myf-head h2 { font-size: 18px; }
    .myf-panel { padding: 12px; }
    .myf-login-tip { margin: 30px auto 20px; }
}
@media (max-width: 560px) {
    .myf-row { grid-template-columns: 56px minmax(0, 1fr); }
    .myf-row-field { grid-column: 1 / -1; }
    .myf-row-spec { grid-column: 2; }
    .myf-rows-head { flex-wrap: wrap; }
}

/* ===================== 用户中心仪表盘（对齐 LaySNS user.laysns.com .uc-* 布局） ===================== */
.myf-uc-user {
    max-width: 1200px; margin: 0 auto 20px; width: 100%;
    min-height: 630px; border-radius: 8px; box-sizing: border-box;
    background: #fbfbfb; overflow: hidden;
    border: 1px solid #eef0f3;
}
/* --- 左侧菜单 --- */
.myf-uc-menu { width: 180px; position: relative; float: left; }
.myf-uc-menu ul { list-style: none; }
.myf-uc-menu li { list-style: none; }
.myf-uc-menu li a,
.myf-uc-menu li button {
    width: 150px; display: block; line-height: 56px;
    font-size: 15px; padding: 0 15px; text-align: center;
    cursor: pointer; -webkit-transition: all .2s; transition: all .2s;
    color: #555; background: none; border: 0; font-family: inherit;
    text-decoration: none;
}
.myf-uc-menu li a:hover,
.myf-uc-menu li button:hover { color: #1e9dff; }
.myf-uc-menu li.hover a { background: #fff; color: #007bf5; font-weight: 500; }
/* --- 右侧内容 --- */
.myf-uc-box {
    margin-left: 180px; background: #fff;
    min-height: 600px; padding: 30px; box-sizing: border-box; overflow: hidden;
}
.myf-uc-title {
    position: relative;
    font-size: 18px; font-weight: 500; color: #1e293b;
    padding-bottom: 14px; margin-bottom: 6px;
    border-bottom: 1px solid #eef0f3;
}
.myf-uc-title > span { font-size: 14px; color: #888; font-weight: 400; margin-left: 15px; }
.myf-uc-title-r { float: right; line-height: 1.5; margin-left: 0; }
/* --- 用户信息 --- */
.myf-uc-i-info { margin: 25px 0 35px; overflow: hidden; }
.myf-uc-i-info .info-img {
    float: left; width: 100px; height: 100px;
    border-radius: 50%; overflow: hidden; position: relative;
    background: linear-gradient(135deg, #4facfe 0%, #1e9dff 100%);
    display: flex; align-items: center; justify-content: center;
}
.myf-uc-i-info .info-img img { width: 100px; height: 100px; object-fit: cover; display: block; }
.myf-uc-i-info .info-initial {
    font-size: 40px; color: #fff; font-weight: 500;
    line-height: 1; user-select: none;
}
.myf-uc-i-info .info-info { float: right; margin-top: 18px; width: calc(100% - 130px); }
.myf-uc-i-info .info-info .nick {
    font-size: 22px; font-weight: 400; height: 35px; line-height: 35px;
    color: #1e293b;
    text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
}
.myf-uc-i-info .info-info .nick font {
    margin-left: 13px; font-size: 15px; vertical-align: middle;
    color: #b1b1b1; font-weight: 400;
}
.myf-uc-i-info .info-info .intr {
    font-size: 14px; color: #888; line-height: 26px; margin-top: 7px;
}
/* --- 统计卡 --- */
.myf-uc-data { overflow: hidden; margin: 25px 0; }
.myf-uc-data ul { list-style: none; }
.myf-uc-data ul li {
    width: 31%; height: 130px; float: left; margin-right: 3.5%;
    background: #f2f5f9; border-radius: 5px; overflow: hidden;
    list-style: none; box-sizing: border-box;
}
.myf-uc-data ul li:last-child { margin-right: 0; }
.myf-uc-data ul li h3 { font-size: 17px; font-weight: 700; text-indent: 30px; margin-top: 34px; color: #1e293b; }
.myf-uc-data ul li p { text-indent: 30px; margin-top: 5px; color: #888; font-size: 14px; }
.myf-uc-data ul li span {
    display: flex; align-items: center; justify-content: center;
    width: 70px; height: 70px; border-radius: 50px;
    float: right; margin-top: 5px; margin-right: -20px;
    color: #fff;
}
.myf-uc-data ul li:nth-child(1) span { background: #1e9dff; }
.myf-uc-data ul li:nth-child(2) span { background: #ffae13; }
.myf-uc-data ul li:nth-child(3) span { background: #575757; }
/* --- 资料列表 --- */
.myf-uc-list { overflow: hidden; }
.myf-uc-list ul { list-style: none; }
.myf-uc-list li { width: 49%; float: left; list-style: none; }
.myf-uc-list li:nth-child(2n) { float: right; }
.myf-uc-list li h3 { margin-top: 18px; height: 24px; line-height: 24px; font-weight: 700; font-size: 14px; color: #1e293b; }
.myf-uc-list li span {
    display: block; width: 100%; min-height: 15px;
    border-radius: 5px; padding: 12px 15px;
    background: #f2f5f9; margin-top: 5px; color: #555;
    box-sizing: border-box; word-break: break-all; font-size: 14px;
}
.myf-uc-list li.wide { width: 100%; }
/* --- box 内既有组件微调（白底内容区里弱化卡片阴影） --- */
.myf-uc-box .myf-panel {
    background: #fafbfc; border: 1px solid #eef0f3;
    box-shadow: none; margin-bottom: 14px;
}
.myf-uc-box .myf-empty {
    background: transparent; border-style: dashed; border-color: #e2e8f0;
    margin-top: 16px;
}
.myf-uc-box .myf-grid { margin-top: 16px; }
.myf-uc-box .myf-orders { margin-top: 16px; }
.myf-uc-box .myf-order-card { background: #fafbfc; }
.myf-uc-box form { margin-top: 18px; }

/* --- 响应式（对齐参考站 800/480 两档断点） --- */
@media screen and (max-width: 800px) {
    .myf-uc-menu { width: 100%; float: none; border-bottom: 1px solid #eef0f3; background: #fff; }
    .myf-uc-menu ul { display: flex; flex-wrap: wrap; }
    .myf-uc-menu li { flex: 1 1 20%; min-width: 20%; }
    .myf-uc-menu li a,
    .myf-uc-menu li button { width: 100%; line-height: 42px; padding: 0; font-size: 14px; }
    .myf-uc-menu li.hover a { background: #f2f8ff; }
    .myf-uc-box { clear: both; margin-left: 0; padding: 14px; }
    .myf-uc-data ul li { width: 100%; margin: 0 0 10px 0; }
    .myf-uc-list li,
    .myf-uc-list li:nth-child(2n) { width: 100%; float: none; }
}
@media screen and (max-width: 480px) {
    .myf-uc-user { margin-bottom: 12px; border-radius: 6px; }
    .myf-uc-i-info .info-img { float: none; margin: 0 auto 12px; }
    .myf-uc-i-info .info-info { float: none; width: 100%; text-align: center; margin-top: 0; }
    .myf-uc-i-info .info-info .nick { text-align: center; white-space: normal; height: auto; line-height: 30px; }
    .myf-uc-i-info .info-info .nick font { display: block; margin: 5px 0 0; }
    .myf-uc-i-info .info-info .intr { text-align: center; }
    .myf-uc-data ul li h3 { text-indent: 0; text-align: center; margin-top: 26px; }
    .myf-uc-data ul li p { text-indent: 0; text-align: center; }
    .myf-uc-data ul li span { margin-right: 0; }
    .myf-uc-title { text-align: center; }
    .myf-uc-title > span { display: block; margin: 4px 0 0; }
    .myf-uc-title-r { float: none !important; display: inline-block; margin-top: 6px; }
    .myf-uc-menu li { flex-basis: 33.33%; min-width: 33.33%; }
}

/* ===================== 个人资料设置（齿轮入口 / 头像遮罩 / 设置表单） ===================== */
/* --- 右上角齿轮 --- */
.myf-uc-set {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    color: #8a94a6; text-decoration: none;
    transition: all .2s;
}
.myf-uc-set:hover { color: #007bf5; background: #eef5ff; }
/* --- 头像可点 + hover 修改遮罩 --- */
.myf-uc-i-info a.info-img { text-decoration: none; color: #fff; cursor: pointer; }
.myf-uc-i-info .avatar-mask {
    position: absolute; inset: 0; border-radius: 50%;
    background: rgba(0, 0, 0, .45); color: #fff;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .2s; pointer-events: none;
}
.myf-uc-i-info .info-img:hover .avatar-mask { opacity: 1; }

/* --- 设置页表单（左 label 右控件，对齐参考站） --- */
.myf-prof-form { margin-top: 24px; max-width: 720px; }
.myf-prof-row { display: flex; align-items: flex-start; margin-bottom: 22px; }
.myf-prof-label {
    flex: 0 0 110px; width: 110px;
    padding-top: 9px; padding-right: 16px;
    text-align: right; font-size: 15px; color: #333;
}
.myf-prof-ctl { flex: 1; min-width: 0; }
.myf-prof-ctl input[type="text"],
.myf-prof-ctl textarea {
    width: 100%; max-width: 440px;
    padding: 9px 12px; font-size: 14px; font-family: inherit; color: #111;
    border: 1px solid #d5dde5; border-radius: 4px; background: #fff;
    outline: none; transition: border-color .15s ease, box-shadow .15s ease;
    box-sizing: border-box;
}
.myf-prof-ctl textarea { max-width: 520px; resize: vertical; min-height: 96px; }
.myf-prof-ctl input:focus,
.myf-prof-ctl textarea:focus { border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20, 184, 166, .12); }
.myf-prof-radios { display: flex; gap: 34px; padding-top: 9px; font-size: 15px; color: #333; }
.myf-prof-radios label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.myf-prof-radios input { width: 18px; height: 18px; accent-color: #009E94; cursor: pointer; }
/* --- 头像上传行 --- */
.myf-prof-avatar-line { display: flex; align-items: center; gap: 18px; }
.myf-prof-avatar-img {
    width: 88px; height: 88px; border-radius: 50%; overflow: hidden; position: relative;
    background: linear-gradient(135deg, #4facfe 0%, #1e9dff 100%);
    display: flex; align-items: center; justify-content: center; flex: none;
}
.myf-prof-avatar-img img { width: 88px; height: 88px; object-fit: cover; display: block; }
.myf-prof-avatar-img .info-initial { font-size: 34px; color: #fff; line-height: 1; user-select: none; }
.myf-prof-avatar-side { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.myf-prof-hint { font-size: 12px; color: #9aa3b2; }
/* --- 操作按钮（青绿主按钮对齐参考站） --- */
.myf-btn-teal {
    padding: 9px 30px; font-size: 14px; border-radius: 4px;
    background: #14b8a6; border-color: #14b8a6; color: #fff;
}
.myf-btn-teal:hover { background: #0d9488; border-color: #0d9488; color: #fff; }
.myf-prof-actions { display: flex; align-items: center; gap: 14px; padding-left: 126px; }
.myf-prof-actions .myf-btn:not(.myf-btn-teal) { padding: 9px 26px; font-size: 14px; border-radius: 4px; }
#myfProfileTip { font-size: 13px; color: #14b8a6; }

@media screen and (max-width: 800px) {
    .myf-prof-row { flex-direction: column; }
    .myf-prof-label { flex: none; width: auto; text-align: left; padding: 0 0 7px; }
    .myf-prof-ctl input[type="text"],
    .myf-prof-ctl textarea { max-width: 100%; }
    .myf-prof-actions { padding-left: 0; flex-wrap: wrap; }
    .myf-prof-radios { padding-top: 0; gap: 24px; }
}
