/* ============================================================
   FontCreator 中文官网 - 公共样式 common.css
   主题色: #0A3E87
   ============================================================ */

/* ---------- 重置 & 基础 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1f2937;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: #0A3E87; text-decoration: none; transition: color .2s ease; }
a:hover { color: #1557b8; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

:root {
  --primary: #0A3E87;
  --primary-light: #1557b8;
  --primary-dark: #072c63;
  --primary-50: #eef4fc;
  --primary-100: #d8e6f7;
  --accent: #f5b800;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg-soft: #f7f9fc;
  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(10, 62, 135, .06);
  --shadow-md: 0 8px 24px rgba(10, 62, 135, .08);
  --shadow-lg: 0 18px 48px rgba(10, 62, 135, .12);
  --maxw: 1200px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============================================================
   导航栏 Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(10, 62, 135, .08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.site-header__brand img { height: 36px; width: auto; }
.site-header__brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.site-header__brand-name { font-size: 18px; font-weight: 700; color: #0A3E87; letter-spacing: .2px; }
.site-header__brand-by { font-size: 11px; color: #6b7280; margin-top: 2px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.site-nav a {
  position: relative;
  color: #1f2937;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all .2s ease;
}
.site-nav a:hover { color: #0A3E87; background: var(--primary-50); }
.site-nav a.active { color: #0A3E87; }
.site-nav a.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px;
  height: 2px; background: #0A3E87; border-radius: 2px;
}

.site-header__cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-trial, .btn-buy {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  transition: all .25s ease; white-space: nowrap;
}
.btn-trial {
  color: #0A3E87; background: transparent;
  border: 1px solid rgba(10, 62, 135, .25);
}
.btn-trial:hover { background: var(--primary-50); border-color: #0A3E87; color: #0A3E87; }
.btn-buy {
  color: #fff;
  background: linear-gradient(135deg, #0A3E87, #1557b8);
  box-shadow: 0 6px 18px rgba(10, 62, 135, .3);
}
.btn-buy:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(10, 62, 135, .4); color: #fff; }
.btn-trial svg, .btn-buy svg { width: 16px; height: 16px; }

/* 汉堡菜单 */
.hamburger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  align-items: center; justify-content: center;
  background: transparent;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #0A3E87; border-radius: 2px;
  position: relative;
  transition: all .25s ease;
}
.hamburger span::before, .hamburger span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px;
  background: #0A3E87; border-radius: 2px; transition: all .25s ease;
}
.hamburger span::before { top: -7px; }
.hamburger span::after { top: 7px; }
.hamburger.is-open span { background: transparent; }
.hamburger.is-open span::before { top: 0; transform: rotate(45deg); }
.hamburger.is-open span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .site-header__inner { gap: 12px; }
  /* 移动端隐藏桌面 nav 和 CTA 按钮，仅保留汉堡 */
  .site-nav { display: none; }
  .site-header__cta .btn-trial,
  .site-header__cta .btn-buy { display: none; }
  .hamburger { display: inline-flex; }
}
@media (max-width: 520px) {
  .site-header__brand img { width: 36px; height: 36px; }
  .site-header__brand-name { font-size: 16px; }
  .site-header__brand-by { font-size: 10.5px; }
}

/* ============================================================
   移动端抽屉菜单 m-menu（设计师风格）
   ============================================================ */
