:root {
  color: #0f172a;
  background: #f1f5f4;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body, #root {
  margin: 0;
  min-height: 100%;
}

a { color: inherit; }

/* Login — match 蓝空客服 style */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #001529;
}

.login-card {
  width: 400px;
  max-width: 100%;
  background: #fff;
  border-radius: 8px;
  padding: 40px 36px 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.login-title {
  text-align: center !important;
  margin: 0 0 28px !important;
  color: #141414 !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
}

.login-form .ant-form-item { margin-bottom: 18px; }

.login-form .req {
  color: #ff4d4f;
  margin-right: 2px;
}

.captcha-row {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.captcha-canvas {
  width: 120px;
  height: 40px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #d9d9d9;
  flex-shrink: 0;
  background: #f0f5ff;
}

.login-btn {
  margin-top: 8px;
  height: 42px !important;
  font-size: 16px;
  border-radius: 6px !important;
  background: #1677ff !important;
  border-color: #1677ff !important;
}

.login-footer {
  margin-top: 20px;
  text-align: center;
  color: rgba(0, 0, 0, 0.45);
  font-size: 14px;
}

/* Admin shell */
.app-shell {
  min-height: 100vh;
  background: #f5f5f5;
}

.app-sider {
  background: #001529 !important;
  position: relative !important;
}

.app-sider .ant-layout-sider-children {
  display: flex;
  flex-direction: column;
}

.app-sider-brand {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  background: #002140;
}

.app-sider .ant-menu-dark {
  background: #001529;
  flex: 1;
  border-inline-end: none !important;
  padding-top: 8px;
}

.app-sider .ant-menu-dark .ant-menu-item {
  margin-inline: 8px;
  width: calc(100% - 16px);
  border-radius: 6px;
}

.app-sider .ant-menu-dark .ant-menu-item-selected {
  background: #1677ff !important;
}

.app-sider-collapse {
  position: absolute;
  top: 50%;
  right: -12px;
  z-index: 20;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  color: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 10px;
  padding: 0;
}

.app-sider-collapse:hover {
  color: #1677ff;
  box-shadow: 0 2px 10px rgba(22, 119, 255, 0.35);
}

.app-header {
  background: #fff !important;
  padding: 0 24px !important;
  height: 56px !important;
  line-height: 56px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}

.app-header-user {
  color: rgba(0, 0, 0, 0.65);
}

.app-content {
  margin: 16px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 8px;
  min-height: calc(100vh - 88px);
}

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

/* 外链资料：免登录行高亮 */
tr.ext-nologin-row > td {
  background: #f6ffed !important;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: linear-gradient(135deg, #f0f5ff 0%, #fff 70%);
  border: 1px solid #e6f0ff;
  border-radius: 10px;
  padding: 18px 20px;
}

.stat-card .label {
  color: rgba(0, 0, 0, 0.45);
  font-size: 13px;
  margin-bottom: 8px;
}

.stat-card .value {
  font-size: 28px;
  font-weight: 700;
  color: #141414;
  line-height: 1.2;
}

@media (max-width: 900px) {
  .stat-row { grid-template-columns: 1fr; }
  .app-content { margin: 12px; padding: 16px; }
}

/* 优质外链统计：日新增柱状 */
.qbl-daily-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 140px;
  padding: 8px 4px 0;
  overflow-x: auto;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  background: #fafafa;
}
.qbl-daily-col {
  flex: 1 0 18px;
  min-width: 14px;
  max-width: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
}
.qbl-daily-col:hover .qbl-daily-bar.total {
  background: linear-gradient(180deg, #91caff 0%, #0958d9 100%);
}
.qbl-daily-bars {
  flex: 1;
  width: 70%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.qbl-daily-bar.total {
  width: 100%;
  background: linear-gradient(180deg, #69b1ff 0%, #1677ff 100%);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
}
.qbl-daily-label {
  font-size: 10px;
  color: #8c8c8c;
  margin-top: 4px;
  transform: scale(0.92);
  white-space: nowrap;
}

/* GA4 home-style dashboard */
.ga-home-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
}
.ga-panel {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 16px 18px 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.ga-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.ga-panel-title {
  font-size: 16px;
  font-weight: 600;
  color: #141414;
}
.ga-metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.ga-metric-label {
  color: rgba(0,0,0,0.55);
  font-size: 13px;
  margin-bottom: 4px;
}
.ga-metric-value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  color: #141414;
}
.ga-metric-sub { margin-top: 4px; min-height: 20px; }
.ga-delta.up { color: #389e0d; font-size: 12px; font-weight: 600; }
.ga-delta.down { color: #cf1322; font-size: 12px; font-weight: 600; }
.ga-delta.muted { color: rgba(0,0,0,0.25); font-size: 12px; }
.ga-line-chart {
  margin-top: 8px;
  height: 170px;
  position: relative;
}
.ga-line-svg {
  width: 100%;
  height: 150px;
  display: block;
  background: linear-gradient(180deg, #fafcff 0%, #fff 100%);
  border-radius: 8px;
}
.ga-line-legend {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  color: rgba(0,0,0,0.45);
  font-size: 12px;
}
.ga-line-legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -1px;
}
.ga-line-legend .dot.today { background: #1677ff; }
.ga-line-legend .dot.prev { background: #bfbfbf; }
.ga-rt-big { margin-bottom: 10px; }
.ga-rt-label { color: rgba(0,0,0,0.55); font-size: 13px; }
.ga-rt-value { font-size: 36px; font-weight: 700; line-height: 1.1; margin-top: 4px; }
.ga-rt-sublabel { color: rgba(0,0,0,0.45); font-size: 12px; margin-bottom: 6px; }
.ga-minute-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 72px;
  margin-bottom: 14px;
  padding: 4px 0;
}
.ga-minute-bar {
  flex: 1;
  background: #91caff;
  border-radius: 2px 2px 0 0;
  min-width: 0;
}
.ga-city-table { border-top: 1px solid #f0f0f0; padding-top: 8px; }
.ga-city-head, .ga-city-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
}
.ga-city-head { color: rgba(0,0,0,0.45); font-weight: 500; }
.ga-city-row { color: #141414; border-top: 1px solid #fafafa; }
@media (max-width: 1100px) {
  .ga-home-grid { grid-template-columns: 1fr; }
  .ga-metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ga-bounce {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ga-bounce i {
  display: block;
  height: 6px;
  background: #69b1ff;
  border-radius: 3px;
  max-width: 100%;
}

.gsc-metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.gsc-metric-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-top: 3px solid #d9d9d9;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: box-shadow .15s, border-color .15s;
}
.gsc-metric-card.active {
  box-shadow: 0 2px 8px rgba(22,119,255,.12);
  border-color: #91caff;
}
.gsc-metric-card .label {
  color: rgba(0,0,0,.45);
  font-size: 13px;
  margin-bottom: 6px;
}
.gsc-metric-card .value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}
@media (max-width: 1100px) {
  .gsc-metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.gsc-perf-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.gsc-perf-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.gsc-perf-card {
  text-align: left;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
  cursor: pointer;
  min-height: 88px;
}
.gsc-perf-card.on { color: #fff; }
.gsc-perf-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 8px;
  opacity: .95;
}
.gsc-check {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1.5px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
}
.gsc-perf-card:not(.on) .gsc-check { border-color: #5f6368; color: transparent; }
.gsc-perf-card.on .gsc-check {
  background: rgba(255,255,255,.25);
  border-color: #fff;
  color: #fff;
}
.gsc-perf-card-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}
.gsc-chart-panel { margin-bottom: 16px; }
.gsc-chart-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
}
@media (max-width: 1100px) {
  .gsc-perf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== GSC 官方效果页对齐 ===== */
.gsc-perf-page {
  background: #fff;
  margin: -8px -4px 0;
  padding: 8px 4px 24px;
}
.gsc-perf-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.gsc-perf-title {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  color: #202124;
  font-family: "Google Sans", Roboto, "Noto Sans SC", "PingFang SC", Arial, sans-serif;
}
.gsc-export-btn {
  color: #1a73e8 !important;
  font-weight: 500;
}
.gsc-official-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.gsc-official-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.gsc-days-group {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #dadce0;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.gsc-day-btn {
  border: none;
  background: transparent;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  color: #3c4043;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
  font-family: Roboto, "Noto Sans SC", "PingFang SC", Arial, sans-serif;
}
.gsc-day-btn + .gsc-day-btn { border-left: 1px solid #dadce0; }
.gsc-day-btn.active {
  background: #e8f0fe;
  color: #1967d2;
  font-weight: 500;
}
.gsc-day-check {
  font-size: 12px;
  font-weight: 700;
}
.gsc-day-detail-btn { color: #3c4043; }
.gsc-chip-btn {
  border: 1px solid #dadce0;
  background: #fff;
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 13px;
  color: #3c4043;
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: Roboto, "Noto Sans SC", "PingFang SC", Arial, sans-serif;
}
.gsc-filter-icon {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 4px;
  background: #1a73e8;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}
.gsc-updated-text {
  font-size: 12px;
  color: #5f6368;
  white-space: nowrap;
}
.gsc-chart-wrap {
  background: #fff;
  border: 1px solid #e8eaed;
  border-bottom: none;
  padding: 4px 0 0;
  overflow: hidden;
}
.gsc-official-chart {
  width: 100%;
  background: #fff;
  overflow: hidden;
  position: relative;
}
.gsc-official-svg {
  display: block;
  max-width: 100%;
  height: auto;
}
.gsc-axis-text {
  fill: #5f6368;
  font-size: 12px;
  font-family: Roboto, "Noto Sans SC", "PingFang SC", Arial, sans-serif;
}
.gsc-chart-grain {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  padding: 4px 12px 0;
  font-size: 13px;
  color: #3c4043;
}
.gsc-axis-title {
  fill: #5f6368;
  font-size: 11px;
  font-family: Roboto, "Noto Sans SC", "PingFang SC", Arial, sans-serif;
}
.gsc-axis-date { font-size: 11px; }
.gsc-tz-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #e8f0fe;
  color: #1967d2;
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
}
.gsc-tz-dismiss {
  border: none;
  background: transparent;
  color: #1967d2;
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
}
.gsc-official-svg {
  display: block;
  max-width: 100%;
  height: auto;
}
.gsc-axis-text {
  fill: #5f6368;
  font-size: 12px;
  font-family: Roboto, "Noto Sans SC", "PingFang SC", Arial, sans-serif;
}
.gsc-perf-page .gsc-perf-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 0;
  border: 1px solid #e8eaed;
  border-bottom: none;
  overflow: hidden;
  border-radius: 0;
}
.gsc-perf-page .gsc-perf-card {
  border: none !important;
  border-radius: 0 !important;
  border-right: 1px solid #e8eaed !important;
  min-height: 100px;
  background: #fff;
}
.gsc-perf-page .gsc-perf-card:last-child { border-right: none !important; }
.gsc-dim-panel {
  margin-top: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border: 1px solid #e8eaed;
}
@media (max-width: 1100px) {
  .gsc-perf-page .gsc-perf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== 数据洞见 ===== */
.gsc-insights-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px 0 40px;
}
.gsc-ins-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.gsc-ins-title {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
  color: #202124;
}
.gsc-ins-days { position: relative; display: inline-block; margin-bottom: 20px; }
.gsc-ins-days-btn {
  border: 1px solid #dadce0;
  background: #fff;
  border-radius: 24px;
  padding: 8px 16px;
  font-size: 14px;
  color: #3c4043;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gsc-ins-days-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  min-width: 140px;
  overflow: hidden;
}
.gsc-ins-days-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  color: #3c4043;
}
.gsc-ins-days-menu button:hover { background: #f1f3f4; }
.gsc-ins-days-menu button.active { background: #e8f0fe; color: #1967d2; }
.gsc-ins-empty {
  padding: 24px;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 8px;
}
.gsc-ins-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.gsc-ins-metric-card {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 16px 18px 12px;
}
.gsc-ins-metric-head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #5f6368;
  font-size: 13px;
  margin-bottom: 8px;
}
.gsc-ins-help {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #9aa0a6;
  color: #9aa0a6;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.gsc-ins-metric-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.gsc-ins-metric-value {
  font-size: 36px;
  font-weight: 400;
  color: #202124;
  line-height: 1.1;
  margin-bottom: 6px;
}
.gsc-ins-change { font-size: 13px; font-weight: 500; }
.gsc-ins-change.up { color: #188038; }
.gsc-ins-change.down { color: #d93025; }
.gsc-spark { display: block; flex-shrink: 0; }
.gsc-ins-card {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 8px 8px 12px;
}
.gsc-ins-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 4px;
}
.gsc-ins-card-title {
  font-size: 16px;
  color: #202124;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gsc-ins-more {
  border: none;
  background: transparent;
  color: #1a73e8;
  cursor: pointer;
  font-size: 13px;
}
.gsc-ins-tabs {
  display: flex;
  gap: 8px;
  padding: 4px 12px 0;
  border-bottom: 1px solid #e8eaed;
}
.gsc-ins-tabs button {
  border: none;
  background: transparent;
  padding: 10px 12px;
  cursor: pointer;
  color: #5f6368;
  font-size: 14px;
  position: relative;
}
.gsc-ins-tabs button.active {
  color: #1967d2;
  font-weight: 500;
}
.gsc-ins-tabs button.active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 3px;
  background: #1a73e8;
  border-radius: 3px 3px 0 0;
}
.gsc-ins-col-label {
  text-align: right;
  padding: 10px 16px 4px;
  color: #5f6368;
  font-size: 12px;
}
.gsc-ins-list { padding: 0 4px; }
.gsc-ins-list-empty {
  padding: 24px;
  text-align: center;
  color: #9aa0a6;
}
.gsc-ins-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}
.gsc-ins-row:hover { background: #f8f9fa; }
.gsc-ins-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #e8eaed;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gsc-ins-thumb img { width: 28px; height: 28px; object-fit: contain; }
.gsc-ins-row-main { flex: 1; min-width: 0; }
.gsc-ins-row-title {
  font-size: 14px;
  color: #202124;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.gsc-ins-row-url {
  font-size: 12px;
  color: #80868b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gsc-ins-row-stats {
  text-align: right;
  flex-shrink: 0;
  min-width: 72px;
}
.gsc-ins-row-clicks {
  font-size: 14px;
  color: #202124;
  margin-top: 2px;
}
@media (max-width: 800px) {
  .gsc-ins-metrics { grid-template-columns: 1fr; }
  .gsc-ins-metric-value { font-size: 28px; }
}

.gsc-ins-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 12px 0;
  padding: 10px 12px;
  background: #e8f0fe;
  color: #1967d2;
  border-radius: 8px;
  font-size: 13px;
}
.gsc-ins-tip button {
  border: none;
  background: transparent;
  color: #5f6368;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.gsc-ins-related {
  font-size: 12px;
  color: #80868b;
  margin-top: 4px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gsc-ins-query-row { align-items: flex-start; }
.gsc-ins-feedback {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 14px 6px;
  color: #5f6368;
  font-size: 12px;
}
.gsc-ins-feedback button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  opacity: .75;
}
.gsc-ins-grid2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-top: 20px;
  align-items: start;
}
.gsc-ins-side { min-width: 0; }
.gsc-ins-table-head {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px 4px;
  color: #5f6368;
  font-size: 12px;
}
.gsc-ins-share-list { padding: 4px 12px 12px; }
.gsc-ins-share-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 4px;
}
.gsc-ins-share-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #202124;
  font-size: 14px;
}
.gsc-ins-flag {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06);
}
.gsc-ins-share-bar-wrap { min-width: 0; }
.gsc-ins-share-bar {
  height: 22px;
  background: #1a73e8;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  padding: 0 8px;
  min-width: 42px;
}
.gsc-ins-share-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3c4043;
  font-size: 13px;
}
.gsc-ins-share-dot i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a73e8;
  display: inline-block;
}
@media (max-width: 900px) {
  .gsc-ins-grid2 { grid-template-columns: 1fr; }
  .gsc-ins-share-row { grid-template-columns: 100px 1fr; }
}

/* ===== 链接数量 ===== */
.gsc-links-page { width: 100%; padding: 8px 0 40px; }
.gsc-links-titlebar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.gsc-links-title {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
  color: #202124;
}
.gsc-links-back {
  border: none;
  background: transparent;
  color: #1a73e8;
  cursor: pointer;
  padding: 0;
  margin-bottom: 8px;
  font-size: 13px;
}
.gsc-links-hint {
  background: #e8f0fe;
  color: #1967d2;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
}
.gsc-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.gsc-links-col-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.gsc-links-col-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  color: #202124;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gsc-links-total { color: #5f6368; font-size: 13px; }
.gsc-links-card {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 12px 8px 8px;
}
.gsc-links-card-title {
  padding: 4px 12px 10px;
  font-size: 14px;
  color: #202124;
}
.gsc-links-list { padding: 0 4px; min-height: 80px; }
.gsc-links-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 8px;
}
.gsc-links-row:hover { background: #f8f9fa; }
.gsc-links-url {
  flex: 1;
  min-width: 0;
  color: #1a73e8;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gsc-links-count {
  flex-shrink: 0;
  color: #202124;
  font-size: 13px;
}
.gsc-links-more {
  display: block;
  width: 100%;
  text-align: right;
  border: none;
  background: transparent;
  color: #1a73e8;
  cursor: pointer;
  padding: 10px 12px 6px;
  font-size: 13px;
}
@media (max-width: 900px) {
  .gsc-links-grid { grid-template-columns: 1fr; }
}

/* ===== 网址检查 ===== */
.gsc-inspect-page { width: 100%; max-width: 920px; padding: 8px 0 40px; }
.gsc-inspect-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 400;
  color: #202124;
}
.gsc-inspect-box {
  position: relative;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 28px;
  box-shadow: 0 1px 2px rgba(60,64,67,.15);
  margin-bottom: 20px;
}
.gsc-inspect-box.open {
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(60,64,67,.18);
}
.gsc-inspect-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 16px;
}
.gsc-inspect-icon { color: #5f6368; font-size: 18px; }
.gsc-inspect-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: #202124;
  background: transparent;
  min-width: 0;
}
.gsc-inspect-suggest {
  border-top: 1px solid #e8eaed;
  padding: 6px 0;
  max-height: 320px;
  overflow: auto;
}
.gsc-inspect-suggest-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: transparent;
  text-align: left;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  color: #3c4043;
}
.gsc-inspect-suggest-item:hover { background: #f1f3f4; }
.gsc-inspect-hist-ico { color: #80868b; width: 18px; text-align: center; }
.gsc-inspect-suggest-url {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gsc-inspect-result {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 16px 18px 12px;
}
.gsc-inspect-result-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.gsc-inspect-result-url {
  font-size: 15px;
  color: #202124;
  word-break: break-all;
  margin-bottom: 6px;
}
.gsc-inspect-verdict {
  font-size: 14px;
  color: #5f6368;
}
.gsc-inspect-verdict.ok { color: #188038; font-weight: 500; }
.gsc-inspect-verdict.warn { color: #e37400; font-weight: 500; }
.gsc-inspect-verdict.bad { color: #d93025; font-weight: 500; }
.gsc-inspect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.gsc-inspect-kv .k {
  font-size: 12px;
  color: #80868b;
  margin-bottom: 2px;
}
.gsc-inspect-kv .v {
  font-size: 13px;
  color: #202124;
  word-break: break-all;
}
.gsc-inspect-refs {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e8eaed;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gsc-inspect-refs-title { font-size: 13px; color: #5f6368; margin-bottom: 4px; }
.gsc-inspect-refs a {
  color: #1a73e8;
  font-size: 13px;
  text-decoration: none;
  word-break: break-all;
}
.gsc-inspect-note {
  margin-top: 14px;
  font-size: 12px;
  color: #80868b;
}
@media (max-width: 700px) {
  .gsc-inspect-grid { grid-template-columns: 1fr; }
}

/* 填充模板独立编辑页 */
.fill-edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}
.fill-edit-card {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.fill-edit-main .fill-edit-card {
  background: #fff;
  border-color: #e8e8e8;
}
.html-editor-wrap {
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.html-editor-wrap .tox-tinymce {
  border: none !important;
  border-radius: 0 !important;
}
@media (max-width: 960px) {
  .fill-edit-layout {
    grid-template-columns: 1fr;
  }
}

/* 填充模板：独立编辑窗口（popup） */
.fill-edit-popup-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #f5f7fb 0%, #fff 40%);
}
.fill-edit-popup-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.fill-edit-popup-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px 40px;
}
.fill-edit-popup-body .app-content,
.fill-edit-popup-shell .fill-edit-page {
  background: transparent;
}
