/* POTENTIA 字标 — VI 指定阿里妈妈方圆体 Bold-Square (wght 700 / BEVL 1, 自托管子集仅含 P/O/T/E/N/I/A) */
@font-face {
  font-family: 'Alimama FangYuanTi VF';
  src: url('fonts/AlimamaFangYuanTiVF-BoldSquare-POTENTIA.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1A1A1A;
  --wordmark: #171717;
  --ink-soft: #4A4A4A;
  --ink-muted: #8A8A8A;
  --line: #E5E5E5;
  --line-soft: #F2F2F2;
  --surface: #FFFFFF;
  --surface-dark: #0E0E0E;

  --font-sans-zh: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-sans-en: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-wordmark: 'Alimama FangYuanTi VF', var(--font-display);

  --max-content: 1200px;
  --gutter: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans-zh);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.lang-en { font-family: var(--font-sans-en); }

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

/* ============ Top Bar ============ */
.top-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.top-bar-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

.brand-mark {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text {
  font-family: var(--font-wordmark);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 15px;
  color: var(--wordmark);
  line-height: 1;
}

/* ============ Hero (Single Fold) ============ */
.hero {
  position: relative;
  flex: 1 1 auto;
  display: grid;
  align-items: center;
  padding: clamp(48px, 8vh, 96px) var(--gutter);
  max-width: var(--max-content);
  margin: 0 auto;
  width: 100%;
}

/* 四角装饰框 */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--ink);
  border-style: solid;
  pointer-events: none;
}
.hero::before {
  top: clamp(24px, 4vh, 40px);
  left: var(--gutter);
  border-width: 1.5px 0 0 1.5px;
}
.hero::after {
  bottom: clamp(24px, 4vh, 40px);
  right: var(--gutter);
  border-width: 0 1.5px 1.5px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  width: 100%;
}

.hero-grid > * {
  min-width: 0;
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: clamp(16px, 2vh, 24px);
}

.hero-title {
  font-family: var(--font-wordmark);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--wordmark);
  margin-bottom: 12px;
}

.hero-cn-name {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.15em;
  margin-bottom: clamp(28px, 4vh, 44px);
}

body.lang-en .hero-title {
  margin-bottom: clamp(28px, 4vh, 44px);
}

.hero-vision {
  font-size: clamp(24px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 4px;
}

.hero-rule {
  width: 56px;
  height: 2px;
  background: var(--ink);
  margin: clamp(20px, 3vh, 32px) 0;
}

.hero-sub {
  font-size: clamp(14px, 1.3vw, 16px);
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 520px;
  overflow-wrap: anywhere;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  justify-self: end;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--line-soft);
}

.hero-visual img {
  position: relative;
  width: 62%;
  height: 62%;
  object-fit: contain;
  display: block;
}

@media (max-width: 820px) {
  .hero-visual {
    max-width: 180px;
    justify-self: center;
    order: -1;
  }
}

/* ============ Footer ============ */
footer {
  background: var(--surface-dark);
  color: #fff;
  padding: clamp(24px, 4vh, 40px) var(--gutter);
  flex-shrink: 0;
}

.footer-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
}

.footer-meta a { color: #fff; }
.footer-meta a:hover { color: rgba(255, 255, 255, 0.7); }
