/* =========================================================
   抖音投流面板 · 苹果简约高端风设计系统
   ========================================================= */

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    "PingFang SC", "Helvetica Neue", sans-serif;
  background-color: #f5f5f7;
  color: #1d1d1f;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- 顶部毛玻璃导航栏 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fe2c55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.brand-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* 隐藏入口：不可见但保留可点击触发点 */
.secret-trigger {
  width: 32px;
  height: 32px;
  opacity: 0;
  background: transparent;
  border: 0;
  flex: none;
}

/* ---------- 布局容器 ---------- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.section + .section {
  margin-top: 36px;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

/* ---------- 卡片 ---------- */
.card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 24px;
}

/* ---------- 数据概览 ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-label {
  font-size: 14px;
  color: #6e6e73;
  font-weight: 500;
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stat-number {
  font-size: 40px;
  font-weight: 200;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.stat-unit {
  font-size: 15px;
  color: #6e6e73;
  font-weight: 500;
}

.stat-accent {
  color: #fe2c55;
}

/* ---------- 投放内容表格 ---------- */
.table-card {
  padding: 0;
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.data-table th {
  padding: 18px 24px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #6e6e73;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f2;
  font-size: 15px;
  white-space: nowrap;
}

.data-table th.num,
.data-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.data-table tbody tr {
  transition: background-color 0.15s ease;
}

.data-table tbody tr:hover {
  background: #fafafc;
}

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

/* ---------- 卡片链接上传 ---------- */
.upload-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.upload-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.upload-input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: #1d1d1f;
  background: #f5f5f7;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.upload-input::placeholder {
  color: #86868b;
}

.upload-input:focus {
  border-color: #fe2c55;
  box-shadow: 0 0 0 4px rgba(254, 44, 85, 0.12);
  background: #ffffff;
}

.upload-btn {
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: #fe2c55;
  border-radius: 12px;
  transition: opacity 0.15s ease, transform 0.05s ease;
  white-space: nowrap;
}

.upload-btn:hover {
  opacity: 0.88;
}

.upload-btn:active {
  transform: scale(0.98);
}

/* 表单提示信息 */
.form-hint {
  flex-basis: 100%;
  font-size: 13px;
  color: #fe2c55;
  display: none;
}

.form-hint.visible {
  display: block;
}

.upload-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- 投放内容封面 ---------- */
.data-table th.cover-col,
.data-table td.cover-cell {
  width: 72px;
}

.data-table td.cover-cell {
  padding-top: 12px;
  padding-bottom: 12px;
}

.cover-thumb-wrap {
  position: relative;
  width: 56px;
  height: 56px;
}

.cover-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  background: #f0f0f2;
}

.cover-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #f0f0f2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c7c7cc;
}

.cover-placeholder svg {
  display: block;
}

/* 编辑模式下封面可点击上传 */
.cover-thumb-wrap.cover-editable,
.cover-placeholder.cover-editable {
  cursor: pointer;
}

.cover-thumb-wrap.cover-editable:hover .cover-thumb,
.cover-placeholder.cover-editable:hover {
  box-shadow: 0 0 0 4px rgba(254, 44, 85, 0.1);
}

/* 封面清除按钮 */
.cover-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: #fe2c55;
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
}

.cover-remove:hover {
  transform: scale(1.1);
  background: #fff5f6;
}

