:root {
  --ink: #1f252d;
  --muted: #637083;
  --line: #d8dde4;
  --paper: #ffffff;
  --soft: #f3f6f9;
  --blue: #1f5f8f;
  --blue-dark: #153f61;
  --orange: #d8682a;
  --steel: #7f8b99;
  --shadow: 0 18px 45px rgba(20, 33, 48, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.6;
  background: var(--paper);
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px rgba(20, 33, 48, 0.09);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 178px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid currentColor;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0;
}

.brand small {
  margin-top: -2px;
  color: currentColor;
  font-size: 12px;
  opacity: 0.78;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 14px;
  white-space: nowrap;
}

.main-nav a {
  opacity: 0.9;
}

.main-nav a:hover {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.lang-btn {
  width: 50px;
  height: 34px;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}

.lang-btn.active {
  color: #fff;
  border-color: var(--orange);
  background: var(--orange);
}

.call-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 84vh;
  overflow: hidden;
  color: #fff;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background: rgba(11, 18, 27, 0.58);
}

.hero-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: min(4vw, 56px);
  width: min(1160px, calc(100% - 48px));
  min-height: 84vh;
  margin: 0 auto;
  padding: 24px 0;
}

.hero-content {
  flex: 1 1 0;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 800;
}

.primary-btn {
  color: #fff;
  background: var(--orange);
}

.secondary-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.section {
  padding: 88px 0;
}

.section-inner {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.intro-band {
  padding: 28px 0;
  color: #fff;
  background: var(--blue-dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.stats-grid > div {
  min-height: 92px;
  padding: 12px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.stats-grid > div:last-child {
  border-right: 0;
}

.stat-value,
.stat-label {
  display: block;
}

.stat-value {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
}

.section-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.left-heading {
  margin: 0;
  text-align: left;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 22px;
  align-items: start;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(20, 33, 48, 0.06);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft);
}

.product-card.is-wide .product-media {
  aspect-ratio: 20 / 9;
}

.product-media img,
.gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 33, 48, 0.05);
}

.gallery-grid img {
  aspect-ratio: 4 / 3;
}

.gallery-grid figcaption {
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 800;
}

.product-body {
  padding: 24px;
}

.product-index {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.product-body h3,
.process-step h3,
.advantage-grid h3 {
  margin: 8px 0 10px;
  font-size: 21px;
  line-height: 1.25;
}

.product-body p,
.process-step p,
.advantage-grid p,
.about-copy p,
.contact-section p {
  margin: 0;
  color: var(--muted);
}

.soft-section {
  background: var(--soft);
}

.split-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 54px;
  align-items: start;
}

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

.industry-item {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 18px;
  border-left: 4px solid var(--orange);
  background: #fff;
}

.industry-item span {
  color: var(--steel);
  font-size: 13px;
  font-weight: 800;
}

.industry-item strong {
  font-size: 18px;
}

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

.process-step {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.process-step span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
}

.advantage-section {
  background: var(--ink);
}

.advantage-panel {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 54px;
  color: #fff;
}

.advantage-panel h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
}

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

.advantage-grid > div {
  padding-top: 18px;
  border-top: 2px solid rgba(255, 255, 255, 0.18);
}

.advantage-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 58px;
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 18px;
  font-size: 16px;
}

.contact-section {
  color: #fff;
  background: var(--blue-dark);
}

.contact-section .eyebrow {
  color: #ffc49c;
}

.contact-section h2 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
}

.contact-section p {
  max-width: 580px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-box {
  padding: 30px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.contact-box dl {
  display: grid;
  gap: 18px;
  margin: 0 0 26px;
}

.contact-box dl > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.contact-box dt {
  color: var(--muted);
  font-weight: 700;
}

.contact-box dd {
  margin: 0;
  font-weight: 700;
}

.full-btn {
  width: 100%;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 40px;
  color: rgba(255, 255, 255, 0.68);
  background: #151a20;
  font-size: 14px;
}

.portal-page {
  background: var(--soft);
}

.portal-header {
  position: sticky;
  color: var(--ink);
}

.portal-main {
  min-height: calc(100vh - 140px);
}

.portal-hero {
  padding: 104px 0 56px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(21, 63, 97, 0.96), rgba(31, 37, 45, 0.9)),
    url("assets/processed/hero-workshop.webp") center / cover;
}

.portal-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.12;
}

.portal-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

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

.portal-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 246px;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 33, 48, 0.06);
}

.portal-card.is-disabled {
  cursor: default;
}

.portal-card span {
  width: fit-content;
  padding: 4px 9px;
  color: #fff;
  background: var(--steel);
  font-size: 12px;
  font-weight: 800;
}

.portal-card.is-live span {
  background: var(--blue);
}

.portal-card.is-planned span {
  background: var(--orange);
}

.portal-card.is-local span {
  color: var(--ink);
  background: #dfe5ec;
}

.portal-card h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.24;
}

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

.portal-card strong {
  align-self: end;
  margin-top: 10px;
  color: var(--blue);
  overflow-wrap: anywhere;
}

[lang="en"] .main-nav {
  gap: 20px;
}

[lang="en"] .hero h1 {
  max-width: 820px;
  font-size: clamp(34px, 4.6vw, 64px);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 24px;
  }

  .main-nav {
    display: none;
  }

  .hero-row {
    display: grid;
    gap: 24px;
    min-height: auto;
    padding-top: 90px;
    padding-bottom: 40px;
  }
  .alu-card { flex: none; max-width: 340px; }

  .stats-grid,
  .gallery-grid,
  .process-grid,
  .advantage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-grid { grid-template-columns: 1fr 1fr; }

  .stats-grid > div:nth-child(2) {
    border-right: 0;
  }

  .split-layout,
  .advantage-panel,
  .about-grid,
  .contact-grid,
  .portal-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

