/* 零剪辑短视频带货平台 — 复刻妙搭设计 v2 */
/* 暗色主题，橙色渐变品牌色 */

/* ── 设计变量 ── */
:root {
    --brand-orange: #ff7a00;
    --brand-orange-dark: #ff5500;
    --gradient-brand: linear-gradient(135deg, #ff7a00 0%, #ff5500 100%);
    --gradient-text: linear-gradient(135deg, #ff7a00 0%, #ff5500 100%);
    --bg-body: #0a1628;
    --bg-card: rgba(255,255,255,0.03);
    --bg-card-hover: rgba(255,255,255,0.06);
    --bg-card-active: rgba(255,255,255,0.08);
    --bg-input: rgba(255,255,255,0.06);
    --bg-accent-light: rgba(255,122,0,0.12);
    --text-primary: #e8e8e8;
    --text-secondary: rgba(255,255,255,0.5);
    --text-muted: rgba(255,255,255,0.35);
    --border: rgba(255,255,255,0.08);
    --border-active: rgba(255,122,0,0.3);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.4);
    /* 兼容旧变量 */
    --accent: #ff7a00;
    --accent-light: rgba(255,122,0,0.3);
    --accent-dark: #ff5500;
    --shrimp: #ff7a00;
}

/* ── 全局 ── */
* { margin:0; padding:0; box-sizing:border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
}
a { text-decoration: none; color: var(--brand-orange); }
a:hover { color: var(--brand-orange-dark); }

/* ── 品牌色工具类 ── */
.btn-brand {
    background: var(--gradient-brand);
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.25s;
}
.btn-brand:hover {
    color: #fff;
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255,122,0,0.3);
}
.btn-brand:disabled {
    opacity: 0.5;
    transform: none;
    box-shadow: none;
}
.btn-outline-brand {
    background: transparent;
    border: 1px solid var(--border);
    color: rgba(255,255,255,0.7);
    border-radius: var(--radius);
    transition: all 0.25s;
}
.btn-outline-brand:hover {
    border-color: var(--brand-orange);
    color: var(--text-primary);
    background: rgba(255,122,0,0.08);
}
.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius);
    transition: all 0.2s;
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
}
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.badge-brand {
    background: var(--gradient-brand);
    color: #fff;
    border-radius: 20px;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ── 卡片 ── */
.card-glass {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
}
.card-glass:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}
.card-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}
.card-stat:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-4px);
}
.card-stat .icon-box {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    transition: all 0.3s ease;
}
.card-stat:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* ── 表单 ── */
.form-input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius);
    padding: 0.55rem 1rem;
    width: 100%;
    transition: all 0.2s;
}
.form-input:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 2px rgba(255,122,0,0.15);
    background: rgba(255,122,0,0.04);
}
.form-input::placeholder { color: var(--text-muted); }
.form-label { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.35rem; }

/* ── btn-accent 按钮样式（个人中心用） ── */
.btn-accent {
    background: linear-gradient(135deg, #ff7a00, #ff5500);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-accent:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,122,0,0.25);
    color: #fff;
}
.btn-accent-outline {
    background: transparent;
    color: #ff7a00;
    border: 1px solid rgba(255,122,0,0.3);
    border-radius: 8px;
    padding: 0.35rem 0.8rem;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-accent-outline:hover {
    background: rgba(255,122,0,0.08);
    border-color: #ff7a00;
}

/* ── 选择器 / 下拉框 ── */
select {
    accent-color: var(--brand-orange);
}
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background: #0a1628;
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius);
    padding: 0.55rem 2.2rem 0.55rem 1rem;
    width: 100%;
    transition: all 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,122,0,0.5)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}
select.form-input:hover,
select.form-select:hover {
    border-color: rgba(255,122,0,0.3);
}
select.form-input:focus,
select.form-select:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 2px rgba(255,122,0,0.15);
}
select.form-input option,
select.form-select option,
select.page-size-select option {
    background: #0a1628;
    color: #e8e8e8;
    padding: 0.5rem;
}
select.form-select {
    background: #0a1628;
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius);
    padding: 0.5rem 2.2rem 0.5rem 1rem;
    width: 100%;
    transition: all 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,122,0,0.5)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

/* ── 每页条数选择器（小号下拉） ── */
select.page-size-select {
    appearance: none;
    -webkit-appearance: none;
    background: #0a1628;
    border: 1px solid rgba(255,122,0,0.25);
    color: #e8e8e8;
    border-radius: 6px;
    padding: 0.3rem 1.8rem 0.3rem 0.6rem;
    font-size: 0.78rem;
    width: auto;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='rgba(255,122,0,0.5)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}
select.page-size-select:hover {
    border-color: var(--brand-orange);
}
select.page-size-select:focus {
    border-color: var(--brand-orange);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,122,0,0.15);
}

