:root {
  --bg: #f5f8fa;
  --panel: #ffffff;
  --text: #1c2430;
  --muted: #667085;
  --line: #d9e1ea;
  --primary: #126782;
  --primary-dark: #0b5368;
  --accent: #d06b47;
  --soft: #eef7f9;
  --success: #15803d;
  --danger: #b42318;
  --shadow: 0 16px 44px rgba(28, 36, 48, 0.08);
  --shadow-small: 0 8px 24px rgba(28, 36, 48, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(18, 103, 130, 0.12), transparent 280px),
    linear-gradient(180deg, #eef7f9 0, rgba(238, 247, 249, 0) 320px),
    var(--bg);
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  min-width: 0;
  color: #102a34;
}

.brand::before {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(208, 107, 71, 0.14);
  content: "";
}

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav a,
.link-button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  padding: 6px 0;
}

.nav a:hover,
.link-button:hover {
  color: var(--primary-dark);
}

.user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}

.user-menu-button:hover {
  background: #f3f7f9;
  color: var(--primary-dark);
  box-shadow: none;
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 160px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-small);
}

.user-menu-panel[hidden] {
  display: none;
}

.user-menu-panel button {
  justify-content: flex-start;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  background: transparent;
  color: var(--text);
  border: 0;
  box-shadow: none;
  text-align: left;
}

.user-menu-panel button:hover {
  background: #f3f7f9;
  color: var(--primary-dark);
  box-shadow: none;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 18px 0 6px;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  color: #102a34;
}

.hero-copy p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.video-frame {
  overflow: hidden;
  background: #111827;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  position: relative;
}

.video-frame::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel {
  min-width: 0;
  margin-top: 28px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel.compact {
  max-width: 560px;
  margin: 56px auto;
}

.panel h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
}

.section-head p {
  max-width: 360px;
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.section-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.section-actions p {
  margin: 0;
  text-align: right;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-grid.single {
  grid-template-columns: 1fr;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: #344054;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid #c9d5e2;
  border-radius: 6px;
  color: var(--text);
  background: #fff;
  font: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

select {
  appearance: auto;
}

input[type="file"] {
  min-height: auto;
  padding: 10px;
  line-height: 1.4;
}

textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(23, 107, 135, 0.18);
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(18, 103, 130, 0.08);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(18, 103, 130, 0.16);
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(18, 103, 130, 0.16);
}

button:hover {
  background: var(--primary-dark);
  box-shadow: 0 12px 26px rgba(18, 103, 130, 0.2);
}

button:active,
.button-link:active {
  transform: translateY(1px);
}

button.secondary,
.button-link.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
  box-shadow: none;
}

button.secondary:hover,
.button-link.secondary:hover {
  background: #f2f4f7;
}

.icon-button {
  width: 40px;
  min-height: 40px;
  padding: 0;
  border-color: var(--line);
  background: #fff;
  color: var(--text);
  box-shadow: none;
  font-size: 24px;
  line-height: 1;
}

.icon-button:hover {
  background: #f2f4f7;
  color: var(--primary-dark);
  box-shadow: none;
}

.status {
  min-height: 24px;
  color: var(--muted);
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.status.success {
  color: var(--success);
}

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

.admin-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  min-width: 0;
}

.sidebar {
  min-width: 0;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  align-self: start;
  box-shadow: var(--shadow-small);
}

.tab-button {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  text-align: left;
  background: #fff;
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}

.tab-button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

.stat-card {
  display: grid;
  gap: 8px;
  min-height: 88px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(238, 247, 249, 0.85)),
    var(--soft);
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stat-card strong {
  color: #102a34;
  font-size: 26px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.admin-section {
  display: none;
  margin-top: 0;
  min-width: 0;
}

.admin-section.active {
  display: block;
}

.query-panel {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.upload-panel {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.settings-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fafb;
}

.settings-menu-button {
  min-height: 38px;
  padding: 0 13px;
  border-color: var(--line);
  background: #fff;
  color: var(--text);
  box-shadow: none;
  font-size: 13px;
}

.settings-menu-button:hover,
.settings-menu-button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}

.settings-panel {
  display: none;
}

.settings-panel.active {
  display: block;
}

.settings-panel > .upload-panel:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

#ratingOperatorField[hidden] {
  display: none;
}

.submission-filter-grid {
  grid-template-columns: minmax(150px, 0.75fr) minmax(210px, 1.25fr);
  align-items: end;
}

.submission-filter-grid.rating-filter-active {
  grid-template-columns: minmax(150px, 1fr) 110px minmax(210px, 1fr);
}

.submission-filter-grid #ratingOperatorField {
  width: 86px;
}

