/* ==========================================================
   Iris Lin Translation — 个人简历网站样式
   设计风格：简洁、专业、现代、可信赖
   主色：#1a365d（深蓝）  辅色：浅灰、白色
   ========================================================== */

/* ---------- 1. 设计变量与基础重置 ---------- */
:root {
  --color-primary: #1a365d;
  --color-primary-dark: #122a4a;
  --color-primary-light: #2f6db3;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f8fc;
  --color-text: #2d3748;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-ring: rgba(47, 109, 179, 0.16);

  --shadow-sm: 0 1px 3px rgba(26, 54, 93, 0.08);
  --shadow-md: 0 10px 26px rgba(26, 54, 93, 0.1);
  --shadow-lg: 0 20px 44px rgba(26, 54, 93, 0.18);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --header-height: 72px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;          /* 导航平滑滚动 */
  scroll-padding-top: calc(var(--header-height) + 14px); /* 锚点偏移，避开固定导航 */
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  margin: 0;
}

button {
  font-family: inherit;
}

::selection {
  background: rgba(47, 109, 179, 0.22);
}

/* 键盘焦点样式（无障碍） */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(47, 109, 179, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 通用容器：桌面端限宽居中，移动端自适应 */
.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* 跳过导航链接（仅键盘用户可见） */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 300;
  padding: 10px 18px;
  background: #fff;
  color: var(--color-primary);
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  left: 12px;
}

/* ---------- 2. 固定顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s;
}

/* 页面滚动后给导航加阴影，增强层次感（由 JS 切换） */
.site-header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-height);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

/* 导航菜单（桌面端） */
.primary-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s, background 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.nav-link:hover {
  color: var(--color-primary);
  background: #f1f5fb;
}

/* 当前所在区块高亮（由 JS 监听滚动切换） */
.nav-link.active,
.nav-link:hover::after,
.nav-link.active::after {
  color: var(--color-primary);
  font-weight: 600;
  transform: scaleX(1);
}

/* 右侧工具区：语言切换 + 移动端菜单按钮 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  min-width: 50px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.lang-switch:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-sm);
}

/* 汉堡按钮（默认隐藏，移动端显示） */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
  transition: transform 0.3s, opacity 0.3s;
}

/* 展开时变成 × */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 3. Hero 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + 76px) 0 88px;
  background: linear-gradient(150deg, #132c4f 0%, #1a365d 45%, #1f4e86 100%);
  color: #fff;
  text-align: center;
}

/* 背景装饰光晕 */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  top: -160px;
  right: -120px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(111, 165, 230, 0.32), transparent 65%);
}

.hero::after {
  bottom: -180px;
  left: -140px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(111, 165, 230, 0.2), transparent 65%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 22px;
  padding: 7px 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  color: #cfe0f5;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  line-height: 1.24;
  font-weight: 800;
}

.hero-highlight {
  color: #8fb9ea;
}

.hero-subtitle {
  margin: 0 0 32px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  letter-spacing: 0.06em;
  color: #d5e3f6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 56px;
}

/* 通用按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(8, 24, 50, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #eef4fb;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* Hero 核心数据条 */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 880px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 12px;
}

.hero-stats li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stats strong {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 800;
  color: #fff;
}

.hero-stats span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- 4. 通用区块 ---------- */
.section {
  padding: 92px 0;
}

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

.section-head {
  max-width: 680px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #e7eef8;
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.35;
  font-weight: 800;
  color: var(--color-primary);
}

.section-intro {
  margin: 0;
  color: var(--color-text-muted);
}

/* ---------- 5. 关于我 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: center;
}

.about-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* 灰色圆形头像占位 */
.avatar {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e9eef5, #d3dce8);
  border: 8px solid #fff;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-weight: 700;
  color: #91a5bf;
}

