/* ============================================================
   秘钥在线 — 公共样式表 v1.0
   用途：全站二级页面共用。直接从首页v3.1提取。
   使用：每个二级页面在 <style> 开头 @import 或直接粘贴本文件。
   ============================================================ */

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: #fbfaf8;
  color: #1c1c1c;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

/* ===== Design Tokens ===== */
:root {
  --cream: #fbfaf8;
  --cream-warm: #f8f5f0;
  --warm-white: #fefdfb;
  --gray-50: #f7f6f4;
  --gray-100: #edebe7;
  --gray-200: #dcd9d2;
  --gray-400: #a8a49d;
  --gray-500: #7a7670;
  --gray-600: #5c5852;
  --gray-800: #2d2a26;
  --gray-900: #1c1c1c;
  --green-50: #f2f7f4;
  --green-100: #deede4;
  --green-200: #b8d5c2;
  --green-500: #3d7857;
  --green-600: #2a5440;
  --green-700: #1a3a2a;
  --green-800: #0f241a;
}

/* ===== Typography ===== */
.serif {
  font-family: "Georgia", "Noto Serif SC", "STSong", "Songti SC", "SimSun", "Times New Roman", serif;
}

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.015em; }
h1 {
  font-family: "Georgia", "Noto Serif SC", "STSong", "Songti SC", serif;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1.2;
  font-weight: 400;
  color: var(--gray-900);
}
h2 {
  font-family: "Georgia", "Noto Serif SC", "STSong", "Songti SC", serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.25;
  font-weight: 400;
  color: var(--gray-900);
}

/* Page-level h1 — smaller than Hero h1 */
.page-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.3;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--gray-800);
}

.body-large {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--gray-600);
  max-width: 34rem;
}

.body-small {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--gray-500);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 0.625rem;
}

/* ===== Layout ===== */
.container {
  max-width: none;
  margin: 0 auto;
  padding: 0 calc(5rem + 159px);
}

.section {
  padding: 7rem 0;
}

@media (min-width: 1800px) {
  .container { padding: 0 calc(8rem + 159px); }
  .nav-inner { padding: 0 calc(8rem + 159px); }
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(251, 250, 248, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.nav-inner {
  max-width: none;
  margin: 0 auto;
  padding: 0 calc(5rem + 159px);
  height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: "Huawei Sans","HarmonyOS Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.nav-logo-slogan {
  font-family: "Georgia", "Noto Serif SC", "STSong", "Songti SC", serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gray-800);
  font-style: normal;
  margin-left: 0.5rem;
}

.nav-logo-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.nav-logo-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-800);
  font-size: 0.9375rem;
  font-weight: 400;
  transition: color 0.15s;
}

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

.nav-cta {
  background: var(--gray-900);
  color: #fff;
  border: none;
  padding: 0.5rem 1.125rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.nav-links .nav-cta { color: #fff; }  /* 提权覆盖 .nav-links a */
.nav-cta:hover { background: var(--green-700); }
.nav-links .nav-cta:hover { color: #fff; }

/* ===== 导航下拉菜单 ===== */
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-arrow { font-size: 0.65em; margin-left: 2px; opacity: 0.5; vertical-align: middle; transition: opacity 0.2s; }
.nav-dropdown:hover .dropdown-arrow { opacity: 1; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--gray-200); border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08); padding: 0.5rem 0; min-width: 160px;
  z-index: 1000; white-space: nowrap;
}
.dropdown-menu a {
  display: block; padding: 0.55rem 1.25rem; font-size: 0.875rem;
  color: var(--gray-800) !important; text-decoration: none;
  transition: background 0.15s;
}
.dropdown-menu a:hover { background: var(--gray-50); color: var(--gray-900) !important; }
.dropdown-menu a::before {
  content: "—";
  margin-right: 0.5rem;
  color: var(--gray-400);
  font-size: 0.75em;
  opacity: 0.6;
}
.dropdown-menu a:hover::before { color: var(--green-500); opacity: 1; }
.dropdown-divider {
  display: none;
}
.nav-dropdown:hover .dropdown-menu { display: block; }

/* ===== 面包屑 ===== */
.breadcrumb {
  padding-top: 5rem; /* nav offset */
  padding-bottom: 1rem;
  font-size: 0.8125rem;
  color: var(--gray-400);
}
.breadcrumb a {
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--green-600); }
.breadcrumb span { margin: 0 0.375rem; }

