/* 外贸业务员系统 - 样式 */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
}

/* 侧边栏 */
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0 !important;
}

#app-wrapper {
    min-width: 0;
}

#app-wrapper > main {
    min-width: 0;
}

.sidebar .nav-link {
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 2px;
    transition: background 0.2s;
    font-size: 14px;
}

.sidebar .nav-link:hover {
    background: rgba(255,255,255,0.1);
}

.sidebar .nav-link.active {
    background: #0d6efd;
    color: white !important;
}

.sidebar .nav-group-title {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 16px 12px 6px 12px;
    margin-bottom: 2px;
    pointer-events: none;
}

.sidebar .nav-group-title:hover {
    background: transparent;
}

/* 卡片 */
.hover-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.hover-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

/* 表格 */
.table th {
    font-weight: 600;
    font-size: 13px;
}

.table td {
    vertical-align: middle;
}

/* Modal */
.modal-header {
    background: #f8f9fa;
}

/* 整体 */
.card {
    border-radius: 10px;
}

.alert {
    border-radius: 8px;
}

.btn {
    border-radius: 6px;
}

.form-control, .form-select {
    border-radius: 6px;
}

/* 质检交流帖子卡片 */
.post-card {
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

/* 评论样式 */
.comment-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.comment-item:last-child {
    border-bottom: none;
}

/* ===== Referral Program 转介绍板块（第六版：深色高级感 Hero + 玻璃态步骤卡）===== */
.ref-hero {
    position: relative;
    background: linear-gradient(135deg, #0b1220 0%, #132447 48%, #0e3a4d 100%);
    border-radius: 20px;
    padding: 2.6rem 2.2rem 2.2rem;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}
.ref-hero::before,
.ref-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}
.ref-hero::before {
    width: 320px; height: 320px;
    background: rgba(56, 189, 248, 0.22);
    top: -130px; right: -70px;
}
.ref-hero::after {
    width: 260px; height: 260px;
    background: rgba(45, 212, 191, 0.16);
    bottom: -110px; left: -50px;
}
.ref-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.ref-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #cbd5e1;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    margin-bottom: 1.1rem;
    backdrop-filter: blur(6px);
}
.ref-badge i { color: #fcd34d; }

.ref-title {
    color: #fff;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 0.7rem;
    letter-spacing: -0.01em;
}
.ref-title .hl {
    background: linear-gradient(135deg, #fde68a 0%, #fbbf24 55%, #f59e0b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.ref-subtitle {
    color: #94a3b8;
    font-size: 0.98rem;
    max-width: 560px;
    margin: 0 auto 1.8rem;
    line-height: 1.6;
}

.ref-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
    margin-bottom: 1.9rem;
}

.ref-step {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 1.4rem 1.15rem 1.3rem;
    text-align: left;
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.ref-step:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.09);
}

.ref-step-num {
    position: absolute;
    top: 0.75rem; right: 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(148, 163, 184, 0.55);
    letter-spacing: 0.05em;
}

.ref-step-icon {
    width: 42px; height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(45, 212, 191, 0.18));
    border: 1px solid rgba(125, 211, 252, 0.25);
    color: #7dd3fc;
    font-size: 1.2rem;
    margin-bottom: 0.85rem;
}

