/* ========================================
   发稿CMS管理系统 - 专业商务蓝主题
   配色规范：
     主色        #165DFF
     浅蓝        #E8F3FF
     背景        #F7F8FA
     卡片/表单   #FFFFFF
     标题        #1D2129
     正文        #4E5969
     提示小字    #86909C
     分割线      #E5E6EB
     已发布      #00B42A
     待审核/草稿 #FF7D00
     驳回/删除   #F53F3F
   ======================================== */

/* Reset & Base */
html {
    height: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #165DFF;
    --primary-hover: #0E42D2;
    --primary-light: #E8F3FF;
    --primary-bg: rgba(22, 93, 255, 0.08);

    --bg-page: #F7F8FA;
    --bg-card: #FFFFFF;
    --bg-hover: #E8F3FF;

    --success: #00B42A;
    --success-bg: rgba(0, 180, 42, 0.08);
    --warning: #FF7D00;
    --warning-bg: rgba(255, 125, 0, 0.08);
    --danger: #F53F3F;
    --danger-bg: rgba(245, 63, 63, 0.08);
    --muted: #86909C;

    --text-title: #1D2129;
    --text-body: #4E5969;
    --text-hint: #86909C;
    --text-white: #FFFFFF;

    --border: #E5E6EB;
    --border-light: #F0F0F5;

    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.04);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.12);

    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;

    --transition: 0.2s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100%;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* ========== 通用容器 ========== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== 应用布局 ========== */

.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== 顶部导航栏 ========== */

.app-header {
    background-color: var(--bg-card);
    height: 56px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
    padding: 0 16px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-body);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.sidebar-toggle:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.app-logo {
    height: 56px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.balance-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 4px 12px;
    border-radius: var(--radius);
    background: var(--bg-page);
}

.balance-item {
    font-size: 12px;
    color: var(--text-body) !important;
}

.header-right .balance-item {
    color: var(--text-body) !important;
}

.balance-item strong {
    color: var(--text-title) !important;
}

.header-right .balance-item strong {
    color: var(--text-title) !important;
}

.balance-item.muted {
    color: var(--text-hint) !important;
}

.header-right .balance-item.muted {
    color: var(--text-hint) !important;
}

.text-success {
    color: var(--success) !important;
}

.user-info {
    color: var(--text-body);
    font-size: 13px;
}

.logout-btn {
    color: var(--text-body);
    padding: 6px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.logout-btn:hover {
    background-color: var(--danger-bg);
    color: var(--danger);
    border-color: transparent;
    text-decoration: none;
}

/* ========== 左侧菜单栏 ========== */

.app-sidebar {
    width: 200px;
    background-color: var(--bg-card);
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    z-index: 90;
    transform: translateX(0);
    transition: transform 0.3s ease;
    overflow-y: auto;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.app-sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sidebar-nav ul {
    list-style: none;
    padding: 8px 0;
    margin: 0;
    flex: 1;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-body);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    border-left: 3px solid transparent;
    text-decoration: none;
    margin: 1px 8px;
    border-radius: var(--radius);
}

.sidebar-nav li a:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.sidebar-nav li a.active {
    background-color: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.sidebar-nav li a svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* ========== 侧边栏底部客服信息 ========== */

.sidebar-footer {
    border-top: 1px solid var(--border);
    padding: 10px 16px 14px;
    margin-top: auto;
    text-align: center;
    height: 250px;
}
.sidebar-footer img {
    width: 120px;
    height: 120px;
}

.sidebar-contact-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-hint);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 6px 0 4px;
}

.sidebar-contact-title:first-child {
    margin-top: 0;
}

.sidebar-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-body);
    padding: 2px 0;
}

.sidebar-contact-item svg {
    flex-shrink: 0;
    color: var(--primary);
}

.sidebar-qrcode {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    object-fit: cover;
}

.qrcode-item {
    padding-bottom: 2px;
}

/* ========== 侧边栏遮罩 ========== */

.sidebar-overlay {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 80;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: none;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    display: block;
}

/* ========== 主内容区 ========== */

.app-main {
    flex: 1;
    margin-top: 56px;
    margin-left: 200px;
    min-height: calc(100vh - 56px);
    transition: margin-left 0.3s ease;
    background-color: var(--bg-page);
}

.app-sidebar.collapsed + .sidebar-overlay + .app-main {
    margin-left: 0;
}

