:root {
  --ink: #1e293b;
  --muted: #64748b;
  --line: #dbe3ee;
  --paper: #ffffff;
  --bg: #f5f7fb;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --warn: #92400e;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  min-height: 64px;
  padding: 12px 36px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand {
  flex: 0 1 auto;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.main-nav {
  display: flex;
  flex: 1 1 auto;
  gap: 18px;
  color: var(--muted);
  min-width: 240px;
}

.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-left: auto;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

main {
  width: calc(100% - 48px);
  margin: 0 auto;
  padding: 32px 0 56px;
}

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 20px 24px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper);
  font-size: 13px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent-dark);
}

.hero {
  display: grid;
  align-items: center;
  min-height: 180px;
  padding: 28px 42px;
  color: white;
  background:
    linear-gradient(105deg, rgba(15, 23, 42, 0.92), rgba(15, 118, 110, 0.72)),
    url("https://images.unsplash.com/photo-1533043704099-5ee3683f0fdd?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
}

.hero h1,
.page-title h1,
.form-page h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.22;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 820px;
  font-size: 28px;
}

.hero p {
  max-width: 680px;
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions,
.row-between {
  display: flex;
  align-items: center;
  gap: 12px;
}

.row-between {
  justify-content: space-between;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.72);
}

.button.small {
  min-height: 32px;
  padding: 0 12px;
}

.button.ghost {
  background: transparent;
  color: var(--accent-dark);
}

.grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.exchange-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.panel,
.card,
.table-wrap,
.form-page,
.filters {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel,
.form-page {
  padding: 22px;
}

.panel h2,
.card h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

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

.panel-heading h2 {
  margin: 0;
}

.mini-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.mini-row strong,
.mini-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mini-row:first-of-type {
  border-top: 0;
}

.linked-row {
  margin: 0 -8px;
  padding-right: 8px;
  padding-left: 8px;
  border-radius: 6px;
  transition: background 0.18s ease, color 0.18s ease;
}

.linked-row:hover {
  background: #f0fdfa;
  color: var(--accent-dark);
}

.muted {
  color: var(--muted);
}

@keyframes live-flash-up {
  0% {
    background: #a7f3a0;
  }
  78% {
    background: #a7f3a0;
  }
  100% {
    background: transparent;
  }
}

@keyframes live-flash-down {
  0% {
    background: #fca5a5;
  }
  78% {
    background: #fca5a5;
  }
  100% {
    background: transparent;
  }
}

.mini-row.live-flash-up,
.exchange-result.live-flash-up {
  animation: live-flash-up 1.8s ease-out;
}

.mini-row.live-flash-down,
.exchange-result.live-flash-down {
  animation: live-flash-down 1.8s ease-out;
}

tr.live-flash-up > td {
  animation: live-flash-up 1.8s ease-out;
}

tr.live-flash-down > td {
  animation: live-flash-down 1.8s ease-out;
}

.page-title {
  margin-bottom: 18px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  align-items: end;
  gap: 14px;
  padding: 16px;
  margin-bottom: 18px;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.inline-form input,
.inline-form select {
  min-width: 0;
}

.exchange-result {
  margin: 16px 0 0;
  color: var(--muted);
}

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

select,
input,
textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: white;
  font: inherit;
}

textarea {
  min-height: 120px;
}

.check {
  display: flex;
  align-items: center;
  min-height: 40px;
}

.check input {
  width: auto;
  min-width: 0;
}

.table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: white;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

td {
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
}

.chart {
  width: 100%;
  overflow: hidden;
}

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

.chart line {
  stroke: #94a3b8;
}

.chart polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
}

.chart circle {
  fill: var(--accent-dark);
}

.chart text {
  fill: var(--muted);
  font-size: 12px;
}

.vip-note {
  padding: 14px 16px;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  color: var(--warn);
  background: #fffbeb;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
}

.card {
  padding: 20px;
}

.card p {
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.listing-role-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 0;
}

.listing-section {
  margin-top: 24px;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}

.supply-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.listing-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.supply-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
}

.demand-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.listing-media {
  display: grid;
  place-items: center;
  min-height: 100%;
  aspect-ratio: 4 / 3;
  background: #e2e8f0;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.listing-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.listing-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #334155;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.listing-card dl {
  margin-top: 0;
}

