/*
Theme Name: Chrome Intel
Theme URI: https://example.com/chrome-intel
Author: Chrome Intel
Description: Professional chrome ore information portal theme for market news, price indices, supply chain analysis, and data services.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: chrome-intel
*/

:root {
  --ink: #121416;
  --muted: #5f676d;
  --line: #d9ded9;
  --paper: #f7f8f5;
  --panel: #ffffff;
  --forest: #213d34;
  --steel: #325465;
  --oxide: #8b5138;
  --gold: #b58c45;
  --green: #3f735e;
  --danger: #a84235;
  --radius: 6px;
  --shadow: 0 18px 45px rgba(23, 31, 29, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  background: #111816;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.topbar__inner,
.header__inner,
.section__inner,
.footer__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 245, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--forest);
  color: #fff;
  border-radius: var(--radius);
  font-size: 17px;
}

.brand__name {
  display: block;
  font-size: 19px;
  line-height: 1.1;
}

.brand__tagline {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #26302c;
  font-size: 14px;
  font-weight: 650;
}

.nav a {
  padding: 8px 10px;
  border-radius: var(--radius);
}

.nav a:hover,
.nav .current-menu-item > a {
  background: #e7ece5;
}

.language-switch {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.language-switch a {
  padding: 7px 10px;
  color: var(--muted);
}

.lang-zh .language-switch a:first-child,
.lang-en .language-switch a:last-child {
  background: var(--forest);
  color: #fff;
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--forest);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

.button--ghost {
  background: transparent;
  color: var(--forest);
  border-color: rgba(33, 61, 52, 0.28);
}

.hero {
  position: relative;
  color: #fff;
  isolation: isolate;
  min-height: 640px;
  background-image:
    linear-gradient(90deg, rgba(13, 20, 17, 0.88), rgba(13, 20, 17, 0.52), rgba(13, 20, 17, 0.18)),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/0/0f/Chromite-468934.jpg/1280px-Chromite-468934.jpg");
  background-position: center;
  background-size: cover;
}

.hero--terminal {
  background-image:
    linear-gradient(90deg, rgba(13, 20, 17, 0.92), rgba(13, 20, 17, 0.66), rgba(13, 20, 17, 0.28)),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/0/0f/Chromite-468934.jpg/1280px-Chromite-468934.jpg");
}

.hero__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 44px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  align-items: end;
  gap: 44px;
}

.hero__copy {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #d9c38d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  width: min(760px, 100%);
  margin: 18px 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  width: min(660px, 100%);
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 64px;
}

.hero__actions .button--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}

.source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(740px, 100%);
}

.source-strip span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.market-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(10, 16, 14, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.market-card__head,
.quote-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.market-card__head {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.quote-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
}

.quote-row {
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.quote-row span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.quote-row strong {
  color: #fff;
  white-space: nowrap;
}

.quote-row em {
  min-width: 44px;
  color: rgba(255, 255, 255, 0.7);
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.market-card p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.ticker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  width: min(980px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

.ticker__item {
  padding: 18px;
  background: rgba(11, 17, 15, 0.56);
}

.ticker__label,
.card__meta,
.table-note,
.post-date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.ticker__label {
  color: rgba(255, 255, 255, 0.62);
}

.ticker__value {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: 25px;
  font-weight: 850;
}

.ticker__change {
  display: block;
  color: #8fd1aa;
  font-size: 13px;
}

.ticker__change--down {
  color: #ffb2a8;
}

.section {
  padding: 66px 0;
}

.section--white {
  background: #fff;
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section__head h2,
.content h1,
.content h2,
.content h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.16;
}

.section__head h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.section__head p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted);
}

.market-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

.market-grid--wide {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.desk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.desk-layout h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.14;
}

.desk-layout p {
  max-width: 640px;
  margin: 10px 0 0;
  color: var(--muted);
}

.desk-meta {
  display: grid;
  gap: 8px;
}

.desk-meta span {
  padding: 10px 12px;
  border-left: 3px solid var(--gold);
  background: #f4f6f2;
  color: #36413d;
  font-size: 13px;
  font-weight: 750;
}

.panel,
.card,
.article-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel {
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(23, 31, 29, 0.07);
}

.panel__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.panel__title {
  margin: 0;
  font-size: 19px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.price-table th,
.price-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #edf0ec;
  text-align: left;
}

.price-table th {
  background: #f2f5f1;
  color: #4c5550;
  font-size: 12px;
  text-transform: uppercase;
}

.price-table tr:last-child td {
  border-bottom: 0;
}

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

.down {
  color: var(--danger);
  font-weight: 800;
}

.insight-list {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.insight {
  padding: 16px;
  border: 1px solid #e6ebe5;
  border-radius: var(--radius);
  background: #fbfcfa;
}

.insight h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.insight p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

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

.product-card {
  min-height: 246px;
  padding: 24px;
  border: 1px solid rgba(33, 61, 52, 0.18);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 31, 29, 0.06);
}

.product-card span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--forest);
  color: #fff;
  font-weight: 900;
}