.main-container {
    padding: 24px;
    max-width: 1400px;
}

.main-content {
    padding: 32px 0;
    min-height: calc(100vh - 56px - 60px);
}

/* ========== 页脚 ========== */

.footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
    color: var(--text-hint);
    font-size: 13px;
}

/* ========== 标题层级 ========== */

h1 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-title);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-title);
    margin-bottom: 16px;
}

h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-title);
    margin-bottom: 12px;
}

/* ========== 按钮系统 ========== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    gap: 6px;
    line-height: 1.4;
}

.btn:hover {
    text-decoration: none;
    opacity: 0.9;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: var(--text-white);
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-body);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-success {
    background-color: var(--success);
    color: var(--text-white);
}

.btn-success:hover {
    opacity: 0.9;
}

.btn-warning {
    background-color: var(--warning);
    color: var(--text-white);
}

.btn-warning:hover {
    opacity: 0.9;
}

.btn-danger {
    background-color: var(--danger);
    color: var(--text-white);
}

.btn-danger:hover {
    opacity: 0.9;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

.btn-warning {
    background-color: var(--warning);
    color: var(--text-white);
}
.btn-warning:hover {
    opacity: 0.9;
}

/* ========== 操作单元格布局 ========== */
.action-cell {
    max-width: 240px;
}
.action-cell .action-row {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.action-cell .action-row:last-child {
    margin-bottom: 0;
}
.action-cell .balance-form {
    margin-bottom: 6px;
}
.action-cell .balance-group {
    display: flex;
    gap: 4px;
    align-items: center;
}
.action-cell .balance-group .balance-input {
    width: 90px !important;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ========== 表单系统 ========== */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-title);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    background-color: var(--bg-card);
    transition: all var(--transition);
    color: var(--text-body);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group label input[type="checkbox"] {
    width: auto;
    margin-right: 6px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-group label:has(input[type="checkbox"]) {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-body);
    cursor: pointer;
    white-space: nowrap;
}

.inline-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.inline-form input,
.inline-form select {
    width: auto;
    padding: 8px 12px;
}

/* ========== 筛选标签 ========== */

.filter-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 4px;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}

.filter-tabs .tab {
    padding: 6px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-body);
    text-decoration: none;
    transition: all var(--transition);
}

.filter-tabs .tab:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

.filter-tabs .tab.active {
    background-color: var(--primary);
    color: var(--text-white);
}

.filter-tabs .filter-actions {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

.btn-import {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-import:hover {
    background: var(--primary);
    color: var(--text-white);
}

/* ========== 表单行 ========== */

.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 150px;
}

/* ========== 类型专属字段区域 ========== */

.type-fields {
    background-color: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin: 12px 0;
}

.type-fields h3 {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* ========== 宽弹窗 ========== */

.modal-wide {
    max-width: 800px !important;
}

/* ========== 操作单元格 ========== */

.action-cell {
    white-space: nowrap;
}

/* ========== 表格系统 ========== */

.table {
    width: 100%;
    background-color: var(--bg-card);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background-color: var(--bg-page);
    color: var(--text-title);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.2px;
    text-transform: none;
}

.table th:first-child {
    border-top-left-radius: var(--radius);
}

.table th:last-child {
    border-top-right-radius: var(--radius);
}

.table tr:last-child td:first-child {
    border-bottom-left-radius: var(--radius);
}

.table tr:last-child td:last-child {
    border-bottom-right-radius: var(--radius);
}

.table tr:hover {
    background-color: var(--primary-light);
}

.table tr:last-child td {
    border-bottom: none;
}

.table td {
    font-size: 13px;
    color: var(--text-body);
}

.table td .btn {
    margin-right: 4px;
}

.table td .btn:last-child {
    margin-right: 0;
}

/* ========== 徽章系统 ========== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.4;
}

.badge-admin {
    background-color: var(--danger-bg);
    color: var(--danger);
}

.badge-user {
    background-color: var(--primary-bg);
    color: var(--primary);
}

.badge-pending {
    background-color: #E8F3FF;
    color: #165DFF;
}

.badge-publishing {
    background-color: var(--warning-bg);
    color: var(--warning);
}

.badge-published {
    background-color: var(--success-bg);
    color: var(--success);
}

.badge-cancelled {
    background-color: rgba(134, 144, 156, 0.12);
    color: var(--text-hint);
}

.badge-refunded {
    background-color: rgba(255, 152, 0, 0.12);
    color: #e65100;
}

/* ========== 平台/媒体标签 ========== */

.platform-tag {
    display: inline-block;
    padding: 1px 8px;
    margin-left: 4px;
    font-size: 11px;
    line-height: 1.6;
    color: #fff;
    background: #2196F3;
    border-radius: 10px;
    white-space: nowrap;
    vertical-align: middle;
}
.platform-tag.soft {
    background: #ff9800;
}

/* 订单号单元格：固定宽度 + 省略号 + 可点击复制 */
td.order-no-cell {
    max-width: 80px;
    width: 80px;
    overflow: hidden;
}
.order-no-cell span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    font-family: 'SF Mono', 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    user-select: all;
}
.order-no-cell span:hover {
    color: #2196F3;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.badge-refund {
    background-color: #FFF3E0;
    color: #E65100;
}

.badge-0 {
    background-color: var(--danger-bg);
    color: var(--danger);
}

.badge-self_media {
    background-color: var(--success-bg);
    color: var(--success);
}

.badge-soft_article {
    background-color: var(--warning-bg);
    color: var(--warning);
}

.badge-1 {
    background-color: var(--success-bg);
    color: var(--success);
}

/* ========== 提示消息 ========== */

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    font-size: 13px;
    border: 1px solid;
    line-height: 1.5;
}