/* ===== Page Header ===== */
.page-header {
  text-align: center;
  padding: 2rem 0 5rem;
}
.page-header h1 {
  margin-bottom: 1.5rem;
}
.page-header .page-desc {
  font-size: 1.0625rem;
  color: var(--gray-500);
  max-width: 32rem;
  margin: 0 auto;
  line-height: 1.65;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}
.btn-primary {
  background: var(--gray-900);
  color: #fff;
}
.btn-primary:hover { background: var(--green-700); }
.btn-outline {
  background: transparent;
  color: var(--gray-900);
  border: 1.5px solid var(--gray-200);
}
.btn-outline:hover { border-color: var(--gray-900); }
.btn-ghost {
  background: transparent;
  color: var(--gray-900);
  border-bottom: 1.5px solid var(--gray-900);
  padding: 0.5rem 0;
  border-radius: 0;
}
.btn-ghost:hover { color: var(--green-600); border-color: var(--green-500); }

/* ===== 卡片 ===== */
.card {
  background: var(--warm-white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover {
  border-color: var(--gray-200);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* ===== 标签 ===== */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
}
.tag-green {
  background: var(--green-50);
  color: var(--green-600);
}
.tag-gray {
  background: var(--gray-50);
  color: var(--gray-500);
}

/* ===== 分隔线 ===== */
.divider {
  border: none;
  border-top: 1px solid var(--gray-100);
  margin: 0;
}

/* ===== Footer ===== */
.footer { background: #0f1a14; padding: 5rem 0 2rem; font-size: 0.9375rem; color: rgba(255,255,255,0.55); }
.footer-inner { display: flex; align-items: flex-start; gap: 4rem; }
.footer-brand-col { display: flex; flex-direction: column; gap: 1rem; flex-shrink: 0; }
.footer-logo-row { display: flex; align-items: center; gap: 0.5rem; }
.footer-logo-icon { width: 26px; height: 26px; flex-shrink: 0; }
.footer-logo-icon img { width: 100%; height: 100%; display: block; }
.footer-logo-name { font-family: "Huawei Sans","HarmonyOS Sans SC","PingFang SC","Microsoft YaHei",sans-serif; font-size: 1.25rem; font-weight: 700; color: #fff; }
.footer-slogan { font-family: "PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif; font-size: 0.9375rem; font-weight: 600; color: rgba(255,255,255,0.65); line-height: 1.6; max-width: 240px; margin: 0; }
.footer-links { display: grid; grid-template-columns: repeat(4, 5.5rem); gap: 2rem; }
.footer-col h5 { font-family: "PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif; font-size: 0.875rem; font-weight: 600; color: rgba(255,255,255,0.4); margin-bottom: 1.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.footer-col a { display: block; text-decoration: none; color: rgba(255,255,255,0.65); font-family: "PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif; font-size: 0.8125rem; font-weight: 600; line-height: 2.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.15s; }
.footer-col a:hover { color: #5a9e7a; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 3.5rem; padding-top: 1.5rem; font-size: 0.75rem; color: rgba(255,255,255,0.3); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .container { padding: 0 2rem; }
  .nav-inner { padding: 0 2rem; }
  .footer-inner { flex-direction: column; gap: 2.5rem; }
  .footer-links { grid-template-columns: repeat(2, 5.5rem); gap: 1.5rem; }
}
