﻿:root {
  --green: #04994c;
  --deep: #073b2e;
  --mint: #effaf3;
  --line: #e7ece8;
  --text: #1f2d28;
  --muted: #718078;
  --orange: #f47b20;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: #f5f7f5;
}

button,
a {
  font: inherit;
}

.client-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.phone-shell {
  width: min(430px, 100%);
  min-height: 900px;
  border: 1px solid #dde4df;
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(20, 60, 40, 0.14);
}

.mobile-app {
  min-height: 900px;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 70px;
}

.detail-page {
  position: absolute;
  inset: 0 0 70px;
  z-index: 10;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #f5f7f5;
}

.detail-page[hidden] {
  display: none !important;
}

.detail-header {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 64px;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  color: #fff;
  background: linear-gradient(130deg, #07a85a, #027f42);
}

.detail-header button {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 36px;
  line-height: 1;
}

.detail-header h2 {
  margin: 0;
  text-align: center;
  font-size: 18px;
}

.detail-body {
  flex: 1;
  min-height: calc(100% - 92px);
  margin: 14px;
  padding: 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(12, 66, 37, 0.06);
}

.hidden-home-section {
  display: none !important;
}

.location-bar[hidden] {
  display: none !important;
}

.detail-ads {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.detail-ads article {
  position: relative;
  min-height: 128px;
  overflow: hidden;
  border-radius: 10px;
  color: #fff;
  background: #fff6df;
}

.detail-ads img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-ads article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 105, 56, 0.88), rgba(4, 105, 56, 0.08));
}

.detail-ads strong,
.detail-ads span {
  position: relative;
  z-index: 1;
  display: block;
  margin-left: 16px;
}

.detail-ads strong {
  margin-top: 18px;
  font-size: 20px;
}

.detail-ads span {
  margin-top: 6px;
  color: #fff5d7;
}

.topbar {
  height: 88px;
  padding: 20px 18px 14px;
  color: #fff;
  background: linear-gradient(130deg, #07a85a, #027f42);
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.brand,
.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 146px;
  height: 44px;
  object-fit: contain;
}

.admin-logo {
  width: 130px;
  height: 39px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-avatar,
.admin-avatar {
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 16px rgba(5, 58, 33, 0.18);
  background: #fff4d7;
}

.brand-avatar {
  width: 48px;
  height: 48px;
}

.admin-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.brand-copy strong,
.brand-copy small,
.admin-brand b,
.admin-brand small {
  display: block;
}

.admin-brand span {
  min-width: 0;
}

.admin-brand small {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

.logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ffe49a;
  color: #0b8f4c;
  font-weight: 900;
}

.brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
  white-space: nowrap;
}

.brand small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.9;
  white-space: nowrap;
}

.brand-copy {
  min-width: 0;
}

.region,
.location-bar button,
.notice button {
  border: 0;
  background: transparent;
  color: inherit;
}

.location-bar,
.notice {
  margin: 14px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #f0fbf4;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
}

.location-bar b,
.notice b {
  flex: 1;
  color: var(--text);
  font-weight: 500;
}

.announcement-bar {
  margin-bottom: 10px;
  min-height: 56px;
  overflow: hidden;
}

.notice-label {
  flex: 0 0 auto;
  font-weight: 700;
}

.announcement-viewport {
  flex: 1;
  min-width: 0;
  height: 24px;
  overflow: hidden;
}

.announcement-track {
  display: flex;
  flex-direction: column;
  min-width: 0;
  animation: noticeRoll var(--notice-duration, 3.2s) steps(var(--notice-count, 1)) infinite;
}

.announcement-track:has(.announcement-link:only-child),
.announcement-track:not(:has(.announcement-link)) {
  animation: none;
}