.alert-error {
    background-color: var(--danger-bg);
    color: var(--danger);
    border-color: rgba(245, 63, 63, 0.15);
}

.alert-success {
    background-color: var(--success-bg);
    color: var(--success);
    border-color: rgba(0, 180, 42, 0.15);
}

/* ========== 登录/注册页 ========== */

.auth-page {
    background-color: var(--bg-page);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* 登录/注册页：背景图 + 表单靠右 */
.auth-page-bg {
    background: url('/uploads/img/login_bg6.jpg') center / cover no-repeat;
    justify-content: flex-end;
    padding-right: 10%;
}

.auth-page-bg .auth-container h1 {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.auth-page-bg .auth-box {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 24px;
}

.auth-container h1 {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 28px;
    letter-spacing: -0.5px;
}

.auth-box {
    background-color: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 18px;
}

.auth-box .btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    margin-top: 8px;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-hint);
}

/* 注册页 手机号 & 验证码 */
.phone-input-wrap input { width: 100%; }
.sms-code-wrap { display: flex; gap: 8px; }
.sms-code-wrap input { flex: 1; min-width: 0; }
.sms-code-wrap .btn-sms { flex: 1; max-width: 50%; }
.btn-sms {
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    background: var(--primary);
    color: var(--text-white);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
}
.btn-sms:hover { background: var(--primary-hover); }
.btn-sms:disabled { opacity: 0.5; cursor: not-allowed; }

/* ========== 系统设置页 ========== */

.settings-page { max-width: 640px; margin: 0 auto; padding: 32px 0; }
.settings-card { background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px; }
.settings-title { font-size: 18px; font-weight: 700; color: var(--text-title); margin: 0 0 4px; }
.settings-desc { font-size: 13px; color: var(--text-hint); margin: 0 0 18px; }
.form-help { font-size: 12px; color: var(--text-hint); margin: 4px 0 0; }
.toggle-wrap { display: flex; gap: 20px; padding: 4px 0; }
.toggle-label { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--text-body); cursor: pointer; }
.toggle-label input[type="radio"] { width: auto; accent-color: var(--primary); }

/* ========== 面板 & 卡片 ========== */