.listing-detail-title {
  display: grid;
  gap: 10px;
}

.listing-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  margin-bottom: 18px;
}

.listing-detail-panel {
  display: grid;
  gap: 14px;
}

.listing-detail-image,
.listing-detail-video {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--bg);
}

.listing-empty-media {
  display: grid;
  place-items: center;
  min-height: 260px;
  border-radius: 6px;
  background: #e2e8f0;
  color: var(--muted);
  font-weight: 800;
}

.listing-detail-dl {
  grid-template-columns: 132px minmax(0, 1fr);
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: #ccfbf1;
  font-size: 12px;
  font-weight: 700;
}

.home-policy-categories {
  display: grid;
  gap: 10px;
}

.home-policy-category {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.home-policy-category:hover {
  border-color: #99f6e4;
  background: #f0fdfa;
  transform: translateY(-1px);
}

.home-policy-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-policy-category-head span {
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.home-policy-category p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #334155;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-policy-category small {
  color: var(--muted);
}

dl {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 8px 10px;
  margin: 16px 0 0;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.policy-section {
  margin-top: 24px;
}

.policy-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.policy-section-heading h2 {
  margin: 0;
  font-size: 22px;
}

.policy-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.policy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 188px;
  gap: 20px;
  align-items: center;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.policy-row:first-child {
  border-top: 0;
}

.policy-row-main {
  min-width: 0;
}

.policy-row h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.policy-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.policy-row-main .policy-card-tags {
  display: none;
  margin-bottom: 8px;
}

.policy-row-side {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.policy-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.policy-actions .button {
  width: 100%;
}

.policy-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg);
}

.policy-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.policy-summary {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: #334155;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.policy-detail-title {
  display: grid;
  gap: 10px;
}

.text-link {
  color: var(--accent-dark);
  font-weight: 700;
}

.policy-detail {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.policy-detail-image {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg);
}

.policy-detail-summary {
  margin: 0;
  color: #334155;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
}

.policy-detail-content {
  color: #243043;
  font-size: 16px;
  line-height: 1.85;
}

.policy-detail-content p {
  margin: 0 0 14px;
}

.policy-detail-actions {
  padding-top: 4px;
}

.form-page {
  max-width: 680px;
  margin: 0 auto;
}

.stacked-form p {
  display: grid;
  gap: 6px;
}

.stacked-form .helptext,
.stacked-form ul {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 20px;
  }

  .brand,
  .main-nav,
  .header-actions {
    width: 100%;
  }

  .main-nav {
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .main-nav a,
  .header-actions a,
  .header-actions button {
    white-space: nowrap;
  }

  .header-actions {
    margin-left: 0;
  }

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

  .row-between .button {
    width: fit-content;
  }

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

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

@media (max-width: 640px) {
  main {
    width: min(100% - 24px, 1180px);
    padding: 18px 0 40px;
  }

  .site-header {
    gap: 10px;
    padding: 12px;
  }

  .brand {
    font-size: 16px;
  }

  .main-nav,
  .header-actions {
    gap: 10px;
  }

  .hero {
    min-height: 260px;
    padding: 24px;
  }

  .hero h1,
  .page-title h1,
  .form-page h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 15px;
  }

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

  .button {
    width: 100%;
    min-height: 44px;
  }

  .button.small {
    width: auto;
  }

  .row-between .button {
    width: 100%;
  }

  .panel,
  .card,
  .form-page {
    padding: 16px;
  }

  .filters {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .mini-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .listing-role-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .supply-card {
    grid-template-columns: 1fr;
  }

  .listing-media {
    min-height: 180px;
  }

  .listing-detail-layout {
    grid-template-columns: 1fr;
  }

  .listing-detail-dl {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  dl {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .table-wrap {
    overflow: visible;
    background: transparent;
    border: 0;
  }

  table {
    display: block;
    min-width: 0;
    background: transparent;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 12px;
  }

  tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
  }

  td {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 14px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  td.live-price-time {
    grid-column: 1 / -1;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }

  td:last-child {
    border-bottom: 0;
  }

  .empty-row td {
    display: block;
    grid-column: 1 / -1;
  }

  .empty-row td::before {
    content: none;
  }

  .policy-section {
    margin-top: 18px;
  }

  .policy-section-heading h2 {
    font-size: 20px;
  }

  .policy-list {
    display: grid;
    gap: 12px;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .policy-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
  }

  .policy-row:first-child {
    border-top: 1px solid var(--line);
  }

  .policy-row-main .policy-card-tags {
    display: flex;
  }

  .policy-row-side > .tag {
    display: none;
  }

  .policy-row-side {
    justify-items: stretch;
    gap: 0;
  }

  .policy-row h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .policy-meta {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .policy-summary {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }

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

  .policy-actions .button {
    min-height: 38px;
    padding: 0 10px;
  }

  .policy-detail {
    gap: 14px;
  }

  .policy-detail-summary {
    font-size: 16px;
  }

  .policy-detail-content {
    font-size: 15px;
    line-height: 1.75;
  }
}

@media (max-width: 420px) {
  main {
    width: min(100% - 16px, 1180px);
  }

  .hero,
  .panel,
  .card,
  .form-page,
  .filters {
    border-radius: 6px;
  }

  .hero {
    padding: 20px;
  }

  td {
    padding: 9px 12px;
  }
}

.mobile-home-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #138f86 0, #24b6a4 148px, #f4f7fb 148px, #f4f7fb 100%);
  color: #172033;
}

.mobile-home-page main.mobile-shell {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 14px 14px 24px;
}

.mobile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  color: #fff;
}

.mobile-brand {
  min-width: 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 700;
}

.mobile-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.13);
}

.mobile-quick-item {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
}

.mobile-quick-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  color: #fff;
}

