:root {
  --ink: #171512;
  --muted: #706b63;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --line: #ded8cd;
  --clay: #b85f40;
  --moss: #63725a;
  --navy: #243447;
  --gold: #c99a3f;
  --shadow: 0 18px 40px rgba(36, 52, 71, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.68;
}
a { color: inherit; text-decoration: none; }

.topbar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: 260px;
  padding: 30px 24px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.brand {
  display: grid;
  gap: 12px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  font-weight: 900;
  background: var(--clay);
  border-radius: 50%;
}

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

.nav {
  display: grid;
  gap: 6px;
  margin-top: 26px;
}

.nav a {
  padding: 12px 0;
  color: var(--navy);
  font-weight: 800;
  border-bottom: 1px solid #eee8df;
}

body > main,
.footer {
  margin-left: 260px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--clay);
  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) 360px;
  gap: 44px;
  min-height: 100vh;
  padding: 64px 6vw;
  background:
    linear-gradient(90deg, rgba(251,250,246,.95), rgba(251,250,246,.8)),
    repeating-linear-gradient(0deg, transparent 0, transparent 34px, rgba(36,52,71,.08) 35px),
    var(--paper);
}

.hero-copy {
  align-self: center;
}

.hero-copy h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.02;
}

.hero-copy p:not(.kicker) {
  max-width: 650px;
  color: var(--muted);
  font-size: 19px;
}

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

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

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

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

.hero-board {
  align-self: center;
  display: grid;
  gap: 14px;
}

.hero-board div {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--clay);
  box-shadow: var(--shadow);
}

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

.hero-board span {
  color: var(--muted);
}

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

.section-title h2,
.capability h2,
.page-head h1,
.admin-panel h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.08;
}

.product-strip {
  background: #fff;
}

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

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

.product-row article {
  min-height: 220px;
  padding: 28px;
}

.product-row span,
.ticker-item span,
.list-no {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.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, .85fr) minmax(320px, 1.15fr);
  gap: 44px;
  background: #f3efe7;
}

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

.capability li {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
}

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

.step {
  min-height: 210px;
  padding: 26px;
  background: rgba(255,255,255,.07);
}

.step b {
  color: var(--gold);
  font-size: 36px;
}

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

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

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

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

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

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

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

.page-head {
  color: #fff;
  background: var(--navy);
}

.page-head p:last-child {
  color: #d7dce0;
}

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

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

.list-item span {
  color: var(--clay);
  font-weight: 900;
}

.detail-page {
  background: #fff;
}

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

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

.detail-page h1 {
  max-width: 980px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
}

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

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

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

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

.admin-screen {
  min-height: 100vh;
}

.login-box,
.admin-panel {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px;
}

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

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

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

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

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

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

.admin-form label {
  display: grid;
  gap: 6px;
  font-weight: 900;
}

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

.alert {
  padding: 10px 12px;
  color: #8c2f28;
  background: #fff0ee;
  border: 1px solid #efc2b8;
}

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

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

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

th {
  background: #f3efe7;
}

.table-actions form { margin: 0; }
.table-actions button {
  color: #fff;
  background: var(--clay);
  border: 0;
}

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

.footer span {
  color: #c5ccd1;
}

@media (max-width: 1100px) {
  .topbar {
    position: sticky;
    inset: auto;
    width: auto;
    padding: 14px 5vw;
  }

  body > main,
  .footer {
    margin-left: 0;
  }

  .brand {
    display: flex;
    align-items: center;
    padding-bottom: 12px;
  }

  .nav {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
    margin-top: 0;
  }

  .nav a {
    border-bottom: 0;
  }

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

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

@media (max-width: 640px) {
  .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: 38px;
  }

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

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