.panel {
    background-color: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.panel h2 {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* ========== 数据统计卡片 ========== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background-color: var(--bg-card);
    padding: 20px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #4B8BFF);
}

.stat-card h3 {
    color: var(--text-hint);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    text-transform: none;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-title);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* ========== 媒体网格卡片 ========== */

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.media-card {
    background-color: var(--bg-card);
    padding: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.media-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.media-card-header {
    padding: 16px 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.media-card-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    flex: 1;
}

.media-card-price {
    padding: 12px 20px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    border-bottom: 1px solid var(--border);
}

.media-card-price .price {
    font-size: 22px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.media-card-price .price-label {
    font-size: 12px;
    color: var(--text-hint);
}

.media-card-details {
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.detail-item {
    font-size: 12px;
    color: var(--text-hint);
    line-height: 1.6;
}

.media-card-notes {
    padding: 8px 20px;
    margin: 0 12px 12px;
    background-color: var(--bg-page);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-hint);
    line-height: 1.5;
}

.media-card .btn-block {
    width: auto;
    margin: 0 12px 12px;
}

.media-price {
    font-size: 26px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.media-price::before {
    content: '\00A5';
    font-size: 16px;
    font-weight: 500;
    margin-right: 2px;
}

/* ========== 用户信息栏 ========== */

.user-info-bar {
    background-color: var(--bg-card);
    padding: 16px 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.user-info-bar span {
    font-size: 13px;
    color: var(--text-hint);
}

.user-info-bar strong {
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    margin-left: 4px;
}

/* ========== 模态框 ========== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(29, 33, 41, 0.5);
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-card);
    padding: 28px;
    border-radius: var(--radius);
    max-width: 480px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    position: relative;
    transition: all var(--transition);
}

.modal-content.dragging {
    cursor: grabbing;
}

.modal-header-drag {
    cursor: move;
    user-select: none;
}

.modal-content h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.modal-price {
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
}

.confirm-text {
    color: var(--text-hint);
    font-size: 12px;
    padding: 10px 14px;
    background-color: var(--bg-page);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

/* ========== 内容预览 ========== */

.content-preview {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    font-size: 12px;
    color: var(--text-hint);
}

.external-link {
    color: var(--success);
    font-weight: 500;
}

.reject-reason-cell {
    color: var(--danger);
    font-size: 13px;
    line-height: 1.5;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 标题下划线超链接 */
.title-link {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

.title-link:hover {
    color: #1d4ed8;
}

/* ========== 余额输入 ========== */

.balance-input {
    width: 100px !important;
    padding: 6px 10px !important;
    font-size: 13px;
}

/* ========== 空状态 ========== */

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-hint);
    background-color: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 14px;
}

/* ========== 快捷操作 ========== */

.quick-actions {
    display: flex;
    gap: 12px;
    margin: 24px 0;
}

/* ========== 用户信息卡片 ========== */

.user-info-card {
    background-color: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.user-info-card h2 {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.user-info-card p {
    margin: 10px 0;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.user-info-card p strong:first-child {
    color: var(--text-hint);
    font-weight: 500;
}

.user-info-card p strong:last-child {
    color: var(--text-title);
    font-weight: 600;
}

/* ========== 仪表盘 ========== */

.dashboard {
    padding: 0;
}

/* ========== 订单弹窗 ========== */

#orderModal .form-group textarea {
    min-height: 180px;
}

/* ========== 响应式 ========== */

@media (max-width: 768px) {
    .navbar {
        height: auto;
        padding: 12px 0;
    }

    /* 移动端登录/注册页：表单居中，不再靠右 */
    .auth-page-bg {
        justify-content: center;
        padding-right: 0;
        padding: 0 16px;
    }

    .navbar .container {
        flex-direction: column;
        gap: 12px;
    }

    .navbar .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .navbar .nav-menu li a {
        padding: 6px 12px;
        font-size: 12px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .user-info-bar {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .inline-form {
        flex-direction: column;
        width: 100%;
    }

    .inline-form input,
    .inline-form select,
    .inline-form .btn {
        width: 100%;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .table {
        display: block;
        overflow-x: auto;
    }

    h1 {
        font-size: 18px;
    }

    .auth-box {
        padding: 24px;
    }
}

/* 平板适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== 全局过渡动画 ========== */

*::before,
*::after {
    transition-property: background-color, border-color, color, opacity, transform, box-shadow;
    transition-duration: 0.2s;
    transition-timing-function: ease;
}

/* 仅对可交互元素生效 */
.btn,
a,
input,
select,
textarea,
.sidebar-toggle,
.logout-btn,
.filter-tabs .tab,
.btn-import,
.media-card,
.stat-card {
    transition: all var(--transition);
}

/* 焦点态 */
.btn:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* 选中文字色 */
::selection {
    background-color: var(--primary);
    color: var(--text-white);
}

/* ========================================
   媒体列表页 - 表格布局样式
   ======================================== */

body.has-media-bottom .main-container {
    padding-bottom: 160px;
}

/* ===== 顶部操作栏 ===== */

.media-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.media-tabs {
    display: flex;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.media-tab {
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-body);
    background: var(--bg-card);
    text-decoration: none;
    transition: all var(--transition);
    border-right: 1px solid var(--border);
}

.media-tab:last-child {
    border-right: none;
}

.media-tab:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.media-tab.active {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

.btn-export {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: var(--success);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}

.btn-export:hover {
    opacity: 0.9;
    color: var(--text-white);
    text-decoration: none;
}

/* ===== 订单筛选表单 ===== */

.order-filter-form {
    margin-bottom: 12px;
}

.filter-form-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 16px;
}

.filter-form-row label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-body);
    white-space: nowrap;
}

.filter-form-row input[type="text"],
.filter-form-row input[type="date"] {
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition);
}

.filter-form-row input[type="text"]:focus,
.filter-form-row input[type="date"]:focus {
    border-color: var(--primary);
}

.btn-reset {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: transparent;
    color: var(--text-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}

.btn-reset:hover {
    background: var(--bg-hover);
    color: var(--text-body);
    text-decoration: none;
}

/* ===== 搜索栏 ===== */

.media-search-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 14px;
    margin-bottom: 16px;
}

.search-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    flex-wrap: wrap;
}

.search-row + .search-row {
    margin-top: 8px;
}

.search-label {
    font-size: 13px;
    color: var(--text-title);
    font-weight: 500;
    white-space: nowrap;
    min-width: 50px;
}

.search-label-red {
    color: var(--danger);
}

.search-input {
    flex: 1;
    max-width: 280px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    transition: all var(--transition);
    color: var(--text-body);
}

.search-input-sm {
    max-width: 160px;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.search-select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    background: var(--bg-card);
    color: var(--text-body);
}

.search-select:focus {
    border-color: var(--primary);
}

.btn-search {
    padding: 6px 18px;
    background: var(--primary);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-search:hover {
    background: var(--primary-hover);
}

/* ===== 数据表格 ===== */

.media-table-wrapper {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.media-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}

.media-table thead {
    background: var(--bg-page);
}

.media-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-title);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    position: sticky;
    top: 0;
    background: var(--bg-page);
    z-index: 1;
}

.media-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    color: var(--text-body);
}

.media-table tbody tr:nth-child(even) {
    background: #FAFBFC;
}

.media-table tbody tr:hover {
    background: var(--primary-light);
}

.media-table tbody tr.checked {
    background: #D6EAFF;
}

/* 表格行最后一行无分割线 */
.media-table tbody tr:last-child td {
    border-bottom: none;
}

/* 列宽控制 */
.th-check { width: 40px; }
.th-name { width: 250px; }
.th-platform { width: 100px; }
.th-price { width: 90px; }
.th-fans { width: 100px; }
.th-weight { width: 130px; }
.th-source { width: 100px; }
.th-link { width: 100px; }
.th-notes { width: 240px; }
.th-fav { width: 50px; text-align: center; }
.th-block { width: 50px; text-align: center; }

.td-check { text-align: center; }
.td-fav { text-align: center; }
.td-block { text-align: center; }

/* ===== Checkbox ===== */

.media-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* ===== 媒体名称 ===== */

.td-name {
    vertical-align: middle;
    max-width: 250px;
    overflow: hidden;
}
.td-name .media-name-link,
.td-name .media-name-text {
    display: inline-block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.media-name-text {
    font-weight: 500;
    color: var(--text-title);
}

.media-name-link {
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
}

.media-name-link:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

/* ===== 小徽章 ===== */

.media-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    color: var(--text-white);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

/* ===== 价格 ===== */

.price-red {
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
}

/* ===== 权重 ===== */

.td-weight {
    white-space: nowrap;
}

.weight-num {
    font-weight: 600;
    color: var(--text-title);
    margin-right: 4px;
    font-size: 13px;
}

.weight-bar {
    display: inline-flex;
    gap: 2px;
    align-items: center;
    vertical-align: middle;
}

.weight-square {
    display: inline-block;
    width: 8px;
    height: 12px;
    border: 1px solid var(--border);
    border-radius: 1px;
    background: var(--bg-page);
}

.weight-square.active {
    background: var(--primary);
    border-color: var(--primary);
}

.weight-na {
    color: var(--text-hint);
}

/* ===== 悬浮提示 ===== */

.tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 11px;
    cursor: pointer;
    color: var(--text-hint);
    position: relative;
    vertical-align: middle;
    margin-left: 2px;
    user-select: none;
}

.tooltip-trigger:hover::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-title);
    color: var(--text-white);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    box-shadow: var(--shadow-lg);
}

.tooltip-trigger:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--text-title);
    z-index: 100;
    pointer-events: none;
}