/* ---------- 编辑工具栏 ---------- */
.edit-toolbar {
  position: sticky;
  top: 52px;
  z-index: 90;
  background: rgba(245, 245, 247, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.edit-toolbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.edit-toolbar-status {
  font-size: 13px;
  font-weight: 500;
  color: #6e6e73;
}

.edit-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #1d1d1f;
  background: #ffffff;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.toolbar-btn:hover {
  background: #f5f5f7;
  border-color: #b8b8c0;
}

/* ---------- 编辑态统计输入 ---------- */
.stat-input {
  font-family: inherit;
  font-size: 40px;
  font-weight: 200;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: #1d1d1f;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 170px;
  outline: none;
  transition: background 0.15s ease, border-color 0.15s ease, border-radius 0.15s ease;
}

.stat-input.stat-accent {
  color: #fe2c55;
}

.stat-input:hover,
.stat-input:focus {
  background: rgba(0, 0, 0, 0.03);
  border-bottom-color: #d2d2d7;
  border-radius: 6px 6px 0 0;
}

/* ---------- 编辑态表格输入 ---------- */
.cell-input {
  font-family: inherit;
  font-size: 15px;
  color: #1d1d1f;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  padding: 2px 0;
  outline: none;
  transition: background 0.15s ease, border-color 0.15s ease, border-radius 0.15s ease;
}

.cell-input-title {
  width: 100%;
  min-width: 180px;
}

.cell-input-num {
  width: 96px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cell-input:hover,
.cell-input:focus {
  background: rgba(0, 0, 0, 0.03);
  border-bottom-color: #d2d2d7;
  border-radius: 4px 4px 0 0;
}

/* ---------- 表格操作列与按钮 ---------- */
.data-table th.actions,
.data-table td.actions {
  width: 64px;
  text-align: right;
}

.row-delete-btn {
  padding: 4px 10px;
  font-size: 13px;
  color: #fe2c55;
  background: rgba(254, 44, 85, 0.08);
  border: 1px solid rgba(254, 44, 85, 0.2);
  border-radius: 8px;
  transition: background 0.15s ease;
}

.row-delete-btn:hover {
  background: rgba(254, 44, 85, 0.16);
}

.table-actions {
  padding: 16px 24px 24px;
}

.add-content-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  background: #f5f5f7;
  border: 1px solid #d2d2d7;
  border-radius: 10px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.add-content-btn:hover {
  background: #ffffff;
  border-color: #b8b8c0;
}

/* ---------- 苹果风模态弹窗 ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  animation: modal-fade-in 0.15s ease;
}

.modal-card {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
  animation: modal-pop-in 0.18s ease;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 18px;
}

.modal-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #1d1d1f;
  background: #f5f5f7;
  border: 1px solid #d2d2d7;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.modal-input + .modal-input {
  margin-top: 10px;
}

.modal-input::placeholder {
  color: #86868b;
}

.modal-input:focus {
  border-color: #fe2c55;
  box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.1);
  background: #ffffff;
}

.modal-input.shake {
  border-color: #fe2c55;
  animation: modal-shake 0.3s ease;
}

.modal-error {
  min-height: 18px;
  margin-top: 8px;
  font-size: 13px;
  color: #fe2c55;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.btn-secondary {
  background: #f5f5f7;
  color: #1d1d1f;
  border: 1px solid #d2d2d7;
}

.btn-secondary:hover {
  background: #ebebed;
}

.btn-primary {
  background: #fe2c55;
  color: #ffffff;
  border: 1px solid #fe2c55;
}

.btn-primary:hover {
  opacity: 0.88;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-pop-in {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes modal-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

/* ---------- 互动设置 ---------- */
.settings-card {
  padding: 6px 0;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
}

.setting-row + .setting-row {
  border-top: 1px solid #f0f0f2;
}

.setting-label {
  font-size: 15px;
  color: #1d1d1f;
}

.setting-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #6e6e73;
  padding: 0;
}

.setting-icon {
  width: 16px;
  height: 16px;
  color: #86868b;
  flex: none;
}

/* iOS 风格 toggle 开关 */
.toggle {
  position: relative;
  width: 51px;
  height: 31px;
  border-radius: 16px;
  background: #e9e9eb;
  transition: background 0.2s ease;
  flex: none;
  padding: 0;
  border: none;
}

.toggle.on {
  background: #34c759;
}

.toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.toggle.on .toggle-knob {
  transform: translateX(20px);
}

/* ---------- 白名单密钥 ---------- */
.whitelist-subtitle {
  font-size: 14px;
  color: #6e6e73;
  margin-bottom: 16px;
}

.key-input-row {
  position: relative;
  display: flex;
  align-items: center;
}

.key-input {
  flex: 1;
  padding: 12px 48px 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: #1d1d1f;
  background: #f5f5f7;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.key-input::placeholder {
  color: #86868b;
}

.key-input:focus {
  border-color: #34c759;
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.12);
  background: #ffffff;
}