.mobile-quick-icon svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.mobile-quick-item.price .mobile-quick-icon {
  background: linear-gradient(135deg, #15a39b, #42c6b2);
}

.mobile-quick-item.supply .mobile-quick-icon {
  background: linear-gradient(135deg, #f97316, #fbbf24);
}

.mobile-quick-item.demand .mobile-quick-icon {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
}

.mobile-quick-item.policy .mobile-quick-icon {
  background: linear-gradient(135deg, #7c3aed, #c084fc);
}

.mobile-search-card {
  margin-top: 12px;
  padding: 12px;
  border-radius: 18px;
  background: #e8f5ff;
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.13);
}

.mobile-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 8px;
  align-items: center;
}

.mobile-search-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 2px solid #1688e8;
  border-radius: 13px;
  background: #fff;
  color: #172033;
  font-size: 15px;
  font-weight: 700;
  outline: none;
}

.mobile-search-form input::placeholder {
  color: #7b8aa0;
  font-weight: 600;
}

.mobile-search-form button {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 0;
  border-radius: 13px;
  background: #1688e8;
  color: #fff;
  cursor: pointer;
}

.mobile-search-form button svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.mobile-search-card p {
  margin: 9px 2px 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.mobile-feed {
  margin-top: 18px;
}

.mobile-section-title {
  margin: 0 2px 10px;
  font-size: 18px;
  font-weight: 900;
  color: #172033;
}

.mobile-waterfall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
}

.mobile-feed-card {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10);
}

.mobile-feed-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.72;
  object-fit: cover;
  background: #dbe3ee;
}

.mobile-feed-card:nth-child(3n + 1) img {
  aspect-ratio: 1 / 1;
}

.mobile-feed-card:nth-child(4n) img {
  aspect-ratio: 1 / 0.86;
}

.mobile-feed-card:nth-child(1) img,
.mobile-feed-card:nth-child(2) img {
  aspect-ratio: 1 / 1;
}

.mobile-feed-body {
  padding: 10px 10px 12px;
}

.mobile-feed-tag {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #d9fbf2;
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
}

.mobile-feed-card.demand .mobile-feed-tag {
  background: #dbeafe;
  color: #1d4ed8;
}

.mobile-feed-card.supply .mobile-feed-tag {
  background: #ffedd5;
  color: #c2410c;
}

.mobile-feed-card.policy .mobile-feed-tag {
  background: #ede9fe;
  color: #6d28d9;
}