/* ===== 新闻源 / 链接情况 ===== */

.source-text,
.link-text {
    color: var(--text-body);
    font-size: 13px;
}

/* ===== 备注列 ===== */

.notes-text {
    color: var(--text-hint);
    font-size: 12px;
    cursor: default;
}

.whitelist-link {
    color: var(--primary);
    font-size: 11px;
    margin-left: 4px;
    cursor: pointer;
}

.whitelist-link:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

/* ===== 收藏图标 ===== */

.fav-icon {
    font-size: 18px;
    cursor: pointer;
    user-select: none;
    line-height: 1;
    transition: transform var(--transition);
    display: inline-block;
}

.fav-icon:hover {
    transform: scale(1.15);
}

.fav-icon.active {
    color: var(--warning);
}

.fav-icon:not(.active) {
    color: var(--border);
}

.fav-icon:not(.active):hover {
    color: var(--warning);
}

/* ===== 拉黑图标 ===== */

.block-icon {
    font-size: 14px;
    cursor: pointer;
    color: var(--border);
    user-select: none;
    transition: all var(--transition);
    display: inline-block;
}

.block-icon:hover {
    color: var(--danger);
}

/* ===== 底部固定操作栏 ===== */

.media-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 200px;
    right: 0;
    background: var(--bg-card);
    z-index: 50;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    border-top: 1px solid var(--border);
}