/* ── 表格 ── */
.table-ncv th {
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem;
}
.table-ncv td {
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

/* ── 徽章状态 ── */
.badge-status {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.2rem 0.55rem;
    border-radius: 100px;
}
.badge-status.approved,
.badge-status.passed { background: rgba(46,204,113,0.15); color: #2ecc71; }
.badge-status.rejected { background: rgba(231,76,60,0.15); color: #e74c3c; }
.badge-status.claimed,
.badge-status.pending { background: rgba(241,196,15,0.15); color: #f1c40f; }
.badge-status.submitted { background: rgba(52,152,219,0.15); color: #3498db; }
.badge-status.fraud { background: rgba(231,76,60,0.25); color: #e74c3c; }

/* ── 分页 ── */
.pagination-ncv {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pagination-ncv .page-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius);
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.pagination-ncv .page-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}
.pagination-ncv .page-btn.active {
    background: var(--gradient-brand);
    color: #fff;
    border-color: var(--brand-orange);
}
.pagination-ncv .page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── 分页（Bootstrap 覆盖 ── */
.pagination {
    --bs-pagination-bg: rgba(255,255,255,0.03);
    --bs-pagination-border-color: rgba(255,255,255,0.08);
    --bs-pagination-color: rgba(255,255,255,0.6);
    --bs-pagination-hover-bg: rgba(255,255,255,0.06);
    --bs-pagination-hover-border-color: rgba(255,255,255,0.12);
    --bs-pagination-hover-color: #e8e8e8;
    --bs-pagination-active-bg: var(--brand-orange);
    --bs-pagination-active-border-color: var(--brand-orange);
    --bs-pagination-active-color: #fff;
    --bs-pagination-disabled-bg: rgba(255,255,255,0.02);
    --bs-pagination-disabled-border-color: rgba(255,255,255,0.05);
    --bs-pagination-disabled-color: rgba(255,255,255,0.25);
    --bs-pagination-focus-box-shadow: 0 0 0 2px rgba(255,122,0,0.15);
    --bs-pagination-focus-bg: rgba(255,255,255,0.06);
    --bs-pagination-focus-color: #e8e8e8;
}
.page-link {
    border-radius: 6px;
    margin: 0 2px;
    font-size: 0.85rem;
    padding: 0.3rem 0.65rem;
}
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    border-radius: 6px;
}

/* ── 通知条目 ── */
.notif-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-xl);
    transition: all 0.2s;
    cursor: default;
}
.notif-item.unread {
    background: rgba(255,122,0,0.05);
    cursor: pointer;
}
.notif-item.unread:hover { background: rgba(255,122,0,0.08); }
.notif-item.read { background: transparent; }
.notif-item .notif-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--brand-orange);
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

/* ── 状态Tab卡片 ── */
.status-tab {
    background: var(--bg-card);
    border: 1px solid transparent;
    border-radius: var(--radius-xl);
    padding: 0.75rem;
    transition: all 0.2s;
    cursor: pointer;
}
.status-tab:hover {
    background: var(--bg-card-hover);
    border-color: var(--border);
}
.status-tab.active {
    border-color: var(--border-active);
}

/* ── 弹窗卡片 85%半透明 ── */
.modal-content {
    background: rgba(10, 22, 40, 0.85) !important;
    backdrop-filter: blur(12px);
    border-radius: 16px;
}

/* ── 顶部导航 ── */
.topbar {
    background: rgba(10,22,40,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

/* ── 管理端侧边栏 ── */
.sidebar {
    background: rgba(255,255,255,0.02);
    border-right: 1px solid var(--border);
    min-height: 100vh;
}
.sidebar .logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff7a00, #ff5500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sidebar .nav-group {
    margin-bottom: 0.5rem;
}
.sidebar .group-title {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.25);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 0.75rem 0.4rem;
    font-weight: 600;
}
.sidebar .nav-link {
    color: rgba(255,255,255,0.55);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}
.sidebar .nav-link:hover {
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.04);
}
.sidebar .nav-link.active {
    color: #ff7a00;
    background: rgba(255,122,0,0.1);
    font-weight: 600;
}
.sidebar .nav-link i {
    width: 1.2rem;
    text-align: center;
    font-size: 0.9rem;
}
.sidebar hr {
    margin: 0.75rem 0;
}

/* ── 移动端底部导航 ── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 51;
    background: rgba(10,22,40,0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
}
.bottom-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.3rem 0;
    color: var(--text-secondary);
    font-size: 0.6rem;
    transition: all 0.2s;
    min-width: 60px;
}
.bottom-nav .nav-link.active {
    color: var(--brand-orange);
}
.bottom-nav .nav-link i { font-size: 1.15rem; }
.bottom-nav .badge-dot {
    position: absolute;
    top: -0.15rem;
    right: -0.15rem;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.45rem;
    font-weight: 700;
    background: #e74c3c;
    color: #fff;
    border-radius: 8px;
}

/* ── Label编辑行 ── */
.edit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.edit-label { font-size: 0.85rem; color: var(--text-secondary); }
.edit-value { font-size: 0.9rem; }
.edit-btn { font-size: 0.75rem; color: var(--brand-orange); cursor: pointer; }

/* ── 动画 ── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}
.float-anim { animation: float 3s ease-in-out infinite; }

/* ── 滚动条 ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
::-webkit-scrollbar-track { background: transparent; }

/* ── 响应式 ── */
@media (max-width: 768px) {
    .card-stat { padding: 1rem; }
}
