@font-face {
  font-family: 'OPPO Sans';
  src: url('https://code.oppo.com/content/dam/oppo/common/fonts/font2/new-font/OPPOSansOS2-5000-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

/* ============================================================
   变量
============================================================ */
:root {
  --primary: #4F6BED;
  --primary-dark: #3D56D4;
  --primary-light: #E8EDFF;
  --success: #00C9A7;
  --warning: #FFA726;
  --danger: #FF5B7A;
  --info: #00B8D4;
  --bg: #F4F6FB;
  --bg-card: #FFFFFF;
  --text-1: #1A2340;
  --text-2: #4A5578;
  --text-3: #8A94B0;
  --text-4: #C5CBDB;
  --border: #ECEEF5;
  --border-light: #F4F6FB;
  --shadow-sm: 0 1px 3px rgba(26,35,64,0.04), 0 1px 2px rgba(26,35,64,0.03);
  --shadow: 0 4px 16px rgba(26,35,64,0.06), 0 2px 6px rgba(26,35,64,0.03);
  --shadow-lg: 0 12px 40px rgba(26,35,64,0.10), 0 4px 12px rgba(26,35,64,0.04);
  --shadow-primary: 0 8px 24px rgba(79,107,237,0.28);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --gradient-primary: linear-gradient(135deg, #667EEA 0%, #4F6BED 50%, #764BA2 100%);
  --gradient-blue: linear-gradient(135deg, #4F6BED, #6D5FE8);
  --gradient-green: linear-gradient(135deg, #00C9A7, #00B8D4);
  --gradient-orange: linear-gradient(135deg, #FFA726, #FF7043);
  --gradient-pink: linear-gradient(135deg, #FF6B9D, #FF5B7A);
  --gradient-purple: linear-gradient(135deg, #A78BFA, #7C3AED);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   全局基础
============================================================ */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: 'OPPO Sans', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  margin: 0;
  color: var(--text-1);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: var(--primary); text-decoration: none; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D5DAE8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #B5BCD0; }

.d-none { display: none !important; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 8px; }

/* 页面淡入 */
.page-fade { animation: pageIn 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   登录页
============================================================ */
.login-wrap {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #4F6BED 0%, #764BA2 100%);
  overflow: hidden;
}
.login-bg::before, .login-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
}
.login-bg::before {
  width: 500px; height: 500px;
  background: #00C9A7;
  top: -100px; left: -100px;
  animation: float1 12s ease-in-out infinite;
}
.login-bg::after {
  width: 600px; height: 600px;
  background: #FF6B9D;
  bottom: -200px; right: -100px;
  animation: float2 15s ease-in-out infinite;
}
@keyframes float1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(80px,60px) scale(1.15); }
}
@keyframes float2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-60px,-40px) scale(1.1); }
}
.login-box {
  position: relative; z-index: 2;
  width: 400px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 24px;
  padding: 44px 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.6);
  animation: loginIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes loginIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.login-logo {
  width: 60px; height: 60px;
  background: var(--gradient-primary);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px;
  margin: 0 auto 20px;
  box-shadow: 0 12px 28px rgba(79,107,237,0.4);
  position: relative;
}
.login-logo::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.5), transparent);
  opacity: 0.6;
}
.login-box h3 { text-align: center; margin: 0; font-weight: 700; font-size: 22px; letter-spacing: 0.5px; }
.login-sub { text-align: center; color: var(--text-3); font-size: 12px; margin: 6px 0 32px; letter-spacing: 1px; }
.form-group-x { position: relative; margin-bottom: 14px; }
.form-group-x i {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); font-size: 14px;
  transition: var(--transition);
}
.form-group-x input {
  width: 100%; height: 46px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 16px 0 42px;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
  background: #fff;
}
.form-group-x input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79,107,237,0.12);
}
.form-group-x input:focus + i,
.form-group-x:focus-within i { color: var(--primary); }
.btn-login {
  width: 100%; height: 46px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
  letter-spacing: 2px;
  box-shadow: 0 8px 20px rgba(79,107,237,0.35);
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(79,107,237,0.45); }
.btn-login:active { transform: translateY(0); }
.login-tip { text-align: center; font-size: 12px; color: var(--text-4); margin-top: 22px; }