.submission-filter-grid #ratingOperator {
  min-width: 0;
  padding-right: 4px;
  padding-left: 8px;
}

.submission-filter-grid .submission-keyword-field {
  min-width: 0;
}

.submission-date-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-column: 1 / -1;
  gap: 18px;
}

.submission-filter-grid > .actions {
  grid-column: 1 / -1;
}

@media (max-width: 820px) {
  .submission-filter-grid {
    grid-template-columns: minmax(120px, 1fr) minmax(160px, 1.4fr);
  }

  .submission-filter-grid.rating-filter-active {
    grid-template-columns: minmax(120px, 1fr) 86px minmax(160px, 1.4fr);
  }

  .submission-filter-grid > .actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .submission-filter-grid {
    grid-template-columns: minmax(105px, 1fr) minmax(130px, 1.2fr);
    gap: 8px;
  }

  .submission-filter-grid.rating-filter-active {
    grid-template-columns: minmax(105px, 1fr) 76px minmax(130px, 1.2fr);
  }

  .submission-filter-grid #ratingOperatorField {
    width: 76px;
  }

  .submission-filter-grid label {
    font-size: 12px;
  }

  .submission-date-row {
    gap: 8px;
  }
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
  background: #fff;
}

.select-col {
  width: 48px;
  min-width: 48px;
  text-align: center;
}

.row-check {
  width: 18px;
  min-height: 18px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #344054;
  background: #f3f7f9;
  font-size: 14px;
}

td {
  color: #344054;
  line-height: 1.5;
}