.mobile-feed-body h2 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #172033;
  font-size: 15px;
  line-height: 1.42;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mobile-feed-body p {
  display: -webkit-box;
  margin: 7px 0 0;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.mobile-empty {
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  color: #64748b;
}

.mobile-footer {
  display: flex;
  justify-content: center;
  padding: 8px 14px 20px;
  color: #7b8aa0;
  font-size: 12px;
}

.mobile-price-page {
  min-height: 100vh;
  background: #ffffff;
  color: #111827;
}

.mobile-price-page .mobile-lang.compact {
  padding: 3px 6px;
  background: #eef2f7;
  color: #475569;
}

.mobile-price-page .mobile-lang.compact a {
  color: #475569;
}

.mobile-price-page main.mobile-price-shell {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 14px 16px 28px;
}

.mobile-market-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  margin-bottom: 18px;
}

.mobile-market-brand {
  min-width: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-market-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.mobile-fx-button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.mobile-market-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.mobile-market-tabs strong {
  color: #111827;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
}

.mobile-market-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.mobile-market-control-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: #f1f5f9;
}

.mobile-market-control-group span {
  padding: 0 4px 0 6px;
  color: #64748b;
  font-size: 11px;
  line-height: 22px;
  font-weight: 900;
}

.mobile-market-control-group a {
  min-width: 34px;
  padding: 0 7px;
  border-radius: 999px;
  color: #64748b;
  font-size: 11px;
  line-height: 22px;
  font-weight: 900;
  text-align: center;
}

.mobile-market-control-group a.active {
  background: #0f766e;
  color: #fff;
}

.mobile-market-list {
  display: grid;
  gap: 4px;
}

.mobile-market-row {
  border-bottom: 1px solid #eef2f7;
  background: #fff;
}

.mobile-market-main {
  display: grid;
  grid-template-columns: minmax(104px, 1fr) 96px minmax(112px, auto);
  align-items: center;
  gap: 10px;
  min-height: 84px;
  padding: 10px 0;
}

.mobile-market-name {
  min-width: 0;
}

.mobile-market-name h2 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-market-name p {
  margin: 8px 0 0;
  color: #a1a8b3;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-market-name p::before {
  content: "境";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  margin-right: 4px;
  border-radius: 4px;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 11px;
  font-weight: 900;
  vertical-align: 1px;
}

.mobile-market-spark {
  width: 96px;
  height: 48px;
}

.mobile-market-spark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.mobile-market-values {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 0;
}

.mobile-market-price {
  font-size: 20px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
}

.mobile-market-row.trend-up .mobile-market-price {
  color: #ef4444;
}

.mobile-market-row.trend-down .mobile-market-price {
  color: #10b981;
}

.mobile-market-change {
  min-width: 76px;
  padding: 4px 8px;
  border-radius: 7px;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 900;
  text-align: center;
}

.mobile-market-row.trend-up .mobile-market-change {
  background: #ef4444;
}

.mobile-market-row.trend-down .mobile-market-change {
  background: #10b981;
}

.mobile-market-sub,
.mobile-market-values .live-price-time {
  color: #a1a8b3;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  text-align: right;
}

.mobile-market-sub b {
  font-weight: 800;
}

.mobile-market-row.live-flash-up,
.mobile-fx-rate.live-flash-up {
  animation: live-flash-up 1.8s ease-out;
}

.mobile-market-row.live-flash-down,
.mobile-fx-rate.live-flash-down {
  animation: live-flash-down 1.8s ease-out;
}

.mobile-fx-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.42);
}

.mobile-fx-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  max-width: 540px;
  max-height: 82vh;
  margin: 0 auto;
  padding: 18px 16px 22px;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 -18px 40px rgba(15, 23, 42, 0.18);
}

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

.mobile-fx-panel-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.mobile-fx-panel-head button {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.mobile-fx-section {
  padding: 12px 0;
  border-top: 1px solid #eef2f7;
}

.mobile-fx-section h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 900;
}

.mobile-fx-rate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.mobile-fx-rate strong {
  font-size: 15px;
  font-weight: 900;
}

.mobile-fx-rate span {
  color: #64748b;
  font-size: 13px;
  text-align: right;
}