.key-check {
  position: absolute;
  right: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.key-check.visible {
  opacity: 1;
}

/* ---------- 后台框架布局 ---------- */
.dy-app {
  display: flex;
  min-height: 100vh;
}

.dy-sidebar {
  width: 220px;
  flex: none;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-right: 1px solid #e8e8ed;
}

.dy-sidebar-brand {
  position: relative;
  padding: 18px 20px;
  border-bottom: 1px solid #f0f0f2;
}

.dy-sidebar-brand .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dy-nav {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dy-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #6e6e73;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.dy-nav-item:hover {
  background: #f5f5f7;
  color: #1d1d1f;
}

.dy-nav-item.active {
  background: #f0f0f2;
  color: #1d1d1f;
}

.dy-nav-item svg {
  flex: none;
}

.dy-sidebar-foot {
  padding: 16px 20px;
  border-top: 1px solid #f0f0f2;
  font-size: 12px;
  color: #86868b;
}

.dy-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dy-topbar {
  height: 52px;
  flex: none;
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  background: rgba(245, 245, 247, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid #e8e8ed;
}

.dy-topbar-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0;
}

.dy-topbar-right {
  font-size: 13px;
  color: #86868b;
}

.dy-content {
  flex: 1;
  padding: 24px;
}

.dy-view {
  display: none;
}

.dy-view.active {
  display: block;
}

/* 窄屏侧边栏只显示图标 */
@media (max-width: 900px) {
  .dy-sidebar {
    width: 64px;
  }

  .dy-sidebar-brand {
    display: flex;
    justify-content: center;
    padding: 16px 0;
  }

  .dy-sidebar-brand .brand-title {
    display: none;
  }

  .dy-sidebar-brand .secret-trigger {
    display: none;
  }

  .dy-nav {
    padding: 12px 8px;
  }

  .dy-nav-item {
    justify-content: center;
    padding: 12px 0;
  }

  .dy-nav-item span {
    display: none;
  }

  .dy-sidebar-foot {
    display: none;
  }
}

/* =========================================================
   巨量引擎 / 千川风格视觉覆盖
   ========================================================= */
:root {
  --ql-blue: #3b73ff;
  --ql-blue-dark: #2e5ee8;
  --ql-danger: #f53f3f;
  --ql-success: #00b578;
  --ql-body: #1d2129;
  --ql-secondary: #6b7280;
  --ql-line: #f0f2f7;
  --ql-border: #e5e9f2;
  --ql-bg: #f4f6fa;
}

body {
  background: var(--ql-bg);
  color: var(--ql-body);
}

/* ---------- 侧边栏 ---------- */
.dy-sidebar {
  background: linear-gradient(180deg, #14213a 0%, #1d2e52 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.dy-sidebar-brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dy-sidebar-brand .brand {
  gap: 10px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  background: var(--ql-blue);
  box-shadow: 0 4px 12px rgba(59, 115, 255, 0.35);
  position: relative;
  flex: none;
}

.brand-mark svg {
  width: 26px;
  height: 26px;
  display: block;
}

.brand-mark img.brand-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.brand-edit-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: var(--ql-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.22);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.brand-edit-badge:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.28);
}

.brand-title {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
}

.dy-nav {
  padding: 12px;
  gap: 6px;
}

.dy-nav-item {
  position: relative;
  padding: 11px 12px;
  border-left: 3px solid transparent;
  border-radius: 6px;
  color: #9aa7c0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dy-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e6eaf2;
}

.dy-nav-item.active {
  background: rgba(59, 115, 255, 0.18);
  border-left-color: var(--ql-blue);
  color: #ffffff;
}

.dy-nav-item svg {
  color: #8a94a6;
}

.dy-nav-item:hover svg,
.dy-nav-item.active svg {
  color: #ffffff;
}

.dy-sidebar-foot {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #5a6a85;
}

/* ---------- 顶栏 ---------- */
.dy-main {
  background: var(--ql-bg);
}

.dy-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--ql-border);
}

.dy-topbar-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ql-body);
}

.dy-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ql-secondary);
}

.topbar-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e7edff;
  color: var(--ql-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.topbar-account {
  font-size: 13px;
  font-weight: 500;
  color: var(--ql-body);
}

.topbar-arrow {
  color: #86909c;
}

/* ---------- 内容区与卡片 ---------- */
.dy-content {
  padding: 20px 24px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ql-body);
  margin-bottom: 16px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--ql-border);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  padding: 20px;
}

.table-card {
  padding: 0;
  overflow: hidden;
}

/* ---------- 指标卡 ---------- */
.stats-grid {
  gap: 16px;
}

.stat-card {
  padding: 20px;
}

.stat-label {
  font-size: 13px;
  color: var(--ql-secondary);
  font-weight: 500;
}