/* —— Aluminum price card (hero, right side) —— */
.alu-card {
  flex: 0 0 260px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  overflow: hidden;
  color: var(--ink);
}

.alu-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.alu-card-badge {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.alu-card-label {
  font-size: 14px;
  font-weight: 800;
}

.alu-card .alu-card-body {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 18px 18px 4px;
}

.alu-price {
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
}

.alu-unit {
  color: var(--muted);
  font-size: 13px;
}

.alu-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 18px 14px;
}

.alu-change {
  font-size: 15px;
  font-weight: 800;
}

.alu-change.up { color: #3a8f5a; }
.alu-change.down { color: #d14335; }

.alu-date {
  color: var(--steel);
  font-size: 12px;
}

.alu-card .alu-card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 700;
  border-top: 1px solid rgba(0,0,0,0.06);
  transition: background 0.15s ease;
}

.alu-card .alu-card-link:hover { background: var(--blue-dark); }

/* remove standalone alu-section styles */
.alu-section { display: none; }

/* —— News grid (homepage) —— */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.news-card {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 22px rgba(20,33,48,0.05);
}
.news-card-head {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line);
}
.news-card-head h3 {
  margin: 0;
  font-size: 18px;
}
.news-card-head span {
  display: block;
  margin-top: 4px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
}
.news-card-body {
  padding: 10px 20px 20px;
  list-style: none;
  margin: 0;
  display: grid;
  gap: 10px;
}
.news-item {
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.news-item:last-child { border-bottom: 0; padding-bottom: 0; }
.news-title {
  display: block;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.15s ease;
}
.news-title:hover { color: var(--orange); }
.news-item time {
  display: block;
  margin-top: 4px;
  color: var(--steel);
  font-size: 12px;
}
.news-brief {
  display: none;
  margin: 8px 0 0;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  background: var(--soft);
  border-left: 3px solid var(--orange);
}
.news-item.is-open .news-brief { display: block; }

/* —— Aluminum detail page —— */
.alu-detail-page { min-height: calc(100vh - 140px); }

.alu-hero {
  padding: 96px 0 48px;
  color: #fff;
  background: linear-gradient(90deg, rgba(21,63,97,0.96), rgba(31,37,45,0.9)),
    url("assets/processed/hero-workshop.webp") center / cover;
}
.alu-hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.15;
}
.alu-hero p:last-child {
  max-width: 700px;
  margin: 16px 0 0;
  color: rgba(255,255,255,0.78);
  font-size: 17px;
}

.alu-current-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 36px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.alu-current-label {
  display: inline-block;
  padding: 3px 10px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
}
.alu-current-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 16px;
}
.alu-current-price {
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
}
.alu-current-unit {
  color: var(--muted);
  font-size: 16px;
}
.alu-current-change {
  display: inline-block;
  margin-top: 10px;
  font-size: 18px;
  font-weight: 800;
}
.alu-current-change.up { color: #5ebb7a; }
.alu-current-change.down { color: #e8705a; }
.alu-current-meta {
  display: grid;
  gap: 18px;
  align-content: center;
}
.alu-current-meta > div {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.alu-current-meta > div:last-child { border-bottom: 0; padding-bottom: 0; }
.alu-current-meta span {
  color: var(--muted);
  font-size: 13px;
}
.alu-current-meta strong {
  font-size: 16px;
}

.alu-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.alu-chart-header h2 { margin: 0; font-size: 22px; }

.alu-chart-tabs { display: flex; gap: 0; }
.alu-tab {
  padding: 7px 20px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.alu-tab:first-child { border-radius: 0; }
.alu-tab.active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.alu-chart-container {
  height: 360px;
  padding: 24px 8px 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.alu-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}
.alu-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}
.alu-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  background: var(--soft);
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
.alu-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.alu-table tbody tr:hover { background: var(--soft); }
.alu-table .alu-up { color: #5ebb7a; font-weight: 800; }
.alu-table .alu-down { color: #e8705a; font-weight: 800; }

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding: 0 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 19px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small,
  .call-link {
    display: none;
  }

  .lang-btn {
    width: 44px;
    height: 32px;
    font-size: 13px;
  }

  .hero-content {
    width: calc(100% - 32px);
  }

  .hero-row {
    width: calc(100% - 32px);
    padding-top: 80px;
    padding-bottom: 36px;
  }
  .alu-card { max-width: 100%; }

  .hero-content,
  .section-inner {
    width: min(100% - 32px, 1160px);
  }

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

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .section {
    padding: 64px 0;
  }

  .intro-band {
    padding: 22px 0;
  }

  .stats-grid,
  .industry-list,
  .gallery-grid,
  .process-grid,
  .advantage-grid {
    grid-template-columns: 1fr;
  }
  .product-grid { grid-template-columns: 1fr; }

  .stats-grid > div,
  .stats-grid > div:nth-child(2) {
    min-height: 72px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .stats-grid > div:last-child {
    border-bottom: 0;
  }

  .contact-box {
    padding: 22px;
  }

  .contact-box dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .alu-price { font-size: 32px; }
  .alu-current-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .alu-current-price { font-size: 40px; }
  .alu-chart-container { height: 250px; }
  .alu-chart-header { display: grid; }
  .news-grid { grid-template-columns: 1fr; }

  .site-footer {
    display: grid;
    padding: 22px 16px;
  }
}