.avatar-caption {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.about-bio {
  max-width: 640px;
  margin: 0 0 28px;
  font-size: 1.02rem;
  color: var(--color-text);
}

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-facts li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fact-label {
  flex: 0 0 78px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #eef3fa;
  color: var(--color-primary-light);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

/* ---------- 6. 服务领域 ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card {
  padding: 32px 26px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: #c9d8ec;
  box-shadow: var(--shadow-md);
}

/* 图标：优先使用系统符号字体渲染为单色图形 */
.service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: #e8eef8;
  color: var(--color-primary);
  font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", sans-serif;
  font-size: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.14rem;
  color: var(--color-primary);
}

.service-card p {
  margin: 0 0 18px;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tags li {
  padding: 4px 11px;
  border: 1px solid #e4ebf4;
  border-radius: 999px;
  background: #f1f5fa;
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

/* ---------- 7. 翻译案例（时间线） ---------- */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}

/* 时间线竖线 */
.timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 11px;
  width: 2px;
  background: #d9e3f1;
}

.timeline-item {
  position: relative;
  padding-left: 46px;
}

/* 时间线节点圆点 */
.timeline-item::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 4px;
  width: 16px;
  height: 16px;
  border: 4px solid var(--color-primary-light);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px #e7eef8;
}

.case-card {
  padding: 22px 26px;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary-light);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.25s, box-shadow 0.25s;
}