.app-sidebar.collapsed ~ .sidebar-overlay ~ .app-main .media-bottom-bar,
.app-sidebar.collapsed + .sidebar-overlay + .app-main .media-bottom-bar {
    left: 0;
}

.bottom-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    gap: 16px;
}

.bottom-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.bottom-stat {
    color: var(--text-body);
    font-size: 13px;
}

.stat-count {
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
}

.stat-total {
    color: var(--warning);
    font-size: 15px;
    font-weight: 600;
}

.stat-balance {
    color: var(--text-body);
    font-size: 15px;
}

.btn-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-body);
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}

.btn-refresh:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.bottom-center {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-action {
    padding: 6px 14px;
    background: var(--bg-page);
    color: var(--text-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-action:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.bottom-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-pink {
    position: relative;
    padding: 8px 18px;
    background: var(--primary);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-pink:hover {
    background: var(--primary-hover);
}

.badge-new {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: var(--text-white);
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
    line-height: 1.4;
}

.btn-orange {
    padding: 8px 22px;
    background: var(--primary);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-orange:hover {
    background: var(--primary-hover);
}

/* ===== 已选媒体预览区 ===== */

.bottom-preview {
    padding: 6px 20px 10px;
    border-top: 1px solid var(--border);
    min-height: 32px;
}

.preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.preview-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px 3px 10px;
    background: var(--primary);
    color: var(--text-white);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.preview-tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition);
}

.preview-tag-remove:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--text-white);
}

.preview-empty {
    color: var(--text-hint);
    font-size: 12px;
}

/* ========== 筛选栏 ========== */

.filter-bar {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.filter-group {
    display: flex;
    align-items: flex-start;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-label {
    width: 72px;
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-hint);
    padding-top: 3px;
    font-weight: 500;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex: 1;
}

.filter-btn {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-body);
    background: var(--bg-card);
    text-decoration: none;
    line-height: 22px;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

/* 自媒体筛选栏特定 */

.filter-btn.active-sm { background: var(--primary); color: var(--text-white); border-color: var(--primary); }
.filter-btn.active-geo { background: var(--warning); color: var(--text-white); border-color: var(--warning); }

/* 平台logo图标 */

.platform-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    margin-right: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-white);
    margin-right: 6px;
    flex-shrink: 0;
}

/* 自定义价格输入 */

.price-custom-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-preview {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-preview:hover {
    color: var(--text-white);
    background: var(--primary);
    border-color: var(--primary);
}

.btn-refund {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid #165DFF;
    background: #fff;
    color: #165DFF;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-refund:hover:not(:disabled) {
    background: #165DFF;
    color: #fff;
}

.btn-refund:disabled {
    border-color: #C9CDD4;
    color: #C9CDD4;
    cursor: not-allowed;
}

/* ========================================
   文章预览页
   参考: v.gaoduanedu.cn/news/ 布局风格
   ======================================== */

.ap-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

/* 顶部导航条 */
.ap-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 10px 16px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.ap-back {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition);
}

