/* ====== reset ====== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.7; color: #1f2329; background: #f4f5f7; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: #2354d0; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ====== gate ====== */
.gate {
  position: fixed; inset: 0; z-index: 1000;
  background: linear-gradient(135deg, #1d2436 0%, #2a3756 100%);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.gate-card {
  background: #fff; border-radius: 12px; padding: 40px 36px; width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.gate-brand { font-size: 13px; color: #8a8f99; letter-spacing: 2px; margin-bottom: 12px; }
.gate-card h1 { font-size: 22px; margin-bottom: 12px; color: #1f2329; }
.gate-hint { font-size: 13px; color: #646a73; margin-bottom: 22px; line-height: 1.7; }
.gate-hint strong { color: #c93939; }
#gate-form { display: flex; gap: 8px; }
#gate-input {
  flex: 1; padding: 11px 14px; font-size: 15px; border: 1px solid #d9dde3; border-radius: 6px; outline: none;
}
#gate-input:focus { border-color: #2354d0; }
#gate-form button {
  padding: 11px 20px; background: #2354d0; color: #fff; border: 0; border-radius: 6px; font-size: 14px; cursor: pointer;
}
#gate-form button:hover { background: #1b46b8; }
.gate-error { color: #c93939; font-size: 13px; margin-top: 12px; }

/* ====== top banner ====== */
.top-banner {
  background: #1d2436; color: #fff; padding: 14px 0;
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding-left: 32px; padding-right: 32px;
}
.top-banner .brand { font-size: 14px; letter-spacing: 2px; opacity: 0.85; }
.top-banner .meta { font-size: 13px; display: flex; gap: 18px; align-items: center; }
.top-banner .meta .warn { color: #ff9d4e; font-weight: 500; }

/* ====== container ====== */
.container { max-width: 1080px; margin: 0 auto; padding: 32px 24px 80px; }
.page-title { font-size: 28px; font-weight: 600; margin-bottom: 10px; color: #1f2329; }
.page-intro { color: #646a73; margin-bottom: 36px; padding-bottom: 16px; border-bottom: 1px solid #e5e7eb; }

/* ====== section ====== */
.section { margin-bottom: 48px; background: #fff; border-radius: 10px; padding: 28px 32px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.section h2 { font-size: 22px; font-weight: 600; color: #1f2329; padding-bottom: 12px; border-bottom: 2px solid #2354d0; margin-bottom: 20px; }
.section h3 { font-size: 17px; font-weight: 600; margin-top: 22px; margin-bottom: 14px; color: #1f2329; }
.section p { margin-bottom: 12px; color: #2c2f36; }
.section ul { padding-left: 22px; margin-bottom: 12px; }
.section ul li { margin-bottom: 6px; }

.block { margin-bottom: 20px; }

/* ====== callout ====== */
.callout { padding: 12px 16px; border-left: 4px solid; border-radius: 4px; margin: 14px 0; font-size: 14px; line-height: 1.7; }
.callout-yellow { background: #fff8d6; border-color: #f0c419; }
.callout-red { background: #fde8e8; border-color: #e85b5b; }

/* ====== bft table ====== */
.bft-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.bft-table th, .bft-table td { border: 1px solid #e5e7eb; padding: 10px 14px; text-align: left; vertical-align: top; }
.bft-table th { background: #f4f5f7; font-weight: 600; }
.bft-table td:first-child { width: 110px; background: #fafbfc; }

/* ====== matrix table ====== */
.table-wrap { overflow-x: auto; }
.matrix-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.matrix-table th, .matrix-table td { border: 1px solid #e5e7eb; padding: 12px; text-align: left; vertical-align: top; }
.matrix-table thead th { background: #2354d0; color: #fff; font-weight: 600; }
.matrix-table .row-head { background: #f4f5f7; font-weight: 500; width: 160px; }
.tag-red { color: #c93939; font-size: 12px; }

/* ====== video grid ====== */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-top: 14px; }
.video-card { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; background: #fafbfc; display: flex; flex-direction: column; }
.video-card .video-no {
  background: #ff9d4e; color: #fff; padding: 6px 14px; font-size: 13px; font-weight: 600; letter-spacing: 1px;
}
.video-card video { width: 100%; background: #000; aspect-ratio: 9/16; max-height: 540px; object-fit: contain; }
.video-card .video-meta { padding: 14px 16px; }
.video-card .title { font-size: 14px; font-weight: 600; margin-bottom: 10px; line-height: 1.5; color: #1f2329; }
.video-card .stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 12px; color: #646a73; }
.video-card .stats li { padding: 2px 0; }
.video-card .stats strong { color: #2354d0; font-size: 13px; }

/* ====== external links ====== */
.ext-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ext-links a {
  padding: 8px 14px; border: 1px solid #2354d0; border-radius: 6px; font-size: 13px; color: #2354d0;
}
.ext-links a:hover { background: #2354d0; color: #fff; text-decoration: none; }

/* ====== footer ====== */
.footer { text-align: center; margin-top: 60px; padding: 24px; color: #8a8f99; font-size: 12px; }
.footer .warn { color: #c93939; margin-top: 6px; }

/* ====== mobile ====== */
@media (max-width: 720px) {
  .top-banner { padding: 12px 16px; flex-direction: column; gap: 6px; align-items: flex-start; }
  .top-banner .meta { font-size: 12px; gap: 10px; flex-wrap: wrap; }
  .container { padding: 20px 14px 60px; }
  .section { padding: 20px 18px; }
  .page-title { font-size: 22px; }
  .section h2 { font-size: 18px; }
  .video-grid { grid-template-columns: 1fr; }
  .video-card video { aspect-ratio: 9/16; max-height: 70vh; }
}