.case-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.case-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* 各领域标签使用克制的低饱和配色 */
.tag-law      { background: #e7eef8; color: #1a365d; }
.tag-med      { background: #e6f4ef; color: #276749; }
.tag-tech     { background: #e8f0fe; color: #1e4e8c; }
.tag-interp   { background: #f3ecfe; color: #5b3d9e; }
.tag-publish  { background: #fdf0e4; color: #9a5b21; }

.case-count {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.case-card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.case-result {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text);
}

/* ---------- 8. 资质证书 ---------- */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.credential-card {
  padding: 32px 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.credential-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.credential-check {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.credential-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--color-primary);
}

.credential-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ---------- 9. 客户评价 ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.testimonial-card {
  position: relative;
  margin: 0;
  padding: 34px 30px 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
}

/* 大型装饰引号 */
.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 8px;
  left: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5rem;
  line-height: 1;
  color: #dbe6f4;
  pointer-events: none;
}

.testimonial-card blockquote {
  margin: 0 0 22px;
  padding-top: 16px;
}

.testimonial-card blockquote p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--color-text);
}

.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  background: #e7eef8;
  color: var(--color-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-card figcaption strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-primary);
}

.testimonial-card figcaption span:last-child {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ---------- 10. 联系方式 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: #e7eef8;
  color: var(--color-primary);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-label {
  display: block;
  margin-bottom: 2px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.contact-list a {
  font-weight: 600;
  color: var(--color-primary);
  word-break: break-all;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-value {
  font-weight: 600;
  color: var(--color-primary);
}

/* 联系表单 */
.contact-form {
  padding: 34px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.contact-form h3 {
  margin: 0 0 22px;
  font-size: 1.15rem;
  color: var(--color-primary);
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
}

.required {
  color: #c53030;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccd7e5;
  border-radius: 10px;
  background: #fbfcfe;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9aa8bb;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
  background: #fff;
  box-shadow: 0 0 0 3px var(--color-ring);
}

/* 校验失败状态 */
.form-field.invalid input,
.form-field.invalid textarea {
  border-color: #c53030;
  box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.1);
}

.field-error {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: #c53030;
}

.btn-block {
  width: 100%;
}

.form-note {
  margin: 14px 0 0;
  font-size: 0.8rem;
  text-align: center;
  color: var(--color-text-muted);
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  padding: 34px 0;
  background: var(--color-primary-dark);
  color: #c6d5ea;
  text-align: center;
}

.footer-brand {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* ---------- 12. 轻提示 Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  max-width: 90vw;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--color-primary-dark);
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 16px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ---------- 13. 滚动入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* 尊重系统“减少动态效果”设置 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

/* ---------- 14. 响应式：平板（≤1024px） ---------- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- 15. 响应式：手机（≤900px） ---------- */
@media (max-width: 900px) {
  /* 导航切换为抽屉式下拉菜单 */
  .primary-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    margin-left: 0;
    max-height: 0;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid transparent;
    visibility: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .primary-nav.open {
    max-height: 440px;
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-md);
    visibility: visible;
    opacity: 1;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .nav-link {
    display: block;
    padding: 14px 24px;
    border-radius: 0;
    border-top: 1px solid var(--color-border);
    font-size: 1rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .lang-switch {
    margin-left: auto;
  }

  /* 关于我改为单列居中 */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .about-bio {
    margin-inline: auto;
  }

  .about-facts {
    align-items: center;
  }

  .about-facts li {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .fact-label {
    flex: none;
  }

  /* 联系方式改为单列 */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- 16. 响应式：小屏手机（≤640px） ---------- */
@media (max-width: 640px) {
  .section {
    padding: 68px 0;
  }

  .hero {
    padding: calc(var(--header-height) + 48px) 0 64px;
  }

  .hero-actions {
    margin-bottom: 44px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  /* 数据条改为 2×2，用边框分隔 */
  .hero-stats {
    gap: 0;
  }

  .hero-stats li {
    padding: 18px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .hero-stats li + li {
    border-left: 0;
  }

  .hero-stats li:nth-child(-n + 2) {
    border-top: 0;
  }

  .hero-stats li:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }

  /* 服务卡片单列 */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* 时间线间距收紧 */
  .timeline-item {
    padding-left: 38px;
  }

  .case-card {
    padding: 18px;
  }

  /* 证书保持两列但压缩内边距 */
  .credentials-grid {
    gap: 14px;
  }

  .credential-card {
    padding: 26px 12px;
  }

  /* 客户评价单列 */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px 18px;
  }

  .avatar {
    width: 190px;
    height: 190px;
    font-size: 4rem;
  }

  .logo-text {
    font-size: 0.95rem;
  }
}

/* ---------- 17. 响应式：超窄屏（≤400px） ---------- */
@media (max-width: 400px) {
  .logo-text {
    font-size: 0.85rem;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 0.95rem;
  }

  .lang-switch {
    min-width: 44px;
    padding: 0 10px;
  }
}

/* ==========================================================
   18. 工具与技能板块（自研工具卡片）
   ========================================================== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.tool-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 109, 179, 0.35);
}

.tool-card .service-icon {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tool-card h3 {
  font-size: 1.08rem;
  color: var(--color-primary);
  margin: 14px 0 8px;
}

.tool-card p {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  line-height: 1.75;
  margin: 0 0 14px;
}

/* ---------- 项目案例标签配色 ---------- */
.tag-ipo {
  background: #e8eefc;
  color: #1d4ed8;
}

.tag-comment {
  background: #eef2ff;
  color: #4338ca;
}

.tag-appendix {
  background: #ecfdf5;
  color: #047857;
}

.tag-annual {
  background: #fff7ed;
  color: #c2410c;
}

.tag-principal {
  background: #fdf2f8;
  color: #be185d;
}

.tag-pm {
  background: #f5f3ff;
  color: #6d28d9;
}

@media (max-width: 720px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   19. 港股披露文件全流程标签条
   ========================================================== */
.workflow-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.workflow-strip li {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.workflow-strip li:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 109, 179, 0.35);
  box-shadow: var(--shadow-md);
}

@media (max-width: 560px) {
  .workflow-strip {
    gap: 8px;
    margin-top: 22px;
  }

  .workflow-strip li {
    padding: 6px 14px;
    font-size: 0.82rem;
  }
}

/* ==========================================================
   20. 项目数量亮点条
   ========================================================== */
.track-record {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 34px 0;
}

.track-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.track-label {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary);
  white-space: nowrap;
  margin: 0;
}

.track-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 16px;
  flex: 1;
  min-width: 300px;
}

.track-list li {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.track-list strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1.25;
  color: var(--color-primary);
}

.track-list span {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

@media (max-width: 860px) {
  .track-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .track-record {
    padding: 26px 0;
  }

  .track-inner {
    gap: 16px;
  }

  .track-label {
    width: 100%;
    text-align: center;
  }

  .track-list {
    min-width: 0;
  }
}
