* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #f5f6fa;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.6;
}
a { color: #e11d48; text-decoration: none; }
a:hover { text-decoration: underline; }

/* layout */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px; background: #fff; border-right: 1px solid #eef0f4;
  flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand {
  padding: 20px 18px; border-bottom: 1px solid #eef0f4;
  display: flex; align-items: center; gap: 10px;
}
.brand .logo {
  width: 38px; height: 38px; border-radius: 8px;
  background: linear-gradient(135deg, #e11d48, #f97316);
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.brand .meta strong { display: block; font-size: 14px; color: #111827; }
.brand .meta span { font-size: 11px; color: #9ca3af; }

.menu { padding: 14px 0; list-style: none; }
.menu li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; color: #4b5563; font-size: 14px;
  border-left: 3px solid transparent;
}
.menu li a:hover { background: #fef2f2; color: #e11d48; text-decoration: none; }
.menu li a.active {
  background: linear-gradient(90deg, rgba(225,29,72,0.08), transparent);
  color: #e11d48; border-left-color: #e11d48; font-weight: 600;
}
.menu .ic {
  width: 18px; height: 18px; display: inline-block;
  background: currentColor; opacity: 0.7;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  background: #fff; border-bottom: 1px solid #eef0f4;
  padding: 14px 24px; display: flex; align-items: center; justify-content: space-between;
}
.page-title h1 { font-size: 18px; font-weight: 600; color: #111827; }
.page-title small { font-size: 12px; color: #9ca3af; }

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

/* card */
.card {
  background: #fff; border-radius: 8px; border: 1px solid #eef0f4;
  margin-bottom: 16px;
}
.card-head {
  padding: 16px 20px; border-bottom: 1px solid #eef0f4;
  display: flex; align-items: center; justify-content: space-between;
}
.card-head h3 { font-size: 15px; font-weight: 600; color: #111827; }
.card-body { padding: 20px; }

/* grid */
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr; } }

/* stat card */
.stat {
  background: #fff; border-radius: 8px; border: 1px solid #eef0f4;
  padding: 18px 20px; position: relative;
}
.stat .label { font-size: 12px; color: #6b7280; }
.stat .value { font-size: 26px; font-weight: 700; color: #111827; margin-top: 6px; }
.stat .delta { font-size: 12px; color: #16a34a; margin-top: 6px; }
.stat .delta.down { color: #dc2626; }
.stat .icon {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #fff1f2, #ffedd5);
  display: flex; align-items: center; justify-content: center;
  color: #e11d48; font-size: 18px;
}

/* table */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid #f1f2f5;
  font-size: 13px;
}
.table th { background: #fafbfc; font-weight: 600; color: #374151; font-size: 12px; }
.table tbody tr:hover { background: #fafbfc; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* button */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 14px; font-size: 13px; border-radius: 6px;
  border: 1px solid #e5e7eb; background: #fff; color: #374151; cursor: pointer;
  text-decoration: none; gap: 4px; line-height: 1.4;
}
.btn:hover { border-color: #d1d5db; background: #f9fafb; text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, #e11d48, #f97316); color: #fff; border: none;
}
.btn-primary:hover { opacity: 0.92; color: #fff; }
.btn-danger { color: #dc2626; border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-link { background: none; border: none; padding: 0; color: #e11d48; }

/* badge */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 500;
}
.badge-male { background: #dbeafe; color: #1d4ed8; }
.badge-female { background: #fce7f3; color: #be185d; }
.badge-all { background: #e5e7eb; color: #374151; }
.badge-active { background: #dcfce7; color: #15803d; }
.badge-inactive { background: #fee2e2; color: #b91c1c; }
.badge-paused { background: #fef3c7; color: #b45309; }
.badge-serializing { background: #dbeafe; color: #1d4ed8; }
.badge-completed { background: #f3e8ff; color: #7c3aed; }
.badge-featured { background: linear-gradient(135deg, #e11d48, #f97316); color: #fff; }

/* form */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; color: #374151; margin-bottom: 6px; font-weight: 500; }
.form-row input[type=text], .form-row input[type=url], .form-row input[type=number],
.form-row input[type=color], .form-row select, .form-row textarea {
  width: 100%; padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 6px;
  font-size: 13px; font-family: inherit; background: #fff;
}
.form-row textarea { min-height: 80px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: #e11d48; box-shadow: 0 0 0 3px rgba(225,29,72,0.08);
}
.form-row input[type=color] { height: 38px; padding: 4px; }
.form-actions { display: flex; gap: 10px; padding-top: 8px; border-top: 1px solid #eef0f4; }
.form-row .hint { font-size: 11px; color: #9ca3af; margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 768px) { .form-grid { grid-template-columns: 1fr; } }

/* tabs / filters */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid #eef0f4; padding: 0 20px; }
.tabs a {
  padding: 10px 16px; color: #6b7280; font-size: 13px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a.active { color: #e11d48; border-bottom-color: #e11d48; font-weight: 600; }
.tabs a:hover { text-decoration: none; color: #e11d48; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 20px; background: #fafbfc; border-bottom: 1px solid #eef0f4; }
.filters input, .filters select {
  padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 13px;
  background: #fff;
}

/* flash */
.flash {
  margin-bottom: 16px; padding: 12px 16px;
  background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0;
  border-radius: 6px; font-size: 13px;
}

/* book cover */
.book-cover {
  width: 44px; height: 60px; border-radius: 4px;
  background: linear-gradient(135deg, #e11d48, #f97316);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 11px; text-align: center; padding: 4px; line-height: 1.2; overflow: hidden;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }

/* sites grid */
.site-card {
  background: #fff; border-radius: 8px; border: 1px solid #eef0f4;
  padding: 16px; transition: all .15s;
  display: flex; flex-direction: column; gap: 10px;
}
.site-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.04); border-color: #e5e7eb; }
.site-card .head { display: flex; align-items: center; gap: 10px; }
.site-card .swatch { width: 12px; height: 12px; border-radius: 3px; }
.site-card .name { font-weight: 600; color: #111827; }
.site-card .domain { font-size: 12px; color: #6b7280; }
.site-card .stats-row { display: flex; gap: 16px; font-size: 12px; color: #6b7280; }
.site-card .stats-row b { color: #111827; font-size: 14px; }
.site-card .actions { display: flex; gap: 6px; padding-top: 8px; border-top: 1px solid #f1f2f5; }

/* site weight & dns meta */
.site-meta { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; border-top: 1px dashed #eef0f4; border-bottom: 1px dashed #eef0f4; }
.site-meta .meta-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.site-meta .meta-label { color: #6b7280; min-width: 32px; font-weight: 500; }
.site-meta .meta-link { font-size: 11px; color: #6b7280; text-decoration: none; }
.site-meta .meta-link:hover { color: #e11d48; }
.weight-bar { flex: 1; height: 6px; background: #f3f4f6; border-radius: 3px; overflow: hidden; max-width: 90px; }
.weight-fill { display: block; height: 100%; border-radius: 3px; transition: width .25s; }
.weight-fill.weight-0  { background: #e5e7eb; }
.weight-fill.weight-1, .weight-fill.weight-2  { background: #93c5fd; }
.weight-fill.weight-3, .weight-fill.weight-4  { background: #60a5fa; }
.weight-fill.weight-5, .weight-fill.weight-6  { background: #3b82f6; }
.weight-fill.weight-7, .weight-fill.weight-8  { background: #f97316; }
.weight-fill.weight-9, .weight-fill.weight-10 { background: linear-gradient(90deg, #f97316, #e11d48); }
.weight-num { font-weight: 700; color: #111827; font-size: 12px; min-width: 38px; }
.dns-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 2px rgba(0,0,0,0.04); }
.dns-label { font-weight: 600; }

/* cps card */
.cps-card {
  background: #fff; border-radius: 8px; border: 1px solid #eef0f4;
  padding: 16px;
}
.cps-card .top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cps-card .icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: linear-gradient(135deg, #e11d48, #f97316);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.cps-card .name { font-weight: 600; color: #111827; }
.cps-card .code { font-size: 11px; color: #9ca3af; font-family: monospace; }
.cps-card .row { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid #f1f2f5; font-size: 13px; }
.cps-card .row .label { color: #6b7280; }
.cps-card .row b { color: #111827; }
.cps-card .actions { display: flex; gap: 6px; padding-top: 12px; }

/* chart */
.chart { width: 100%; height: 280px; }
.chart-legend {
  display: flex; gap: 16px; justify-content: center; padding: 8px;
  font-size: 12px; color: #6b7280;
}
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend .dot { width: 10px; height: 10px; border-radius: 50%; }

/* utils */
.muted { color: #9ca3af; }
.txt-right { text-align: right; }
.flex { display: flex; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.mt-2 { margin-top: 16px; }
.no-data { padding: 40px 20px; text-align: center; color: #9ca3af; font-size: 13px; }

/* svg menu icons via inline data */
.ic-dashboard { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"/></svg>'); }
.ic-sites { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"/></svg>'); }
.ic-cps { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/></svg>'); }
.ic-cat { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 5h18v2H3V5zm0 6h18v2H3v-2zm0 6h12v2H3v-2z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 5h18v2H3V5zm0 6h18v2H3v-2zm0 6h12v2H3v-2z"/></svg>'); }
.ic-books { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1zm0 13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5v11.5z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1zm0 13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5v11.5z"/></svg>'); }
.ic-stats { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 3v18h18v-2H5V3H3zm14 14V8h-2v9h2zM13 7v10h-2V7h2zm-4 5v5H7v-5h2z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 3v18h18v-2H5V3H3zm14 14V8h-2v9h2zM13 7v10h-2V7h2zm-4 5v5H7v-5h2z"/></svg>'); }

.ic-tpl  { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 3h8v8H3zm10 0h8v5h-8zm0 7h8v11h-8zM3 13h8v8H3z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 3h8v8H3zm10 0h8v5h-8zm0 7h8v11h-8zM3 13h8v8H3z"/></svg>'); }
.ic-sys  { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M19.14 12.94a7.949 7.949 0 0 0 .05-.94c0-.32-.02-.63-.07-.94l2.03-1.58a.5.5 0 0 0 .12-.62l-1.92-3.32a.5.5 0 0 0-.6-.22l-2.39.96a7.7 7.7 0 0 0-1.62-.94l-.36-2.54A.488.488 0 0 0 13.88 2h-3.84a.49.49 0 0 0-.49.42l-.36 2.54c-.59.24-1.13.56-1.62.94l-2.39-.96a.5.5 0 0 0-.6.22L2.66 8.48a.5.5 0 0 0 .12.62l2.03 1.58c-.05.31-.09.62-.09.94 0 .32.02.63.07.94L2.76 14.14a.5.5 0 0 0-.12.62l1.92 3.32c.14.24.43.34.69.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.26.42.5.42h3.84c.24 0 .45-.18.5-.42l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.27.1.56 0 .69-.22l1.92-3.32a.5.5 0 0 0-.12-.62l-2.05-1.2zM12 15.6A3.6 3.6 0 0 1 8.4 12 3.6 3.6 0 0 1 12 8.4a3.6 3.6 0 0 1 3.6 3.6 3.6 3.6 0 0 1-3.6 3.6z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M19.14 12.94a7.949 7.949 0 0 0 .05-.94c0-.32-.02-.63-.07-.94l2.03-1.58a.5.5 0 0 0 .12-.62l-1.92-3.32a.5.5 0 0 0-.6-.22l-2.39.96a7.7 7.7 0 0 0-1.62-.94l-.36-2.54A.488.488 0 0 0 13.88 2h-3.84a.49.49 0 0 0-.49.42l-.36 2.54c-.59.24-1.13.56-1.62.94l-2.39-.96a.5.5 0 0 0-.6.22L2.66 8.48a.5.5 0 0 0 .12.62l2.03 1.58c-.05.31-.09.62-.09.94 0 .32.02.63.07.94L2.76 14.14a.5.5 0 0 0-.12.62l1.92 3.32c.14.24.43.34.69.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.26.42.5.42h3.84c.24 0 .45-.18.5-.42l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.27.1.56 0 .69-.22l1.92-3.32a.5.5 0 0 0-.12-.62l-2.05-1.2zM12 15.6A3.6 3.6 0 0 1 8.4 12 3.6 3.6 0 0 1 12 8.4a3.6 3.6 0 0 1 3.6 3.6 3.6 3.6 0 0 1-3.6 3.6z"/></svg>'); }

/* —— 系统看板组件 —— */
.kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px 22px;
}
.kv {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px dashed #e5e7eb;
}
.kv-k { font-size: 12px; color: #6b7280; }
.kv-v { font-size: 14px; color: #111827; font-weight: 500; }
.legend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
  font-size: 12px;
  color: #374151;
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-item .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.bar {
  width: 100%;
  height: 10px;
  background: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: #22c55e;
  border-radius: 6px;
  transition: width .3s ease;
}

.ic-task { -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2A10 10 0 1 0 22 12 10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"/></svg>'); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2A10 10 0 1 0 22 12 10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"/></svg>'); }

/* ===== Phase 6: 广告位 ===== */
.ad-zone { display:flex; gap:10px; flex-wrap:wrap; margin:14px 0; }
.ad-zone-header, .ad-zone-footer { justify-content:center; }
.ad-card {
  position: relative;
  display: block;
  background: linear-gradient(135deg,#fff7f7,#fef3eb);
  border: 1px solid #fadcd0;
  border-radius: 8px;
  padding: 6px;
  text-decoration: none;
  color: inherit;
  flex: 1 1 auto;
  min-width: 200px;
  max-width: 100%;
  text-align: center;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.ad-card:hover { box-shadow: 0 6px 18px rgba(225,29,72,.12); transform: translateY(-1px); }
.ad-card img { display:block; width:100%; height:auto; border-radius:5px; }
.ad-card .ad-tag {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,.5); color:#fff;
  font-size: 10px; padding: 1px 6px; border-radius: 3px;
  pointer-events: none;
}
.ad-zone-sidebar .ad-card { min-width: 0; }
.ad-zone-in_content { margin: 16px 0 8px; }
.ad-placeholder { display:block; padding:30px 8px; color:#888; font-size:13px; }