/* ============================================================
   主体布局
============================================================ */
.app-wrap { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.app-body { flex: 1; display: flex; overflow: hidden; }
.app-main {
  flex: 1;
  padding: 22px 26px;
  overflow: auto;
  background: var(--bg);
}

/* 顶部栏 */
.app-header {
  height: 60px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
  z-index: 100;
  position: relative;
}
.header-left { display: flex; align-items: center; gap: 12px; }
.header-right { display: flex; align-items: center; gap: 8px; }
.logo {
  width: 34px; height: 34px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
  box-shadow: 0 4px 12px rgba(79,107,237,0.35);
  position: relative;
}
.logo::after {
  content: ''; position: absolute; inset: 0; border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.35), transparent 50%);
}
.sys-name {
  font-size: 16px; font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

/* 用户下拉 */
.user-menu {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 5px; border-radius: 30px;
  cursor: pointer; position: relative;
  transition: var(--transition);
  border: 1px solid transparent;
}
.user-menu:hover { background: #fff; border-color: var(--border); box-shadow: var(--shadow-sm); }
.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gradient-blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px;
  box-shadow: 0 3px 8px rgba(79,107,237,0.3);
}
.user-name { font-size: 13px; font-weight: 600; line-height: 1.1; }
.user-role { font-size: 11px; color: var(--text-3); line-height: 1.1; margin-top: 2px; }
.user-menu > i { font-size: 10px; color: var(--text-3); }
.dropdown-menu-x {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 170px;
  padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.user-menu.open .dropdown-menu-x { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu-x a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  color: var(--text-1); text-decoration: none;
  border-radius: 8px; font-size: 13px;
  transition: var(--transition);
}
.dropdown-menu-x a:hover { background: var(--primary-light); color: var(--primary); }
.dropdown-menu-x a i { color: var(--text-3); font-size: 13px; width: 16px; transition: var(--transition); }
.dropdown-menu-x a:hover i { color: var(--primary); }

/* 一级侧栏 */
.sidebar-primary {
  width: 78px;
  background: linear-gradient(180deg, #1A2340 0%, #0F1830 100%);
  padding: 14px 12px;
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
}
.sidebar-primary::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(79,107,237,0.15), transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(118,75,162,0.1), transparent 60%);
  pointer-events: none;
}
.sidebar-primary .nav-item {
  height: 60px;
  border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
  gap: 4px;
  position: relative;
  z-index: 1;
}
.sidebar-primary .nav-item i { font-size: 18px; }
.sidebar-primary .nav-item span { font-size: 11px; letter-spacing: 0.5px; }
.sidebar-primary .nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar-primary .nav-item.active {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79,107,237,0.4);
}
.sidebar-primary .nav-item.active::before {
  content: '';
  position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 24px;
  background: #fff;
  border-radius: 0 3px 3px 0;
}

