:root {
  --ink: #121417;
  --muted: #66717f;
  --bg: #f2f4f1;
  --panel: #ffffff;
  --line: #d9ded8;
  --carbon: #192026;
  --steel: #2f5f73;
  --mint: #4faf91;
  --signal: #d54f3d;
  --amber: #e5ad35;
  --shadow: 0 18px 42px rgba(18, 20, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 0 5vw;
  background: rgba(242, 244, 241, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  font-weight: 900;
  background: var(--carbon);
  border-radius: 4px;
  box-shadow: inset 8px 0 0 var(--signal);
}

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

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: #303941;
  font-size: 15px;
}

.solid-btn,
.ghost-btn,
.admin-form button,
.admin-head button,
.table-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 4px;
  font-weight: 800;
}

.solid-btn,
.admin-form button,
.admin-head button {
  color: #fff;
  background: var(--carbon);
}

.ghost-btn {
  color: var(--carbon);
  background: #fff;
  border: 1px solid var(--line);
}

.kicker {
  margin: 0 0 10px;
  color: var(--signal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: 58px 5vw;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(25, 32, 38, 0.96), rgba(25, 32, 38, 0.82)),
    repeating-linear-gradient(90deg, #24313a 0, #24313a 1px, transparent 1px, transparent 68px),
    #192026;
}

.hero-copy h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
}

.hero-copy p:not(.kicker) {
  max-width: 680px;
  color: #cbd5d8;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-board div {
  min-height: 148px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.07);
}

.hero-board b {
  display: block;
  color: var(--amber);
  font-size: 42px;
  line-height: 1;
}

.hero-board span {
  display: block;
  margin-top: 10px;
  color: #dce4e5;
}

.product-strip,
.capability,
.process,
.quality-zone,
.news-ticker,
.page-head,
.list-wrap,
.detail-page,
.admin-screen {
  padding: 72px 5vw;
}

.section-title h2,
.capability h2,
.page-head h1,
.admin-panel h1 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.16;
}

.product-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.product-row article {
  min-height: 270px;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.product-row article:last-child {
  border-right: 0;
}

.product-row span {
  color: var(--mint);
  font-size: 28px;
  font-weight: 900;
}

.product-row p,
.quality-grid p,
.ticker-item small,
.list-item p,
.detail-page header p,
.article-body p {
  color: var(--muted);
}

.capability {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 40px;
  background: #fff;
}

.capability ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.capability li {
  padding: 18px 18px 18px 54px;
  background: linear-gradient(var(--signal), var(--signal)) 22px center / 14px 4px no-repeat #f4f6f4;
  border: 1px solid var(--line);
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  color: #fff;
  background: var(--steel);
}

.step {
  padding: 26px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.step b {
  color: var(--amber);
  font-size: 34px;
}

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

.quality-grid article,
.ticker-item,
.list-item,
.admin-panel,
.side-news {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.quality-grid article {
  padding: 24px;
}

.row-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.row-title a {
  color: var(--steel);
  font-weight: 900;
}

.ticker-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ticker-item {
  display: grid;
  gap: 8px;
  min-height: 190px;
  padding: 22px;
}

.ticker-item span,
.list-no {
  color: var(--signal);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.ticker-item a,
.list-item h2 a {
  font-weight: 900;
}

.page-head {
  color: #fff;
  background: linear-gradient(135deg, var(--carbon), var(--steel));
}

.page-head p:last-child {
  max-width: 720px;
  color: #d4dee0;
}

.list-wrap {
  display: grid;
  gap: 16px;
  background: #fff;
}

.list-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 24px;
  padding: 24px;
}

.list-item span {
  color: var(--signal);
  font-size: 13px;
  font-weight: 900;
}

.detail-page {
  background: #fff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--steel);
}

.detail-page header {
  max-width: 980px;
  margin-bottom: 34px;
}

.detail-page h1 {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.12;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
}

.article-body {
  max-width: 860px;
  font-size: 18px;
}

.side-news {
  display: grid;
  gap: 14px;
  padding: 22px;
  box-shadow: none;
}

.side-news h2 {
  font-size: 22px;
}

.side-news a {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.admin-screen {
  min-height: calc(100vh - 74px);
}

.login-box,
.admin-panel {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.admin-screen.wide .admin-panel {
  max-width: 1200px;
}

.narrow-panel {
  max-width: 720px;
}

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

.admin-head nav,
.table-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
}

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

.admin-form label {
  display: grid;
  gap: 6px;
  color: #35404a;
  font-size: 14px;
  font-weight: 900;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.alert {
  padding: 10px 12px;
  color: #8f2d22;
  background: #fff0ee;
  border: 1px solid #f1c0ba;
  border-radius: 4px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14px;
}

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

th {
  background: #f4f6f4;
}

.table-actions form {
  margin: 0;
}

.table-actions button {
  color: #fff;
  background: var(--signal);
  border: 0;
  cursor: pointer;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 5vw;
  color: #d9e3e4;
  background: var(--carbon);
}

.footer span {
  color: #9fb0b5;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    padding: 14px 5vw;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  .hero-v2,
  .capability,
  .detail-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .product-row,
  .process,
  .quality-grid,
  .ticker-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-row article {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .brand {
    min-width: 0;
  }

  .hero-v2,
  .product-strip,
  .capability,
  .process,
  .quality-zone,
  .news-ticker,
  .page-head,
  .list-wrap,
  .detail-page,
  .admin-screen {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-v2 {
    min-height: auto;
  }

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

  .hero-board,
  .product-row,
  .process,
  .quality-grid,
  .ticker-list,
  .list-item {
    grid-template-columns: 1fr;
  }

  .row-title,
  .admin-head,
  .footer {
    display: block;
  }

  .product-row article {
    border-right: 0;
  }
}