.product-card h3 {
  margin: 0 0 10px;
  line-height: 1.22;
}

.product-card p {
  margin: 0;
  color: var(--muted);
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.coverage-cell {
  min-height: 168px;
  padding: 20px;
  background: #fff;
}

.coverage-cell strong {
  display: block;
  margin-bottom: 10px;
  color: var(--forest);
  font-size: 15px;
}

.coverage-cell p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.method-step {
  padding: 22px;
  border-left: 4px solid var(--gold);
  background: #fff;
}

.method-step h3 {
  margin: 0 0 8px;
}

.method-step p {
  margin: 0;
  color: var(--muted);
}

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

.reference-card {
  min-height: 230px;
  padding: 22px;
  border: 1px solid rgba(33, 61, 52, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 248, 245, 0.98)),
    radial-gradient(circle at 20% 0, rgba(181, 140, 69, 0.16), transparent 36%);
}

.reference-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--oxide);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reference-card h3 {
  margin: 0 0 10px;
  line-height: 1.24;
}

.reference-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.chain {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.chain__item {
  position: relative;
  min-height: 150px;
  padding: 20px;
  background: #fff;
}

.chain__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7px;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
}

.chain__item strong,
.chain__item span {
  display: block;
}

.chain__item strong {
  margin-bottom: 12px;
  color: var(--forest);
  line-height: 1.22;
}

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

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 36px;
  align-items: start;
}

.two-column h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.14;
}

.two-column p {
  margin: 12px 0 22px;
  color: var(--muted);
}

.method-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.method-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) minmax(0, 1fr);
  gap: 20px;
  padding: 18px 20px;
  background: #fff;
}

.method-list strong {
  color: var(--forest);
}

.method-list span {
  color: var(--muted);
}

.card,
.article-card {
  padding: 22px;
}

.card__icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: var(--radius);
  background: #edf1ec;
  color: var(--forest);
  font-weight: 900;
}

.card h3,
.article-card h3 {
  margin: 0 0 10px;
  line-height: 1.25;
}

.card p,
.article-card p {
  margin: 0;
  color: var(--muted);
}

.article-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.article-card--lead {
  min-height: 360px;
  color: #fff;
  background-image:
    linear-gradient(180deg, rgba(13, 20, 17, 0.18), rgba(13, 20, 17, 0.86)),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/1/11/The_surface_mine_storage_place._%28Unsplash%29.jpg/1280px-The_surface_mine_storage_place._%28Unsplash%29.jpg");
  background-position: center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.article-card--lead .card__meta,
.article-card--lead p {
  color: rgba(255, 255, 255, 0.78);
}

.article-stack {
  display: grid;
  gap: 18px;
}

.cta-band {
  background: var(--forest);
  color: #fff;
}

.cta-band .section__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 44px);
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer {
  background: #111816;
  color: rgba(255, 255, 255, 0.72);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
  padding: 46px 0;
}

.footer h3 {
  margin: 0 0 12px;
  color: #fff;
}

.footer p,
.footer ul {
  margin: 0;
  padding: 0;
}

.footer li {
  list-style: none;
  margin: 8px 0;
}

.content {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 60px 0;
}

.content img {
  border-radius: var(--radius);
}

.member-access {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-top: 26px;
}

.member-box {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.member-box--muted {
  background: #f1f4f0;
}

.member-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.member-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.member-form input {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
}

.member-alert {
  padding: 10px 12px;
  border-left: 4px solid var(--gold);
  background: #fff7df;
  color: #6d5121;
}

.member-alert--error {
  border-left-color: var(--danger);
  background: #fff0ee;
  color: #7d3028;
}

.language-gate {
  min-height: calc(100vh - 210px);
  display: grid;
  align-items: center;
  padding: 56px 0;
}

.language-gate__panel {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.language-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 880px) {
  .header__inner,
  .section__head,
  .cta-band .section__inner,
  .footer__inner,
  .market-grid,
  .desk-layout,
  .article-grid,
  .member-access,
  .hero__grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .header__inner {
    align-items: flex-start;
    display: grid;
  }

  .ticker,
  .card-grid,
  .coverage-grid,
  .method-strip,
  .reference-grid,
  .product-grid,
  .chain {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .topbar__inner,
  .hero__actions {
    display: grid;
  }

  .ticker,
  .card-grid,
  .coverage-grid,
  .method-strip,
  .reference-grid,
  .product-grid,
  .chain {
    grid-template-columns: 1fr;
  }

  .method-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .quote-row {
    align-items: flex-start;
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .quote-row em {
    grid-column: 2;
  }

  .hero__inner {
    padding-top: 58px;
  }

  .price-table {
    font-size: 13px;
  }

  .price-table th,
  .price-table td {
    padding: 11px 12px;
  }
}