.empty {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f8e8e3;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.empty {
  background: #fbfcfd;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
}

.pagination-info,
.pagination-page {
  font-size: 14px;
  font-weight: 700;
}

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

.pagination-actions button {
  min-height: 38px;
  padding: 0 14px;
  box-shadow: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 42, 52, 0.42);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  width: min(480px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(28, 36, 48, 0.22);
}

.modal-panel .section-head {
  align-items: center;
  margin-bottom: 18px;
}

.success-modal {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.success-modal h2 {
  margin: 0;
}

.success-modal p {
  margin: 0;
  color: var(--muted);
}

.success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(21, 128, 61, 0.12);
  color: var(--success);
  font-size: 32px;
  font-weight: 800;
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
  }

  .hero,
  .admin-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .brand {
    width: 100%;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav a,
  .link-button {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
  }

  .user-menu {
    flex: 1 1 180px;
    justify-content: flex-end;
  }

  .user-menu-button {
    max-width: 100%;
  }

  .page {
    width: min(100% - 24px, 1120px);
    margin: 20px auto;
  }

  .hero {
    gap: 18px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .section-head {
    flex-direction: column;
    gap: 6px;
  }

  .section-head p {
    max-width: none;
  }

  .section-actions {
    justify-items: stretch;
    width: 100%;
  }

  .section-actions p {
    text-align: left;
  }

  .panel {
    padding: 20px;
  }

  .panel.compact {
    margin: 28px auto;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  button,
  .button-link {
    width: 100%;
  }

  .icon-button {
    width: 40px;
  }

  .sidebar {
    display: grid;
    gap: 8px;
    padding: 12px;
  }

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

  .tab-button {
    margin: 0;
    text-align: center;
  }

  table {
    min-width: 700px;
  }
}

@media (max-width: 520px) {
  .page {
    width: min(100% - 16px, 1120px);
    margin: 12px auto;
  }

  .topbar {
    padding: 12px;
  }

  .panel {
    margin-top: 16px;
    padding: 16px;
  }

  .panel h2 {
    font-size: 21px;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .video-frame {
    border-radius: 6px;
  }

  input,
  textarea {
    font-size: 16px;
  }

  textarea {
    min-height: 130px;
  }

  .admin-layout {
    gap: 14px;
  }

  .sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: sticky;
    top: 0;
    z-index: 5;
    margin: 0 -8px;
    padding: 8px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: 0 10px 28px rgba(28, 36, 48, 0.08);
  }

  .sidebar .status {
    grid-column: 1 / -1;
    margin: 0;
    min-height: 18px;
    text-align: center;
    font-size: 13px;
  }

  .tab-button {
    min-height: 40px;
    padding: 0 8px;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: none;
  }

  .admin-section.panel {
    margin-top: 0;
  }

  .admin-section h2 {
    margin-bottom: 14px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
  }

  .stat-card {
    min-height: 74px;
    padding: 12px 10px;
  }

  .stat-label {
    font-size: 12px;
  }

  .stat-card strong {
    font-size: 18px;
  }

  .query-panel,
  .upload-panel {
    gap: 12px;
  }

  .query-panel {
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .upload-panel {
    margin-top: 16px;
    padding-top: 16px;
  }

  .table-wrap::before {
    display: block;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    content: "\8868\683c\53ef\5de6\53f3\6ed1\52a8";
    font-size: 13px;
  }

  th,
  td {
    padding: 10px 12px;
  }

  .pagination-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .pagination-actions {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    width: 100%;
  }

  .modal-backdrop {
    align-items: end;
    padding: 12px;
  }

  .modal-panel {
    max-height: calc(100vh - 24px);
    padding: 18px;
  }
}

/* Public H5 pages: always render as a mobile canvas, including on desktop. */
body.mobile-site {
  --mobile-ink: #1b2430;
  --mobile-muted: #7c8491;
  --mobile-accent: #e56d4a;
  --mobile-accent-dark: #cf5635;
  min-height: 100vh;
  background: #202228;
  color: var(--mobile-ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.mobile-site .mobile-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #f6f3ee;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.32);
  position: relative;
}

.mobile-site .mobile-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: max(10px, env(safe-area-inset-top)) 18px 8px;
  color: #fff;
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 15px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-family: Georgia, serif;
  font-size: 15px;
}

.mobile-title {
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-link,
.header-back,
.header-home {
  color: #fff;
  text-decoration: none;
}

.header-link {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(20, 22, 27, 0.22);
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.header-back {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(20, 22, 27, 0.22);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.header-home {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #edf4fd;
  color: #377dce;
}

.header-home svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.mobile-site .mobile-content {
  min-height: calc(100vh - 56px);
}

.mobile-hero {
  height: 400px;
  background: #25282e;
}

.mobile-site .video-frame {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: auto;
}

.mobile-site .video-frame::after {
  border: 0;
}

.mobile-site .video-frame video {
  object-fit: cover;
}

.video-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 16, 20, 0.62) 0%, rgba(14, 16, 20, 0.05) 34%, rgba(14, 16, 20, 0.78) 100%),
    radial-gradient(circle at 70% 25%, rgba(229, 109, 74, 0.18), transparent 38%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 58px;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-kicker {
  display: block;
  margin-bottom: 10px;
  color: #f2a187;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.hero-overlay h1,
.message-banner h1 {
  margin: 0;
  font-family: Georgia, "Microsoft YaHei", serif;
  font-size: 35px;
  line-height: 1.18;
  letter-spacing: 0.02em;
}

.hero-overlay p {
  max-width: 330px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.7;
}

.mobile-card {
  position: relative;
  z-index: 5;
  margin: -34px 14px 22px;
  padding: 24px 20px 22px;
  border: 1px solid rgba(45, 39, 34, 0.06);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(63, 52, 44, 0.13);
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 13px;
}

.step-number {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #faeee9;
  color: var(--mobile-accent);
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 700;
}

.step-label {
  display: block;
  margin-bottom: 3px;
  color: var(--mobile-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.step-heading h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

.card-intro {
  margin: 16px 0 20px;
  color: var(--mobile-muted);
  font-size: 13px;
  line-height: 1.7;
}

.mobile-form {
  display: grid;
  gap: 16px;
}

.mobile-site .field {
  gap: 7px;
}

.mobile-site label {
  color: #343942;
  font-size: 13px;
}

.mobile-site input,
.mobile-site textarea {
  min-height: 52px;
  padding: 14px 14px;
  border: 1px solid #e5e1dc;
  border-radius: 12px;
  background: #fbfaf8;
  font-size: 16px;
  box-shadow: none;
}

.mobile-site input::placeholder,
.mobile-site textarea::placeholder {
  color: #b0aaa3;
}

.mobile-site input:focus,
.mobile-site textarea:focus {
  border-color: #efaa94;
  outline: 3px solid rgba(229, 109, 74, 0.11);
  box-shadow: none;
}

.icon-field {
  position: relative;
}

.icon-field input {
  padding-left: 45px;
}

.field-icon {
  position: absolute;
  left: 14px;
  bottom: 15px;
  width: 21px;
  height: 21px;
  color: #918b84;
}

.field-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.mobile-site .actions {
  display: grid;
  gap: 10px;
  margin-top: 3px;
}

.mobile-primary,
.mobile-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.mobile-primary {
  justify-content: space-between;
  border: 0;
  background: linear-gradient(135deg, #eb7a57, var(--mobile-accent-dark));
  box-shadow: 0 12px 24px rgba(207, 86, 53, 0.24);
}

.mobile-primary:hover {
  background: linear-gradient(135deg, #e36e4c, #c74e30);
  box-shadow: 0 14px 28px rgba(207, 86, 53, 0.28);
}

.mobile-secondary {
  border: 1px solid #e5e1dc;
  background: #fff;
  color: #66615c;
}

.mobile-site .status {
  min-height: 0;
  font-size: 13px;
  text-align: center;
}

.mobile-site .status:empty {
  display: none;
}

.trust-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  color: #9a948c;
  font-size: 11px;
}

.trust-row b {
  color: #5b9a77;
}

.mobile-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
  color: #a19b94;
  font-size: 10px;
}

.mobile-footer i {
  width: 24px;
  height: 1px;
  background: #d9d4ce;
}

.mobile-footer span:first-child,
.mobile-footer .done {
  color: var(--mobile-accent);
}

.mobile-footer i.done {
  background: var(--mobile-accent);
}

.message-site .mobile-shell {
  background:
    radial-gradient(circle at 80% 8%, rgba(120, 171, 226, 0.2), transparent 26%),
    #eef5fc;
}

.message-site .mobile-header {
  position: relative;
  min-height: 60px;
  background: #fff;
  box-shadow: 0 2px 15px rgba(42, 80, 125, 0.08);
}

.message-site .header-back {
  background: #edf4fd;
  color: #377dce;
}

.message-site .header-link {
  border-color: #d9e7f7;
  background: #edf4fd;
  color: #377dce;
}

.message-content {
  padding-bottom: 4px;
}

.message-banner {
  min-height: 210px;
  padding: 45px 24px 72px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.28), transparent 25%),
    linear-gradient(145deg, #79a8de, #377dce);
  color: #fff;
}

.message-banner h1 {
  font-size: 30px;
}

.message-banner p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.message-site .hero-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.message-site .step-number {
  background: #eaf3fe;
  color: #377dce;
}

.message-site .step-label {
  color: #377dce;
}

.message-site input:focus,
.message-site textarea:focus {
  border-color: #8cb8e9;
  outline-color: rgba(55, 125, 206, 0.12);
}

.message-site .mobile-primary {
  background: linear-gradient(135deg, #65a0df, #377dce);
  box-shadow: 0 12px 24px rgba(55, 125, 206, 0.24);
}

.message-site .mobile-primary:hover {
  background: linear-gradient(135deg, #5596da, #2e70bd);
}

.message-site .mobile-footer span:first-child,
.message-site .mobile-footer .done {
  color: #377dce;
}

.message-site .mobile-footer i.done {
  background: #377dce;
}

.message-card {
  margin-top: -42px;
}

.order-chip {
  margin: 18px 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: #f8f4ef;
  color: #8b837b;
  font-size: 12px;
}

.order-chip strong {
  margin-left: 4px;
  color: #413c37;
  overflow-wrap: anywhere;
}

.mobile-site textarea {
  min-height: 170px;
  resize: vertical;
  line-height: 1.65;
}

.mobile-site .modal-backdrop {
  z-index: 80;
  align-items: center;
  padding: 20px;
}

.mobile-site .modal-panel {
  width: min(350px, 100%);
  border: 0;
  border-radius: 20px;
}

@media (min-width: 431px) {
  body.mobile-site {
    padding: 0;
  }
}

/* OGHom support landing and FAQ pages. */
.oghom-shell {
  background: #fff;
}

.welcome-bar {
  padding: 7px 14px;
  background: #edf5ff;
  color: #3779ce;
  font-size: 12px;
  text-align: center;
}

.oghom-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 70px;
  padding: 8px 18px;
  border-bottom: 1px solid #e8eef6;
  background: #fff;
}

.oghom-header img,
.faq-header img,
.compact-logo-link img {
  display: block;
  width: min(270px, 78%);
  height: auto;
}

.site-logo-link {
  display: flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.home-logo-link {
  justify-content: flex-start;
}

.oghom-header .site-logo-link img {
  width: 190px;
  max-height: 52px;
  object-fit: contain;
  object-position: left center;
}

.oghom-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #101722;
}

.oghom-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oghom-main {
  padding: 22px 14px 28px;
}

.oghom-intro {
  margin-bottom: 18px;
  text-align: center;
}

.oghom-intro h1 {
  margin: 0;
  color: #242f3f;
  font-size: 27px;
}

.oghom-intro p {
  margin: 8px auto 0;
  max-width: 350px;
  color: #768397;
  font-size: 13px;
  line-height: 1.55;
}

.oghom-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.oghom-action-card {
  position: relative;
  overflow: hidden;
  border-radius: 17px;
  background: #3d7cca;
  box-shadow: 0 10px 24px rgba(43, 105, 181, 0.22);
  color: #fff;
  text-decoration: none;
}

.oghom-action-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.06;
  object-fit: cover;
}

.oghom-action-card strong {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 78px;
  z-index: 2;
  color: #fff;
  font-size: 15px;
  text-align: center;
  text-shadow: 0 1px 5px rgba(20, 66, 125, 0.5);
  pointer-events: none;
}

.oghom-contact-card {
  display: block;
  overflow: hidden;
  width: 100%;
  height: 228px;
  margin-top: 18px;
  border: 1px solid #e4ebf4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(38, 73, 115, 0.1);
}

.oghom-contact-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.oghom-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: min(430px, 100%);
  min-height: 62px;
  transform: translateX(-50%);
  border-top: 1px solid #e2e9f2;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -8px 24px rgba(35, 62, 96, 0.08);
  backdrop-filter: blur(12px);
}

.oghom-bottom-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  color: #778498;
  font-size: 11px;
  text-decoration: none;
}

.oghom-bottom-nav a.active,
.oghom-bottom-nav a:hover {
  color: #377dce;
}

.nav-icon {
  font-size: 23px;
  line-height: 1;
}

.admin-image-preview {
  display: block;
  max-width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fb;
  object-fit: contain;
}

.logo-preview {
  width: 280px;
  height: 80px;
}

.contact-preview {
  width: 420px;
  height: 220px;
}

.faq-preview {
  width: 360px;
  max-height: 620px;
}

.carousel-preview {
  width: 420px;
  aspect-ratio: 1.365 / 1;
}

.asset-size-note {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--primary);
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.admin-video-preview {
  display: block;
  width: min(480px, 100%);
  aspect-ratio: 16 / 9;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111827;
  object-fit: contain;
}

.solid-mobile-header {
  position: relative !important;
  min-height: 64px !important;
  background: #fff;
  box-shadow: 0 2px 15px rgba(42, 80, 125, 0.08);
}

.solid-mobile-header .header-back {
  background: #edf4fd;
  color: #377dce;
}

.solid-mobile-header .header-link {
  border-color: #d9e7f7;
  background: #edf4fd;
  color: #377dce;
}

.compact-logo-link {
  justify-content: center;
  width: min(205px, calc(100% - 100px));
  height: 46px;
}

.compact-logo-link img {
  width: 100%;
  max-height: 46px;
  object-fit: contain;
  object-position: center;
}

.light-logo-link {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.extend-site .mobile-shell {
  background: #eef5fc;
}

.product-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1.365 / 1;
  background: #15171b;
  touch-action: pan-y;
}

.product-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.42s ease;
}

.product-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.product-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.product-carousel-dots button {
  width: 7px;
  min-height: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.product-carousel-dots button.active {
  width: 22px;
  border-radius: 999px;
  background: #fff;
}

.extend-card {
  margin-top: 14px;
}

.extend-site .step-number {
  background: #eaf3fe;
  color: #377dce;
}

.extend-site .step-label {
  color: #377dce;
}

.extend-site input:focus {
  border-color: #8cb8e9;
  outline-color: rgba(55, 125, 206, 0.12);
}

.extend-site .mobile-primary {
  background: linear-gradient(135deg, #65a0df, #377dce);
  box-shadow: 0 12px 24px rgba(55, 125, 206, 0.24);
}

.extend-site .mobile-primary:hover {
  background: linear-gradient(135deg, #5596da, #2e70bd);
}

.verify-error-modal {
  display: grid;
  justify-items: center;
  gap: 11px;
  padding: 28px 24px 22px;
  text-align: center;
}

.verify-error-modal h2 {
  margin: 0;
  color: #27384c;
  font-size: 22px;
}

.verify-error-modal p {
  margin: 0 0 8px;
  color: #6f7b8a;
  font-size: 14px;
  line-height: 1.6;
}

.error-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff0ec;
  color: #d85d3e;
  font-size: 30px;
  font-weight: 800;
}

.modal-confirm-button {
  justify-content: center;
  width: 100%;
  margin-top: 4px;
}

.centered-submit {
  justify-content: center;
  text-align: center;
}

.faq-shell {
  background: #eaf2fc;
}

.faq-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 8px 14px;
  border-bottom: 1px solid #dce8f7;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.faq-header .header-back {
  flex: 0 0 auto;
  background: #edf4fd;
  color: #377dce;
}

.faq-header .compact-logo-link {
  width: 190px;
}

.header-contact {
  color: #377dce;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.faq-detail {
  line-height: 0;
}

.faq-detail img {
  display: block;
  width: 100%;
  height: auto;
}

/* Compact public layout: show more useful content above the fold. */
.mobile-site .mobile-header {
  min-height: 52px;
  padding: max(6px, env(safe-area-inset-top)) 12px 6px;
}

.header-back {
  width: 30px;
  height: 30px;
  font-size: 26px;
}

.header-link {
  padding: 5px 9px;
  font-size: 11px;
}

.compact-logo-link {
  width: min(180px, calc(100% - 88px));
  height: 38px;
}

.compact-logo-link img {
  max-height: 38px;
}

.mobile-card {
  margin-right: 10px;
  margin-bottom: 12px;
  margin-left: 10px;
  padding: 17px 15px 16px;
  border-radius: 15px;
}

.step-heading {
  gap: 10px;
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 16px;
}

.step-label {
  margin-bottom: 1px;
  font-size: 9px;
}

.step-heading h2 {
  font-size: 18px;
}

.card-intro {
  margin: 10px 0 12px;
  font-size: 12px;
  line-height: 1.5;
}

.mobile-form {
  gap: 11px;
}

.mobile-site .field {
  gap: 5px;
}

.mobile-site label {
  font-size: 12px;
}

.mobile-site input,
.mobile-site textarea {
  min-height: 46px;
  padding: 11px 12px;
  border-radius: 10px;
}

.icon-field input {
  padding-left: 41px;
}

.field-icon {
  left: 13px;
  bottom: 13px;
  width: 19px;
  height: 19px;
}

.mobile-site .actions {
  gap: 7px;
  margin-top: 1px;
}

.mobile-primary,
.mobile-secondary {
  min-height: 46px;
  border-radius: 10px;
  font-size: 14px;
}

.trust-row {
  gap: 10px;
  margin-top: 12px;
  font-size: 10px;
}

.mobile-footer {
  min-height: 40px;
  padding: 5px 10px calc(5px + env(safe-area-inset-bottom));
}

.mobile-footer i {
  width: 18px;
}

.welcome-bar {
  padding: 4px 12px;
  font-size: 10px;
}

.oghom-header {
  min-height: 54px;
  padding: 5px 12px;
}

.oghom-header .site-logo-link img {
  width: 165px;
  max-height: 42px;
}

.oghom-video {
  aspect-ratio: 2 / 1;
}

.oghom-main {
  padding: 12px 10px 16px;
}

.oghom-intro {
  margin-bottom: 10px;
}

.oghom-intro h1 {
  font-size: 22px;
}

.oghom-intro p {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.4;
}

.oghom-actions {
  gap: 8px;
}

.oghom-action-card {
  border-radius: 13px;
}

.oghom-action-card img {
  aspect-ratio: 1.18 / 1;
  object-fit: contain;
}

.oghom-action-card strong {
  bottom: 62px;
  font-size: 13px;
}

.oghom-contact-card {
  height: 170px;
  margin-top: 10px;
  border-radius: 12px;
}

.solid-mobile-header {
  min-height: 52px !important;
}

.product-carousel {
  aspect-ratio: 16 / 9;
}

.product-carousel-dots {
  bottom: 9px;
}

.extend-card {
  margin-top: 9px;
}

.message-site .mobile-header {
  min-height: 52px;
}

.message-banner {
  min-height: 142px;
  padding: 25px 18px 52px;
}

.message-banner .hero-kicker {
  margin-bottom: 6px;
}

.message-banner h1 {
  font-size: 25px;
}

.message-banner p {
  margin-top: 5px;
  font-size: 11px;
}

.message-card {
  margin-top: -34px;
}

.message-card .mobile-form {
  margin-top: 10px;
}

.order-chip {
  margin: 11px 0;
  padding: 8px 10px;
}

.mobile-site textarea {
  min-height: 115px;
}

.rating-field {
  gap: 7px;
}

.rating-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid #dce8f7;
  border-radius: 10px;
  background: #f8fbff;
}

.star-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  outline: none;
}

.star-rating:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(55, 125, 206, 0.15);
}

.rating-star {
  position: relative;
  width: 31px;
  min-height: 31px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #d6dee8;
  font-size: 29px;
  line-height: 1;
}

.rating-star:hover {
  background: transparent;
  box-shadow: none;
}

.rating-star span {
  position: relative;
  display: block;
}

.rating-star span::after {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--star-fill, 0%);
  overflow: hidden;
  color: #f4b740;
  content: "★";
  white-space: nowrap;
}

#ratingScore {
  flex: 0 0 auto;
  color: #377dce;
  font-size: 13px;
  font-weight: 800;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff5d9;
  color: #9b6a00;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.faq-header {
  min-height: 52px;
  padding: 5px 10px;
}

.faq-header .compact-logo-link {
  width: 165px;
}

.header-contact {
  font-size: 11px;
}

/* Child-page header alignment: keep the logo next to Home. */
.solid-mobile-header,
.message-site .mobile-header,
.faq-header {
  justify-content: flex-start;
  gap: 8px;
}

.compact-logo-link {
  justify-content: flex-start;
}

.compact-logo-link img {
  object-position: left center;
}

.solid-mobile-header .header-link,
.message-site .header-link,
.faq-header .header-contact {
  margin-left: auto;
}