.mobile-fx-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.mobile-fx-form label {
  display: grid;
  gap: 5px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.mobile-fx-form input,
.mobile-fx-form select {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font: inherit;
}

body.mobile-fx-open {
  overflow: hidden;
}

.mobile-price-detail-page {
  background: #f5f7fb;
}

.mobile-detail-topbar {
  align-items: center;
  gap: 8px;
}

.mobile-detail-topbar .mobile-market-brand {
  flex: 1 1 auto;
  text-align: center;
}

.mobile-detail-back {
  flex: 0 0 auto;
  color: #0f766e;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.mobile-detail-hero {
  padding: 18px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #eefdfa 100%);
  border: 1px solid #d9eeea;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.08);
}

.mobile-detail-title h1 {
  margin: 0;
  color: #111827;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0;
}

.mobile-detail-title p,
.mobile-detail-updated {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.mobile-detail-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.mobile-detail-price-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mobile-detail-price-row span,
.mobile-detail-price-row small {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.mobile-detail-price-row strong {
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.mobile-detail-price-row b {
  min-width: 82px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  text-align: center;
}

.mobile-detail-hero.trend-up .mobile-detail-price-row strong {
  color: #ef4444;
}

.mobile-detail-hero.trend-down .mobile-detail-price-row strong {
  color: #10b981;
}

.mobile-detail-hero.trend-up .mobile-detail-price-row b {
  background: #ef4444;
}

.mobile-detail-hero.trend-down .mobile-detail-price-row b {
  background: #10b981;
}

.mobile-detail-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.mobile-detail-card {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
}

.mobile-detail-card h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0;
}

.mobile-detail-ranges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mobile-detail-ranges article {
  min-width: 0;
  padding: 11px 9px;
  border-radius: 12px;
  background: #f8fafc;
}

.mobile-detail-ranges h3 {
  margin: 0 0 9px;
  color: #0f766e;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
}

.mobile-detail-ranges div {
  display: grid;
  gap: 2px;
  margin-top: 7px;
}

.mobile-detail-ranges span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
}

.mobile-detail-ranges strong {
  color: #111827;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 900;
  word-break: break-all;
}

.mobile-detail-chart {
  min-height: 238px;
  border-radius: 14px;
  background: #f8fafc;
  overflow: hidden;
}

.mobile-detail-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.mobile-detail-grid {
  stroke: #dbe3ee;
  stroke-width: 1;
}

.mobile-detail-axis {
  fill: #64748b;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 390px) {
  .mobile-market-main {
    grid-template-columns: minmax(92px, 1fr) 76px minmax(104px, auto);
    gap: 8px;
  }

  .mobile-market-spark {
    width: 76px;
  }

  .mobile-market-name h2,
  .mobile-market-price {
    font-size: 18px;
  }

  .mobile-market-change {
    min-width: 68px;
    font-size: 14px;
  }

  .mobile-detail-price-row strong {
    font-size: 32px;
  }

  .mobile-detail-ranges {
    gap: 6px;
  }

  .mobile-detail-ranges article {
    padding: 10px 7px;
  }

  .mobile-detail-ranges strong {
    font-size: 14px;
  }
}

.mobile-policy-page {
  min-height: 100vh;
  background: #f5f7fb;
  color: #111827;
}

.mobile-policy-page .mobile-lang.compact {
  padding: 3px 6px;
  background: #eef2f7;
  color: #475569;
}

.mobile-policy-page .mobile-lang.compact a {
  color: #475569;
}

.mobile-policy-page main.mobile-policy-shell {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 14px 14px 28px;
}

.mobile-policy-title {
  margin: 8px 0 14px;
}

.mobile-policy-title h1 {
  margin: 0;
  color: #111827;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
}

.mobile-policy-title p {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.mobile-policy-group {
  margin-top: 16px;
}

.mobile-policy-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 2px 8px;
}

.mobile-policy-group-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 900;
}

.mobile-policy-group-head span {
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

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

.mobile-policy-card {
  padding: 12px;
  border: 1px solid #e5edf6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.mobile-policy-card-main {
  display: block;
}

.mobile-policy-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.mobile-policy-card-top span {
  display: inline-flex;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  background: #d9fbf2;
  color: #0f766e;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 900;
}

.mobile-policy-card h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 900;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mobile-policy-meta {
  display: -webkit-box;
  margin: 7px 0 0;
  overflow: hidden;
  color: #7b8794;
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.mobile-policy-summary {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mobile-policy-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.mobile-policy-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