.m-menu, .m-menu__backdrop { display: none; }
@media (max-width: 1024px) {
  .m-menu__backdrop {
    display: block;
    position: fixed; inset: 0;
    background: rgba(8, 18, 42, .55);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 998;
  }
  .m-menu__backdrop.is-open { opacity: 1; }

  .m-menu {
    display: flex; flex-direction: column;
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(88vw, 400px);
    background: #fff;
    z-index: 999;
    transform: translateX(100%);
    transition: transform .42s cubic-bezier(.4, 0, .2, 1);
    box-shadow: -30px 0 60px rgba(8, 18, 42, .25);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .m-menu.is-open { transform: translateX(0); }
  .m-menu::before {
    content: "FC.";
    position: absolute; top: 60px; right: -30px;
    font: italic 700 240px/1 Georgia, "Times New Roman", serif;
    color: rgba(10, 62, 135, .04);
    letter-spacing: -10px;
    pointer-events: none; -webkit-user-select: none; user-select: none;
  }

  /* 顶部品牌区 */
  .m-menu__head {
    position: relative;
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 22px 18px;
    border-bottom: 1px solid rgba(10, 62, 135, .08);
  }
  .m-menu__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
  .m-menu__brand img { width: 42px; height: 42px; object-fit: contain; }
  .m-menu__brand b { display: block; font-size: 17px; font-weight: 700; color: #0A3E87; letter-spacing: .2px; }
  .m-menu__brand i { display: block; font-style: normal; font-size: 11px; color: #6b7280; margin-top: 2px; }
  .m-menu__close {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--primary-50, #eef4fc); color: #0A3E87;
    display: inline-flex; align-items: center; justify-content: center;
    border: none; cursor: pointer;
    transition: background .2s ease, transform .2s ease;
  }
  .m-menu__close svg { width: 20px; height: 20px; }
  .m-menu__close:hover { background: rgba(10, 62, 135, .12); transform: rotate(90deg); }

  /* 序号小标 */
  .m-menu__kicker {
    position: relative;
    display: inline-flex; align-items: center; gap: 10px;
    margin: 22px 22px 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px; font-weight: 700; letter-spacing: 2px;
    color: #6b7280; text-transform: uppercase;
  }
  .m-menu__kicker .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #f5b800; box-shadow: 0 0 0 3px rgba(245, 184, 0, .2);
  }

  /* 导航列表 */
  .m-menu__list {
    position: relative;
    display: flex; flex-direction: column;
    padding: 4px 14px 20px;
  }
  .m-menu__link {
    position: relative;
    display: grid;
    grid-template-columns: 38px 1fr 22px;
    align-items: center;
    padding: 14px 12px;
    border-radius: 12px;
    color: #0a1024;
    text-decoration: none;
    transition: background .25s ease, transform .25s ease;
    opacity: 0;
    transform: translateX(20px);
    animation: mLinkIn .5s cubic-bezier(.2, .8, .2, 1) forwards;
    animation-delay: calc(var(--i) * 50ms + 180ms);
  }
  @keyframes mLinkIn {
    to { opacity: 1; transform: translateX(0); }
  }
  .m-menu__link:hover { background: var(--primary-50, #eef4fc); }
  .m-menu__link.is-active {
    background: linear-gradient(135deg, rgba(10, 62, 135, .08), rgba(245, 184, 0, .08));
    color: #0A3E87;
  }
  .m-menu__link.is-active::before {
    content: ""; position: absolute; left: 0; top: 50%;
    width: 3px; height: 22px; transform: translateY(-50%);
    background: linear-gradient(180deg, #0A3E87, #f5b800);
    border-radius: 0 3px 3px 0;
  }
  .m-menu__num {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px; font-weight: 700;
    color: #94a3b8; letter-spacing: .5px;
  }
  .m-menu__link.is-active .m-menu__num { color: #f5b800; }
  .m-menu__lbl {
    font-size: 17px; font-weight: 600; letter-spacing: -.1px;
  }
  .m-menu__arr {
    color: #cbd5e1;
    display: inline-flex; align-items: center; justify-content: flex-end;
    transition: transform .25s ease, color .25s ease;
  }
  .m-menu__arr svg { width: 18px; height: 18px; }
  .m-menu__link:hover .m-menu__arr { color: #0A3E87; transform: translateX(4px); }
  .m-menu__link.is-active .m-menu__arr { color: #0A3E87; }

  /* CTA 按钮组 */
  .m-menu__cta {
    position: relative;
    display: flex; flex-direction: column; gap: 10px;
    padding: 16px 22px 20px;
    margin-top: auto;
    border-top: 1px solid rgba(10, 62, 135, .08);
  }
  .m-menu__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px; font-weight: 600;
    text-decoration: none;
    transition: all .25s ease;
  }
  .m-menu__btn svg { width: 18px; height: 18px; }
  .m-menu__btn--primary {
    color: #1f2937;
    background: linear-gradient(135deg, #f5b800, #ffd54a);
    box-shadow: 0 8px 22px rgba(245, 184, 0, .35);
  }
  .m-menu__btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(245, 184, 0, .45); }
  .m-menu__btn--ghost {
    color: #0A3E87;
    background: var(--primary-50, #eef4fc);
    border: 1px solid rgba(10, 62, 135, .12);
  }
  .m-menu__btn--ghost:hover { background: rgba(10, 62, 135, .08); }

  /* 底部信息 */
  .m-menu__foot {
    position: relative;
    padding: 0 22px 22px;
    display: flex; flex-direction: column; gap: 8px;
  }
  .m-menu__foot-item {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 13px; color: #4b5563;
    text-decoration: none;
    transition: color .2s ease;
  }
  .m-menu__foot-item svg { width: 14px; height: 14px; color: #0A3E87; flex-shrink: 0; }
  .m-menu__foot-item:hover { color: #0A3E87; }
  .m-menu__sig {
    margin-top: 8px; padding-top: 12px;
    border-top: 1px dashed rgba(10, 62, 135, .12);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10.5px; color: #94a3b8;
    letter-spacing: 1px;
  }
}


/* ============================================================
   页脚 Footer
   ============================================================ */
.site-footer {
  margin-top: 80px;
  background: linear-gradient(180deg, #0A3E87 0%, #072c63 100%);
  color: rgba(255, 255, 255, .85);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 300px at 10% 0%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(600px 260px at 90% 100%, rgba(245,184,0,.10), transparent 60%);
  pointer-events: none;
}
.site-footer__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 28px;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.site-footer__brand { display: flex; align-items: center; gap: 14px; }
.site-footer__brand img {
  height: 44px; width: auto;
  background: #fff; padding: 6px 10px; border-radius: 10px;
}
.site-footer__brand-name { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: .3px; }
.site-footer__brand-by   { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 2px; }

.site-footer__about { margin-top: 18px; font-size: 14px; line-height: 1.8; color: rgba(255,255,255,.75); max-width: 460px; }
.site-footer__about strong { color: #fff; }

.site-footer__col h4 {
  color: #fff; font-size: 14px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px;
}
.site-footer__col h4::before {
  content: ""; display: inline-block;
  width: 18px; height: 2px; background: #f5b800; border-radius: 2px;
}
.site-footer__contact { display: flex; flex-direction: column; gap: 14px; }
.site-footer__contact-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: rgba(255,255,255,.85);
}
.site-footer__contact-item svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: #f5b800; }
.site-footer__contact-item a { color: rgba(255,255,255,.85); }
.site-footer__contact-item a:hover { color: #f5b800; }

.site-footer__notice {
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(255,255,255,.06);
  border-left: 3px solid #f5b800;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,.8);
}

.site-footer__bottom {
  position: relative;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}
.site-footer__bottom a { color: rgba(255,255,255,.7); }
.site-footer__bottom a:hover { color: #fff; }

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

/* ============================================================
   通用按钮 / 工具类
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #0A3E87, #1557b8);
  box-shadow: 0 8px 22px rgba(10,62,135,.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(10,62,135,.35); color: #fff; }
.btn--ghost {
  color: #0A3E87; background: #fff;
  border: 1px solid rgba(10,62,135,.2);
}
.btn--ghost:hover { background: var(--primary-50); border-color: #0A3E87; }
.btn--accent {
  color: #1f2937;
  background: linear-gradient(135deg, #ffd54a, #f5b800);
  box-shadow: 0 8px 22px rgba(245,184,0,.3);
}
.btn--accent:hover { transform: translateY(-2px); color: #1f2937; }

.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
@media (max-width: 768px) { .section { padding: 64px 0; } }

.section-eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  color: #0A3E87;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-50);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  letter-spacing: -.5px;
}
.section-title em { font-style: normal; color: #0A3E87; }
.section-lead {
  margin-top: 16px;
  font-size: 17px; line-height: 1.8;
  color: #4b5563;
  max-width: 760px;
}
