/* SECTION: base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --ink: #15181a;
  --soft: #5c6469;
  --line: #e3e6e4;
  --brand: #e0562d;
  --paper: #fcfcfb;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.8rem, 4.4vw, 2.7rem);
  font-weight: 800;
}

h2 {
  font-size: 1.05rem;
  font-weight: 800;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 30px);
}

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

/* SECTION: header */
header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  min-height: 62px;
}

.logo {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-right: auto;
}

.logo small {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft);
  font-weight: 700;
}

nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

nav a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--soft);
  padding: 7px 10px;
  border-radius: 8px;
}

nav a:hover {
  color: var(--ink);
  background: #f1f2f0;
}

/* SECTION: intro */
.intro {
  padding-block: clamp(34px, 6vw, 56px);
  border-bottom: 1px solid var(--line);
}

.intro p {
  max-width: 60ch;
  color: var(--soft);
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: 18px;
}

.contact-line a {
  border-bottom: 2px solid var(--brand);
  padding-bottom: 1px;
}

.contact-line span {
  color: var(--soft);
}

/* SECTION: products */
.products {
  padding-block: clamp(30px, 5vw, 48px);
}

.products > h2 {
  margin-bottom: 4px;
}

.products > p {
  color: var(--soft);
  font-size: 0.9rem;
}

.set {
  margin-top: 26px;
}

.set h3 {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 6px 18px;
  align-items: start;
}

/* SECTION: photo slot — drop a real image URL into data-image on each img in index.html */
.thumb {
  grid-row: 1 / -1;
  position: relative;
  width: 112px;
  aspect-ratio: 1 / 1;
  border: 1.5px dashed #cdd1cf;
  border-radius: 12px;
  background: #f5f6f4;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  padding: 8px;
}

.thumb span {
  font-size: 0.62rem;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ba09c;
  font-weight: 800;
}

.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.thumb.has img {
  display: block;
}

.thumb.has span {
  display: none;
}

.line {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: baseline;
  min-width: 0;
}

.line .code {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--soft);
  min-width: 52px;
}

.line .en {
  font-weight: 700;
}

.line .cn {
  color: var(--soft);
  font-size: 0.86rem;
  margin-left: auto;
}

.colors {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--soft);
  min-width: 0;
}

.colors i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.colors em {
  font-style: normal;
  letter-spacing: 0.02em;
}

@media (max-width: 480px) {
  li {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 6px 14px;
  }

  .thumb {
    width: 86px;
  }

  .line .cn {
    margin-left: 0;
    width: 100%;
  }
}

/* SECTION: about + footer */
.about {
  padding-block: clamp(28px, 5vw, 44px);
  border-top: 1px solid var(--line);
}

.about h2 {
  margin-bottom: 10px;
}

.about ul {
  border-top: 0;
  list-style: disc;
  padding-left: 1.2rem;
  color: var(--soft);
}

.about li {
  display: list-item;
  border-bottom: 0;
  padding: 3px 0;
  grid-template-columns: none;
}

footer {
  border-top: 1px solid var(--line);
  padding-block: 20px;
  font-size: 0.82rem;
  color: var(--soft);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.flag {
  font-size: 0.8rem;
  color: var(--brand);
  font-weight: 700;
}
