:root {
  color-scheme: light;
  --bg: #eee7dc;
  --paper: #fffdf8;
  --panel: #fff8ed;
  --ink: #2a2b2f;
  --muted: #676d75;
  --soft: #92887d;
  --line: #d9c9b8;
  --line-soft: #eadfce;
  --head: #f1e5d4;
  --brand: #cf6336;
  --brand-deep: #a84a25;
  --blue: #2f6fa7;
  --green: #2a9a66;
  --shadow: 0 18px 54px rgba(66, 48, 30, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin-top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 104px;
  align-items: center;
  min-height: 64px;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-size: 19px; font-weight: 900; }
.brand img { width: 32px; height: 32px; }
.nav { justify-self: center; display: flex; align-items: center; gap: 22px; color: #384353; font-size: 14px; font-weight: 800; }
.header-action {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  height: 36px;
  border: 1px solid rgba(207, 99, 54, 0.34);
  border-radius: 6px;
  color: var(--brand-deep);
  background: #fff5eb;
  font-size: 14px;
  font-weight: 800;
}
.nav a:hover, .header-action:hover { color: var(--brand-deep); }

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(720px, 1fr);
  gap: 34px;
  align-items: center;
  padding: 34px 32px 44px;
  background:
    linear-gradient(rgba(140, 154, 174, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 154, 174, 0.16) 1px, transparent 1px),
    radial-gradient(circle at 12% 22%, rgba(207, 99, 54, 0.11), transparent 32%),
    radial-gradient(circle at 86% 12%, rgba(47, 111, 167, 0.11), transparent 34%),
    #f3ece2;
  background-size: 64px 64px, 64px 64px, auto, auto, auto;
}
.hero-copy {
  width: auto;
  max-width: 430px;
  margin: 0;
  display: block;
}
.eyebrow, .section-kicker { margin-bottom: 12px; color: var(--brand-deep); font-size: 14px; font-weight: 900; }
h1 { margin-bottom: 18px; color: #171d29; font-size: clamp(36px, 4vw, 52px); line-height: 1.08; font-weight: 950; }
.hero-copy p:not(.eyebrow) { margin: 0; color: #4f5967; font-size: 15px; line-height: 1.68; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.primary-btn,
.secondary-btn {
  min-width: 132px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 900;
}
.primary-btn { color: #fff; background: var(--brand); box-shadow: 0 12px 24px rgba(207, 99, 54, 0.22); }
.secondary-btn { border: 1px solid #d6c6b4; color: var(--blue); background: rgba(255, 255, 255, 0.78); }
.showcase-stack {
  width: 100%;
  max-width: 1040px;
  min-height: 570px;
  position: relative;
  display: block;
}
.showcase-stack::before {
  content: "";
  position: absolute;
  inset: 18px -10px 34px 38px;
  border: 1px solid rgba(205, 188, 169, 0.52);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.2);
  box-shadow: 0 22px 70px rgba(66, 48, 30, 0.1);
}

.app-frame {
  width: 100%;
  max-width: 1030px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #cdbca9;
  border-radius: 8px;
  background: #f8f1e8;
  box-shadow: var(--shadow);
}
.hero-app {
  display: none;
}
.app-titlebar {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid #d8c8b7;
  background: #fffdf9;
  font-size: 13px;
}
.app-brand, .app-title-actions { display: flex; align-items: center; gap: 12px; }
.app-brand img { width: 22px; height: 22px; }
.app-title-actions { color: #7d6a58; }
.app-title-actions b { color: #7b736c; font-size: 17px; font-weight: 500; }

.app-tabs {
  min-height: 31px;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #d9c9b8;
  background: #f8f1e8;
}
.app-tabs span {
  min-width: 104px;
  display: grid;
  place-items: center;
  border-right: 1px solid #dfd1c1;
  color: #57483d;
  font-size: 13px;
  font-weight: 800;
}
.app-tabs .active { color: var(--brand-deep); background: #fffaf4; border-top: 2px solid var(--brand); }
.app-tabs em { margin-left: auto; align-self: center; padding: 0 18px; color: #7b6c5e; font-size: 13px; font-style: normal; }

.ribbon {
  display: grid;
  grid-template-columns: repeat(15, minmax(48px, 1fr));
  grid-auto-rows: 74px;
  min-height: 74px;
  border-bottom: 1px solid #d7c7b5;
  background: #fffaf2;
}
.ribbon-item {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border-right: 1px solid #e5d8c8;
  color: #6d513e;
  font-size: 11px;
  font-weight: 800;
}
.ribbon-item span {
  max-width: 100%;
  padding: 0 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ribbon-item i {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 2px solid var(--brand);
  border-radius: 999px;
  color: var(--brand);
  font-style: normal;
  font-size: 13px;
}
.ribbon-item.active { color: var(--brand-deep); background: #fff3e8; }
.ribbon-item.active i { color: #fff; background: var(--brand); }

.work-tabs {
  min-height: 32px;
  display: flex;
  align-items: end;
  gap: 4px;
  padding: 5px 9px 0;
  border-bottom: 1px solid #d8c8b7;
  background: #f3eadf;
}
.work-tabs span {
  min-width: 100px;
  min-height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid #d9c9b8;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background: #f8efe5;
  color: #765d48;
  font-size: 13px;
  font-weight: 800;
}
.work-tabs .active { color: var(--brand-deep); background: #fffdf8; }

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px 222px;
  gap: 5px;
  padding: 5px;
  background: #f2eadf;
}
.panel {
  border: 1px solid #d8c8b7;
  background: #fffdf8;
  overflow: hidden;
}
.panel header {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 0 10px;
  border-bottom: 1px solid #eadfce;
  background: #fff8ec;
  overflow: hidden;
}
.panel header b { color: #5c3f2e; font-size: 14px; }
.panel header button, .state-buttons button, .member-actions button {
  height: 23px;
  border: 1px solid #d4c4b2;
  border-radius: 4px;
  background: #fffaf4;
  color: #6a594b;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}
.panel-actions {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
  color: #74675d;
  font-size: 12px;
}
.panel-actions input { accent-color: var(--brand); }
.select, .search {
  min-width: 82px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #e0d0bd;
  border-radius: 4px;
  background: #fffdf8;
}
.search { min-width: 92px; color: #a39990; }
.panel-actions small { display: none; color: #9c8e82; }

.left-work { display: grid; grid-template-rows: minmax(154px, 1fr) 5px 86px 116px; min-width: 0; gap: 5px; }
.bet-panel { min-height: 154px; }
.number-panel { min-height: 86px; }
.splitter { width: 42px; height: 3px; align-self: center; justify-self: center; background: #e09a82; border-radius: 999px; }
.table-head {
  display: grid;
  min-height: 26px;
  align-items: center;
  border-bottom: 1px solid #eadfce;
  background: var(--head);
  color: #3f3934;
  font-size: 12px;
  font-weight: 800;
}
.table-head span { min-width: 0; padding: 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-right: 1px solid #e2d4c4; }
.table-head span:last-child { border-right: 0; }
.bet-head { grid-template-columns: 28px 0.72fr 0.55fr 0.62fr 0.72fr 1.35fr 0.52fr 0.52fr 0.52fr; }
.number-head { grid-template-columns: 0.8fr 0.92fr 0.72fr repeat(5, 0.45fr) 0.55fr 0.62fr 0.62fr 0.68fr; }
.follow-head { grid-template-columns: 0.9fr 1fr 0.7fr 0.8fr; }
.audit-head { grid-template-columns: 28px 1fr 0.72fr 0.62fr 0.72fr; }
.member-head { grid-template-columns: 1fr 0.7fr 0.72fr 0.7fr; }
.empty-line { min-height: 92px; display: grid; place-items: center; color: #2f2f2f; font-size: 14px; }
.empty-line.small { min-height: 36px; }
.empty-number { min-height: 24px; display: grid; place-items: center; align-content: center; gap: 2px; color: #7d746c; }
.box-icon { width: 26px; height: 18px; border: 1px solid #e0dcd8; border-radius: 5px; background: #faf9f6; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.04); }
.empty-number em { font-style: normal; font-size: 13px; }

.control-panel {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  border: 1px solid #d8c8b7;
  background: #fffdf8;
  overflow: hidden;
}
.control-status {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 6px 9px;
  border-right: 1px solid #dfd0be;
}
.control-status p { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 11px; }
.control-status span { min-width: 74px; color: #2d2b29; font-weight: 800; }
.control-status b { color: var(--brand-deep); }
.control-status button, .manual-line button, .msg-line button {
  height: 22px;
  padding: 0 10px;
  border: 1px solid #bb5731;
  border-radius: 4px;
  color: #fff;
  background: var(--brand);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}
.control-main { display: grid; align-content: center; gap: 5px; padding: 6px 9px; min-width: 0; overflow: hidden; }
.manual-line, .msg-line, .delay-line {
  min-width: 0;
  height: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
  color: #584d45;
  font-size: 11px;
}
.manual-line span, .msg-line span, .delay-line span { color: #59483c; font-weight: 800; }
.manual-line input, .delay-line input, .manual-line select {
  height: 22px;
  border: 1px solid #e0d0bd;
  border-radius: 4px;
  background: #fffdf8;
  color: #554840;
  padding: 0 10px;
  font: inherit;
  font-size: 11px;
}
.manual-line input { width: 96px; }
.manual-line select { width: 114px; }
.mini-input { width: 48px !important; }
.manual-line em { max-width: 104px; overflow: hidden; color: var(--brand-deep); font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.msg-line button { min-width: 58px; }
.delay-line label { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.delay-line input[type="checkbox"] { width: auto; height: auto; accent-color: var(--brand); }
.delay-line input:not([type]) { width: 52px; }

.middle-work { display: grid; grid-template-rows: 132px 86px 1fr; gap: 5px; min-width: 0; }
.state-panel { background: #fffaf3; }
.state-row {
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 7px 0;
  padding: 0 8px;
  border: 1px solid #e6d7c6;
  background: #fffdf8;
  color: #4b4038;
  font-size: 12px;
}
.state-row strong { color: #111; }
.state-buttons { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; padding: 7px; }
.state-buttons button:first-child { color: #fff; border-color: var(--brand); background: var(--brand); }
.audit-panel header { justify-content: flex-start; }
.audit-panel header b { margin-right: auto; }
.audit-panel header button:disabled { opacity: 0.55; }

.right-work { min-width: 0; }
.member-panel { min-height: 382px; display: grid; grid-template-rows: auto auto auto auto 1fr auto; }
.member-panel header span { color: #927c68; font-size: 12px; }
.member-search {
  height: 26px;
  margin: 8px 12px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #ddcdbb;
  border-radius: 4px;
  color: #9b9188;
  background: #fffdf8;
  font-size: 12px;
}
.member-tabs { display: flex; gap: 22px; padding: 0 12px 7px; border-bottom: 1px solid #eadfce; font-size: 12px; font-weight: 800; }
.member-tabs .active { color: var(--brand-deep); border-bottom: 2px solid var(--brand); }
.empty-member { display: grid; place-items: center; color: #5d6f8b; font-size: 13px; }
.member-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 8px 12px; }

.statusbar {
  min-height: 26px;
  display: grid;
  grid-template-columns: 1.25fr 1.4fr 1fr 1fr 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
  border-top: 1px solid #d8c8b7;
  background: #fffdf8;
  color: #4c5662;
  font-size: 12px;
}
.statusbar strong { color: var(--brand); text-align: center; }
.statusbar span:last-child { color: var(--green); }

.hero-app .workspace { grid-template-columns: minmax(0, 1fr) 210px 200px; }
.hero-app .left-work { grid-template-rows: minmax(112px, 1fr) 5px 64px 92px; }
.hero-app .bet-panel { min-height: 112px; }
.hero-app .number-panel { min-height: 64px; }
.hero-app .empty-line { min-height: 50px; }
.hero-app .empty-line.small { min-height: 24px; }
.hero-app .empty-number { min-height: 12px; }
.hero-app .middle-work { grid-template-rows: 112px 70px 1fr; }
.hero-app .member-panel { min-height: 286px; }
.hero-app .control-panel { grid-template-columns: 174px minmax(0, 1fr); }
.hero-app .control-status p:nth-child(2),
.hero-app .control-status p:nth-child(3),
.hero-app .manual-line em,
.hero-app .delay-line label:last-child { display: none; }
.hero-app .control-main { gap: 3px; }
.hero-app .statusbar { min-height: 24px; }

.screen-carousel {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.carousel-viewport {
  width: 100%;
  height: calc(100% - 42px);
  overflow: hidden;
  border-radius: 14px;
}
.carousel-track {
  height: 100%;
  display: flex;
  transition: transform 520ms ease;
}
.promo-shot {
  width: 100%;
  flex: 0 0 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(216, 200, 183, 0.72);
  border-radius: 14px;
  background:
    linear-gradient(rgba(140, 154, 174, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 154, 174, 0.1) 1px, transparent 1px),
    rgba(255, 253, 248, 0.74);
  background-size: 42px 42px;
  box-shadow: 0 20px 50px rgba(66, 48, 30, 0.13);
  backdrop-filter: blur(18px);
  overflow: hidden;
}
.promo-shot figcaption {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.promo-shot b {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #fff4e7;
  color: var(--brand);
  font-size: 22px;
  font-weight: 950;
}
.promo-shot strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #3b4552;
  font-size: 24px;
  font-weight: 900;
}
.promo-shot figcaption span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #637082;
  font-size: 14px;
  font-weight: 700;
}
.shot-window {
  min-height: 0;
  height: 100%;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(216, 200, 183, 0.72);
  border-radius: 10px;
  background:
    linear-gradient(rgba(216, 200, 183, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 200, 183, 0.16) 1px, transparent 1px),
    rgba(255, 250, 244, 0.62);
  background-size: 36px 36px;
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.shot-ribbon,
.message-tabs,
.odds-toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}
.shot-ribbon span,
.message-tabs span,
.odds-toolbar span,
.odds-toolbar button,
.player-tabs span,
.keyword-list span,
.permission-tags span {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(216, 200, 183, 0.88);
  border-radius: 5px;
  color: #59483c;
  background: rgba(255, 253, 248, 0.76);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.shot-ribbon .active,
.message-tabs .active,
.player-tabs .active,
.odds-toolbar button {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}
.workbench-detail { grid-template-rows: auto minmax(0, 1fr); }
.workbench-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 176px 172px;
  grid-template-rows: minmax(138px, 1fr) 94px 102px;
  grid-template-areas:
    "bets status players"
    "draw status players"
    "control control players";
  gap: 8px;
}
.ui-panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 200, 183, 0.9);
  border-radius: 7px;
  background: rgba(255, 253, 248, 0.76);
}
.ui-panel header {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(234, 223, 206, 0.9);
  background: rgba(255, 248, 236, 0.84);
}
.ui-panel header b {
  overflow: hidden;
  color: #5c3f2e;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ui-panel header em {
  overflow: hidden;
  color: #8a796b;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.open-bets { grid-area: bets; }
.draw-table { grid-area: draw; }
.status-stack { grid-area: status; }
.player-list { grid-area: players; }
.game-control { grid-area: control; display: grid; grid-template-columns: 184px minmax(0, 1fr); }
.ui-table {
  display: grid;
  min-width: 0;
  color: #3f3934;
  font-size: 11px;
}
.ui-table span,
.ui-table i {
  min-width: 0;
  min-height: 24px;
  display: flex;
  align-items: center;
  padding: 0 7px;
  overflow: hidden;
  border-right: 1px solid rgba(226, 212, 196, 0.88);
  border-bottom: 1px solid rgba(234, 223, 206, 0.8);
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ui-table span {
  background: rgba(241, 229, 212, 0.92);
  font-weight: 900;
}
.ui-table i { background: rgba(255, 253, 248, 0.56); }
.bet-grid { grid-template-columns: 0.68fr 0.54fr 0.9fr 0.72fr 1.35fr 0.5fr 0.52fr 0.45fr; }
.number-grid { grid-template-columns: 0.72fr 0.78fr 0.62fr repeat(5, 0.36fr) 0.42fr 0.52fr 0.52fr; }
.player-grid { grid-template-columns: 1fr 0.72fr 0.72fr; }
.log-grid { grid-template-columns: 0.72fr 1.4fr 0.52fr; }
.status-stack p,
.template-list p,
.test-panel p,
.data-cards p {
  min-height: 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 6px 8px 0;
  padding: 0 8px;
  border: 1px solid rgba(230, 215, 198, 0.82);
  border-radius: 4px;
  background: rgba(255, 253, 248, 0.66);
  color: #4b4038;
  font-size: 11px;
}
.status-stack strong,
.test-panel b {
  color: #111;
  font-weight: 950;
}
.player-tabs {
  display: flex;
  gap: 6px;
  padding: 7px 8px;
}
.control-summary {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 8px;
  border-right: 1px solid rgba(223, 208, 190, 0.85);
}
.control-summary p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  color: #59483c;
  font-size: 11px;
  font-weight: 900;
}
.control-summary b { color: var(--brand-deep); }
.control-actions {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 8px;
}
.control-actions label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #59483c;
  font-size: 11px;
  font-weight: 900;
}
.control-actions input,
.control-actions select {
  width: 104px;
  height: 24px;
  border: 1px solid #e0d0bd;
  border-radius: 4px;
  background: rgba(255, 253, 248, 0.8);
  color: #554840;
  font: inherit;
  font-size: 11px;
}
.control-actions div {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}
.control-actions button {
  min-width: 58px;
  height: 24px;
  border: 1px solid #bb5731;
  border-radius: 4px;
  color: #fff;
  background: var(--brand);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}
.settings-detail,
.messages-detail,
.rules-detail,
.security-detail { align-content: stretch; }
.settings-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}
.settings-grid .ui-panel:first-child { grid-row: 1 / 3; }
.form-lines,
.switch-lines,
.keyword-list,
.permission-tags,
.data-cards {
  display: grid;
  gap: 8px;
  padding: 10px;
}
.form-lines p {
  min-height: 36px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid rgba(230, 215, 198, 0.82);
  border-radius: 5px;
  background: rgba(255, 253, 248, 0.58);
  color: #59483c;
  font-size: 12px;
  font-weight: 900;
}
.form-lines i {
  overflow: hidden;
  color: #627083;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.keyword-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.switch-lines p {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  margin: 0;
  color: #536173;
  font-size: 12px;
  font-weight: 800;
}
.switch-lines b {
  width: 15px;
  height: 15px;
  border: 1px solid var(--brand);
  border-radius: 4px;
  background: var(--brand);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.72);
}
.messages-detail {
  grid-template-rows: auto minmax(0, 1fr);
}
.message-tabs span { flex: 1 1 0; }
.message-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(230px, 0.8fr);
  grid-template-rows: minmax(0, 1fr) 96px;
  gap: 10px;
}
.message-editor { grid-row: 1 / 3; }
.message-editor pre {
  min-height: 0;
  height: calc(100% - 28px);
  margin: 0;
  padding: 14px;
  color: #3f4958;
  font: 13px/1.78 "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
  white-space: pre-wrap;
}
.template-list b {
  overflow: hidden;
  max-width: 150px;
  color: #526071;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.variable-list div,
.permission-tags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}
.variable-list span {
  min-height: 26px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: var(--brand-deep);
  background: rgba(255, 244, 231, 0.78);
  font-size: 12px;
  font-weight: 900;
}
.rules-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.75fr);
  grid-template-rows: minmax(0, 1fr) 138px;
  gap: 10px;
}
.odds-panel { grid-row: 1 / 3; }
.odds-grid { grid-template-columns: 0.95fr 0.5fr 0.45fr 0.55fr 0.82fr 0.9fr 0.45fr; }
.test-panel p { min-height: 36px; font-size: 12px; }
.extension-panel .switch-lines { gap: 7px; }
.security-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 150px minmax(0, 1fr);
  gap: 10px;
}
.log-panel { grid-column: 1 / 3; }
.permission-tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.data-cards p {
  min-height: 35px;
  align-items: center;
}
.data-cards b {
  color: #5c3f2e;
  white-space: nowrap;
}
.data-cards span {
  overflow: hidden;
  color: #617082;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.shot-tabs,
.shot-toolbar,
.shot-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.shot-tabs span,
.shot-toolbar span,
.shot-toolbar button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #d8c8b7;
  border-radius: 4px;
  background: #fffdf8;
  color: #59483c;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}
.shot-tabs .active,
.shot-toolbar button {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}
.shot-workbench-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  grid-template-rows: minmax(160px, 1fr) 82px;
  gap: 10px;
}
.shot-panel {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dfcfbd;
  border-radius: 5px;
  background: rgba(255, 253, 248, 0.92);
}
.shot-panel em {
  color: #5c3f2e;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}
.shot-panel i,
.shot-panel small,
.shot-form-row i,
.shot-textarea i,
.shot-table i,
.shot-actions i {
  display: block;
  height: 18px;
  border-radius: 3px;
  background: #eadfce;
}
.shot-main i:first-of-type { width: 92%; }
.shot-main i:nth-of-type(2) { width: 72%; }
.shot-main i:nth-of-type(3) { width: 58%; }
.shot-wide { grid-column: 1 / -1; }
.shot-form-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #59483c;
  font-size: 14px;
  font-weight: 900;
}
.shot-switches,
.shot-permissions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.shot-switches i,
.shot-permissions span {
  height: 38px;
  border: 1px solid #dfcfbd;
  border-radius: 4px;
  background: #fffdf8;
}
.shot-switches i:nth-child(1),
.shot-switches i:nth-child(2),
.shot-permissions span:nth-child(1),
.shot-permissions span:nth-child(2),
.shot-permissions span:nth-child(4) {
  background: #fff4e7;
  border-color: #d9ad96;
}
.shot-textarea {
  display: grid;
  gap: 12px;
  min-height: 178px;
  padding: 14px;
  border: 1px solid #dfcfbd;
  border-radius: 5px;
  background: #fffdf8;
}
.shot-textarea i:first-child { width: 86%; }
.shot-textarea i:nth-child(2) { width: 74%; }
.shot-textarea i:nth-child(3) { width: 62%; }
.shot-table {
  display: grid;
  gap: 12px;
  min-height: 170px;
  padding: 14px;
  border: 1px solid #dfcfbd;
  border-radius: 5px;
  background: #fffdf8;
}
.shot-table i:first-child { width: 96%; }
.shot-table i:nth-child(2) { width: 82%; }
.shot-table i:nth-child(3) { width: 68%; }
.shot-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.shot-actions i {
  height: 36px;
  border: 1px solid #d9ad96;
  background: #fff4e7;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 38px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 200, 183, 0.8);
  border-radius: 999px;
  color: var(--brand-deep);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 12px 24px rgba(66, 48, 30, 0.12);
  font: inherit;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}
.carousel-prev { left: -18px; }
.carousel-next { right: -18px; }
.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transform: translateX(-50%);
}
.carousel-dots button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #d8c8b7;
  border-radius: 999px;
  color: #7b6c5e;
  background: rgba(255, 253, 248, 0.9);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.carousel-dots .active {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.section { padding: 92px 54px; }
.section-heading { max-width: 920px; margin-bottom: 34px; }
.section-heading.compact { margin-bottom: 28px; }
h2 { max-width: 860px; margin-bottom: 18px; color: #1d2430; font-size: clamp(32px, 4vw, 46px); line-height: 1.18; font-weight: 930; }
h3 { margin-bottom: 12px; font-size: 21px; font-weight: 900; }
.section-heading p, .value-section p, .config-section p, .download-section p { color: var(--muted); font-size: 17px; line-height: 1.82; }

.value-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(460px, 1.18fr);
  gap: 46px;
  align-items: center;
  background:
    linear-gradient(rgba(140, 154, 174, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 154, 174, 0.11) 1px, transparent 1px),
    #fffdf8;
  background-size: 64px 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.value-copy p:last-child {
  max-width: 640px;
  margin: 0;
}
.value-board {
  display: grid;
  gap: 12px;
}
.value-board article {
  min-height: 102px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 18px 22px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 237, 0.9);
  box-shadow: 0 16px 34px rgba(74, 55, 36, 0.07);
}
.value-board b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--brand);
  font-size: 15px;
}
.value-board strong {
  align-self: end;
  color: #1d2430;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 930;
}
.value-board span {
  grid-column: 2;
  margin-top: -8px;
  color: #617082;
  font-size: 15px;
  line-height: 1.58;
}

.config-section {
  background: #f3ece2;
  border-bottom: 1px solid var(--line);
}
.config-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
  gap: 48px;
  align-items: center;
}
.config-copy p:last-child {
  max-width: 620px;
  margin: 0;
}
.config-board {
  min-height: 360px;
  padding: 18px;
  border: 1px solid #d5c5b3;
  border-radius: 10px;
  background:
    linear-gradient(rgba(216, 200, 183, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 200, 183, 0.18) 1px, transparent 1px),
    #fffdf8;
  background-size: 36px 36px;
  box-shadow: var(--shadow);
}
.config-tab-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}
.config-tab-row span {
  min-height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #d9c9b8;
  border-radius: 5px;
  color: #59483c;
  background: #fffaf4;
  font-size: 13px;
  font-weight: 900;
}
.config-tab-row .active {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}
.config-lines {
  display: grid;
  gap: 12px;
}
.config-lines p {
  min-height: 52px;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #e1d3c2;
  border-radius: 6px;
  background: rgba(255, 250, 244, 0.88);
}
.config-lines b {
  color: #5c3f2e;
  font-size: 14px;
}
.config-lines i {
  height: 16px;
  border-radius: 999px;
  background: #e9ddce;
}
.config-lines strong {
  width: fit-content;
  min-width: 84px;
  min-height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--brand-deep);
  background: #fff4e7;
  font-size: 13px;
}

.interface-section {
  background:
    linear-gradient(rgba(140, 154, 174, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 154, 174, 0.12) 1px, transparent 1px),
    #fffdf8;
  background-size: 64px 64px;
  border-top: 1px solid var(--line);
}
.tour-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.tour-card {
  min-height: 370px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8ed;
  box-shadow: 0 14px 34px rgba(74, 55, 36, 0.07);
}
.tour-card-wide {
  grid-column: span 2;
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: stretch;
}
.tour-copy span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 34px;
  margin-bottom: 24px;
  border-radius: 6px;
  color: #fff;
  background: var(--brand);
  font-size: 13px;
  font-weight: 900;
}
.tour-copy h3 {
  margin-bottom: 10px;
  color: #1d2430;
}
.tour-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}
.mini-window {
  min-height: 230px;
  overflow: hidden;
  border: 1px solid #d5c5b3;
  border-radius: 7px;
  background: #fffdf8;
}
.mini-titlebar {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid #eadfce;
  background: #fff8ec;
}
.mini-titlebar strong {
  color: #5c3f2e;
  font-size: 14px;
}
.mini-titlebar em {
  color: var(--brand);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.mini-tabs,
.template-tabs,
.rules-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #eadfce;
  background: #f8f1e8;
}
.mini-tabs span,
.template-tabs span,
.rules-toolbar span,
.switch-grid span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #d9c9b8;
  border-radius: 4px;
  background: #fffdf8;
  color: #59483c;
  font-size: 12px;
  font-weight: 800;
}
.mini-tabs .active,
.template-tabs .active,
.switch-grid .on {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}
.mini-workbench {
  min-height: 220px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  grid-template-rows: minmax(126px, 1fr) 78px;
  gap: 8px;
  padding: 8px;
  background: #f2eadf;
}
.mini-panel {
  border: 1px solid #dccbbb;
  background: #fffdf8;
}
.mini-panel b {
  min-height: 28px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid #eadfce;
  background: #fff8ec;
  color: #5c3f2e;
  font-size: 13px;
}
.mini-panel i {
  min-height: 74px;
  display: grid;
  place-items: center;
  color: #333;
  font-style: normal;
}
.mini-panel.big { grid-row: span 1; }
.mini-panel.side {
  display: grid;
  align-content: start;
}
.mini-panel.side p {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 5px 8px 0;
  padding: 0 8px;
  border: 1px solid #e6d7c6;
  color: #4b4038;
  font-size: 12px;
}
.mini-panel.bottom { grid-column: 1 / -1; }
.mini-table,
.mini-number-row,
.rules-table {
  display: grid;
  min-height: 28px;
  align-items: center;
  background: var(--head);
  color: #3f3934;
  font-size: 12px;
  font-weight: 800;
}
.mini-table { grid-template-columns: 1fr 0.8fr 1.4fr 0.7fr; }
.mini-number-row { grid-template-columns: repeat(7, 1fr); }
.mini-table span,
.mini-number-row span,
.rules-table span {
  min-width: 0;
  padding: 0 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-right: 1px solid #e2d4c4;
}
.config-mini,
.template-mini,
.rules-mini,
.security-mini {
  display: grid;
  align-content: start;
}
.config-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 9px 12px 0;
  color: #59483c;
  font-size: 13px;
  font-weight: 800;
}
.config-row input {
  width: 100%;
  height: 30px;
  border: 1px solid #dfcfbd;
  border-radius: 4px;
  background: #fffaf4;
  color: #4c5662;
  font: inherit;
  padding: 0 10px;
}
.switch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 12px;
}
.template-mini textarea {
  width: calc(100% - 24px);
  min-height: 124px;
  margin: 12px;
  resize: none;
  border: 1px solid #dfcfbd;
  border-radius: 5px;
  background: #fffaf4;
  color: #4c5662;
  font: inherit;
  font-size: 13px;
  line-height: 1.7;
  padding: 10px;
}
.rules-toolbar button,
.data-actions button {
  height: 26px;
  border: 1px solid var(--brand);
  border-radius: 4px;
  color: #fff;
  background: var(--brand);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}
.rules-table {
  grid-template-columns: 0.9fr 1fr 0.8fr 1fr 0.7fr;
  margin: 10px 12px 0;
  border: 1px solid #dfcfbd;
}
.rules-table.line {
  margin-top: 0;
  background: #fffdf8;
  border-top: 0;
  font-weight: 700;
}
.permission-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 12px;
}
.permission-list span {
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #dfcfbd;
  border-radius: 4px;
  background: #fffaf4;
  color: #4c5662;
  font-size: 13px;
  font-weight: 800;
}
.permission-list .checked::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-right: 7px;
  border-radius: 3px;
  background: var(--brand);
}
.data-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 14px;
}

.process-section { background: #fffdf8; }
.process-list, .feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.process-list article, .feature-grid article, .service-list article, .download-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}
.process-list article { min-height: 238px; padding: 24px; box-shadow: 0 14px 30px rgba(74, 55, 36, 0.07); }
.process-list b {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 42px;
  border-radius: 6px;
  color: #fff;
  background: var(--brand);
}
.feature-section { background: #f3ece2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid article { min-height: 178px; padding: 24px; }
.feature-grid article:nth-child(2n) { background: #fbf8f1; }

.service-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: 42px;
  background: #fffdf8;
  border-bottom: 1px solid var(--line);
}
.service-list { display: grid; gap: 14px; }
.service-list article { min-height: 124px; padding: 22px; }
.service-list span { display: block; margin-bottom: 8px; color: var(--brand-deep); font-size: 13px; font-weight: 900; }
.service-list strong { display: block; margin-bottom: 8px; color: var(--blue); font-size: 21px; }

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
  gap: 58px;
  align-items: center;
  padding: 90px 54px;
  background: #f8f1e8;
}
.download-box { display: grid; gap: 14px; padding: 28px; box-shadow: var(--shadow); }
.download-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}
.download-box img { width: 42px; height: 42px; }
.download-box strong { font-size: 24px; }
.download-box span { color: var(--muted); }
.download-box .primary-btn {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  height: 42px;
  border-radius: 6px;
  color: #fff;
  background: var(--brand);
  font-size: 14px;
  font-weight: 900;
}
.site-footer {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 54px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #eee7dc;
  font-size: 14px;
}

@media (max-width: 1280px) {
  .site-header { padding: 0 28px; }
  .hero { grid-template-columns: minmax(320px, 390px) minmax(650px, 1fr); gap: 24px; padding-inline: 24px; }
  .workspace { grid-template-columns: minmax(0, 1fr) 218px 210px; }
  .member-panel { min-height: 382px; }
  .statusbar { grid-template-columns: 1.15fr 1.25fr 0.9fr 0.9fr 0.9fr; gap: 8px; }
  .showcase-stack { min-height: 560px; }
  .hero-app .workspace { grid-template-columns: minmax(0, 1fr) 190px 178px; }
  .screen-carousel { inset: 0; }
}
@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; padding: 0 20px; }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .showcase-stack { min-height: 560px; }
  .app-frame { max-width: 100%; }
  .screen-carousel {
    position: relative;
    inset: auto;
    height: 520px;
  }
  .carousel-viewport { height: calc(100% - 42px); }
  .workbench-layout,
  .settings-grid,
  .message-layout,
  .rules-layout,
  .security-layout {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    overflow: auto;
  }
  .open-bets,
  .draw-table,
  .status-stack,
  .player-list,
  .game-control,
  .message-editor,
  .odds-panel,
  .log-panel {
    grid-area: auto;
    grid-column: auto;
    grid-row: auto;
  }
  .game-control { grid-template-columns: 1fr; }
  .workspace, .control-panel, .value-section, .config-showcase, .download-section { grid-template-columns: 1fr; }
  .middle-work { grid-template-rows: auto; }
  .member-panel { min-height: 380px; }
  .statusbar { grid-template-columns: 1fr; padding: 8px; gap: 4px; }
  .value-board article { grid-template-columns: 1fr; }
  .config-board { min-height: auto; }
}
@media (max-width: 620px) {
  .hero { padding: 28px 12px 40px; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .app-tabs em, .panel-actions small, .app-title-actions span { display: none; }
  .ribbon { grid-template-columns: repeat(3, minmax(72px, 1fr)); }
  .left-work { grid-template-rows: auto; }
  .control-main { overflow-x: auto; }
  .screen-carousel { height: 520px; }
  .mini-workbench, .permission-list, .data-actions { grid-template-columns: 1fr; }
  .mini-panel.bottom { grid-column: auto; }
  .value-board article, .config-lines p { grid-template-columns: 1fr; }
  .config-tab-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section, .download-section { padding: 68px 18px; }
  .site-footer { min-height: auto; align-items: flex-start; flex-direction: column; padding: 22px 16px; }
}