.announcement-link {
  width: 100%;
  height: 24px;
  border: 0;
  background: transparent;
  color: var(--green);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.announcement-link b,
.announcement-track > b {
  min-width: 0;
  color: var(--green);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announcement-link time,
.announcement-track > time {
  color: var(--green);
  white-space: nowrap;
}

@keyframes noticeRoll {
  to {
    transform: translateY(calc(var(--notice-count, 1) * -24px));
  }
}

.article-detail p {
  line-height: 1.8;
  color: var(--text);
}

.selector-form {
  display: grid;
  gap: 14px;
}

.selector-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.selector-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.selector-form button {
  border: 0;
  border-radius: 8px;
  padding: 12px;
  color: #fff;
  background: var(--green);
  font-weight: 800;
}

.selector-tip {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero {
  position: relative;
  margin: 14px;
  height: 178px;
  overflow: hidden;
  border-radius: 12px;
  color: #fff;
  background: var(--deep);
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero div {
  position: absolute;
  inset: 26px 18px;
  max-width: 260px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 25px;
  letter-spacing: 0;
}

.hero p {
  margin: 0 0 18px;
  color: #f7ffe9;
}

.hero button,
.action-panel button,
.action-panel a {
  border: 0;
  border-radius: 8px;
  padding: 9px 14px;
  color: #065f35;
  background: #ffe796;
  text-decoration: none;
}

.top-ads,
.ad-strip {
  margin: 0 14px 14px;
  display: grid;
  gap: 12px;
}

.top-ads article,
.ad-strip article {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  border-radius: 10px;
  color: #fff;
  background: #fff6df;
}

.top-ads img,
.ad-strip img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: contain;
}

.top-ads article::after,
.ad-strip article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(223, 75, 16, 0.92), rgba(223, 75, 16, 0.05));
}

.top-ads strong,
.top-ads span,
.ad-strip strong,
.ad-strip span {
  position: relative;
  z-index: 1;
  display: block;
  margin-left: 18px;
}

.top-ads strong,
.ad-strip strong {
  margin-top: 20px;
  font-size: 21px;
}

.top-ads span {
  margin-top: 8px;
}

.ad-strip span {
  margin-top: 6px;
  color: #fff5d7;
}

.intro,
.quote-card {
  margin: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(12, 66, 37, 0.06);
}

.intro h2,
.section-title h2,
.panel h2 {
  margin: 0;
  font-size: 18px;
}

.intro p {
  margin: 8px 0 0;
  line-height: 1.7;
  color: var(--muted);
}

.quick-grid {
  margin: 10px 14px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.quick-grid button {
  min-height: 74px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 54, 34, 0.07);
}

.quick-grid span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  border-radius: 10px;
  color: #fff;
  background: var(--green);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.service-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf8;
}

.service-grid b,
.service-grid span {
  display: block;
}

.service-grid span {
  margin-top: 4px;
  color: var(--muted);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: -14px -14px 12px;
}

.tabs button {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 14px;
  font-size: 18px;
}

.tabs .active {
  color: var(--green);
  font-weight: 800;
  box-shadow: inset 0 -3px 0 var(--green);
}

.base-row td {
  color: #078ee0;
  font-weight: 800;
  background: #f3d7d7;
}

.same-price-bar {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(4, 153, 76, 0.22);
  border-radius: 999px;
  background: #eaf8ef;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.68);
}

.same-price-bar span {
  padding: 11px 16px;
  color: var(--green);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.same-price-bar button {
  height: 100%;
  border: 0;
  border-left: 1px solid rgba(4, 153, 76, 0.16);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #08a85c, #047d43);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 6px 16px rgba(4, 153, 76, 0.18);
}

.same-price-bar:has(> span:only-child) {
  grid-template-columns: 1fr;
}

.quote-head,
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.quote-head strong {
  color: red;
}

.detail-price-table th:last-child,
.detail-price-table td:last-child {
  color: #e53935;
  font-weight: 800;
}

.quote-head span,
.section-title span,
.section-title a {
  color: var(--muted);
  text-decoration: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
}

th {
  color: #fff;
  background: var(--green);
  padding: 9px;
}

td {
  padding: 10px 9px;
  text-align: center;
  border: 1px solid #e8eee9;
}

tbody tr:nth-child(odd) {
  background: #f3fbf6;
}

.up {
  color: #e53935;
}

.down {
  color: #07995a;
}

.change-cell {
  color: #e53935;
  font-weight: 800;
}

.contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto minmax(112px, auto);
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  color: var(--text);
  text-decoration: none;
  border-top: 1px solid var(--line);
}

.contact-row span,
.contact-row b,
.contact-row em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-row span {
  color: var(--muted);
  font-size: 14px;
}

.contact-row b {
  color: #16382e;
  text-align: right;
  font-weight: 800;
}

.contact-row em {
  color: var(--green);
  font-style: normal;
  text-align: right;
  font-weight: 800;
}

.trend-card {
  padding-bottom: 10px;
}