.stat-number {
  font-size: 30px;
  font-weight: 600;
  color: var(--ql-body);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.stat-number.stat-accent {
  color: var(--ql-blue);
}

.stat-unit {
  font-size: 13px;
  color: var(--ql-secondary);
  font-weight: 500;
}

/* ---------- 账户资产 ---------- */
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.account-card {
  padding: 20px;
}

.account-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.account-currency {
  font-size: 20px;
  font-weight: 600;
  color: var(--ql-body);
}

.account-number {
  font-size: 32px;
  font-weight: 600;
  color: var(--ql-body);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.account-input {
  font-size: 32px;
  font-weight: 600;
  color: var(--ql-body);
  width: 150px;
}

/* ---------- 账户信息 ---------- */
.account-panel-card {
  padding: 6px 0;
}

.account-panel-list {
  display: flex;
  flex-direction: column;
}

.account-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 20px;
  transition: background 0.15s ease;
}

.account-row + .account-row {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.account-row:hover {
  background: #fafbfd;
}

.account-row-label {
  flex: none;
  width: 104px;
  font-size: 13px;
  color: var(--ql-secondary);
  font-weight: 500;
  padding-top: 1px;
}

.account-row-value {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--ql-body);
  line-height: 1.5;
  user-select: text;
  word-break: break-all;
}

.account-row-value .info-input {
  width: 100%;
  font-size: 14px;
  font-weight: 400;
  color: var(--ql-body);
}

/* ---------- 绑定银行卡 ---------- */
.bankcard-wrap {
  max-width: 420px;
}

.bankcard-card {
  border: none;
  padding: 24px;
  border-radius: 16px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #1e2e52 0%, #2a3e66 100%);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.18);
  color: #ffffff;
}

.bankcard-brand {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 32px;
}

.bankcard-number {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

.bankcard-holder {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.bankcard-holder-label {
  font-size: 12px;
}

.bankcard-holder-name {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.bankcard-input {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 4px 8px;
  outline: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.bankcard-input:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
}

.bankcard-number .bankcard-input {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.bankcard-holder-name .bankcard-input {
  width: 140px;
}

/* ---------- 全程投放概览 ---------- */
.campaign-card {
  padding: 20px;
  margin-bottom: 16px;
}

.campaign-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.campaign-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ql-body);
  margin: 0;
}

.segmented {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: #eef1f6;
  border-radius: 8px;
}

.segmented-item {
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ql-secondary);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.segmented-item:hover {
  color: var(--ql-body);
}

.segmented-item.active {
  background: #ffffff;
  color: var(--ql-body);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.campaign-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.campaign-metric {
  padding: 14px;
  border: 1px solid var(--ql-line);
  border-radius: 8px;
  background: #fbfcfe;
}

.campaign-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.metric-number {
  font-size: 22px;
  font-weight: 600;
  color: var(--ql-body);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.metric-number.metric-accent {
  color: #fe2c55;
}

.metric-input {
  font-family: inherit;
  font-size: 22px;
  font-weight: 600;
  color: var(--ql-body);
  font-variant-numeric: tabular-nums;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  padding: 0;
  margin: 0;
  width: 130px;
  outline: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.metric-input:hover,
.metric-input:focus {
  background: #f5f7ff;
  border-bottom-color: var(--ql-blue);
  border-radius: 4px 4px 0 0;
}

@media (max-width: 900px) {
  .campaign-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .account-grid {
    grid-template-columns: 1fr;
  }

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

/* ---------- 投放状态计数 ---------- */
.status-card {
  padding: 20px;
  margin-bottom: 16px;
}

.status-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.status-group-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ql-body);
  background: #eef1f6;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
}

.status-row + .status-row {
  border-top: 1px solid var(--ql-line);
}

.status-label {
  font-size: 14px;
  color: var(--ql-secondary);
}

.status-count {
  font-size: 22px;
  font-weight: 600;
  color: var(--ql-body);
  font-variant-numeric: tabular-nums;
}

.status-input {
  font-size: 22px;
  font-weight: 600;
  width: 80px;
  text-align: right;
}

/* ---------- 更多功能 ---------- */
.more-card {
  padding: 20px;
  margin-top: 16px;
}

.more-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ql-body);
  margin: 0 0 16px;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.more-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: 8px;
  background: #f7f9fc;
  border: 1px solid var(--ql-line);
  color: var(--ql-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.more-item:hover {
  background: #f0f4ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.08);
}

.more-item:active {
  transform: translateY(0);
}

.more-item svg {
  color: var(--ql-blue);
}

@media (max-width: 560px) {
  .more-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 评论管理表格 ---------- */
.comments-table th:first-child,
.comments-table td.comment-user {
  width: 180px;
}

.comments-table td.comment-content {
  white-space: normal;
  word-break: break-word;
  min-width: 320px;
}

/* ---------- 表格 ---------- */
.table-card {
  border: 1px solid var(--ql-border);
}

.data-table th {
  background: #f7f8fa;
  color: var(--ql-secondary);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ql-line);
}

.data-table td {
  font-size: 14px;
  color: var(--ql-body);
  padding: 14px 16px;
  border-top: 1px solid var(--ql-line);
}

.data-table tbody tr:hover {
  background: #f5f7ff;
}

.data-table th.num,
.data-table td.num {
  font-variant-numeric: tabular-nums;
}

.table-actions {
  padding: 16px;
  border-top: 1px solid var(--ql-line);
}

/* ---------- 封面 ---------- */
.data-table th.cover-col,
.data-table td.cover-cell {
  width: 76px;
}

.cover-thumb-wrap {
  width: 58px;
  height: 58px;
}

.cover-thumb {
  width: 58px;
  height: 58px;
  border-radius: 6px;
  background: #f0f2f7;
}

.cover-placeholder {
  width: 58px;
  height: 58px;
  border-radius: 6px;
  background: #f0f2f7;
  color: #c7c7cc;
}

.cover-thumb-wrap.cover-editable:hover .cover-thumb,
.cover-placeholder.cover-editable:hover {
  box-shadow: 0 0 0 3px rgba(59, 115, 255, 0.18);
}

.cover-remove {
  background: #ffffff;
  color: var(--ql-danger);
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.2);
}

.cover-remove:hover {
  background: #fff1f0;
}

/* ---------- 白名单密钥列 ---------- */
.data-table th.key-col,
.data-table td.key-cell {
  width: 200px;
}

.key-cell-inner {
  display: flex;
  align-items: center;
  gap: 6px;
}

.key-masked {
  color: #6b7280;
  letter-spacing: 0.15em;
}

.key-plain {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  color: #1d2129;
}

.key-empty {
  color: #a3a9b5;
  font-size: 13px;
}

.key-eye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  flex: none;
  transition: color 0.15s ease;
}

.key-eye:hover {
  color: #3b73ff;
}

.cell-input-key {
  width: 140px;
  min-width: 140px;
}

/* ---------- 按钮 ---------- */
.upload-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  background: var(--ql-blue);
  border-radius: 6px;
}

.upload-btn:hover {
  background: var(--ql-blue-dark);
  opacity: 1;
}

.add-content-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  background: var(--ql-blue);
  border: none;
  border-radius: 6px;
}

.add-content-btn:hover {
  background: var(--ql-blue-dark);
}

.row-delete-btn {
  color: var(--ql-danger);
  background: #fff1f0;
  border: 1px solid rgba(245, 63, 63, 0.25);
  border-radius: 6px;
}

.row-delete-btn:hover {
  background: #ffe1e0;
}

/* ---------- 输入框 ---------- */
.upload-input,
.key-input,
.modal-input {
  background: #ffffff;
  border: 1px solid #d5dae3;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
}

.upload-input:focus {
  border-color: var(--ql-blue);
  box-shadow: 0 0 0 3px rgba(59, 115, 255, 0.12);
}

.key-input {
  padding-right: 44px;
}

.key-input:focus {
  border-color: var(--ql-success);
  box-shadow: 0 0 0 3px rgba(0, 181, 120, 0.12);
}

/* ---------- 编辑态输入 ---------- */
.stat-input {
  font-size: 30px;
  font-weight: 600;
  color: var(--ql-body);
  letter-spacing: 0;
  max-width: 150px;
  border-bottom: 1px solid transparent;
}

.stat-input.stat-accent {
  color: var(--ql-blue);
}

.stat-input:hover,
.stat-input:focus {
  background: #f5f7ff;
  border-bottom-color: var(--ql-blue);
  border-radius: 4px 4px 0 0;
}

.cell-input {
  font-size: 14px;
  color: var(--ql-body);
  border-bottom: 1px solid transparent;
}

.cell-input:hover,
.cell-input:focus {
  background: #f5f7ff;
  border-bottom-color: var(--ql-blue);
  border-radius: 4px 4px 0 0;
}

/* ---------- 互动设置 ---------- */
.settings-card {
  padding: 6px 0;
}

.setting-row {
  padding: 14px 20px;
}

.setting-row + .setting-row {
  border-top: 1px solid var(--ql-line);
}

.setting-label {
  font-size: 14px;
  color: var(--ql-body);
}

.setting-value {
  font-size: 14px;
  color: var(--ql-secondary);
}

.setting-icon {
  color: #86909c;
}

.toggle {
  background: #d5dae3;
}

.toggle.on {
  background: var(--ql-blue);
}

/* ---------- 白名单密钥 ---------- */
.whitelist-subtitle {
  font-size: 13px;
  color: var(--ql-secondary);
  margin-bottom: 14px;
}

.key-check {
  stroke: var(--ql-success);
  right: 14px;
}

.form-hint {
  color: var(--ql-danger);
}

/* ---------- 编辑工具栏与弹窗 ---------- */
.edit-toolbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--ql-border);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.edit-toolbar-status {
  color: var(--ql-secondary);
}

