/* ===== 配色与基础变量：黑白极简 + 橙色点缀 ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f5;
  --text: #111111;
  --text-secondary: #6b6b66;
  --accent: #f04e0a;
  --accent-soft: rgba(240, 78, 10, 0.07);
  --border: #e8e8e4;
  --radius: 4px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ===== 导航 ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.logo .logo-cn {
  font-weight: 400;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  border-left: 1px solid var(--border);
  padding-left: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

.lang-toggle {
  font-family: var(--mono);
  font-size: 12px;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.lang-toggle:hover {
  border-color: var(--text);
  color: var(--text);
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

/* 细网格背景 + 一个橙色标记点 */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 65% at 55% 40%, black 15%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 55% 40%, black 15%, transparent 78%);
  opacity: 0.75;
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: 22%;
  right: 18%;
  width: 10px;
  height: 10px;
  background: var(--accent);
  box-shadow:
    -176px 96px 0 -2px var(--text),
    64px 240px 0 -3px var(--accent);
  opacity: 0.9;
}

.hero-content { position: relative; }

.hero-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.hero-tag::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 12px;
}

.hero-title {
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-title .dot { color: var(--accent); }

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ===== 区块通用 ===== */
.section { padding: 110px 0; }

.section-alt { background: var(--bg-alt); }

.section-head { margin-bottom: 56px; }

.section-head .kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ===== 产品卡片 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--text);
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.07);
}

.product-card img {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
}

.product-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-card .product-desc {
  font-size: 14px;
  color: var(--text-secondary);
  flex: 1;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.product-tags span {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 2px;
}

.product-link {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
}

.product-link:hover { text-decoration: underline; }

/* ===== 关于 / 联系 ===== */
.about-text {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 18px;
}

.contact-email {
  display: inline-block;
  font-family: var(--mono);
  font-size: clamp(18px, 3vw, 24px);
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  transition: color 0.2s;
}

.contact-email:hover { color: var(--accent); }

/* ===== 页脚 ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer .icp {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer .icp:hover { color: var(--accent); }

/* ===== 滚动淡入 ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }

  .product-grid { grid-template-columns: 1fr; }

  .logo .logo-cn { display: none; }

  .menu-btn { display: flex; }

  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s;
  }

  .nav-links.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 15px;
  }

  .lang-toggle { align-self: flex-start; margin-top: 8px; }

  .menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn.open span:nth-child(2) { opacity: 0; }
  .menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