.trend-chart {
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.trend-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.trend-combo {
  padding: 10px 8px 8px;
}

.trend-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.trend-tabs span,
.trend-tabs b {
  padding: 8px 4px;
  border-radius: 999px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  background: #f7f8f7;
}

.trend-tabs b {
  color: var(--green);
  border: 1px solid rgba(4, 153, 76, 0.24);
  background: #e8f8ef;
}

.trend-filter {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.trend-filter strong {
  padding: 6px 10px;
  border-radius: 999px;
  color: #d36c18;
  background: #faf7f2;
}

.trend-filter span {
  color: #7b332d;
  font-weight: 800;
}

.trend-filter em {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text);
  font-style: normal;
  background: #f5f7f5;
}

.trend-grid {
  stroke: #d4ddd8;
  stroke-width: 1.5;
  stroke-dasharray: 8 8;
}

.trend-frame {
  stroke: #cbd7d1;
  stroke-width: 2;
}

.trend-axis,
.trend-axis-title {
  fill: #68746e;
  font-size: 20px;
}

.trend-axis {
  font-size: 18px;
}

.right-axis {
  text-anchor: start;
}

.left-axis {
  text-anchor: end;
}

.supply-bar {
  fill: #087f4f;
  opacity: 0.86;
}

.demand-bar {
  fill: #7bc997;
  opacity: 0.88;
}

.price-line {
  fill: none;
  stroke: #80bd38;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.supply-trend-line,
.demand-trend-line {
  fill: none;
  stroke-width: 4;
  stroke-dasharray: 18 12;
  stroke-linecap: round;
}

.supply-trend-line {
  stroke: #0d8a55;
}

.demand-trend-line {
  stroke: #45b86d;
}

.price-dot {
  fill: #fff;
  stroke: #80bd38;
  stroke-width: 3;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: -4px;
  color: #68746e;
  font-size: 13px;
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.trend-legend span::before {
  content: "";
  width: 16px;
  height: 10px;
  display: inline-block;
  border-radius: 2px;
  background: var(--green);
}

.trend-legend .demand::before {
  background: #7bc997;
}

.trend-legend .price::before {
  height: 4px;
  background: #80bd38;
}

.trend-legend .supply-line::before,
.trend-legend .demand-line::before {
  height: 0;
  border-top: 3px dashed #0d8a55;
  background: transparent;
}

.trend-legend .demand-line::before {
  border-color: #45b86d;
}

.trend-date {
  font-size: 18px;
  fill: var(--muted);
  text-anchor: middle;
}

.mobile-combo-chart {
  padding: 12px;
  border: 1px solid rgba(4, 153, 76, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, #f6fcf8 0%, #fff 62%);
}

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

.combo-head strong,
.admin-combo-head strong {
  display: block;
  color: var(--deep);
  font-size: 17px;
  line-height: 1.3;
}

.combo-head span,
.admin-combo-head span,
.admin-combo-head p {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.combo-head em {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(4, 153, 76, 0.18);
  border-radius: 999px;
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  background: #ecf9f1;
}

.combo-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.combo-kpis span {
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  background: #fff;
  box-shadow: 0 5px 16px rgba(10, 78, 46, 0.08);
}

.combo-kpis b {
  display: block;
  margin-bottom: 2px;
  color: var(--green);
  font-size: 18px;
}

.combo-svg,
.admin-combo-svg {
  width: 100%;
  height: auto;
  display: block;
}

.combo-plot-bg,
.admin-combo-plot-bg {
  fill: rgba(232, 248, 239, 0.36);
}

.combo-grid,
.admin-combo-grid {
  stroke: #dbe8df;
  stroke-width: 1.4;
  stroke-dasharray: 6 8;
}

.combo-axis,
.combo-axis-title,
.admin-combo-axis,
.admin-combo-axis-title {
  fill: #63746b;
  font-size: 17px;
}

.combo-left-axis,
.admin-combo-left-axis {
  text-anchor: end;
}

.combo-right-axis,
.admin-combo-right-axis {
  text-anchor: start;
}

.combo-bar {
  filter: drop-shadow(0 8px 10px rgba(16, 130, 76, 0.12));
}

.combo-supply-bar {
  fill: #09965a;
}

.combo-demand-bar {
  fill: #98d8a7;
}

.combo-price-line,
.admin-combo-price-line {
  fill: none;
  stroke: #0f7f47;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.combo-price-dot,
.admin-combo-price-dot {
  fill: #fff;
  stroke: #0f7f47;
  stroke-width: 4;
}

.combo-date,
.admin-combo-date {
  fill: var(--muted);
  font-size: 16px;
  text-anchor: middle;
}

.combo-legend,
.admin-combo-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.combo-legend span,
.admin-combo-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.combo-legend span::before,
.admin-combo-legend span::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 10px;
  border-radius: 3px;
  background: #09965a;
}

.combo-legend .combo-demand::before,
.admin-combo-legend .admin-legend-demand::before {
  background: #98d8a7;
}

.combo-legend .combo-price::before,
.admin-combo-legend .admin-legend-price::before {
  height: 4px;
  border-radius: 999px;
  background: #0f7f47;
}

.admin-combo-chart {
  padding: 16px;
  border: 1px solid #dfeae3;
  border-radius: 8px;
  background: #fff;
}

.admin-combo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #edf3ef;
}

.admin-combo-head span {
  margin: 0 0 4px;
  color: var(--green);
  font-weight: 700;
}

.admin-combo-head p {
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--deep);
  background: #f0faf4;
}

.admin-combo-body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.admin-combo-metrics {
  display: grid;
  gap: 10px;
}

.admin-combo-metrics span {
  padding: 12px;
  border: 1px solid #e1eee6;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  background: #f8fcfa;
}

.admin-combo-metrics b {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 22px;
}

.admin-combo-supply {
  fill: #05884f;
}

.admin-combo-demand {
  fill: #74c986;
}

.admin-combo-legend {
  justify-content: flex-end;
  margin-top: 4px;
}

.trend-analysis {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf8;
}

.trend-analysis h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--deep);
}

.trend-analysis p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.quote-detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 10px;
  background: #f7f8f7;
}