.toolbar-btn {
  background: #ffffff;
  border: 1px solid #d5dae3;
  border-radius: 6px;
  color: var(--ql-body);
}

.toolbar-btn:hover {
  background: #f7f8fa;
  border-color: #c9d0db;
}

.modal-overlay {
  background: rgba(20, 33, 58, 0.5);
  backdrop-filter: blur(4px) saturate(140%);
  -webkit-backdrop-filter: blur(4px) saturate(140%);
}

.modal-card {
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(16, 24, 40, 0.18);
}

.modal-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ql-body);
}

.modal-input {
  border: 1px solid #d5dae3;
}

.modal-input:focus {
  border-color: var(--ql-blue);
  box-shadow: 0 0 0 3px rgba(59, 115, 255, 0.12);
}

.modal-input.shake {
  border-color: var(--ql-danger);
}

.modal-error {
  color: var(--ql-danger);
}

.btn {
  border-radius: 6px;
  font-weight: 500;
}

.btn-secondary {
  background: #ffffff;
  color: var(--ql-body);
  border: 1px solid #d5dae3;
}

.btn-secondary:hover {
  background: #f7f8fa;
}

.btn-primary {
  background: var(--ql-blue);
  border: 1px solid var(--ql-blue);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--ql-blue-dark);
  opacity: 1;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .dy-topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .dy-content {
    padding: 16px;
  }

  .edit-toolbar-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .stat-number {
    font-size: 26px;
  }

  .stat-input {
    font-size: 26px;
  }

  .card {
    padding: 16px;
  }
}