.ref-step-title {
    color: #f1f5f9;
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.ref-step-desc {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.55;
    margin: 0;
}
.ref-step-desc b {
    color: #fcd34d;
    font-weight: 700;
}

.ref-step-note {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.76rem;
    font-style: italic;
    line-height: 1.45;
    margin: 0.45rem 0 0;
}

.btn-ref-cta {
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
    color: #1e293b !important;
    border: none;
    font-weight: 800;
    font-size: 1rem;
    padding: 0.82rem 2.4rem;
    border-radius: 999px;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 26px rgba(245, 158, 11, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-ref-cta:hover {
    color: #0f172a !important;
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 14px 32px rgba(245, 158, 11, 0.45);
}
.btn-ref-cta:active { transform: translateY(0); }

.ref-trust {
    margin-top: 1.1rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    gap: 1.3rem;
    flex-wrap: wrap;
}
.ref-trust span { display: inline-flex; align-items: center; gap: 0.3rem; }
.ref-trust i { color: #fff; font-size: 0.85rem; }

@media (max-width: 767.98px) {
    .ref-steps { grid-template-columns: 1fr; }
    .ref-step { max-width: 420px; margin: 0 auto; }
    .ref-hero { padding: 2rem 1.2rem 1.6rem; }
    .ref-trust { gap: 0.6rem 1.1rem; }
}

/* ===== Approved Affiliate Dashboard（深色高级版，与 hero 一致） ===== */
.ref-dash {
    position: relative;
    background: linear-gradient(135deg, #0b1220 0%, #132447 48%, #0e3a4d 100%);
    border-radius: 20px;
    padding: 2rem 2rem 1.8rem;
    overflow: hidden;
    color: #e2e8f0;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}
.ref-dash::before {
    content: "";
    position: absolute;
    width: 340px; height: 340px;
    border-radius: 50%;
    filter: blur(70px);
    background: rgba(56, 189, 248, 0.16);
    top: -150px; right: -90px;
    pointer-events: none;
}
.ref-dash > * { position: relative; z-index: 1; }

.ref-dash-head { margin-bottom: 1.4rem; }
.ref-dash-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.55rem 0 0;
}

.ref-stat-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.4fr 1fr 1fr 1fr;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}
.ref-stat {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    backdrop-filter: blur(8px);
}
.ref-stat-balance {
    background: linear-gradient(135deg, rgba(252, 211, 77, 0.18), rgba(245, 158, 11, 0.1));
    border-color: rgba(252, 211, 77, 0.35);
}
.ref-stat-pending {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(234, 88, 12, 0.08));
    border-color: rgba(251, 146, 60, 0.3);
}
.ref-stat-value-pending {
    font-size: 1.55rem;
    font-weight: 800;
    color: #fb923c;
    line-height: 1.2;
}
.ref-stat-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: #fcd34d;
    line-height: 1.2;
}
.ref-stat-value-sm {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f1f5f9;
}
.ref-stat-value-sm small { color: #94a3b8; font-weight: 500; font-size: 0.78rem; }
.ref-stat-label {
    color: #94a3b8;
    font-size: 0.78rem;
    margin-top: 0.25rem;
}
.ref-withdraw-hint {
    color: rgba(255,255,255,0.55);
    font-size: 0.75rem;
    margin: 0.5rem 0 0.25rem;
}

.ref-linkrow { margin-bottom: 1.5rem; }
.ref-linkrow-label {
    display: block;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
}
.ref-linkbox {
    display: flex;
    gap: 0.6rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.4rem;
}
.ref-linkinput {
    flex: 1;
    background: transparent;
    border: none;
    color: #cbd5e1;
    padding: 0.45rem 0.7rem;
    font-size: 0.88rem;
    outline: none;
    min-width: 0;
}
.ref-linkinput:focus { outline: none; }
.btn-ref-copy {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    border-radius: 8px;
    padding: 0.4rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-ref-copy:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.btn-ref-copy.copied {
    background: rgba(52, 211, 153, 0.2);
    border-color: rgba(52, 211, 153, 0.5);
    color: #6ee7b7;
}

.ref-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.2rem 0 0.6rem;
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.95rem;
}
.btn-ref-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #cbd5e1;
    border-radius: 8px;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
}
.btn-ref-outline:hover { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-ref-gold {
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    border: none;
    color: #1e293b;
    font-weight: 700;
    border-radius: 8px;
    font-size: 0.8rem;
    padding: 0.3rem 0.9rem;
}
.btn-ref-gold:hover { filter: brightness(1.05); color: #0f172a; }

.ref-table-wrap {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}
.ref-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.ref-table thead th {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.7rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ref-table tbody td {
    padding: 0.7rem 1rem;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.ref-table tbody tr:last-child td { border-bottom: none; }
.ref-table tbody tr:hover { background: rgba(255, 255, 255, 0.04); }
.ref-table .ref-money { color: #fcd34d; font-weight: 600; }
.ref-table .ref-dim { color: #64748b; font-size: 0.82rem; }
.ref-table .ref-empty { color: #64748b; text-align: center; padding: 1.4rem 1rem; font-size: 0.85rem; }

@media (max-width: 767.98px) {
    .ref-dash { padding: 1.5rem 1.1rem; }
    .ref-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .ref-stat-grid .ref-stat-balance,
    .ref-stat-grid .ref-stat-pending { grid-column: span 2; }
    .ref-linkbox { flex-direction: column; }
    .btn-ref-copy { width: 100%; }
    .ref-section-head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

.evidence-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; }
.evidence-item { border: 1px solid #e2e8f0; border-radius: 0.5rem; overflow: hidden; background: #f8fafc; }
.evidence-item img { width: 100%; display: block; transition: transform 0.15s; }
.evidence-item img:hover { transform: scale(1.02); }
.evidence-item .btn { border: 0; border-radius: 0; width: 100%; padding: 0.75rem; }