.quote-detail-hero small,
.quote-detail-hero span,
.article-meta {
  display: block;
  color: var(--muted);
}

.quote-detail-hero strong {
  display: block;
  margin: 14px 0 24px;
  font-size: 58px;
  line-height: 1;
  color: #e53935;
}

.quote-detail-hero b {
  display: block;
  margin-bottom: 20px;
  color: #21a06c;
  text-align: right;
  font-size: 20px;
}

.quote-detail-hero div:last-child {
  padding: 12px;
  border-radius: 10px;
  background: #f6e28f;
}

.quote-detail-hero button {
  margin-top: 14px;
  border: 0;
  color: #cf7b26;
  background: transparent;
  font-size: 16px;
}

.detail-price-table th {
  background: #d7d7d7;
  color: #666;
}

.article-list {
  display: grid;
  gap: 10px;
}

.article-list button {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.article-list b,
.article-list span {
  display: block;
}

.article-list span {
  margin-top: 6px;
  color: var(--muted);
}

.same-price-bar button {
  white-space: nowrap;
}

.article-title {
  margin: 0 0 6px;
  font-size: 20px;
}

.about-content h3 {
  margin: 0 0 10px;
  color: var(--deep);
  font-size: 18px;
}

.about-content p {
  margin: 0;
  line-height: 1.8;
  color: var(--text);
}

.tabbar {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 70px;
  margin-top: auto;
  padding: 8px 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--line);
}

.tabbar button {
  border: 0;
  background: transparent;
  color: #7a8580;
}

.tabbar .active {
  color: var(--green);
  font-weight: 800;
}

