/* 词元迭代 TokenIter 公司官网 — 白底极简 */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --fg: #1d1d29;
  --muted: #858585;
  --border: #e8e8e8;
  --secondary: #f8f8f8;
  --primary: #1d1d29;
  --accent: #7c3aed;
  --radius: 0.75rem;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI",
    "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.container {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- 导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.5rem;
  background: var(--fg);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.logo-en {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.15s;
}

.nav-desktop a:hover {
  color: var(--fg);
}

@media (min-width: 48rem) {
  .nav-desktop {
    display: flex;
  }
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}

.btn-dark {
  background: var(--fg);
  color: #fff;
}

.btn-dark:hover {
  opacity: 0.85;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--fg);
  background: #fff;
}

.btn-ghost:hover {
  background: var(--secondary);
}

.btn-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
}

/* ---------- Hero / 公司介绍 ---------- */

.hero {
  padding: 6rem 0 5rem;
  text-align: center;
}

.hero-inner {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
}

.hero-slogan {
  margin: 1.1rem 0 0;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--fg);
  font-weight: 600;
}

.hero-desc {
  margin: 1.2rem auto 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 区块 ---------- */

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--secondary);
}

.section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

/* ---------- 核心产品 ---------- */

.product-card {
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
  box-shadow: 0 8px 30px rgba(29, 29, 41, 0.08);
  transform: translateY(-2px);
}

.product-mark img {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 1.1rem;
}

.product-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.product-en {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.35rem;
}

.product-slogan {
  margin: 0.35rem 0 0;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
}

.product-desc {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 34rem;
}

.product-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
}

@media (max-width: 40rem) {
  .product-card {
    flex-direction: column;
  }
}

/* ---------- 技术方向 ---------- */

.tech-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.tech-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}

.tech-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.tech-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- 公司动态 ---------- */

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.news-list li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0.25rem;
  border-bottom: 1px solid var(--border);
}

.news-list li:last-child {
  border-bottom: none;
}

.news-tag {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
}

.news-text {
  color: var(--fg);
  font-size: 0.95rem;
}

/* ---------- 联系方式 ---------- */

.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
}

.contact-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.contact-card a {
  color: var(--accent);
  font-size: 0.95rem;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--fg);
}

.footer-bottom {
  margin-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.8rem;
}
