/* HIPI GOMALL — official showcase.
   Layout and typography inspired by a minimal agency site:
   centered typographic hero, simple right-aligned nav, two-tone headings,
   generous spacing, rounded controls. Brand colors stay black / white / red. */

:root {
  --black: #0a0a0a;
  --ink: #141414;
  --muted: #717182;
  --line: rgba(0, 0, 0, 0.1);
  --line-dark: rgba(255, 255, 255, 0.12);
  --paper: #f6f6f7;
  --white: #ffffff;
  --red: #d10a0a;
  --red-deep: #a30808;
  --wa: #25d366;
  --wa-dark: #128c7e;
  --header-h: 72px;
  --wrap: 1080px;
  --radius: 10px;
  --sans: "Noto Sans CJK SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

html[lang="zh-CN"] [lang="en"],
html[lang="zh"] [lang="en"],
html[lang="en"] [lang="zh"] { display: none !important; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
p, h1, h2, h3, h4, ul, figure { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--red); }
button, .btn { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 2000;
  background: var(--red);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.accent { color: var(--red); }

/* Header — logo left, links right, hairline rule */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: #0a0a0a;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line-dark);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { text-decoration: none; color: #fff; flex: 0 0 auto; }
.brand img { height: 44px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.site-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.site-nav a:hover { color: #fff; }

.header-tools { display: flex; align-items: center; gap: 16px; }

.lang-switch {
  display: inline-flex;
  gap: 2px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 3px;
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
}
.lang-switch button.is-active {
  background: #fff;
  color: var(--black);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  border-radius: 1px;
  position: absolute;
  left: 12px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle span { top: 20px; }
.menu-toggle span::before,
.menu-toggle span::after { content: ""; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
body.nav-open .menu-toggle span { background: transparent; }
body.nav-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

/* Hero — typographic, centered, atmospheric, no photos */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(209, 10, 10, 0.28), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(209, 10, 10, 0.1), transparent 40%),
    var(--black);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 96px 0 108px;
  width: min(860px, calc(100% - 48px));
}

.hero-logo {
  height: 72px;
  width: auto;
  margin: 0 auto 36px;
}

.hero-kicker {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 18px;
}
html[lang="en"] .hero-kicker { text-transform: uppercase; }

.hero-title {
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-lead {
  max-width: 40em;
  margin: 0 auto 32px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 36px;
}
.badge-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 550;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { color: inherit; transform: translateY(-1px); }

.btn-red {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-red:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover { background: #fff; color: var(--black); border-color: #fff; }

.btn-dark {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}
.btn-dark:hover { background: #2a2a2a; color: #fff; }

.btn-line {
  background: #fff;
  color: var(--black);
  border-color: var(--line);
}
.btn-line:hover { border-color: var(--black); color: var(--black); }

.btn-wa {
  background: var(--wa);
  color: #07331a;
  border-color: var(--wa);
}
.btn-wa:hover { background: var(--wa-dark); border-color: var(--wa-dark); color: #fff; }

/* Sections */
.section { padding: 112px 0; }
.section-paper { background: var(--paper); }

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 14px;
}
html[lang="en"] .eyebrow { text-transform: uppercase; }

.section h2 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.lede, .section-head p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

/* About */
.about-copy {
  max-width: 720px;
}
.about-copy p { font-size: 17px; color: var(--ink); }
.about-copy p + p { margin-top: 16px; }

.meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  max-width: 800px;
}
.meta-item { border-top: 1px solid var(--line); padding-top: 16px; }
.meta-item dt {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 6px;
}
html[lang="en"] .meta-item dt { text-transform: uppercase; }
.meta-item dd { margin: 0; font-weight: 600; }

/* Business */
.biz-stack { display: grid; gap: 64px; }

.biz-index {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--red);
  margin-bottom: 10px;
}

.biz-block h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 14px;
}
.biz-copy {
  color: var(--muted);
  max-width: 46em;
  font-size: 16.5px;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.partner-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 22px 26px;
}
.partner-card .icon {
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  color: var(--red);
}
.partner-card .icon svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.partner-card .abbr {
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.partner-card strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.partner-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.cats-label {
  margin: 36px 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
}
html[lang="en"] .cats-label { text-transform: uppercase; }

.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 28px;
  border-top: 1px solid var(--line);
}
.cat {
  padding: 18px 0 4px;
  border-top: 0;
}
.cat + .cat { border-left: 1px solid var(--line); padding-left: 28px; }
.cat h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.cat p { color: var(--muted); font-size: 14px; }

.cmlink-logo-box {
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 520px;
}
.cmlink-logo-box img { width: min(400px, 100%); height: auto; }
.partner-caption {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 48px;
}
.why-item {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
}
.why-item .num {
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}
.why-item h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.why-item p { color: var(--muted); font-size: 15px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 12px;
  margin: 28px 0 24px;
}
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: border-color 0.15s ease;
}
.contact-card:hover { border-color: var(--ink); color: inherit; }
.contact-card .icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card .icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-card .icon svg.filled { fill: currentColor; stroke: none; }
.contact-card strong { display: block; font-size: 14px; margin-bottom: 2px; }
.contact-card span { color: var(--muted); font-size: 14px; word-break: break-word; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.map-frame {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  min-height: 280px;
}
.map-frame iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}
.map-fallback {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff;
}

/* Footer */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.62);
  padding: 48px 0 28px;
  border-top: 1px solid rgba(209, 10, 10, 0.18);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand p {
  margin-top: 14px;
  max-width: 22em;
  font-size: 14px;
  line-height: 1.6;
}
.site-footer .brand img { height: 48px; }
.footer-cols {
  display: flex;
  gap: 64px;
}
.footer-cols h3 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-cols a,
.footer-cols p {
  display: block;
  text-decoration: none;
  font-size: 14px;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.62);
}
.footer-cols a:hover { color: #fff; }
.footer-bottom {
  padding-top: 20px;
  font-size: 13px;
  text-align: center;
}

/* WhatsApp FAB */
.wa-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(18, 140, 126, 0.35);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.wa-fab:hover { background: var(--wa-dark); color: #fff; transform: translateY(-2px) scale(1.04); }
.wa-fab svg { width: 28px; height: 28px; fill: currentColor; }

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: #111;
    border-bottom: 1px solid var(--line-dark);
    padding: 8px 0 16px;
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 12px 24px; font-size: 16px; }
  .brand img { height: 40px; }

  .partner-grid,
  .cats,
  .why-grid,
  .contact-grid,
  .meta-row,
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-top { flex-direction: column; }
  .footer-cols { flex-direction: column; gap: 28px; }
  .cat + .cat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 80px 0; }
  .hero-content { padding: 72px 0 80px; }
}

@media (max-width: 640px) {
  .wrap, .hero-content { width: min(var(--wrap), calc(100% - 32px)); }
  .hero-title { font-size: 1.85rem; }
  .hero-lead, .about-copy p, .lede, .section-head p { font-size: 16px; }
  .hero-logo { height: 58px; }
  .wa-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .wa-fab, .site-header { transition: none; }
}

.badge-row-light .badge {
  border-color: var(--line);
  color: var(--black);
  background: #fff;
}

.badge-row-light .badge-label { color: var(--muted); }

@media (max-width: 640px) {
  .hero-badges .badge-label { flex-basis: 100%; }
}