.admin-page {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  transition: grid-template-columns 0.2s ease;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(rgba(44, 255, 159, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 255, 159, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 22% 18%, rgba(58, 255, 170, 0.22), transparent 32%),
    radial-gradient(circle at 78% 78%, rgba(0, 165, 95, 0.25), transparent 30%),
    linear-gradient(135deg, #062a1f 0%, #075b3c 45%, #069457 100%);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
}

.login-active .login-screen {
  display: grid;
}

.login-screen::before,
.login-screen::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(124, 255, 192, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.login-screen::before {
  left: -130px;
  top: -120px;
  box-shadow: 0 0 90px rgba(36, 255, 149, 0.14);
}

.login-screen::after {
  right: -150px;
  bottom: -150px;
  box-shadow: 0 0 120px rgba(36, 255, 149, 0.16);
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 34px;
  border: 1px solid rgba(145, 255, 196, 0.26);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
  box-shadow: 0 28px 90px rgba(0, 28, 18, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(127, 255, 190, 0.12);
  border-radius: 10px;
  pointer-events: none;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.login-brand img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(146, 255, 195, 0.45), 0 10px 28px rgba(0, 42, 25, 0.24);
}

.login-brand b,
.login-brand small {
  display: block;
  color: #fff;
}

.login-brand b {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0;
}

.login-brand small {
  margin-top: 4px;
  font-size: 15px;
  color: rgba(231, 255, 242, 0.88);
}

.login-card h1 {
  margin: 0 0 8px;
  color: #eafff2;
  font-size: 24px;
  letter-spacing: 0;
}

.login-card p,
.login-card small {
  color: rgba(232, 255, 242, 0.76);
}

.login-card input,
.login-card button {
  width: 100%;
  margin-top: 12px;
}

.login-card input {
  padding: 12px;
  border: 1px solid rgba(157, 255, 202, 0.22);
  border-radius: 8px;
  color: #fff;
  background: rgba(2, 36, 25, 0.38);
  outline: none;
}

.login-card input::placeholder {
  color: rgba(232, 255, 242, 0.58);
}

.login-card input:focus {
  border-color: rgba(134, 255, 190, 0.72);
  box-shadow: 0 0 0 3px rgba(72, 255, 166, 0.12);
}

.login-card button {
  padding: 12px;
  border: 0;
  border-radius: 8px;
  color: #063421;
  font-weight: 800;
  background: linear-gradient(90deg, #8dffb4 0%, #24df83 48%, #08b66a 100%);
  box-shadow: 0 12px 30px rgba(24, 224, 128, 0.24);
  cursor: pointer;
}

.admin-page.sidebar-collapsed {
  grid-template-columns: 78px 1fr;
}

.sidebar {
  padding: 22px 14px;
  color: #e8fff5;
  background: linear-gradient(180deg, #0b9658 0%, #087b4d 58%, #0d5f43 100%);
  box-shadow: 8px 0 24px rgba(9, 57, 42, 0.12);
  overflow-x: hidden;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #fff;
  font-weight: 800;
}

.admin-brand span {
  min-width: 0;
}

.admin-brand b,
.admin-brand small {
  display: block;
  white-space: nowrap;
}

.admin-brand b {
  font-size: 15px;
}

.admin-brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.sidebar-collapse {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.sidebar-collapse span {
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.sidebar-collapse b {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.sidebar a {
  display: block;
  margin: 4px 0;
  padding: 13px 18px;
  border-radius: 8px;
  color: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.sidebar a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar .top-link {
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 700;
}

.sidebar-section {
  margin-top: 10px;
}

.sidebar-group {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 6px;
  padding: 9px 10px;
  border: 0;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
}

.sidebar-group span {
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.72);
  border-bottom: 2px solid rgba(255, 255, 255, 0.72);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.sidebar-section.open .sidebar-group span {
  transform: rotate(225deg) translate(-2px, -2px);
}

.sidebar-submenu {
  display: none;
}

.sidebar-section.open .sidebar-submenu {
  display: block;
}

.sidebar .active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.72);
}

.sidebar-collapsed .sidebar {
  padding: 18px 10px;
}

.sidebar-collapsed .admin-brand {
  justify-content: center;
  margin-bottom: 16px;
}

.sidebar-collapsed .admin-brand span,
.sidebar-collapsed .sidebar-collapse b,
.sidebar-collapsed .sidebar-group span,
.sidebar-collapsed .sidebar-submenu {
  display: none;
}

.sidebar-collapsed .sidebar-collapse {
  justify-content: center;
  padding: 11px 0;
}

.sidebar-collapsed .sidebar-collapse span {
  transform: rotate(225deg);
}

.sidebar-collapsed .sidebar a,
.sidebar-collapsed .sidebar-group {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0;
}

.sidebar-collapsed .sidebar a::before,
.sidebar-collapsed .sidebar-group::before {
  content: attr(data-short);
  font-size: 16px;
  font-weight: 800;
}

.sidebar-collapsed .sidebar .top-link {
  margin-bottom: 10px;
}

.admin-main {
  padding: 0 18px 28px;
  min-width: 0;
  overflow-x: hidden;
}

.admin-view {
  display: none;
}

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

.admin-view > .panel,
.admin-view > .tables-grid,
.admin-view > .admin-layout {
  margin-top: 14px;
}

.admin-top {
  height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}

.admin-userbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-userbar button {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  background: #fff;
  cursor: pointer;
}

.api-status {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.4;
  border: 1px solid var(--line);
  background: #fff;
}

.api-status.online {
  color: #157347;
  border-color: #b7e4c7;
  background: #ecfdf3;
}

.api-status.offline {
  color: #946200;
  border-color: #f7d58a;
  background: #fff8e6;
}

.api-error {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #b42318;
  font-size: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.metric-grid article,
.panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(12, 45, 32, 0.05);
  overflow-x: auto;
}

.metric-grid span,
.metric-grid small {
  display: block;
  color: var(--muted);
}

.metric-grid strong {
  display: block;
  margin: 8px 0;
  font-size: 30px;
}

.admin-layout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 2fr 0.9fr 1fr;
  gap: 12px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.line-chart svg {
  width: 100%;
  height: auto;
}

.line-chart .trend-combo {
  min-height: 360px;
}

.line-chart .admin-combo-chart {
  min-height: 360px;
}

.donut {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#e83c3c 0 52%, #10a862 52% 85%, #cfd7d2 85% 100%);
}

.donut span {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: #fff;
}

.legend {
  list-style: none;
  padding: 0;
  color: var(--muted);
}

.legend b {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
}

.red {
  background: #e83c3c;
}

.green {
  background: #10a862;
}

.gray {
  background: #cfd7d2;
}

.action-panel {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.action-panel .panel-head {
  flex: 1;
  margin: 0;
}

.action-panel button,
.action-panel a,
.admin-actions button,
.admin-actions a {
  color: #fff;
  background: var(--green);
}

.admin-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.admin-actions button,
.admin-actions a {
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
  text-decoration: none;
}

.tables-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quote-stack {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.quote-form,
.content-form,
.mini-form,
.ad-form,
.factor-grid {
  display: grid;
  gap: 10px;
}

.quote-form {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
}

.manual-collect-form,
.manual-entry-form {
  display: grid;
  gap: 14px;
}

.manual-form-row {
  display: grid;
  gap: 12px;
}

.manual-form-row-4 {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.manual-collect-form label,
.manual-entry-form label {
  display: grid;
  gap: 6px;
  color: #345047;
  font-size: 14px;
}

.manual-collect-form input,
.manual-collect-form select,
.manual-collect-form textarea,
.manual-entry-form input,
.manual-entry-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d7e5df;
  border-radius: 6px;
  padding: 9px 11px;
  background: #fff;
  color: #17382e;
  font: inherit;
}

.manual-collect-form textarea {
  resize: vertical;
}

.manual-wide-field {
  width: 100%;
}

.manual-rule-box {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-left: 4px solid var(--green);
  background: #eff9f4;
  color: #426057;
}

.manual-rule-box b {
  color: #087f48;
}

.manual-flow-actions,
.manual-entry-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.manual-flow-actions span {
  margin-right: auto;
  color: #17382e;
  font-weight: 700;
}

.manual-flow-actions button,
.manual-entry-form button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 22px;
  color: #fff;
  background: var(--green);
  font: inherit;
  cursor: pointer;
}

.manual-entry-form > div:not(.manual-entry-footer) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.manual-entry-footer input {
  flex: 1;
}

.quote-publish-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  padding: 14px 0 2px;
}

.quote-publish-bar span {
  color: #60776f;
  font-size: 14px;
}

.quote-publish-bar button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 20px;
  color: #fff;
  background: var(--green);
  font: inherit;
  cursor: pointer;
}

.quote-entry-form {
  display: grid;
  gap: 10px;
}

.content-form {
  grid-template-columns: minmax(220px, 1fr) 120px 150px;
  align-items: stretch;
}

.content-form textarea,
.content-form .editor-toolbar {
  grid-column: 1 / -1;
}

.announcement-form {
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 1fr) minmax(280px, 1.2fr) 120px 120px;
  margin-bottom: 12px;
}

.announcement-form textarea,
.announcement-form .editor-toolbar {
  grid-column: auto;
}

.editor-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px;
  border: 1px solid #d8e9df;
  border-radius: 8px;
  background: #f4fbf7;
}

.editor-toolbar button {
  min-height: 32px;
  border: 1px solid rgba(4, 153, 76, 0.22);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--green);
  background: #fff;
  font-size: 13px;
}

.mini-form {
  grid-template-columns: 120px 1fr 1fr 110px;
  margin-bottom: 12px;
}

.ad-form {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #d8e9df;
  border-radius: 10px;
  background: #f7fcf9;
}

.ad-form .form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px;
  align-items: end;
}

.ad-form .form-row:last-child {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr) 120px;
}

.ad-form label {
  display: grid;
  gap: 6px;
  color: #345047;
  font-size: 13px;
}

.ad-form .wide {
  grid-column: span 2;
}

.factor-grid {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.factor-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.quote-form input,
.quote-form select,
.quote-entry-form input,
.quote-entry-form textarea,
.content-form input,
.content-form textarea,
.content-form select,
.mini-form input,
.mini-form select,
.ad-form input,
.ad-form select,
.factor-grid input {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.quote-form button,
.quote-entry-form button,
.content-form button,
.mini-form button,
.ad-form button,
.factor-grid button {
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  padding: 10px 12px;
}

.filter-row {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

.filter-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.filter-row select,
.filter-row button {
  min-width: 160px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.filter-row button {
  color: #fff;
  border: 0;
  background: var(--green);
}

.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.source-list {
  display: grid;
  gap: 10px;
}

.source-list div {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 4px 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf8;
}

.source-list span {
  color: var(--green);
  text-align: right;
}

.source-list small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(96px, 1fr));
  gap: 10px;
}

.health-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf8;
}

.health-grid b,
.health-grid span {
  display: block;
}

.health-grid b {
  color: var(--green);
  font-size: 22px;
}

.health-grid span,
.health-issues {
  color: var(--muted);
}

.health-issues p {
  margin: 10px 0 0;
}

.admin-table th,
.admin-table td {
  padding: 8px;
  font-size: 14px;
  white-space: nowrap;
}

.admin-table {
  min-width: 720px;
}

.function-matrix-table {
  min-width: 720px;
}

.function-product-cell {
  vertical-align: middle;
  font-weight: 800;
  color: var(--deep);
  background: #f6fbf7;
}

.function-group-start td {
  border-top: 2px solid #cfe6d8;
}

.function-matrix-empty {
  color: var(--muted);
}

.function-matrix-table td {
  vertical-align: middle;
}

.function-matrix-table input {
  width: 92px;
}

.function-matrix-table th,
.function-matrix-table td {
  padding: 8px 10px;
}

.function-matrix-table thead th {
  background: #17a85a;
  color: #fff;
}

.function-matrix-table tbody tr:nth-child(even) td {
  background: #f7fbf8;
}

.function-matrix-table .change-cell {
  color: #d7261e;
  font-weight: 700;
}

.admin-table input {
  width: 76px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
}

.admin-table select {
  width: 72px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.role-form {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.role-form input,
.role-form textarea {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.permission-grid,
.role-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  white-space: normal;
}

.permission-grid label,
.role-checks label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border: 1px solid #dcebe2;
  border-radius: 999px;
  color: var(--deep);
  background: #f7fcf9;
  white-space: nowrap;
}

.role-checks input,
.permission-grid input {
  width: auto;
}

.admin-table button {
  border: 0;
  color: var(--green);
  background: transparent;
  padding: 4px 6px;
}

@media (max-width: 900px) {
  .admin-page {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 10px;
  }

  .admin-brand {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }

  .sidebar a {
    padding: 9px 10px;
    font-size: 13px;
    text-align: center;
  }

  .metric-grid,
  .admin-layout,
  .tables-grid,
  .health-grid,
  .admin-combo-body,
  .quote-form,
  .quote-entry-form,
  .content-form,
  .mini-form,
  .ad-form,
  .ad-form .form-row,
  .ad-form .form-row:last-child,
  .factor-grid {
    grid-template-columns: 1fr;
  }

  .ad-form .wide {
    grid-column: auto;
  }

  .manual-form-row-4,
  .manual-entry-form > div:not(.manual-entry-footer) {
    grid-template-columns: 1fr;
  }

  .manual-flow-actions,
  .manual-entry-footer {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .client-page {
    padding: 0;
  }

  .phone-shell {
    border: 0;
    border-radius: 0;
    min-height: 100vh;
  }

  .mobile-app {
    min-height: 100vh;
  }

  .tabbar {
    bottom: 0;
  }
}