/* 巨量窄屏修正：确保 900px 以下侧边栏收窄样式不被基础覆盖 */
@media (max-width: 900px) {
  .dy-sidebar-brand {
    padding: 16px 0;
  }
}

/* =========================================================
   移动端适配（<860px）
   ========================================================= */
.dy-bottomnav {
  display: none;
}

@media (max-width: 860px) {
  /* 隐藏侧边栏，主区占满 */
  .dy-sidebar {
    display: none;
  }

  .dy-main {
    width: 100%;
  }

  /* 顶部栏收紧 */
  .dy-topbar {
    height: 48px;
    padding: 0 16px;
  }

  .dy-topbar-title {
    font-size: 16px;
  }

  .topbar-avatar {
    width: 24px;
    height: 24px;
    font-size: 11px;
    cursor: pointer;
  }

  .topbar-account {
    font-size: 12px;
  }

  .edit-toolbar {
    top: 48px;
  }

  .edit-toolbar-inner {
    padding: 10px 16px;
  }

  /* 内容区与卡片留白收紧 */
  .dy-content {
    padding: 16px;
    padding-bottom: calc(16px + 78px + env(safe-area-inset-bottom));
  }

  .section-title {
    font-size: 17px;
    margin-bottom: 14px;
  }

  .card {
    padding: 16px;
  }

  .table-card,
  .settings-card,
  .account-panel-card {
    padding: 0;
  }

  .settings-card,
  .account-panel-card {
    padding: 6px 0;
  }

  /* 数字适当缩小，避免窄屏溢出 */
  .stat-number,
  .account-number {
    font-size: 24px;
  }

  .account-currency {
    font-size: 18px;
  }

  .metric-number {
    font-size: 20px;
  }

  .status-count {
    font-size: 20px;
  }

  /* 表格触发横向滚动 */
  .data-table {
    min-width: 680px;
  }

  .comments-table {
    min-width: 520px;
  }

  /* 银行卡卡片自适应居中 */
  .bankcard-wrap {
    max-width: 400px;
    margin: 0 auto;
  }

  .bankcard-card {
    min-height: 180px;
    padding: 20px;
  }

  .bankcard-number {
    font-size: 22px;
  }

  /* 底部导航条 */
  .dy-bottomnav {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    overflow-x: auto;
    padding: 6px 4px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid #e5e9f2;
    scrollbar-width: none;
  }

  .dy-bottomnav::-webkit-scrollbar {
    display: none;
  }

  .dy-bottomnav .dy-nav-item {
    flex: 0 0 auto;
    width: 56px;
    min-width: 56px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 0;
    border-left: none;
    border-radius: 0;
    background: transparent;
    color: #6b7280;
    font-size: 11px;
    line-height: 1;
  }

  .dy-bottomnav .dy-nav-item:hover {
    background: transparent;
  }

  .dy-bottomnav .dy-nav-item svg {
    color: #8a94a6;
  }

  .dy-bottomnav .dy-nav-item.active {
    background: transparent;
    color: #fe2c55;
    font-weight: 600;
  }

  .dy-bottomnav .dy-nav-item.active svg {
    color: #fe2c55;
  }
}