.ap-back:hover {
    color: var(--primary-hover);
}

.ap-nav-title {
    color: var(--text-body);
    font-size: 14px;
}

/* 文章卡片 */
.ap-article {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    padding: 40px 50px 50px;
}

/* 标题区域 */
.ap-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border);
}

.ap-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-title);
    line-height: 1.4;
    text-align: center;
    margin-bottom: 16px;
}

.ap-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-hint);
    font-size: 14px;
}

.ap-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ap-meta-item svg {
    flex-shrink: 0;
}

.ap-status-pending { color: var(--warning); }
.ap-status-published { color: var(--success); }
.ap-status-cancelled { color: var(--error); }

/* 附件区域 */
.ap-attachments {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ap-attach-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-body);
    font-size: 13px;
    text-decoration: none;
    transition: all var(--transition);
}

.ap-attach-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* 正文区域 - 参照新闻文章样式 */
.ap-body {
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
    font-size: 16px;
    line-height: 2;
    color: #444;
    word-wrap: break-word;
    overflow: hidden;
    position: relative;
}

.ap-body p {
    color: #444;
    line-height: 1.8;
    margin: 5px 0 10px;
}

.ap-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
    border-radius: var(--radius-sm);
}

.ap-body div {
    margin: 20px 0;
}

.ap-body a {
    color: var(--primary);
    text-decoration: none;
}

.ap-body a:hover {
    color: var(--primary-hover);
    border-bottom: 1px dotted var(--border);
}

/* 空内容提示 */
.ap-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-hint);
    font-size: 16px;
    background: var(--bg);
    border-radius: var(--radius);
}

/* 备注 */
.ap-notes {
    margin-top: 30px;
    padding: 16px 20px;
    background: #FFF7E6;
    border: 1px solid #FFE4B3;
    border-radius: var(--radius);
}

.ap-notes-label {
    font-size: 13px;
    font-weight: 600;
    color: #D48806;
    margin-bottom: 8px;
}

.ap-notes-text {
    font-size: 14px;
    color: #613400;
    line-height: 1.6;
    white-space: pre-wrap;
}

.price-custom-input {
    width: 60px;
    height: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 6px;
    font-size: 12px;
    outline: none;
    color: var(--text-body);
}

.price-custom-input:focus {
    border-color: var(--primary);
}

.btn-price-confirm {
    height: 26px;
    padding: 0 10px;
    background: var(--primary);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-price-confirm:hover {
    background: var(--primary-hover);
}

/* 展开按钮 */

.notes-expand {
    color: var(--primary);
    cursor: pointer;
    font-size: 12px;
    margin-left: 4px;
    white-space: nowrap;
}

.notes-expand:hover {
    text-decoration: underline;
}

/* 自媒体表格列 */

.td-platform {
    color: var(--text-body);
    font-size: 13px;
}

.td-fans {
    color: var(--text-body);
    font-size: 13px;
}

/* ========== Toast 组件 - 商务风格 ========== */

.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.toast {
    padding: 12px 24px;
    background: var(--text-title);
    border-radius: var(--radius);
    color: var(--text-white);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    max-width: 360px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast.toast-success { background: var(--success); }
.toast.toast-error { background: var(--danger); }
.toast.toast-info { background: var(--primary); }

.toast-icon {
    display: block;
    margin: 0 auto 8px;
    width: 36px;
    height: 36px;
}

/* ========== 账户信息页（用户中心） ========== */

body.page-account { background: var(--bg-page); }

.acct-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 0;
}

.acct-header { margin-bottom: 28px; }
.acct-title { font-size: 22px; font-weight: 700; color: var(--text-title); margin: 0 0 4px; }
.acct-subtitle { font-size: 14px; color: var(--text-hint); margin: 0; }

.acct-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 28px 24px;
    border: 1px solid var(--border);
}

.acct-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.acct-cell {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    position: relative;
}

.acct-cell:nth-child(1) { border-right: 1px solid var(--border); }
.acct-cell:nth-child(2) { border-right: none; }
.acct-cell:nth-child(3) { border-bottom: none; border-right: 1px solid var(--border); }
.acct-cell:nth-child(4) { border-bottom: none; }

.acct-cell-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.icon-user { background: var(--primary-light); color: var(--primary); }
.icon-balance { background: var(--warning-bg); color: var(--warning); }
.icon-frozen { background: var(--bg-page); color: var(--text-hint); }
.icon-available { background: var(--success-bg); color: var(--success); }