/* 二级侧栏 */
.sidebar-secondary {
  width: 210px;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  overflow-y: auto;
}
.sub-title {
  font-size: 11px; color: var(--text-3);
  padding: 0 12px 14px; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 600;
}
.sub-item {
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 3px;
  transition: var(--transition);
  display: flex; align-items: center; gap: 10px;
  font-weight: 500;
  position: relative;
}
.sub-item i { width: 16px; text-align: center; color: var(--text-3); font-size: 13px; transition: var(--transition); }
.sub-item:hover { background: var(--primary-light); color: var(--primary); }
.sub-item:hover i { color: var(--primary); }
.sub-item.active {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.sub-item.active i { color: #fff; }

.loading {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-3);
  font-size: 14px;
}
.loading i { font-size: 22px; margin-bottom: 10px; color: var(--primary); display: block; }

/* ============================================================
   页面标题
============================================================ */
.page-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 20px;
  gap: 20px; flex-wrap: wrap;
}
.page-title {
  font-size: 20px; font-weight: 700; margin: 0;
  display: flex; align-items: center; gap: 10px;
  color: var(--text-1);
}
.page-title i {
  width: 36px; height: 36px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-primary);
}
.page-title i.icon-blue   { background: var(--gradient-blue);   box-shadow: 0 6px 16px rgba(79,107,237,0.35); }
.page-title i.icon-green  { background: var(--gradient-green);  box-shadow: 0 6px 16px rgba(0,201,167,0.35); }
.page-title i.icon-orange { background: var(--gradient-orange); box-shadow: 0 6px 16px rgba(255,167,38,0.35); }
.page-title i.icon-pink   { background: var(--gradient-pink);   box-shadow: 0 6px 16px rgba(255,91,122,0.35); }
.page-title i.icon-purple { background: var(--gradient-purple); box-shadow: 0 6px 16px rgba(124,58,237,0.35); }
.page-subtitle { font-size: 12px; color: var(--text-3); margin-top: 6px; margin-left: 46px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ============================================================
   统计卡片
============================================================ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  opacity: 0.05;
}
.stat-card.blue   { background: linear-gradient(135deg, #fff 0%, #F0F4FF 100%); }
.stat-card.green  { background: linear-gradient(135deg, #fff 0%, #E6FBF7 100%); }
.stat-card.orange { background: linear-gradient(135deg, #fff 0%, #FFF6E9 100%); }
.stat-card.pink   { background: linear-gradient(135deg, #fff 0%, #FFEDF1 100%); }
.stat-card.purple { background: linear-gradient(135deg, #fff 0%, #F3EDFF 100%); }
.stat-card.blue::before   { background: var(--primary); }
.stat-card.green::before  { background: var(--success); }
.stat-card.orange::before { background: var(--warning); }
.stat-card.pink::before   { background: var(--danger); }
.stat-card.purple::before { background: #7C3AED; }
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.stat-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
  position: relative;
  flex-shrink: 0;
}
.stat-icon::after {
  content: ''; position: absolute; inset: 0; border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent 50%);
}
.stat-icon.blue   { background: var(--gradient-blue);   box-shadow: 0 6px 16px rgba(79,107,237,0.3); }
.stat-icon.green  { background: var(--gradient-green);  box-shadow: 0 6px 16px rgba(0,201,167,0.3); }
.stat-icon.orange { background: var(--gradient-orange); box-shadow: 0 6px 16px rgba(255,167,38,0.3); }
.stat-icon.pink   { background: var(--gradient-pink);   box-shadow: 0 6px 16px rgba(255,91,122,0.3); }
.stat-icon.purple { background: var(--gradient-purple); box-shadow: 0 6px 16px rgba(124,58,237,0.3); }
.stat-content { flex: 1; min-width: 0; }
.stat-label { font-size: 12px; color: var(--text-3); font-weight: 500; }
.stat-value {
  font-size: 24px; font-weight: 700; color: var(--text-1);
  margin-top: 2px; line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stat-unit { font-size: 12px; color: var(--text-3); margin-left: 4px; font-weight: 400; }

/* ============================================================
   通用卡片
============================================================ */
.card-x {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  animation: pageIn 0.5s ease;
  transition: var(--transition);
}
.card-x:hover { box-shadow: var(--shadow); }
.card-header-x {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
  gap: 14px; flex-wrap: wrap;
}
.card-title {
  font-size: 15px; font-weight: 600; margin: 0;
  display: flex; align-items: center; gap: 8px;
  color: var(--text-1);
}
.card-title::before {
  content: '';
  width: 3px; height: 14px;
  background: var(--gradient-primary);
  border-radius: 2px;
}
.card-x.chart-card { position: relative; overflow: hidden; }
.card-x.chart-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--gradient-primary);
}
.card-x.chart-card.pink::before   { background: var(--gradient-pink); }
.card-x.chart-card.green::before  { background: var(--gradient-green); }
.card-x.chart-card.orange::before { background: var(--gradient-orange); }
.card-x.chart-card.purple::before { background: var(--gradient-purple); }

/* ============================================================
   按钮
============================================================ */
.btn-primary-x, .btn-outline-x, .btn-ghost-x {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  border: none;
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px;
  white-space: nowrap;
}
.btn-primary-x {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(79,107,237,0.3);
}
.btn-primary-x:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(79,107,237,0.4); }
.btn-outline-x {
  background: #fff;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-outline-x:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }
.btn-ghost-x { background: transparent; color: var(--text-2); }
.btn-ghost-x:hover { background: var(--primary-light); color: var(--primary); }
.btn-sm { height: 30px; padding: 4px 12px; font-size: 12px; }

/* ============================================================
   时间范围选择器
============================================================ */
.date-range-bar {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: linear-gradient(135deg, #F8FAFF, #F0F4FF);
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.date-range-bar .quick-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.date-range-bar .quick-btn {
  padding: 4px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-2);
  font-family: inherit;
}
.date-range-bar .quick-btn:hover { color: var(--primary); border-color: var(--primary); }
.date-range-bar .quick-btn.active {
  background: var(--gradient-primary);
  color: #fff; border-color: transparent;
  box-shadow: var(--shadow-primary);
}
.date-range-bar .date-inputs { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.date-range-bar input[type="date"] {
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 10px;
  font-size: 12px;
  outline: none;
  font-family: inherit;
  color: var(--text-1);
  background: #fff;
}
.date-range-bar input[type="date"]:focus { border-color: var(--primary); }
.date-range-bar .tilde { color: var(--text-3); font-size: 12px; }

/* ============================================================
   表格
============================================================ */
.table-wrap { overflow-x: auto; }
.table-x { width: 100%; border-collapse: separate; border-spacing: 0; }
.table-x th {
  background: #FAFBFF;
  padding: 12px 14px;
  text-align: left;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.table-x td {
  padding: 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-1);
}
.table-x tr:last-child td { border-bottom: none; }
.table-x tbody tr { transition: var(--transition); }
.table-x tbody tr:hover td { background: #FAFBFF; }
.table-x td b { font-weight: 600; }

/* ============================================================
   标签
============================================================ */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.3px;
}
/* ========== 国内主流平台 ========== */
.tag-抖音        { background: linear-gradient(135deg, #000000, #333333); }
.tag-视频号      { background: linear-gradient(135deg, #07C160, #00B050); }
.tag-微信公众号  { background: linear-gradient(135deg, #07C160, #10AD52); }
.tag-小红书      { background: linear-gradient(135deg, #FF2442, #FF5B7A); }
.tag-B站         { background: linear-gradient(135deg, #FB7299, #FF9EC0); }
.tag-知乎        { background: linear-gradient(135deg, #0084FF, #40A5FF); }
.tag-微博        { background: linear-gradient(135deg, #E6162D, #FF4D5F); }
.tag-快手        { background: linear-gradient(135deg, #FF4906, #FF7043); }

/* ========== 百度系 ========== */
.tag-百家号      { background: linear-gradient(135deg, #2932E1, #5A6BFF); }
.tag-好看视频    { background: linear-gradient(135deg, #4E6EF2, #7B93FF); }

/* ========== 头条系 ========== */
.tag-今日头条    { background: linear-gradient(135deg, #D93023, #F04A3D); }
.tag-西瓜视频    { background: linear-gradient(135deg, #FA6400, #FF8A3D); }

/* ========== 长视频平台 ========== */
.tag-腾讯视频    { background: linear-gradient(135deg, #FF6022, #FF8547); }
.tag-优酷        { background: linear-gradient(135deg, #1AA3FF, #4DB8FF); }
.tag-爱奇艺      { background: linear-gradient(135deg, #00BE06, #33D63A); }

/* ========== 门户网站 ========== */
.tag-网易        { background: linear-gradient(135deg, #C4342B, #E04A3F); }
.tag-搜狐        { background: linear-gradient(135deg, #F60, #FF8533); }

/* ========== 海外平台 ========== */
.tag-YouTube     { background: linear-gradient(135deg, #FF0000, #CC0000); }
.tag-Twitter     { background: linear-gradient(135deg, #000000, #14171A); }
.tag-Instagram   { background: linear-gradient(135deg, #833AB4, #FD1D1D, #FCB045); }
.tag-Facebook    { background: linear-gradient(135deg, #1877F2, #4293FB); }
.tag-TikTok      { background: linear-gradient(135deg, #010101, #EE1D52, #69C9D0); }

/* ========== 自有官网 ========== */
.tag-中文官网    { background: linear-gradient(135deg, #C8102E, #E63946); } /* 中国红 */
.tag-英文官网    { background: linear-gradient(135deg, #003D82, #0057B7); } /* 商务蓝 */

/* ========== 兜底 ========== */
.tag-其他        { background: linear-gradient(135deg, #999999, #777777); }

.tag-type {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 11px;
  background: linear-gradient(135deg, #999999, #777777);
  color: var(--primary);
  font-weight: 500;
}

/* 所有 tag- 开头的标签统一样式 */
[class^="tag-"] {
    display: inline-block;
    padding: 3px 10px;
    color: #fff;
    font-size: 12px;
    border-radius: 12px;
    line-height: 1.5;
    white-space: nowrap;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[class^="tag-"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   操作按钮 / 表单 / 空状态
============================================================ */
.action-btn {
  width: 28px; height: 28px;
  border: none; background: transparent;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-3);
  transition: var(--transition);
  margin-right: 2px;
  font-size: 12px;
}
.action-btn:hover { background: var(--primary-light); color: var(--primary); transform: scale(1.1); }
.action-btn.danger:hover { background: #FFEDF0; color: var(--danger); }

.form-x label {
  display: block;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-x input, .form-x select, .form-x textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
  color: var(--text-1);
}
.form-x textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 12px; }
.form-item { margin-bottom: 12px; }

/* 统一输入背景 */
.form-x input,
.form-x select,
.form-x textarea,
.traffic-row input,
.step-row input,
.date-range-bar input[type="date"],
.ws-name-input:not([disabled]) {
  background: #F7F9FC !important;
}
.form-x input:hover,
.form-x select:hover,
.form-x textarea:hover,
.traffic-row input:hover,
.step-row input:hover,
.date-range-bar input[type="date"]:hover {
  background: #F0F4FA !important;
  border-color: #C5CBDB;
}
.form-x input:focus,
.form-x select:focus,
.form-x textarea:focus,
.traffic-row input:focus,
.step-row input:focus,
.date-range-bar input[type="date"]:focus,
.ws-name-input:focus {
  background: #fff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(79,107,237,0.12);
}
.form-x input::placeholder, .form-x textarea::placeholder { color: #B5BCD0; }

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
}
.empty i {
  font-size: 44px;
  margin-bottom: 12px;
  color: var(--text-4);
  display: block;
}
.empty div { font-size: 13px; }

/* ============================================================
   网站流量卡片
============================================================ */
.website-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}
.website-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: #fff;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.website-item::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gradient-primary);
}
.website-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.website-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.ws-name-input {
  border: none; background: transparent;
  font-size: 15px; font-weight: 600; color: var(--text-1);
  outline: none; font-family: inherit; flex: 1;
  padding: 4px 6px;
  border-radius: 6px;
  transition: var(--transition);
}
.ws-name-input:not([disabled]):focus { background: var(--primary-light); }
.traffic-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.traffic-row input {
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 10px;
  font-size: 12px;
  outline: none;
  font-family: inherit;
  color: var(--text-1);
}
.traffic-row input:focus { border-color: var(--primary); }

/* 工序 */
.step-row {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

/* ============================================================
   任务日历（精美版）
============================================================ */
.calendar-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border);
}
.calendar-title {
  display: flex; align-items: baseline; gap: 12px;
}
.cal-year {
  font-size: 14px; color: var(--text-3);
  font-weight: 500; letter-spacing: 1px;
}
.cal-month-name {
  font-size: 28px; font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}
.cal-month-num {
  font-size: 13px;
  color: var(--text-4);
  font-weight: 600;
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: 20px;
  color: var(--primary);
  letter-spacing: 0.5px;
}
.calendar-header .btn-outline-x {
  margin-left: 8px;
}
.calendar-nav {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: #F4F6FB;
  border-radius: 12px;
}
.calendar-nav button {
  width: 34px; height: 34px;
  border: none;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-2);
  transition: var(--transition);
  font-family: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.calendar-nav button:hover {
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(79,107,237,0.2);
}

/* 顶部统计条 */
.cal-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #FAFBFF 0%, #F0F4FF 100%);
  border-radius: 14px;
  border: 1px solid var(--border);
}
.cal-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cal-stat-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
}
.cal-stat-icon::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent 50%);
}
.cal-stat-label {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.5px;
}
.cal-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.1;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.cal-stat-value span {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 400;
  margin-left: 3px;
}

/* 星期表头 */
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
.cal-day-header {
  text-align: center;
  padding: 10px 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-2);
  background: linear-gradient(180deg, #FAFBFF 0%, #fff 100%);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  position: relative;
}
.cal-day-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  opacity: 0.6;
}
.cal-day-header.weekend {
  color: var(--danger);
}
.cal-day-header.weekend::after {
  background: var(--gradient-pink);
}

/* 日期网格 */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

/* 日期格 */
.cal-day {
  min-height: 118px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 10px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cal-day::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(79,107,237,0), rgba(79,107,237,0));
  pointer-events: none;
  transition: var(--transition);
}
.cal-day:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(79,107,237,0.15);
  z-index: 2;
}
.cal-day:hover::before {
  background: linear-gradient(135deg, rgba(79,107,237,0.03), rgba(118,75,162,0.02));
}

/* 其他月份 */
.cal-day.other-month {
  background: #FAFBFF;
  opacity: 0.5;
  cursor: default;
}
.cal-day.other-month .cal-day-num { color: var(--text-4); }
.cal-day.other-month:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-light);
}

/* 周末 */
.cal-day.weekend:not(.other-month) {
  background: linear-gradient(135deg, #FFF9FA 0%, #fff 60%);
}

/* 过去的日期 */
.cal-day.past:not(.today) .cal-day-num {
  color: var(--text-3);
}

/* 今天 - 高亮 */
.cal-day.today {
  background: linear-gradient(135deg, #EEF2FF 0%, #FDF4FF 50%, #FFF0F5 100%);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,107,237,0.12), 0 8px 24px rgba(79,107,237,0.15);
}
.cal-day.today::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gradient-primary);
  border-radius: 14px 14px 0 0;
}

/* 有任务的格子 - 更高 */
.cal-day.has-task {
  min-height: 170px;
}

/* 任务量热力等级：左侧色条 */
.cal-day.heat-low {
  border-left: 3px solid #43E97B;
}
.cal-day.heat-mid {
  border-left: 3px solid #FFA726;
  background: linear-gradient(135deg, #FFFAF0 0%, #fff 60%);
}
.cal-day.heat-high {
  border-left: 3px solid #FF5B7A;
  background: linear-gradient(135deg, #FFF5F7 0%, #fff 60%);
  box-shadow: 0 2px 8px rgba(255,91,122,0.08);
}
.cal-day.today.heat-low,
.cal-day.today.heat-mid,
.cal-day.today.heat-high {
  border-left-width: 1px;
  border-color: var(--primary);
}

/* 日期头部 */
.cal-day-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.cal-day-num-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cal-day-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.cal-day.weekend:not(.other-month) .cal-day-num {
  color: var(--danger);
}
.cal-day.today .cal-day-num {
  background: var(--gradient-primary);
  color: #fff;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(79,107,237,0.4);
}
.today-dot {
  font-size: 10px;
  color: #fff;
  background: var(--gradient-pink);
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(255,91,122,0.35);
  animation: todayPulse 2s ease-in-out infinite;
}
@keyframes todayPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.count-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(79,107,237,0.1);
  color: var(--primary);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid rgba(79,107,237,0.15);
}
.count-badge i {
  font-size: 9px;
}
.cal-day.heat-mid .count-badge {
  background: rgba(255,167,38,0.12);
  color: #FF7043;
  border-color: rgba(255,167,38,0.2);
}
.cal-day.heat-high .count-badge {
  background: rgba(255,91,122,0.12);
  color: var(--danger);
  border-color: rgba(255,91,122,0.2);
}

/* 任务列表 */
.cal-day .task-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

/* 任务小卡 */
.task-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  color: var(--text-1);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-light);
  line-height: 1.4;
  font-weight: 500;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.task-mini::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: currentColor;
  opacity: 0.8;
}
.task-mini:hover {
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  z-index: 5;
}
.task-mini .task-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  margin-left: 2px;
}
.task-mini .task-text {
  flex: 1;

  color: var(--text-1);
}

/* 六种任务配色 */
.task-mini.task-color-0 { color: #4F6BED; background: linear-gradient(90deg, #EEF2FF 0%, #fff 80%); }
.task-mini.task-color-1 { color: #00C9A7; background: linear-gradient(90deg, #E6FBF7 0%, #fff 80%); }
.task-mini.task-color-2 { color: #FF7043; background: linear-gradient(90deg, #FFF3EC 0%, #fff 80%); }
.task-mini.task-color-3 { color: #EC407A; background: linear-gradient(90deg, #FFEBF2 0%, #fff 80%); }
.task-mini.task-color-4 { color: #7C3AED; background: linear-gradient(90deg, #F3EDFF 0%, #fff 80%); }
.task-mini.task-color-5 { color: #0091EA; background: linear-gradient(90deg, #E3F5FE 0%, #fff 80%); }

/* 更多任务提示 */
.task-more {
  text-align: center;
  font-size: 11px;
  color: var(--primary);
  padding: 2px;
  font-weight: 600;
  border-radius: 4px;
  background: var(--primary-light);
  margin-top: 2px;
  cursor: pointer;
  transition: var(--transition);
}
.task-more:hover {
  background: var(--primary);
  color: #fff;
}

/* 快速新增按钮 */
.cal-day .quick-add {
  position: absolute;
  bottom: 8px; right: 8px;
  width: 24px; height: 24px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 50%;
  display: none;
  align-items: center; justify-content: center;
  font-size: 10px;
  box-shadow: 0 4px 12px rgba(79,107,237,0.4);
  transition: var(--transition);
  z-index: 3;
}
.cal-day:not(.other-month):hover .quick-add {
  display: inline-flex;
  animation: quickAddIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes quickAddIn {
  from { transform: scale(0) rotate(-180deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}
.cal-day .quick-add:hover {
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 6px 18px rgba(79,107,237,0.5);
}

/* 底部图例 */
.cal-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #FAFBFF, #F4F6FB);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.legend-dot.heat-low-dot { background: #43E97B; }
.legend-dot.heat-mid-dot { background: #FFA726; }
.legend-dot.heat-high-dot { background: #FF5B7A; }
.legend-tip {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-tip i {
  color: #FFA726;
}

/* 响应式 */
@media (max-width: 1200px) {
  .cal-stats-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .cal-day { min-height: 80px; padding: 6px; }
  .cal-day.has-task { min-height: 120px; }
  .cal-legend { gap: 12px; }
  .legend-tip { margin-left: 0; width: 100%; margin-top: 8px; }
}

/* ============================================================
   视频项目卡片
============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.video-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  display: flex; flex-direction: column;
}
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.video-card-head {
  padding: 18px 20px 14px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.video-card:nth-child(6n+1) .video-card-head { background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%); }
.video-card:nth-child(6n+2) .video-card-head { background: linear-gradient(135deg, #F093FB 0%, #F5576C 100%); }
.video-card:nth-child(6n+3) .video-card-head { background: linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%); }
.video-card:nth-child(6n+4) .video-card-head { background: linear-gradient(135deg, #43E97B 0%, #38F9D7 100%); }
.video-card:nth-child(6n+5) .video-card-head { background: linear-gradient(135deg, #FA709A 0%, #FEE140 100%); }
.video-card:nth-child(6n)   .video-card-head { background: linear-gradient(135deg, #30CFD0 0%, #330867 100%); }
.video-card-head::before {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.video-card-head::after {
  content: '';
  position: absolute;
  right: -50px; bottom: -50px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.video-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
  line-height: 1.4;
}
.video-card-date {
  font-size: 12px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.video-card-hours {
  position: absolute;
  right: 20px; top: 18px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.3);
}
.video-card-body { padding: 14px 20px 16px; flex: 1; }
.video-step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.video-step:last-child { border-bottom: none; }
.video-step-name {
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.video-step-name::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.video-step:nth-child(4n+2) .video-step-name::before { background: var(--success); }
.video-step:nth-child(4n+3) .video-step-name::before { background: var(--warning); }
.video-step:nth-child(4n)   .video-step-name::before { background: var(--danger); }
.video-step-hours {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-light);
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 12px;
}
.video-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-light);
  background: #FAFBFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.video-card-footer .info { font-size: 12px; color: var(--text-3); }
.video-card-footer .info b { color: var(--primary); font-size: 14px; margin-right: 2px; }

/* ============================================================
   只读标签
============================================================ */
.readonly-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FFF3CD, #FFE7A0);
  color: #856404;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  margin-left: 8px;
  font-weight: 500;
}

/* ============================================================
   Modal
============================================================ */
.modal-content {
  border-radius: var(--radius-lg);
  border: none;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-header-x {
  padding: 20px 24px 16px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border-light);
}
.modal-header-x h5 {
  margin: 0; font-weight: 600; font-size: 16px;
  display: flex; align-items: center; gap: 10px;
}
.modal-header-x h5 i {
  width: 28px; height: 28px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.modal-body-x { padding: 20px 24px; max-height: 65vh; overflow-y: auto; }
.modal-footer-x {
  padding: 14px 24px;
  border-top: 1px solid var(--border-light);
  display: flex; justify-content: flex-end; gap: 10px;
  background: #FAFBFF;
}
.btn-close {
  background: transparent url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='%23999' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/12px auto no-repeat;
  border: 0;
  opacity: .5;
  padding: 8px;
}
.btn-close:hover { opacity: 1; }

/* ============================================================
   Toast
============================================================ */
.toast-container { z-index: 99999 !important; }
.toast-x {
  min-width: 240px;
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
  animation: toastIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--border);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
.toast-x.success { border-left: 4px solid var(--success); }
.toast-x.error   { border-left: 4px solid var(--danger); }
.toast-x i { font-size: 16px; }
.toast-x.success i { color: var(--success); }
.toast-x.error i   { color: var(--danger); }
.toast-x span { font-size: 13px; }

/* ============================================================
   其他
============================================================ */
.link-x {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  border-bottom: 1px dashed transparent;
}
.link-x:hover { border-bottom-color: var(--primary); }

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 16px;
}
.chart-box { min-height: 340px; }

.platform-tabs {
  display: flex; gap: 6px;
  padding: 4px;
  background: #F4F6FB;
  border-radius: 10px;
  margin-bottom: 16px;
  overflow-x: auto;
}
.platform-tab {
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-2);
  transition: var(--transition);
  white-space: nowrap;
  font-weight: 500;
  border: none;
  background: transparent;
  font-family: inherit;
}
.platform-tab:hover { color: var(--primary); }
.platform-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ==================== PPT 演讲模式 ==================== */
.ppt-mask {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0F1419 0%, #1A2332 50%, #0F1419 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'OPPO Sans', -apple-system, sans-serif;
}
.ppt-mask::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(79, 107, 237, 0.15), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(240, 147, 251, 0.1), transparent 50%);
    pointer-events: none;
}

.ppt-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.ppt-slide-anim {
    width: 100%;
    max-width: 1280px;
    animation: pptFadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes pptFadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 封面 */
.ppt-cover {
    text-align: center;
    color: #fff;
    padding: 60px 40px;
}
.ppt-cover-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #4F6BED, #667EEA);
    border-radius: 100px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(79, 107, 237, 0.5);
}
.ppt-cover-badge.purple { background: linear-gradient(135deg, #764BA2, #667EEA); box-shadow: 0 10px 40px rgba(118, 75, 162, 0.5);}
.ppt-cover-badge.pink { background: linear-gradient(135deg, #F093FB, #F5576C); box-shadow: 0 10px 40px rgba(245, 87, 108, 0.5);}
.ppt-cover-title {
    font-size: 68px;
    font-weight: 800;
    margin: 0 0 24px;
    background: linear-gradient(135deg, #fff, #B4C2E5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}
.ppt-cover-sub {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 4px;
}
.ppt-cover-date {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 60px;
}
.ppt-cover-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* 内容页 */
.ppt-slide-inner {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 24px;
    padding: 50px 60px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}
.ppt-slide-tag {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #4F6BED, #667EEA);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.ppt-slide-tag.purple { background: linear-gradient(135deg, #764BA2, #667EEA); }
.ppt-slide-tag.pink { background: linear-gradient(135deg, #F093FB, #F5576C); }
.ppt-slide-title {
    font-size: 42px;
    font-weight: 800;
    color: #1A2332;
    margin: 0 0 12px;
    letter-spacing: 1px;
}
.ppt-slide-desc {
    font-size: 18px;
    color: #6B7A99;
    margin-bottom: 30px;
}
.ppt-slide-desc b { color: #4F6BED; font-weight: 700; font-size: 22px; }

.ppt-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}
.ppt-kpi {
    background: linear-gradient(135deg, #F8FAFF, #EEF2FF);
    border: 1px solid rgba(79, 107, 237, 0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}
.ppt-kpi:hover { transform: translateY(-4px); }
.ppt-kpi-value {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #4F6BED, #764BA2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}
.ppt-kpi-sm .ppt-kpi-value { font-size: 30px; }
.ppt-kpi-label {
    font-size: 13px;
    color: #6B7A99;
    margin-top: 6px;
    font-weight: 500;
}
.ppt-chart-box {
    min-height: 340px;
    margin-top: 10px;
}
.ppt-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #B4BCCB;
    font-size: 18px;
}

/* 结束页 */
.ppt-end {
    text-align: center;
    color: #fff;
    padding: 60px 40px;
}
.ppt-end-icon {
    font-size: 80px;
    background: linear-gradient(135deg, #4F6BED, #F093FB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
    animation: pptBounce 2s ease-in-out infinite;
}
.ppt-end.purple .ppt-end-icon { background: linear-gradient(135deg, #764BA2, #F093FB); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.ppt-end.pink .ppt-end-icon { background: linear-gradient(135deg, #F093FB, #F5576C); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
@keyframes pptBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.ppt-end-title {
    font-size: 80px;
    font-weight: 800;
    letter-spacing: 20px;
    margin: 0 0 30px;
    background: linear-gradient(135deg, #fff, #B4C2E5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ppt-end-sub {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    letter-spacing: 3px;
}
.ppt-end-quote {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    margin-bottom: 50px;
    padding: 20px 40px;
    display: inline-block;
    border-left: 3px solid #4F6BED;
    border-right: 3px solid #F093FB;
}
.ppt-end-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.ppt-end-stats span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}
.ppt-end-stats span i {
    color: #7CB9FF;
}

/* 控制条 */
.ppt-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
    border-radius: 100px;
    z-index: 10;
}
.ppt-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ppt-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4F6BED, #667EEA);
    transform: scale(1.08);
}
.ppt-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.ppt-btn.ppt-close:hover { background: linear-gradient(135deg, #F5576C, #F093FB); }

.ppt-indicator {
    display: flex;
    gap: 8px;
    padding: 0 10px;
}
.ppt-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}
.ppt-dot.active {
    background: linear-gradient(135deg, #4F6BED, #F093FB);
    width: 32px;
    border-radius: 5px;
}
.ppt-dot:hover:not(.active) { background: rgba(255, 255, 255, 0.5); }

/* 响应式 */
@media (max-width: 900px) {
    .ppt-cover-title { font-size: 42px; }
    .ppt-slide-title { font-size: 28px; }
    .ppt-end-title { font-size: 48px; letter-spacing: 10px; }
    .ppt-slide-inner { padding: 30px 24px; }
}


/* ==================== 头部数据接入按钮 ==================== */
.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #4F6BED, #667EEA);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 16px;
    box-shadow: 0 4px 12px rgba(79, 107, 237, 0.3);
}
.header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 107, 237, 0.45);
}
.header-btn i { font-size: 15px; }

/* ==================== API 文档弹窗 ==================== */
.api-doc {
    padding: 0 !important;
    max-height: 75vh;
    overflow-y: auto;
}
.api-tabs {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    gap: 4px;
    padding: 12px 24px;
    background: #fff;
    border-bottom: 1px solid #F0F2F6;
    flex-wrap: wrap;
}
.api-tab {
    padding: 8px 16px;
    background: #F5F7FB;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    color: #6B7A99;
    cursor: pointer;
    transition: all 0.25s;
    font-weight: 500;
}
.api-tab:hover { background: #EEF2FF; color: #4F6BED; }
.api-tab.active {
    background: linear-gradient(135deg, #4F6BED, #667EEA);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(79, 107, 237, 0.3);
}

.api-panel {
    display: none;
    padding: 24px 28px;
}
.api-panel.active {
    display: block;
    animation: apiFade 0.3s;
}
@keyframes apiFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.api-section {
    margin-bottom: 24px;
}
.api-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1A2332;
    margin-bottom: 10px;
}
.api-label i { color: #4F6BED; }

.api-code-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F5F7FB;
    border: 1px solid #E8ECF3;
    border-radius: 8px;
    padding: 10px 14px;
}
.api-code-inline code {
    flex: 1;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 13px;
    color: #4F6BED;
    background: transparent;
    word-break: break-all;
}
.copy-btn {
    background: #fff;
    border: 1px solid #E8ECF3;
    border-radius: 6px;
    padding: 6px 10px;
    color: #6B7A99;
    cursor: pointer;
    transition: all 0.25s;
    font-size: 12px;
}
.copy-btn:hover {
    background: #4F6BED;
    color: #fff;
    border-color: #4F6BED;
}

.api-method {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #43E97B, #38F9D7);
    color: #fff;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
}

.api-hint {
    font-size: 12px;
    color: #8898AA;
    margin-top: 6px;
    line-height: 1.7;
}
.api-hint code {
    background: #F5F7FB;
    padding: 2px 6px;
    border-radius: 4px;
    color: #F5576C;
    font-size: 12px;
}

.api-param-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.api-param-table th {
    background: #F5F7FB;
    padding: 10px 12px;
    text-align: left;
    color: #1A2332;
    font-weight: 700;
    border-bottom: 2px solid #E8ECF3;
}
.api-param-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #F0F2F6;
    color: #4A5568;
}
.api-param-table code {
    background: #EEF2FF;
    padding: 2px 8px;
    border-radius: 4px;
    color: #4F6BED;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}
.api-param-table td.red { color: #F5576C; font-weight: 700; }

.api-code-block {
    background: #1E2432;
    color: #E8ECF3;
    padding: 16px 20px;
    border-radius: 10px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.7;
    overflow-x: auto;
    margin: 10px 0;
    white-space: pre-wrap;
    word-break: break-all;
}

.api-tips {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #FFF8E1, #FFFDE7);
    border-left: 4px solid #FFA726;
    border-radius: 8px;
    color: #6B4E00;
    font-size: 13px;
    line-height: 1.9;
}
.api-tips i {
    color: #FFA726;
    font-size: 18px;
    margin-top: 3px;
}

.test-result {
    border-radius: 10px;
    padding: 14px 18px;
    border-left: 4px solid;
}
.test-result.success {
    background: #E8F8F0;
    border-color: #00C9A7;
    color: #007E67;
}
.test-result.error {
    background: #FFE8EC;
    border-color: #F5576C;
    color: #A32438;
}
.test-result-head {
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.test-result pre {
    margin: 0;
    background: rgba(255, 255, 255, 0.6);
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    max-height: 200px;
    overflow: auto;
}

.api-log-count {
    color: #6B7A99;
    font-size: 13px;
    margin-bottom: 12px;
}
.api-log-count b { color: #4F6BED; font-size: 15px; }

.api-log-list {
    max-height: 400px;
    overflow-y: auto;
}
.api-log-item {
    padding: 12px 14px;
    background: #F8FAFF;
    border: 1px solid #EEF2FF;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.25s;
}
.api-log-item:hover {
    background: #fff;
    border-color: #4F6BED;
    box-shadow: 0 4px 12px rgba(79, 107, 237, 0.1);
}
.api-log-time {
    font-size: 12px;
    color: #8898AA;
    margin-bottom: 4px;
}
.api-log-title {
    font-size: 14px;
    font-weight: 600;
    color: #1A2332;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.api-log-url a {
    font-size: 12px;
    color: #4F6BED;
    text-decoration: none;
    word-break: break-all;
}
.api-log-url a:hover { text-decoration: underline; }
.api-log-ip {
    font-size: 11px;
    color: #B4BCCB;
    margin-top: 4px;
}