/* =========================================================
   登录页
   ========================================================= */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #f5f5f7;
}

.login-screen.hidden {
  display: none;
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 32px 28px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e9f2;
  box-shadow: 0 12px 40px rgba(16, 24, 40, 0.1);
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.login-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fe2c55;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-brand-name {
  font-size: 18px;
  font-weight: 600;
  color: #1d2129;
}

.login-title {
  font-size: 24px;
  font-weight: 600;
  color: #1d2129;
  text-align: center;
  margin: 0 0 8px;
}

.login-subtitle {
  font-size: 14px;
  color: #6b7280;
  text-align: center;
  margin: 0 0 24px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
  color: #1d2129;
  background: #ffffff;
  border: 1px solid #d5dae3;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-input:focus {
  border-color: #3b73ff;
  box-shadow: 0 0 0 3px rgba(59, 115, 255, 0.12);
}

.login-input.shake {
  border-color: #f53f3f;
  animation: modal-shake 0.3s ease;
}

.login-error {
  margin: 0;
  font-size: 13px;
  color: #f53f3f;
}

.login-btn {
  height: 46px;
  border: none;
  border-radius: 8px;
  background: #fe2c55;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.login-btn:hover {
  background: #e6264a;
}

.login-btn:active {
  transform: scale(0.99);
}

@media (max-width: 560px) {
  .login-card {
    padding: 24px 20px;
  }
}

/* 独立登录页容器（app.html 中无登录元素，此样式仅供 index.html 登录页） */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #f5f5f7;
}

/* =========================================================
   千川式登录页（index.html 独立登录页专用）
   ========================================================= */
.login-page {
  min-height: 100vh;
  display: flex;
  padding: 0;
  background: #ffffff;
}

/* 左栏品牌展示区 */
.login-aside {
  position: relative;
  flex: 0 0 58%;
  width: 58%;
  min-height: 100vh;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #0a1c3e 0%, #12346b 55%, #1b4b9e 100%);
  color: #ffffff;
  overflow: hidden;
}

.login-aside-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.login-aside-glow-a {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 65%);
}

.login-aside-glow-b {
  width: 520px;
  height: 520px;
  bottom: -160px;
  right: -140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 65%);
}

.login-aside-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-aside-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.login-aside-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.login-aside-en {
  font-size: 11px;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.55);
}

.login-aside-slogan {
  position: relative;
  margin: auto 0;
}

.login-slogan-main {
  font-size: 32px;
  font-weight: 300;
  line-height: 1.3;
  margin: 0 0 18px;
}

.login-slogan-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.login-aside-watermark {
  position: absolute;
  right: -20px;
  bottom: 40px;
  width: 280px;
  height: 280px;
  color: #ffffff;
  opacity: 0.06;
}

.login-aside-copy {
  position: relative;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

/* 右栏登录区 */
.login-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: #f7f9fc;
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.login-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #2e6bff;
  margin: 0 0 10px;
}

.login-title {
  font-size: 26px;
  font-weight: 600;
  color: #1d2129;
  text-align: left;
  margin: 0 0 10px;
}

.login-subtitle {
  font-size: 13px;
  color: #6b7280;
  text-align: left;
  margin: 0 0 32px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-label {
  font-size: 13px;
  color: #6b7280;
}

.login-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
  color: #1d2129;
  background: #f2f4f8;
  border: 1px solid transparent;
  border-radius: 10px;
  outline: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-input:focus {
  background: #ffffff;
  border-color: #2e6bff;
  box-shadow: 0 0 0 4px rgba(46, 107, 255, 0.12);
}

.login-password-wrap {
  position: relative;
  display: block;
}

.login-password-wrap .login-input {
  padding-right: 44px;
}

.pwd-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  color: #9aa1ad;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwd-toggle:hover {
  color: #2e6bff;
}