.acct-cell-label { font-size: 12px; color: var(--text-hint); font-weight: 400; }
.acct-cell-value { font-size: 20px; font-weight: 600; color: var(--text-title); }
.acct-name { font-size: 18px; color: var(--text-title); }
.acct-amount { color: var(--text-title); }
.acct-frozen { font-size: 18px; color: var(--text-hint); font-weight: 400; }
.acct-available { font-size: 24px; font-weight: 700; color: var(--primary); }
.acct-cell-highlight { background: var(--bg-page); border-radius: 0 0 0 var(--radius-lg); }

.acct-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.acct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.acct-btn-recharge { background: var(--warning); color: var(--text-white); border: none; }
.acct-btn-recharge:hover { background: #E66A00; }
.acct-btn-detail { background: var(--bg-card); color: var(--text-body); border: 1px solid var(--border); }
.acct-btn-detail:hover { color: var(--primary); border-color: var(--primary); }

/* ========== 用户中心 - 修改密码 ========== */
.acct-card-pwd {
    margin-top: 20px;
    padding: 24px 28px;
}
.acct-card-header h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-title);
}

/* ========== 用户中心 - 客服卡片 ========== */
.acct-kefu-body {
    display: flex;
    align-items: center;
    gap: 24px;
}
.acct-kefu-qrcode img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.acct-kefu-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-body);
}
.acct-pwd-form {
    max-width: 380px;
}
.acct-pwd-row {
    margin-bottom: 12px;
}
.acct-pwd-row input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.acct-pwd-row input:focus {
    border-color: var(--primary);
}
.acct-pwd-row-btn {
    margin-top: 8px;
}
.acct-btn-pwd {
    background: var(--primary);
    color: var(--text-white);
    border: none;
}
.acct-btn-pwd:hover {
    background: #0E42D2;
}

/* ========== 分页组件 ========== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 20px 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-body);
    font-size: 13px;
    text-decoration: none;
    transition: all var(--transition);
}

.page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.page-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.page-link.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--text-white);
    font-weight: 600;
}

.page-ellipsis {
    padding: 0 4px;
    color: var(--text-hint);
    font-size: 13px;
}

.page-info {
    margin-left: 12px;
    font-size: 12px;
    color: var(--text-hint);
}

/* ========== 用户分页 (兼容) ========== */

.user-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.up-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-body);
    font-size: 13px;
    text-decoration: none;
    transition: all var(--transition);
}

.up-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.up-link.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--text-white);
    font-weight: 600;
}

.up-ellipsis {
    padding: 0 4px;
    color: var(--text-hint);
    font-size: 13px;
}

.up-info {
    margin-left: 8px;
    font-size: 12px;
    color: var(--text-hint);
    white-space: nowrap;
}

/* ========== 导入媒体弹窗 (兼容) ========== */

.oc-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: rgba(29, 33, 41, 0.5);
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
}

.oc-modal-overlay.active {
    display: flex;
}

.oc-modal {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: ocModalIn 0.2s ease;
}

@keyframes ocModalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ========== Toast 导入进度 ========== */

#importProgress {
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-page);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-body);
    text-align: center;
}

/* 拖拽上传区域 */

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-page);
    margin: 12px 0;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-zone-icon {
    font-size: 40px;
    color: var(--text-hint);
    margin-bottom: 8px;
}

.upload-zone-text {
    font-size: 14px;
    color: var(--text-hint);
}

.upload-zone-hint {
    font-size: 12px;
    color: var(--text-hint);
    margin-top: 4px;
}

/* ========== 我的订单 - Tab 切换 ========== */
.order-tabs {
    position: relative;
}
.order-tabs input[type="radio"] {
    display: none;
}
.order-tab-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 4px;
    border: 1px solid var(--border);
    display: inline-flex;
}
.order-tab-label {
    padding: 6px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-body);
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
}
.order-tab-label:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}
#tabSoft:checked ~ .order-tab-bar label[for="tabSoft"],
#tabSelf:checked ~ .order-tab-bar label[for="tabSelf"] {
    background-color: var(--primary);
    color: var(--text-white);
}
.order-tab-content {
    display: none;
}
#tabSoft:checked ~ .order-tab-content[data-tab="soft"],
#tabSelf:checked ~ .order-tab-content[data-tab="self"] {
    display: block;
}
