/* ================= myFirst 中文官网 ================= */
:root {
  --ink: #16181d;
  --ink-2: #4a4f5a;
  --ink-3: #8a909c;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --line: #e8eaf0;
  --coral: #ff6b5a;
  --sun: #ffc531;
  --sky: #3fa9f5;
  --lime: #3cc68a;
  --grape: #8a6cff;
  --pink: #ff7fb6;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(22, 24, 29, .08);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* 图片加载失败时的柔和占位 */
img.img-missing { visibility: hidden; }

/* ---------- 品牌字标 ---------- */
.brand { font-size: 26px; font-weight: 800; letter-spacing: -.5px; line-height: 1; }
.brand-my { color: var(--coral); }
.brand-first { color: var(--ink); }
.brand-light .brand-first { color: #fff; }

/* ---------- 导航 ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { background: var(--ink); color: #fff !important; padding: 8px 18px; border-radius: 999px; }
.nav-cta:hover { background: var(--coral); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 22px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: .25s; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 28px; border-radius: 999px; font-weight: 600; font-size: 16px; transition: transform .15s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(255,107,90,.3); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- 通用标题 ---------- */
.eyebrow { font-size: 14px; font-weight: 700; color: var(--coral); letter-spacing: 2px; margin-bottom: 12px; }
.section { padding: 110px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.3; font-weight: 800; }
.section-sub { color: var(--ink-2); font-size: 17px; margin-top: 18px; }

/* ---------- 首屏 ---------- */
.hero { background: linear-gradient(180deg, #fff7f2 0%, #fff 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: 70px 0 90px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.15; font-weight: 900; letter-spacing: -1px; }
.hero-tagline { font-size: 24px; font-weight: 700; margin: 18px 0 10px; }
.hero-tagline em { font-style: normal; color: var(--coral); }
.hero-desc { color: var(--ink-2); font-size: 17px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-stat { margin-top: 44px; display: flex; align-items: baseline; gap: 12px; }
.hero-stat strong { font-size: 34px; font-weight: 900; }
.hero-stat span { color: var(--ink-3); }
.hero-visual { position: relative; min-height: 380px; display: flex; align-items: center; justify-content: center; }
.hero-visual img { position: relative; z-index: 2; border-radius: 28px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: 1; }
.blob-1 { width: 260px; height: 260px; background: var(--sun); top: -30px; right: -40px; opacity: .55; }
.blob-2 { width: 200px; height: 200px; background: var(--sky); bottom: -40px; left: -30px; opacity: .35; }

/* ---------- 品牌价值 ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { background: var(--bg-soft); border-radius: var(--radius); padding: 36px 30px; }
.value-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--c); display: grid; place-items: center; margin-bottom: 20px; }
.value-icon svg { width: 28px; height: 28px; fill: #fff; }
.value h3 { font-size: 20px; margin-bottom: 8px; }
.value p { color: var(--ink-2); font-size: 15px; }

/* ---------- 产品系列 ---------- */
.products { background: var(--bg-soft); }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat { background: #fff; border-radius: var(--radius); padding: 30px; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.cat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--c); }
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-img { width: 96px; height: 96px; border-radius: 50%; background: color-mix(in srgb, var(--c) 14%, #fff); display: grid; place-items: center; margin-bottom: 18px; overflow: hidden; }
.cat-img img { width: 84px; height: 84px; object-fit: contain; mix-blend-mode: multiply; }
.cat h3 { font-size: 22px; }
.cat h3 small { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-left: 6px; letter-spacing: 1px; }
.cat p { color: var(--ink-2); font-size: 15px; margin: 4px 0 14px; }
.cat ul { display: flex; flex-wrap: wrap; gap: 8px; }
.cat li { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); }

/* ---------- 明星产品 ---------- */
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 1 / 1; background: var(--bg-soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 22px 24px 26px; }
.card-body h3 { font-size: 20px; margin: 8px 0 6px; }
.card-body p { color: var(--ink-2); font-size: 14.5px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #fff0ee; color: var(--coral); }
.tag-new { background: var(--sun); color: var(--ink); }

/* ---------- App ---------- */
.app { background: var(--ink); color: #fff; }
.app-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.app-logo { height: 44px; width: auto; margin-bottom: 24px; border-radius: 10px; }
.app h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.3; font-weight: 800; margin-bottom: 18px; }
.app-text > p { color: #c4c8d2; font-size: 16px; }
.checks { margin-top: 26px; display: grid; gap: 12px; }
.checks li { padding-left: 32px; position: relative; color: #e6e8ee; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--lime); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.app-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.app-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; background: #2a2d35; }
.app-gallery img:nth-child(2) { transform: translateY(28px); }
.app-gallery img:nth-child(4) { transform: translateY(28px); }

/* ---------- 媒体 ---------- */
.press { padding: 60px 0; border-bottom: 1px solid var(--line); }
.press-title { text-align: center; color: var(--ink-3); font-size: 14px; letter-spacing: 2px; margin-bottom: 24px; }
.press-logos { display: grid; grid-template-columns: repeat(8, 1fr); gap: 20px; align-items: center; }
.press-logos img { width: 100%; max-width: 110px; margin: auto; filter: grayscale(1); opacity: .65; transition: .2s; mix-blend-mode: multiply; }
.press-logos img:hover { filter: none; opacity: 1; }

/* ---------- 新闻 ---------- */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-item { padding: 30px; border-radius: var(--radius); background: var(--bg-soft); }
.news-item time { font-size: 13px; color: var(--coral); font-weight: 700; letter-spacing: 1px; }
.news-item h3 { font-size: 18px; line-height: 1.5; margin: 10px 0; }
.news-item p { color: var(--ink-2); font-size: 14.5px; }

/* ---------- 页脚 ---------- */
.footer { background: #0f1115; color: #a9aebb; padding: 70px 0 30px; font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand p { margin-top: 16px; line-height: 1.9; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid #23262e; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner, .app-inner { grid-template-columns: 1fr; }
  .hero-inner { padding: 40px 0 70px; }
  .hero-visual { min-height: 0; }
  .values, .news-list { grid-template-columns: 1fr; }
  .cats, .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .press-logos { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 0; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .3s; }
  .nav-links.open { max-height: 420px; }
  .nav-links a { width: 100%; padding: 14px 20px; }
  .nav-cta { border-radius: 0; text-align: center; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .cats, .grid-6 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stat strong { font-size: 28px; }
}