.pwd-eye {
  display: block;
}

.pwd-eye-off {
  display: none;
}

.login-error {
  margin: 0;
  font-size: 13px;
  color: #f53f3f;
}

.login-input.shake {
  border-color: #f53f3f;
  animation: modal-shake 0.3s ease;
}

.login-btn {
  height: 46px;
  border: none;
  border-radius: 10px;
  background: #2e6bff;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.login-btn:hover {
  background: #1f5be8;
}

.login-footnote {
  text-align: center;
  font-size: 12px;
  color: #9aa1ad;
  margin: 16px 0 0;
}

/* 移动端：左栏变顶部头图 */
@media (max-width: 860px) {
  .login-page {
    flex-direction: column;
  }

  .login-aside {
    flex: none;
    width: 100%;
    min-height: 200px;
    padding: 24px 20px;
  }

  .login-aside-brand-text .login-aside-en {
    display: none;
  }

  .login-aside-name {
    font-size: 18px;
  }

  .login-aside-slogan {
    margin: 24px 0 0;
  }

  .login-slogan-main {
    font-size: 22px;
    margin: 0 0 8px;
  }

  .login-slogan-sub {
    font-size: 12px;
  }

  .login-aside-watermark {
    right: -40px;
    bottom: 0;
    width: 180px;
    height: 180px;
  }

  .login-aside-copy {
    display: none;
  }

  .login-main {
    padding: 24px 20px;
  }

  .login-title {
    font-size: 24px;
  }
}

/* =========================================================
   顶栏账户下拉菜单
   ========================================================= */
.dy-topbar-right {
  position: relative;
  cursor: pointer;
}

.topbar-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #e5e9f2;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
  z-index: 400;
}

.topbar-menu-account {
  padding: 8px 10px;
  font-size: 13px;
  color: #6b7280;
  border-bottom: 1px solid #f0f2f7;
  margin-bottom: 6px;
  word-break: break-all;
}

.topbar-menu-logout {
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #f53f3f;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.topbar-menu-logout:hover {
  background: #fff1f0;
}

@media (max-width: 860px) {
  .topbar-menu {
    width: 200px;
    right: 0;
  }
}

/* =========================================================
   卡片链接列表
   ========================================================= */
.card-link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.card-link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #e5e9f2;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.card-link-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex: none;
  background: #f0f2f7;
}

.card-link-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-link-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-link-title {
  font-size: 14px;
  font-weight: 600;
  color: #1d2129;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.card-link-desc {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.card-link-domain {
  font-size: 12px;
  color: #86909c;
  margin: 0;
}

.card-link-clicks {
  flex: none;
  width: 80px;
  text-align: right;
}

.card-link-clicks-num {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: #1d2129;
  font-variant-numeric: tabular-nums;
}

.card-link-clicks-label {
  display: block;
  font-size: 12px;
  color: #6b7280;
}

.card-link-input {
  width: 100%;
  min-width: 0;
  font-size: 14px;
}

.card-link-clicks-input {
  width: 80px;
  text-align: right;
  font-size: 18px;
  font-weight: 600;
}

.card-link-delete {
  flex: none;
}

.card-link-empty {
  padding: 24px;
  text-align: center;
  color: #86909c;
  font-size: 13px;
  border: 1px dashed #d5dae3;
  border-radius: 10px;
}

@media (max-width: 860px) {
  .card-link-item {
    flex-wrap: wrap;
  }

  .card-link-clicks {
    width: auto;
    min-width: 70px;
  }
}

/* =========================================================
   名片卡片换图（缩略图角标直传）
   ========================================================= */
.card-link-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: none;
  align-items: flex-end;
}

.card-link-thumb {
  position: relative;
}

.card-link-img-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(29, 33, 41, 0.82);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.2);
  transition: transform 0.1s ease, background 0.15s ease;
  z-index: 2;
}

.card-link-img-badge:hover {
  transform: scale(1.1);
  background: rgba(29, 33, 41, 0.95);
}

.card-link-img-reset-badge {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(245, 63, 63, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.2);
  transition: transform 0.1s ease, background 0.15s ease;
  z-index: 2;
}

.card-link-img-reset-badge:hover {
  transform: scale(1.1);
  background: #f53f3f;
}
