/* 鍏ㄥ眬閲嶇疆 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    font-size: 14px;
    color: #303133;
    background-color: #f5f7fa;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; }
canvas { display: block; }
.app { display: flex; min-height: 100vh; }

/* 渚ц竟鏍?*/
.sidebar {
    width: 180px;
    background-color: #1a1a1a;
    color: #ffffff;
    flex-shrink: 0;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    overflow-y: auto;
    z-index: 10;
}
.sidebar-header { height: 56px; display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid #2a2a2a; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.logo-icon { font-size: 16px; }
.sidebar-nav { padding: 8px 0; }
.nav-item { display: flex; align-items: center; padding: 10px 16px; color: #b0b3b9; cursor: pointer; transition: all 0.2s; font-size: 13px; }
.nav-item:hover, .nav-item.active { color: #ffffff; background-color: #2a2a2a; }
.nav-icon { font-size: 14px; margin-right: 10px; width: 18px; text-align: center; }
.nav-text { flex: 1; }
.nav-arrow { font-size: 11px; color: #6e6f73; transition: transform 0.2s; }
.nav-group .nav-item.active .nav-arrow { transform: rotate(180deg); }
.nav-subitems { background-color: #1a1a1a; overflow: hidden; max-height: 0; transition: max-height 0.3s; }
.nav-group.expanded .nav-subitems { max-height: 200px; }
.nav-subitem { display: block; padding: 7px 16px 7px 44px; color: #8a8d93; font-size: 12px; transition: all 0.2s; border-left: 2px solid transparent; }
.nav-subitem:hover { color: #ffffff; background-color: #2a2a2a; }
.nav-subitem.active { color: #8b5cf6; background-color: #2a2a2a; border-left-color: #8b5cf6; }

/* 涓诲唴瀹?*/
.main-content { flex: 1; margin-left: 180px; padding: 16px 20px; min-height: 100vh; display: flex; flex-direction: column; }
.content-grid { display: grid; grid-template-columns: 1fr 300px; gap: 16px; flex: 1; }
.content-grid--full { grid-template-columns: 1fr; }
.content-main, .content-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* 鍗＄墖 */
.card { background-color: #ffffff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.card-title { font-size: 15px; font-weight: 600; color: #303133; margin: 0; }
.card-title-group { display: flex; align-items: center; gap: 16px; }
.card-actions { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #909399; }
.update-time { color: #909399; }
.divider { color: #dcdfe6; }
.link-action { color: #909399; font-size: 12px; transition: color 0.2s; }
.link-action:hover { color: #8b5cf6; }
.info-icon { color: #c0c4cc; font-size: 12px; margin-left: 2px; cursor: help; }

/* 鏀剁泭姒傝 */
.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 8px 0; }
.overview-item { line-height: 1.4; }
.overview-label { font-size: 12px; color: #909399; margin-bottom: 12px; }
.overview-value { font-size: 28px; color: #303133; font-weight: 600; }

/* 鏁版嵁姒傝 */
/* custom date modal */
.date-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 100; align-items: center; justify-content: center; }
.date-modal-content { width: 340px; background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.date-modal-title { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.date-modal-body { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.date-field { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #606266; }
.date-field span { width: 60px; flex-shrink: 0; }
.date-field input { flex: 1; padding: 6px 8px; border: 1px solid #dcdfe6; border-radius: 4px; font-size: 13px; outline: none; }
.date-field input:focus { border-color: #8b5cf6; }
.date-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.date-btn { padding: 6px 16px; border-radius: 4px; font-size: 13px; cursor: pointer; transition: background 0.2s; }
.date-btn-cancel { background: #f5f7fa; color: #606266; }
.date-btn-cancel:hover { background: #ebeef5; }
.date-btn-confirm { background: #8b5cf6; color: #fff; }
.date-btn-confirm:hover { background: #7c3aed; }

.platform-tabs { display: flex; gap: 12px; }
.platform-tab { font-size: 12px; color: #606266; cursor: pointer; padding: 2px 4px; transition: color 0.2s; }
.platform-tab:hover { color: #8b5cf6; }
.platform-tab.active { color: #8b5cf6; font-weight: 500; }
.caret { font-size: 10px; }
.time-filters { display: inline-flex; background-color: #f5f7fa; border-radius: 4px; padding: 2px; margin-bottom: 20px; }
.time-filter { padding: 4px 12px; font-size: 12px; color: #606266; cursor: pointer; border-radius: 3px; transition: all 0.2s; }
.time-filter:hover { color: #8b5cf6; }
.time-filter.active { background-color: #ffffff; color: #303133; font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 24px; margin-bottom: 24px; }
.metric-item { line-height: 1.4; }
.metric-label { font-size: 12px; color: #909399; margin-bottom: 8px; }
.metric-value { font-size: 20px; color: #303133; font-weight: 500; }
.chart-container { width: 100%; height: 220px; margin-top: 8px; }
#dataChart { width: 100%; height: 100%; }

/* 鍏憡渚ф爮 */
.banner { position: relative; height: 110px; border-radius: 8px; background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 50%, #a78bfa 100%); margin-bottom: 12px; overflow: hidden; display: flex; align-items: center; padding: 0 20px; }
.banner-glow { position: absolute; top: 50%; right: -20px; width: 160px; height: 160px; background: radial-gradient(circle, rgba(167,139,250,0.6) 0%, transparent 70%); transform: translateY(-50%); pointer-events: none; }
.banner-content { position: relative; z-index: 2; color: #ffffff; }
.banner-subtitle { font-size: 10px; letter-spacing: 1.5px; opacity: 0.85; margin-bottom: 6px; font-weight: 500; }
.banner-title { font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: 2px; }
.announcement-list { display: flex; flex-direction: column; }
.announcement-item { border-top: 1px solid #f0f1f3; }
.announcement-item:first-child { border-top: none; }
.announcement-item a { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px; color: #303133; font-size: 13px; transition: color 0.2s; }
.announcement-item a:hover { color: #8b5cf6; }
.ann-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 8px; }
.ann-arrow { color: #c0c4cc; font-size: 16px; }
.announcement-item a:hover .ann-arrow { color: #8b5cf6; }

/* 鍒涗綔娲诲姩 */
.activity-content { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 0 10px; text-align: center; }
.activity-icon { font-size: 48px; color: #dcdfe6; margin-bottom: 12px; filter: grayscale(0.3); }
.activity-text { color: #909399; font-size: 13px; }

/* 搴曢儴 */
.footer { margin-top: 16px; padding: 16px 0; text-align: center; }
.footer-links { font-size: 12px; color: #909399; display: flex; align-items: center; justify-content: center; gap: 12px; }
.footer-links a { color: #909399; transition: color 0.2s; }
.footer-links a:hover { color: #606266; }
.footer-divider { color: #dcdfe6; }

/* 鎮诞鎸夐挳 */
.floating-actions { position: fixed; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 20; }
.float-btn { width: 44px; height: 44px; border-radius: 50%; background-color: #ffffff; box-shadow: 0 2px 8px rgba(0,0,0,0.12); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; border: 1px solid #ebeef5; }
.float-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.18); }
.service-btn { width: auto; height: 32px; border-radius: 16px; padding: 0 12px; flex-direction: row; gap: 4px; color: #8b5cf6; font-size: 12px; font-weight: 500; }
.float-icon { font-size: 16px; }
.user-btn .float-icon { font-size: 18px; }

/* 璐︽埛鏀剁泭椤甸潰 */
.revenue-card-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.mini-stat { display: flex; align-items: center; gap: 12px; padding: 12px; background-color: #fafbfc; border-radius: 6px; }
.mini-stat-icon { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.mini-stat-label { font-size: 12px; color: #909399; }
.mini-stat-value { font-size: 16px; font-weight: 600; color: #303133; margin-top: 2px; }

/* 收益页组件 */
.revenue-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.revenue-header h2 { font-size: 16px; font-weight: 600; margin: 0; }
.revenue-header .sub-text { font-size: 12px; color: #909399; margin: 0; }
.revenue-amount { margin-bottom: 20px; }
.revenue-amount .currency { font-size: 24px; }
.revenue-amount .amount { font-size: 36px; font-weight: 600; margin-left: 4px; }
.trend-toggle { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: 16px 0 8px; font-size: 13px; }
.trend-toggle .sep { color: #dcdfe6; }
.toggle-option { color: #909399; cursor: pointer; }
.toggle-option.active { color: #8b5cf6; font-weight: 500; }
.trend-chart { display: flex; align-items: flex-end; justify-content: space-between; height: 100px; padding: 0 4px 22px; position: relative; border-bottom: 1px solid #ebeef5; }
.bar { flex: 1; margin: 0 4px; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; position: relative; cursor: pointer; }
.bar-fill { width: 18px; background: linear-gradient(to top, #8b5cf6, #a78bfa); border-radius: 2px 2px 0 0; min-height: 4px; opacity: 0.7; height: 0%; }
.bar-label { position: absolute; bottom: -22px; font-size: 11px; color: #909399; }
.tag-badge { display: inline-block; background: #fef0e8; color: #f56c2c; padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.filter-box { display: flex; align-items: center; gap: 4px; padding: 5px 10px; border: 1px solid #dcdfe6; border-radius: 4px; color: #606266; font-size: 12px; min-width: 90px; justify-content: space-between; cursor: pointer; }
.filter-box .caret-down { font-size: 10px; }
.filter-input { position: relative; width: 200px; }
.filter-input input { width: 100%; padding: 5px 28px 5px 10px; border: 1px solid #dcdfe6; border-radius: 4px; font-size: 12px; color: #606266; background: #fff; outline: none; }
.filter-input .icon { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: #909399; }
.btn-bank { background: #1a1a1a; color: #fff; padding: 5px 14px; border-radius: 4px; font-size: 12px; }
.btn-bank:hover { background: #333333; }
.data-table .cell-name { max-width: 360px; }
.withdraw-link { color: #8b5cf6; font-weight: 500; }
.withdraw-link:hover { color: #6d28d9; text-decoration: underline; }

/* 数据表格 */
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { padding: 10px 14px; text-align: left; color: #606266; font-weight: 500; border-bottom: 1px solid #ebeef5; background: #fafafa; }
.data-table td { padding: 14px; border-bottom: 1px solid #ebeef5; }
.data-table tbody tr:hover { background-color: #fafbfc; }
.data-table-link { color: #8b5cf6; }
.data-table-link:hover { color: #6d28d9; text-decoration: underline; }

/* 结算中心：筛选行 / 按钮 / 状态 / 分页 */
.filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.btn-query { background: #8b5cf6; color: #fff; padding: 6px 18px; border-radius: 4px; font-size: 12px; }
.btn-query:hover { background: #7c3aed; }
.btn-export { background: #1a1a1a; color: #fff; padding: 6px 16px; border-radius: 4px; font-size: 12px; }
.btn-export:hover { background: #333333; }
.btn-guide { background: #fff; border: 1px solid #dcdfe6; color: #606266; padding: 6px 16px; border-radius: 4px; font-size: 12px; }
.btn-guide:hover { border-color: #8b5cf6; color: #8b5cf6; }
.btn-upload { background: #8b5cf6; color: #fff; padding: 6px 16px; border-radius: 4px; font-size: 12px; }
.btn-upload:hover { background: #7c3aed; }
.filter-input--wide input { width: 360px; }
.status-badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; }
.status-paid { background: #e8f7ee; color: #16a34a; }
.status-processing { background: #fff4e5; color: #f59e0b; }
.status-failed { background: #fdeaea; color: #ef4444; }
.cell-money { font-weight: 600; color: #303133; }
.cell-total { font-weight: 600; color: #8b5cf6; }
.table-wide { min-width: 1760px; }
.table-mid { min-width: 1280px; }
.cell-serial { display: flex; align-items: center; gap: 10px; min-width: 240px; }
.cover-thumb { width: 48px; height: 64px; border-radius: 4px; color: #fff; font-size: 18px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cover-1 { background: linear-gradient(135deg, #8b5cf6, #4f46e5); }
.cover-2 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.cover-3 { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.cover-4 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.info-list { display: flex; flex-direction: column; }
.info-item { display: flex; padding: 14px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.info-item:last-child { border-bottom: none; }
.info-label { width: 160px; color: #909399; flex-shrink: 0; }
.info-value { color: #303133; }
.info-actions { display: flex; gap: 12px; margin-top: 18px; }
.table-strong { font-weight: 500; color: #303133; }
.table-link-gap { display: inline-block; width: 12px; }
.serial-info { line-height: 1.5; }
.serial-name { font-weight: 500; color: #303133; }
.serial-meta { font-size: 12px; color: #909399; }
.cell-work { line-height: 1.5; }
.work-name { font-weight: 500; color: #303133; }
.work-id { font-size: 12px; color: #909399; }
.row-total td { background: #fafbfc; font-weight: 600; color: #303133; }
.pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.page-info { font-size: 12px; color: #909399; }
.page-btns { display: flex; gap: 6px; }
.page-btn { min-width: 26px; height: 26px; border: 1px solid #dcdfe6; border-radius: 4px; background: #fff; color: #606266; font-size: 12px; cursor: pointer; }
.page-btn:hover:not(:disabled) { border-color: #8b5cf6; color: #8b5cf6; }
.page-btn.active { background: #8b5cf6; border-color: #8b5cf6; color: #fff; }
.page-btn:disabled { color: #c0c4cc; cursor: not-allowed; background: #fafafa; }

/* 响应式 */
@media (max-width: 1100px) {
    .content-grid { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .sidebar { width: 60px; }
    .sidebar-header .logo-text, .nav-text, .nav-arrow, .nav-subitems { display: none; }
    .main-content { margin-left: 60px; }
    .overview-grid { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: 1fr; }
    .floating-actions { right: 12px; bottom: 12px; }
}

/* 婊氬姩鏉?*/
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d4d6d9; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #b0b3b9; }
.sidebar::-webkit-scrollbar-thumb { background: #3a3a3a; }
.sidebar::-webkit-scrollbar-thumb:hover { background: #4a4a4a; }
