/* ============================================================
   Freemasonry China - 视觉增强 v4
   原站色调 · 居中Hero · Canvas粒子 · 代码绘制
   ============================================================ */

:root {
  --fm-gold: #c8a064;
  --fm-gold-light: #e0c485;
  --fm-gold-deep: #a07e3e;
  --fm-ink: #252525;
  --fm-text: #333;
  --fm-muted: #666;
  --fm-line: #eee;
  --fm-paper: #f6f6f6;
  --fm-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* ==================== Hero ==================== */
.fm-code-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #1a3a2e 100%);
  color: #fff;
  min-height: 560px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.fm-hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* Hero 居中logo - 居于两行标题之间 */
.fm-hero-logo-wrap {
  width: 160px;
  height: 160px;
  margin: 10px auto 10px;
  position: relative;
  z-index: 2;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.fm-hero-logo-wrap:hover {
  opacity: 1;
  transform: scale(1.1);
}
.fm-hero-title {
  color: #fff;
  font-size: 56px;
  font-weight: 800;\n  line-height: 1.2;
  margin: 0;
  text-shadow: 0 4px 30px rgba(200,160,100,0.2);
  background: linear-gradient(135deg, #fff 0%, #e0c485 50%, #c8a064 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fm-hero-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.fm-hero-content {
  position: relative;
  z-index: 2;
  min-height: auto;
  padding: 80px 15px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.fm-hero-kicker {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 18px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
}
.fm-hero-actions a:hover::before { transform: translateX(100%); }

/* Hero 按钮组 */
.fm-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 20px; }
.fm-hero-actions a {
  background: rgba(200,160,100,0.12);
  border: 1px solid rgba(200,160,100,0.35);
  border-radius: 4px;
  color: #e0c485;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 26px;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.fm-hero-actions a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.fm-hero-actions a:hover {
  background: var(--fm-gold);
  color: #fff;
  border-color: var(--fm-gold);
  box-shadow: 0 8px 30px rgba(200,160,100,0.3);
  transform: translateY(-2px);
}

/* ==================== 搜索栏 ==================== */
.yunu-sou .hform button { background-color: var(--fm-gold); }
.yunu-sou .hform button:hover { background-color: var(--fm-gold-deep); }

/* ==================== Section 标题 ==================== */
.section-title {
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 50px; height: 2px;
  background: var(--fm-gold);
  margin: 14px auto 0;
  opacity: 0.6;
}

/* ============================================================
   组织架构 - 纯代码还原原始图片布局
   原始布局：4个方形分类卡片 + 分割线 + 中间圆规图 + 4个封面列表
   ============================================================ */

/* --- 4个分类卡片 --- */
.in-prod { margin: -28px 0 0 -28px; }
.in-prod li { float: left; width: 25%; }
.in-prod li .wrap {
  margin: 28px 0 0 28px;
  padding: 25px;
  background-color: #f8f6f2;
  border: 1px solid rgba(200,160,100,0.1);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}
.in-prod li .wrap::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
  z-index: 1;
  pointer-events: none;
}
.in-prod li .wrap:hover::before { left: 100%; }
.in-prod li .wrap:hover {
  background-color: var(--fm-gold);
  border-color: var(--fm-gold);
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(200,160,100,0.2);
}
.in-prod li a { display: block; color: #666; transition: all 0.4s ease; }
.in-prod li .wrap:hover a { color: #fff; }
.in-prod li h4 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding-right: 25px;
  position: relative;
  background: none !important;
}
.in-prod li h4::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3l5 5-5 5' fill='none' stroke='%23c8a064' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: all 0.3s ease;
}
.in-prod li .wrap:hover h4::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3l5 5-5 5' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* 分类卡片中的图标区域 - 纯代码给制 */
.in-prod .img-center,
.fm-code-emblem {
  height: 215px;
  line-height: 215px;
  background: linear-gradient(135deg, #faf8f4, #f0ebe0) !important;
  border: 1px solid rgba(200,160,100,0.08) !important;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  text-align: center;
  font-size: 0;
}
.in-prod .img-center img,
.fm-code-emblem img { display: none !important; }

/* 给制圆规+直角尺微章 */
.in-prod .img-center::before,
.fm-code-emblem::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 90px; height: 90px;
  border: 2px solid rgba(200,160,100,0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
}
.in-prod .img-center::after,
.fm-code-emblem::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 60px; height: 60px;
  border-left: 3px solid rgba(200,160,100,0.4);
  border-bottom: 3px solid rgba(200,160,100,0.4);
  transform: translate(-50%, -42%) rotate(-45deg);
  transition: all 0.5s ease;
}
.fm-code-emblem span { display: none !important; }
.in-prod li .wrap:hover .img-center::before,
.in-prod li .wrap:hover .fm-code-emblem::before {
  animation: fmSpin 8s linear infinite;
  border-color: rgba(255,255,255,0.5);
}
@keyframes fmSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.in-prod li .wrap:hover .img-center::after,
.in-prod li .wrap:hover .fm-code-emblem::after {
  border-color: rgba(255,255,255,0.6);
}

/* --- 分割线 --- */
.in-line {
  height: 1px;
  margin: 50px 0;
  background: linear-gradient(90deg, transparent, rgba(200,160,100,0.2), transparent);
  position: relative;
}
.in-line::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border: 1px solid rgba(200,160,100,0.3);
  border-radius: 50%;
  background: #fff;
}

/* --- 中间圆规装饰图 (原始 gongyi.jpg 1920x383) --- */
.in-custom { position: relative; }
.fm-code-compass {
  background: linear-gradient(135deg, #f8f6f2, #ede5d8, #f8f6f2) !important;
  border: 1px solid rgba(200,160,100,0.1) !important;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.fm-code-compass img { display: none !important; }
.in-custom-center {
  float: left;
  width: 100%;
  margin-bottom: 30px;
  position: relative;
}
.in-custom-center .img-center {
  height: 200px;
  line-height: 200px;
  background: linear-gradient(135deg, #f8f6f2, #ede5d8, #f8f6f2) !important;
  border: 1px solid rgba(200,160,100,0.1) !important;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.in-custom-center .img-center img { display: none !important; }
/* 中间给制装饰 */
.in-custom-center .img-center::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 140px; height: 140px;
  border: 2px solid rgba(200,160,100,0.2);
  border-radius: 50%;
}
.in-custom-center .img-center::after {
  content: 'G';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  font-weight: bold;
  font-family: Georgia, 'Times New Roman', serif;
  color: rgba(200,160,100,0.3);
  text-shadow: 0 0 30px rgba(200,160,100,0.15);
}
/* 左右装饰线 */
.in-custom-center .img-center > .fm-ornament-left,
.in-custom-center .img-center > .fm-ornament-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 1px;
  width: 25%;
  background: linear-gradient(90deg, transparent, rgba(200,160,100,0.15));
  pointer-events: none;
}
.in-custom-center .img-center > .fm-ornament-left {
  left: 5%;
}
.in-custom-center .img-center > .fm-ornament-right {
  right: 5%;
  background: linear-gradient(90deg, rgba(200,160,100,0.15), transparent);
}

/* --- 4个列表卡片 --- */
.in-custom-left {
  float: left;
  width: 100%;
}
.in-custom-left ul {
  margin: -15px 0 0 -15px;
  overflow: hidden;
}
.in-custom-left li {
  float: left;
  width: 25%;
}
.in-custom-left li a {
  display: block;
  margin: 15px 0 0 15px;
  position: relative;
  border: 5px solid rgba(200,160,100,0.08);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s ease;
}
.in-custom-left li .img-cover {
  padding-top: 120%;
}
.in-custom-left li .img-cover span {
  background: linear-gradient(135deg, #e8e0d0, #d5c8b0) !important;
}
/* 给制封面装饰 */
.in-custom-left li .img-cover span::before {
  content: '';
  position: absolute;
  left: 50%; top: 35%;
  transform: translateX(-50%);
  width: 50px; height: 50px;
  border: 2px solid rgba(200,160,100,0.25);
  border-radius: 50%;
}
.in-custom-left li .img-cover span::after {
  content: '';
  position: absolute;
  left: 50%; top: 35%;
  transform: translate(-50%, -50%);
  width: 30px; height: 30px;
  border-left: 2px solid rgba(200,160,100,0.3);
  border-bottom: 2px solid rgba(200,160,100,0.3);
  rotate: -45deg;
}
.in-custom-left li .text {
  position: absolute;
  left: 25px; top: 20px;
  z-index: 2;
}
.in-custom-left li .text::after {
  display: block;
  content: '';
  width: 30px; height: 2px;
  background-color: rgba(200,160,100,0.4);
  margin-top: 12px;
  transition: width 0.3s ease;
}
.in-custom-left li .text h4 {
  margin: 0;
  font-size: 18px;
  color: #333;
}
.in-custom-left li .text small {
  display: block;
  font-size: 12px;
  color: #b0a090;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.in-custom-left li a:hover {
  border-color: var(--fm-gold);
  box-shadow: 0 10px 30px rgba(200,160,100,0.15);
}
.in-custom-left li a:hover .img-cover span {
  transform: scale(1.08);
}
.in-custom-left li a:hover .text::after {
  width: 50px;
}

/* ==================== 入会流程 ==================== */
.bg1 { position: relative; }
.bg1::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(200,160,100,0.05), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(200,160,100,0.05), transparent 50%);
  pointer-events: none;
}
.in-tedian-img .vs::before {
  content: '';
  display: block;
  width: 50px; height: 50px;
  border: 2px solid var(--fm-gold);
  border-radius: 50%;
  margin: 0 auto;
  opacity: 0.35;
}
.in-tedian-menu li a { transition: all 0.3s ease; }

/* ==================== 会员活动 ==================== */
.in-about dt.img-center {
  background: linear-gradient(135deg, var(--fm-paper), #fff) !important;
  border: 1px solid var(--fm-line) !important;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.in-about dt.img-center img { display: none !important; }
.in-about dt.img-center::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 100px; height: 60px;
  border: 3px solid var(--fm-gold);
  border-top: 0;
  transform: translate(-50%, -35%);
  opacity: 0.4;
}
.in-about dt.img-center::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 130px; height: 3px;
  background: var(--fm-gold);
  transform: translate(-50%, -50px);
  box-shadow: 0 20px 0 var(--fm-gold), 0 40px 0 var(--fm-gold);
  opacity: 0.35;
}
.in-about dd .more {
  transition: all 0.3s ease;
}
.in-about dd .more:hover {
  box-shadow: 0 6px 20px rgba(200,160,100,0.3);
}

/* ==================== 底部理念 ==================== */
.in-ftys li p { transition: transform 0.3s ease; }
.in-ftys li:hover p { transform: translateY(-3px); }

/* ==================== 滚动渐入 ==================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].fm-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== 导航滚动增强 ==================== */
.nav { transition: box-shadow 0.3s ease; }

/* ==================== 文章/列表 ==================== */
.list-5 li a { border-radius: 8px; transition: all 0.3s ease; }
.list-5 li a:hover { box-shadow: var(--fm-shadow); }
.more { transition: all 0.3s ease; }
.more:hover { box-shadow: 0 6px 20px rgba(200,160,100,0.3); }

/* ==================== 响应式 ==================== */
@media (max-width: 767px) {
  .fm-code-hero { min-height: 500px; }
  .fm-hero-content { padding: 70px 15px 40px; }
  .fm-hero-content h1 { font-size: 32px; }
  .fm-hero-content p { font-size: 15px; }
  .fm-hero-mark { width: 200px; height: 200px; opacity: 0.08; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ==================== Footer ==================== */
.footer-logo { height: auto !important; line-height: normal !important; }

/* ============================================================
   内页视觉系统 · 与首页新版保持一致
   ============================================================ */
.section-sub {
  position: relative;
  padding: 56px 0 72px;
  background:
    radial-gradient(circle at 8% 6%, rgba(200,160,100,.10), transparent 28%),
    linear-gradient(180deg, #f7f4ed 0, #fff 260px);
}
.section-sub > .container { position: relative; z-index: 1; }
.section-sub .yunu-curmbs {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  margin: 0 0 28px;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid rgba(20,32,56,.12);
  color: #7b7f88;
  font-size: 13px;
}
.section-sub .yunu-curmbs::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--fm-gold);
}
.section-sub .yunu-curmbs span {
  padding: 0;
  border: 0;
  color: #142038;
  font-weight: 600;
}
.section-sub .yunu-curmbs a { color: #666d79; }
.section-sub .yunu-curmbs a:hover { color: var(--fm-gold-deep); }

.section-sub .ct2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 34px;
  align-items: start;
}
.section-sub .ct2-sd,
.section-sub .ct2-mn {
  float: none !important;
  width: auto;
  min-width: 0;
}
.section-sub .ct2-sd { grid-column: 2; grid-row: 1; }
.section-sub .ct2-mn { grid-column: 1; grid-row: 1; }
.section-sub .panel-sd {
  overflow: hidden;
  margin: 0 0 20px;
  border: 1px solid rgba(20,32,56,.09);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(20,32,56,.07);
}
.section-sub .panel-sd .tit {
  position: relative;
  padding: 22px 24px 20px;
  background: linear-gradient(135deg, #142038, #24395f);
  color: #fff;
  text-align: left;
  font-size: 21px;
  font-weight: 700;
}
.section-sub .panel-sd .tit::after {
  content: '';
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 10px;
  background: var(--fm-gold-light);
}
.section-sub .lanmu { padding: 9px; }
.section-sub .lanmu li { margin: 0; border-bottom: 1px solid #eef0f3; }
.section-sub .lanmu li:last-child { border-bottom: 0; }
.section-sub .lanmu li > a {
  position: relative;
  min-height: 48px;
  padding: 0 36px 0 15px;
  background: transparent;
  color: #454b56;
  line-height: 48px;
  transition: color .25s ease, background .25s ease, padding .25s ease;
}
.section-sub .lanmu li > a::after {
  content: '\2192';
  position: absolute;
  right: 15px;
  color: #b6a079;
}
.section-sub .lanmu li > a:hover,
.section-sub .lanmu li.active > a {
  padding-left: 19px;
  border-radius: 7px;
  background: #f2ede3;
  color: #142038;
}
.section-sub .lanmu-box p { border-color: #eceef1; }
.section-sub .lanmu-box p a { color: #69707c; }

.section-sub .list-5 { margin: 0; }
.section-sub .list-5 li { margin: 0 0 18px; }
.section-sub .list-5 li a {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  min-height: 170px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(20,32,56,.09);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(20,32,56,.05);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.section-sub .list-5 li a:hover {
  transform: translateY(-3px);
  border-color: rgba(200,160,100,.55);
  box-shadow: 0 18px 42px rgba(20,32,56,.10);
}
.section-sub .list-5 li .m {
  float: none;
  width: auto;
  height: 100%;
  min-height: 134px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(145deg, #142038, #293f66);
}
.section-sub .list-5 li .m img { width: 100%; height: 100%; object-fit: cover; }
.section-sub .list-5 li .fm-article-mark {
  display: grid;
  place-items: center;
  position: relative;
}
.section-sub .list-5 li .fm-article-mark::before {
  content: '';
  width: 62px;
  height: 62px;
  border: 1px solid rgba(224,196,133,.48);
  border-radius: 50%;
}
.section-sub .list-5 li .fm-article-mark span {
  position: absolute;
  color: var(--fm-gold-light);
  font: 600 15px/1 Georgia, serif;
  letter-spacing: 3px;
}
.section-sub .list-5 li .text { display: flex; flex-direction: column; margin: 0; min-width: 0; }
.section-sub .list-5 li .text h4 {
  margin: 3px 0 10px;
  color: #142038;
  font-size: 19px;
  line-height: 1.55;
  white-space: normal;
}
.section-sub .list-5 li .text h4 span {
  display: block;
  float: none;
  margin-bottom: 4px;
  color: #a38b61;
  font-size: 12px;
  letter-spacing: .04em;
}
.section-sub .list-5 li .text p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #6a707a;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.section-sub .list-5 li .text .more {
  align-self: flex-start;
  float: none;
  margin-top: auto;
  padding: 7px 14px;
  border: 1px solid rgba(200,160,100,.42);
  border-radius: 4px;
  background: transparent;
  color: #997640;
}
.section-sub .list-5 li a:hover .text .more { background: var(--fm-gold); color: #fff; }

.section-sub .yunu-infocontent {
  margin: 0;
  padding: 38px 44px 42px;
  border: 1px solid rgba(20,32,56,.09);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(20,32,56,.07);
}
.section-sub .yunu-infocontent-title {
  margin: 0 0 25px;
  padding-bottom: 22px;
  border-bottom: 1px solid #eceef1;
}
.section-sub .yunu-infocontent-title h1 {
  color: #142038;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.35;
}
.section-sub .yunu-infocontent-title p { color: #90949c; }
.section-sub .yunu-infocontent-desc {
  margin: 0 0 28px;
  padding: 18px 20px;
  border: 0;
  border-left: 3px solid var(--fm-gold);
  border-radius: 0 7px 7px 0;
  background: #f7f4ed;
  color: #5f6269;
  line-height: 1.8;
}
.section-sub .yunu-infocontent-body {
  color: #333942;
  font-size: 16px;
  line-height: 2;
}
.section-sub .yunu-infocontent-body h2,
.section-sub .yunu-infocontent-body h3 { color: #142038; line-height: 1.45; }
.section-sub .yunu-infocontent-body a { color: #9b7338; text-decoration: underline; }
.section-sub .yunu-infocontent-rem {
  margin-top: 34px;
  padding: 22px 24px;
  border-radius: 9px;
  background: #f7f4ed;
}
.section-sub .yunu-infocontent-rem h4 { color: #142038; font-size: 19px; line-height: 1.5; }
.section-sub .yunu-infocontent-rem li { border-color: rgba(20,32,56,.10); }
.section-sub .yunu-infocontent-epx { margin-top: 24px; }
.section-sub .yunu-infocontent-epx li span { border-radius: 3px; background: #142038; }
.section-sub .yunu-infocontent-return { border-color: #d8dadd; }
.section-sub .yunu-infocontent-return .more { background: var(--fm-gold-deep); }

.section-sub .yunu-menu-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}
.section-sub .yunu-menu-inner a { float: none; width: auto; }
.section-sub .yunu-menu-inner span {
  min-width: 132px;
  margin: 0;
  padding: 0 20px;
  border: 1px solid rgba(20,32,56,.10);
  border-radius: 6px;
  background: #fff;
  color: #3f4652;
  font-size: 15px;
  line-height: 44px;
}
.section-sub .yunu-menu-inner a:hover span,
.section-sub .yunu-menu-inner a.active span {
  background: #142038;
  color: #fff;
}
.pages { margin-top: 28px; text-align: center; }
.pages a, .pages span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  margin: 3px;
  border: 1px solid #dddfe3;
  border-radius: 4px;
  background: #fff;
}
.pages a:hover, .pages .active, .pages span.current { border-color: #142038; background: #142038; color: #fff; }

.banner-sub {
  position: relative;
  height: 340px;
  background-color: #142038;
}
.banner-sub::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14,24,44,.72), rgba(14,24,44,.20));
  pointer-events: none;
}

@media (max-width: 991px) {
  .section-sub .ct2 { grid-template-columns: minmax(0, 1fr) 210px; gap: 22px; }
  .section-sub .yunu-infocontent { padding: 30px; }
  .section-sub .list-5 li a { grid-template-columns: 150px minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .banner-sub { height: 190px; }
  .section-sub { padding: 30px 0 46px; }
  .section-sub .yunu-curmbs { margin-bottom: 20px; overflow: hidden; white-space: nowrap; }
  .section-sub .ct2 { display: flex; flex-direction: column; gap: 20px; }
  .section-sub .ct2-sd, .section-sub .ct2-mn { width: 100%; }
  .section-sub .ct2-sd { order: 0; }
  .section-sub .ct2-mn { order: 1; }
  .section-sub .panel-sd .tit { padding: 17px 18px 15px; font-size: 18px; }
  .section-sub .lanmu { display: flex; gap: 7px; padding: 8px; overflow-x: auto; }
  .section-sub .lanmu li { flex: 0 0 auto; border: 0; }
  .section-sub .lanmu li > a { min-height: 40px; padding: 0 14px; border-radius: 5px; line-height: 40px; }
  .section-sub .lanmu li > a::after, .section-sub .lanmu li .arr { display: none; }
  .section-sub .list-5 li a { grid-template-columns: 1fr; gap: 15px; padding: 13px; }
  .section-sub .list-5 li .m { min-height: 156px; }
  .section-sub .list-5 li .text h4 { font-size: 17px; }
  .section-sub .list-5 li .text .more { margin-top: 14px; }
  .section-sub .yunu-infocontent { padding: 23px 18px 26px; }
  .section-sub .yunu-infocontent-title h1 { font-size: 24px; }
  .section-sub .yunu-infocontent-body { font-size: 15px; }
  .section-sub .yunu-infocontent-rem { padding: 18px; }
  .section-sub .yunu-infocontent-epx li { display: flex; align-items: flex-start; }
  .section-sub .yunu-infocontent-epx li em { display: none; }
  .section-sub .yunu-menu-inner { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; }
  .section-sub .yunu-menu-inner a { flex: 0 0 auto; }
}


/* ==================== Mobile ==================== */
@media (max-width: 768px) {
  .fm-hero-row {
    flex-direction: column;
    gap: 15px;
  }
  .fm-hero-title {
    font-size: 32px;
  }
  .fm-hero-logo-wrap {
    width: 100px;
    height: 100px;
    margin: 5px auto;
  }
  .fm-code-hero {
    min-height: 420px;
  }
  .fm-hero-content {
    padding: 50px 15px 30px;
  }
  .fm-hero-actions {
    gap: 10px;
    margin-top: 15px;
  }
  .fm-hero-actions a {
    font-size: 12px;
    padding: 10px 18px;
  }

  /* === 三柱理念移动端 === */
  .in-shili .item {
    padding: 40px 0 !important;
    margin: 0 !important;
  }
  .in-shili .item:nth-child(odd) .wrap,
  .in-shili .item:nth-child(even) .wrap {
    margin: 0 !important;
  }
  .in-shili .item .wrap {
    padding: 24px 20px;
    border-radius: 10px;
  }
  .in-shili h4 {
    font-size: 20px;
  }
  .in-shili h4 small {
    font-size: 14px;
    padding-left: 12px;
  }
  .in-shili .desc {
    font-size: 15px;
    padding-bottom: 10px;
    margin-bottom: 12px;
  }
  .in-shili p {
    font-size: 13px;
    padding-left: 20px;
  }
  .in-shili p::before {
    width: 6px; height: 6px;
    top: 8px;
  }
  .in-shili .item .wrap > .fm-pillar-icon {
    width: 40px; height: 40px;
    right: 12px; top: 12px;
  }

  /* === 组织架构移动端 === */
  .in-prod { margin: -10px 0 0 -10px; }
  .in-prod li { width: 50%; }
  .in-prod li .wrap {
    margin: 10px 0 0 10px;
    padding: 12px;
  }
  .in-prod li h4 { font-size: 14px; }
  .in-prod .img-center,
  .fm-code-emblem {
    height: 130px;
    line-height: 130px;
  }
  .in-prod .img-center::before,
  .fm-code-emblem::before {
    width: 60px; height: 60px;
  }
  .in-prod .img-center::after,
  .fm-code-emblem::after {
    width: 40px; height: 40px;
  }

  /* 分割线 */
  .in-line { margin: 30px 0; }

  /* 中间装饰图 */
  .in-custom-center .img-center {
    height: 120px;
    line-height: 120px;
    margin-bottom: 20px;
  }
  .in-custom-center .img-center::before {
    width: 80px; height: 80px;
  }
  .in-custom-center .img-center::after {
    font-size: 40px;
  }

  /* 列表卡片 */
  .in-custom-left ul { margin: -10px 0 0 -10px; }
  .in-custom-left li { width: 50%; }
  .in-custom-left li a {
    margin: 10px 0 0 10px;
    border-width: 3px;
  }
  .in-custom-left li .img-cover { padding-top: 100%; }
  .in-custom-left li .img-cover span::before {
    width: 35px; height: 35px;
  }
  .in-custom-left li .img-cover span::after {
    width: 20px; height: 20px;
  }
  .in-custom-left li .text {
    left: 12px; top: 10px;
  }
  .in-custom-left li .text h4 { font-size: 15px; }
  .in-custom-left li .text small { font-size: 10px; }
  .in-custom-left li .text::after {
    width: 20px; margin-top: 8px;
  }
}

/* === 超小屏 === */
@media (max-width: 480px) {
  .in-shili .item .wrap { padding: 20px 16px; }
  .in-shili h4 { font-size: 18px; }
  .in-shili h4 small { font-size: 12px; }
  .in-shili .desc { font-size: 14px; }

  .in-prod li .wrap { padding: 10px; }
  .in-prod li h4 { font-size: 13px; }
  .in-prod .img-center, .fm-code-emblem {
    height: 100px; line-height: 100px;
  }

  .in-custom-center .img-center {
    height: 90px; line-height: 90px;
  }
  .in-custom-center .img-center::before {
    width: 55px; height: 55px;
  }
  .in-custom-center .img-center::after { font-size: 28px; }

  .in-custom-left li .text h4 { font-size: 13px; }
  .in-custom-left li .text small { display: none; }
}


/* ============================================================
   三柱理念 - 纯代码还原原始图片布局
   原始布局：全宽背景图 + 左右交替卡片
   代码还原：共济会主题几何图案背景
   ============================================================ */

/* --- 三柱背景容器 --- */
.in-shili { margin-bottom: 0; }
.in-shili .item .wrap {
  position: relative;
  margin: 0 !important;
}

.in-shili .item {
  background: none !important;
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}
.in-shili .item:nth-child(1) {
  padding-top: 100px;
  margin-top: -40px;
}

/* --- 第1柱：何为同济人 --- */
/* 原始背景 ysbg1.jpg：深色调几何线条，圆规/直角尺暗纹 */
.in-shili .item:nth-child(1)::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* 大圆规轮廓 */
    linear-gradient(170deg, transparent 30%, rgba(200,160,100,0.04) 50%, transparent 70%),
    /* 几何网格 */
    repeating-linear-gradient(45deg, transparent, transparent 60px, rgba(200,160,100,0.015) 60px, rgba(200,160,100,0.015) 61px),
    /* 底部渐变 */
    linear-gradient(to bottom, #faf8f4 0%, #f5f0e8 100%);
  z-index: 0;
}
.in-shili .item:nth-child(1)::after {
  content: '';
  position: absolute;
  right: -80px; top: 50%;
  transform: translateY(-50%);
  width: 400px; height: 400px;
  background:
    radial-gradient(circle, rgba(200,160,100,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* --- 第2柱：何为共济会 --- */
/* 原始背景 ysbg2.jpg：暖色调，五角星/同盟符号 */
.in-shili .item:nth-child(2)::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(170deg, transparent 30%, rgba(200,160,100,0.04) 50%, transparent 70%),
    repeating-linear-gradient(-45deg, transparent, transparent 60px, rgba(200,160,100,0.015) 60px, rgba(200,160,100,0.015) 61px),
    linear-gradient(to bottom, #f5f0e8 0%, #faf8f4 100%);
  z-index: 0;
}
.in-shili .item:nth-child(2)::after {
  content: '';
  position: absolute;
  left: -80px; top: 50%;
  transform: translateY(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(200,160,100,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* --- 第3柱：共济愿景 --- */
/* 原始背景 ysbg3.jpg：深色调，山脉/建筑剪影 */
.in-shili .item:nth-child(3)::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(170deg, transparent 30%, rgba(200,160,100,0.04) 50%, transparent 70%),
    repeating-linear-gradient(45deg, transparent, transparent 80px, rgba(200,160,100,0.012) 80px, rgba(200,160,100,0.012) 81px),
    linear-gradient(to bottom, #faf8f4 0%, #f0ebe0 100%);
  z-index: 0;
}
.in-shili .item:nth-child(3)::after {
  content: '';
  position: absolute;
  right: -100px; bottom: -50px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200,160,100,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* --- 三柱卡片通用样式 --- */
.in-shili .item .wrap {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.96) !important;
  border: 1px solid rgba(200,160,100,0.15);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06), 0 2px 10px rgba(200,160,100,0.08);
  padding: 40px 36px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.in-shili .item .wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--fm-gold-deep), var(--fm-gold), var(--fm-gold-light), var(--fm-gold), var(--fm-gold-deep), transparent);
  opacity: 0.6;
  transition: opacity 0.4s ease;
}
.in-shili .item .wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,160,100,0.2), transparent);
}
.in-shili .item .wrap:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1), 0 5px 20px rgba(200,160,100,0.15);
  border-color: rgba(200,160,100,0.3);
}
.in-shili .item .wrap:hover::before {
  opacity: 1;
}

/* --- 三柱标题样式 --- */
.in-shili h4 {
  margin: 0 0 8px;
  font-size: 36px;
  color: var(--fm-gold);
  font-weight: 700;
  position: relative;
  z-index: 3;
}
.in-shili h4 small {
  font-weight: 400;
  font-size: 22px;
  padding-left: 24px;
  margin-left: 6px;
  color: var(--fm-muted);
  position: relative;
  background: none !important;
}
.in-shili h4 small::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 1px;
  background: var(--fm-gold);
  opacity: 0.5;
}
.in-shili .desc {
  font-size: 18px;
  color: var(--fm-ink);
  font-weight: 600;
  height: auto;
  overflow: visible;
  border-bottom: 1px solid rgba(200,160,100,0.12);
  margin-bottom: 18px;
  padding-bottom: 14px;
  position: relative;
  z-index: 3;
}
.in-shili p {
  margin: 6px 0 0;
  color: var(--fm-muted);
  padding-left: 24px;
  position: relative;
  z-index: 3;
  font-size: 14px;
  line-height: 1.8;
  background: none !important;
}
.in-shili p::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 8px; height: 8px;
  border: 1.5px solid var(--fm-gold);
  border-radius: 50%;
  opacity: 0.5;
}

/* --- 三柱左右交替布局（覆盖 yunu.css） --- */
.in-shili .item:nth-child(odd) .wrap { margin-right: 0 !important; }
.in-shili .item:nth-child(even) .wrap { margin-left: 0 !important; }

/* --- 三柱装饰SVG图标 --- */
.in-shili .item .wrap > .fm-pillar-icon {
  position: absolute;
  right: 20px; top: 20px;
  width: 60px; height: 60px;
  opacity: 0.12;
  z-index: 1;
  pointer-events: none;
}

/* ==================== 底部理念图标代码化 ==================== */
.in-ftys li p.i1 {
  background: none !important;
  padding-left: 0 !important;
  text-align: center;
}
.in-ftys li p.i1::before {
  content: '💡';
  display: block;
  font-size: 36px;
  margin-bottom: 8px;
  opacity: 0.7;
}
.in-ftys li p.i2 {
  background: none !important;
  padding-left: 0 !important;
  text-align: center;
}
.in-ftys li p.i2::before {
  content: '🤝';
  display: block;
  font-size: 36px;
  margin-bottom: 8px;
  opacity: 0.7;
}
.in-ftys li p.i3 {
  background: none !important;
  padding-left: 0 !important;
  text-align: center;
}
.in-ftys li p.i3::before {
  content: '🏛';
  display: block;
  font-size: 36px;
  margin-bottom: 8px;
  opacity: 0.7;
}
.in-ftys li p.i4 {
  background: none !important;
  padding-left: 0 !important;
  text-align: center;
}
.in-ftys li p.i4::before {
  content: '🌍';
  display: block;
  font-size: 36px;
  margin-bottom: 8px;
  opacity: 0.7;
}

/* ============================================================
   三柱理念视觉装饰 - 纯CSS绘制
   科技感 + 笃定感 + 神秘感
   ============================================================ */

/* --- 覆盖 yunu.css 原有三柱样式 --- */
.in-shili { margin-bottom: 0 !important; }
.in-shili .item {
  background: none !important;
  padding: 50px 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(200,160,100,0.1);
}
.in-shili .item:last-child { border-bottom: none; }
.in-shili .item .wrap {
  position: relative;
  margin: 0 !important;
  max-width: 1200px;
  min-height: 280px;
  display: flex;
  align-items: center;
}
.in-shili .item:nth-child(odd) .wrap { padding-right: 0; }
.in-shili .item:nth-child(even) .wrap { padding-left: 0; }

/* --- 文字区域 --- */
.fm-pillar-text {
  position: relative;
  z-index: 2;
  width: 50%;
  padding: 20px 40px 20px 0;
  box-sizing: border-box;
}
.in-shili .item:nth-child(even) .fm-pillar-text {
  order: 2;
  padding: 20px 0 20px 40px;
}

/* --- 视觉装饰容器 --- */
.fm-pillar-visual {
  position: relative;
  width: 50%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  flex-shrink: 0;
}

/* =========================================================
   1. 圆规指南针 (何为同济人) - 科技感旋转几何
   ========================================================= */
.fm-visual-compass {
  position: relative;
  width: 280px;
  height: 280px;
}
.fm-compass-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--fm-gold);
  opacity: 0.6;
  inset: 0;
  border-width: 1px;
  opacity: 0.3;
  animation: fm-rotate 60s linear infinite;
}
.fm-compass-ring-2 {
  inset: 20px;
  border-style: dashed;
  border-width: 1.5px;
  opacity: 0.4;
  animation: fm-rotate-rev 45s linear infinite;
}
.fm-visual-compass::before {
  content: '';
  position: absolute;
  inset: 45px;
  border: 1px solid var(--fm-gold-light);
  border-radius: 50%;
  opacity: 0.5;
  animation: fm-rotate 30s linear infinite;
}
.fm-visual-compass::after {
  content: '';
  position: absolute;
  inset: 70px;
  border: 2px solid var(--fm-gold);
  border-radius: 50%;
  opacity: 0.7;
}
/* 圆规臂 */
.fm-compass-arm {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 110px;
  background: linear-gradient(to bottom, var(--fm-gold-light), var(--fm-gold), transparent);
  transform-origin: top center;
  opacity: 0.8;
}
.fm-compass-arm-l {
  transform: translateX(-50%) rotate(-30deg);
}
.fm-compass-arm-r {
  transform: translateX(-50%) rotate(30deg);
}
/* 铰链 */
.fm-compass-pivot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--fm-gold-light) 0%, var(--fm-gold) 50%, transparent 100%);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(200, 160, 100, 0.6);
  z-index: 2;
}
/* 中心光晕 */
.fm-compass-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(200,160,100,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: fm-pulse 4s ease-in-out infinite;
}

/* =========================================================
   2. 全视之眼 (何为共济会) - 神秘感发光三角
   ========================================================= */
.fm-visual-eye {
  position: relative;
  width: 280px;
  height: 280px;
}
/* 三角形轮廓 - 用线性渐变模拟 */
.fm-eye-triangle {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 120px solid transparent;
  border-right: 120px solid transparent;
  border-bottom: 208px solid rgba(200,160,100,0.08);
  filter: drop-shadow(0 0 12px rgba(200,160,100,0.35));
  z-index: 1;
}
/* 三角形描边线 - 用border叠加 */
.fm-eye-triangle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: -118px;
  width: 0;
  height: 0;
  border-left: 118px solid transparent;
  border-right: 118px solid transparent;
  border-bottom: 204px solid transparent;
}
/* 用conic-gradient模拟三角光线背景 */
.fm-visual-eye::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  background: conic-gradient(
    from 270deg,
    transparent 0deg,
    rgba(200,160,100,0.06) 10deg,
    transparent 20deg,
    transparent 40deg,
    rgba(200,160,100,0.04) 50deg,
    transparent 60deg,
    transparent 80deg,
    rgba(200,160,100,0.06) 90deg,
    transparent 100deg,
    transparent 120deg,
    rgba(200,160,100,0.04) 130deg,
    transparent 140deg,
    transparent 360deg
  );
  border-radius: 50%;
  animation: fm-rotate 60s linear infinite;
  opacity: 0.6;
  pointer-events: none;
}
.fm-eye-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 240px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: 
    conic-gradient(
      from 0deg,
      transparent 0deg,
      rgba(200,160,100,0.08) 5deg,
      transparent 10deg,
      transparent 30deg,
      rgba(200,160,100,0.06) 35deg,
      transparent 40deg,
      transparent 60deg,
      rgba(200,160,100,0.08) 65deg,
      transparent 70deg,
      transparent 90deg,
      rgba(200,160,100,0.06) 95deg,
      transparent 100deg,
      transparent 120deg,
      rgba(200,160,100,0.08) 125deg,
      transparent 130deg,
      transparent 360deg
    );
  animation: fm-rotate 80s linear infinite;
  opacity: 0.7;
}
/* 眼睛外框 */
.fm-eye-iris {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(200,160,100,0.2) 0%, rgba(200,160,100,0.05) 60%, transparent 100%);
  border: 1.5px solid var(--fm-gold);
  box-shadow: 0 0 20px rgba(200,160,100,0.3), inset 0 0 15px rgba(200,160,100,0.1);
  animation: fm-pulse-center 5s ease-in-out infinite;
}
/* 瞳孔 */
.fm-eye-pupil {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--fm-gold) 0%, var(--fm-gold-deep) 60%, #1a1a2e 100%);
  box-shadow: 0 0 12px rgba(200,160,100,0.5);
  z-index: 3;
}
/* 整体发光 */
.fm-eye-glow {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(200,160,100,0.12) 0%, transparent 60%);
  border-radius: 50%;
  animation: fm-pulse 6s ease-in-out infinite;
}

/* =========================================================
   3. 双柱拱门 (共济愿景) - 笃定感经典共济符号
   ========================================================= */
.fm-visual-pillars {
  position: relative;
  width: 300px;
  height: 280px;
}
/* 柱子通用 */
.fm-pillar-col {
  position: absolute;
  bottom: 20px;
  width: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fm-pillar-left { left: 40px; }
.fm-pillar-right { right: 40px; }
/* 柱头 */
.fm-pillar-cap {
  width: 56px;
  height: 12px;
  background: linear-gradient(to right, var(--fm-gold-deep), var(--fm-gold), var(--fm-gold-deep));
  border-radius: 2px 2px 0 0;
  box-shadow: 0 2px 6px rgba(200,160,100,0.3);
}
/* 柱身 */
.fm-pillar-shaft {
  width: 36px;
  flex: 1;
  height: 180px;
  background: 
    linear-gradient(to right, 
      rgba(200,160,100,0.05) 0%, 
      rgba(200,160,100,0.25) 50%, 
      rgba(200,160,100,0.05) 100%);
  border-left: 1px solid rgba(200,160,100,0.3);
  border-right: 1px solid rgba(200,160,100,0.3);
  position: relative;
}
/* 柱身凹槽纹理 */
.fm-pillar-shaft::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 18px,
    rgba(200,160,100,0.12) 18px,
    rgba(200,160,100,0.12) 19px
  );
}
/* 柱基 */
.fm-pillar-base {
  width: 56px;
  height: 16px;
  background: linear-gradient(to right, var(--fm-gold-deep), var(--fm-gold), var(--fm-gold-deep));
  border-radius: 0 0 2px 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
/* 拱门 */
.fm-pillar-arch {
  position: absolute;
  bottom: 212px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 60px;
  border: 2px solid var(--fm-gold);
  border-bottom: none;
  border-radius: 90px 90px 0 0;
  opacity: 0.6;
  box-shadow: 0 0 15px rgba(200,160,100,0.2);
}
/* 拱门上方装饰球 */
.fm-pillar-arch::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--fm-gold-light), var(--fm-gold));
  box-shadow: 0 0 10px rgba(200,160,100,0.5);
}
/* 拱门中心光晕 */
.fm-pillar-glow {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(200,160,100,0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: fm-pulse 5s ease-in-out infinite;
}

/* =========================================================
   动画关键帧
   ========================================================= */
@keyframes fm-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes fm-rotate-rev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
@keyframes fm-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

/* =========================================================
   会员活动区域 - fm-code-hall 装饰
   ========================================================= */
.fm-code-hall {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 4px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fm-code-hall::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(90deg, transparent 0, transparent 40px, rgba(200,160,100,0.04) 40px, rgba(200,160,100,0.04) 41px),
    repeating-linear-gradient(0deg, transparent 0, transparent 40px, rgba(200,160,100,0.04) 40px, rgba(200,160,100,0.04) 41px);
}
.fm-code-hall::after {
  content: '';
  width: 84px;
  height: 84px;
  border-left: 4px solid var(--fm-gold);
  border-bottom: 4px solid var(--fm-gold);
  opacity: 0.25;
  position: relative;
  z-index: 1;
  transform: rotate(-45deg);
}/* =========================================================
   响应式适配
   ========================================================= */
@media (max-width: 768px) {
  .fm-pillar-visual {
    position: relative !important;
    width: 100% !important;
    height: 200px !important;
    transform: none !important;
    margin-top: 20px;
  }
  .in-shili .item:nth-child(even) .fm-pillar-visual {
    left: auto;
  }
  .fm-visual-compass,
  .fm-visual-eye,
  .fm-visual-pillars {
    transform: scale(0.8);
  }
}

/* ==================== Pillar Section Refinement 2026-08-14 ==================== */
.fm-pillars-section {
  padding: clamp(36px, 5vw, 70px) 0 !important;
  background:
    linear-gradient(135deg, rgba(200, 160, 100, 0.08) 0 1px, transparent 1px) 0 0 / 88px 88px,
    linear-gradient(180deg, #f8f5ee 0%, #fff 28%, #f8f5ee 100%);
  overflow: hidden;
}

.fm-pillars-section .section-title {
  margin-bottom: clamp(22px, 4vw, 38px) !important;
}

.fm-pillars-section [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

.fm-pillars-section .section-title strong {
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.18;
}

.fm-pillars-section .section-title p {
  background: none !important;
  color: rgba(26, 26, 46, 0.62);
  font-size: clamp(14px, 1.55vw, 18px);
  line-height: 1.55;
  padding-top: 8px !important;
}

.in-shili {
  display: grid;
  gap: clamp(22px, 3.2vw, 34px);
  margin: 0 !important;
}

.in-shili .item {
  border: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
}

.in-shili .item::before,
.in-shili .item::after {
  content: none !important;
}

.in-shili .item .wrap {
  align-items: center !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(255, 253, 248, 0.94)) !important;
  border: 1px solid rgba(200, 160, 100, 0.2) !important;
  border-radius: 10px !important;
  box-shadow: 0 24px 70px rgba(36, 29, 18, 0.08), 0 3px 0 rgba(200, 160, 100, 0.24) inset !important;
  box-sizing: border-box;
  display: grid !important;
  gap: clamp(24px, 4vw, 64px);
  grid-template-columns: minmax(0, 0.96fr) minmax(280px, 1fr);
  margin: 0 !important;
  max-width: 100% !important;
  min-height: 340px !important;
  overflow: hidden;
  padding: clamp(34px, 4.7vw, 58px) clamp(26px, 5.2vw, 68px) !important;
}

.in-shili .item:nth-child(even) .wrap {
  grid-template-columns: minmax(280px, 1fr) minmax(0, 0.96fr);
}

.in-shili .item .wrap::before {
  opacity: 1 !important;
}

.in-shili .item .wrap::after {
  content: "" !important;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 160, 100, 0.34), transparent);
}

.fm-pillar-text {
  align-self: center;
  box-sizing: border-box;
  max-width: 620px;
  padding: 0 !important;
  position: relative;
  width: auto !important;
  z-index: 3;
}

.in-shili .item:nth-child(even) .fm-pillar-text {
  order: 2;
}

.in-shili h4 {
  align-items: baseline;
  color: var(--fm-gold) !important;
  display: flex;
  flex-wrap: wrap;
  font-size: clamp(30px, 3.3vw, 42px) !important;
  gap: 10px;
  line-height: 1.15;
  margin: 0 0 12px !important;
}

.in-shili h4 small {
  background: none !important;
  color: rgba(26, 26, 46, 0.62) !important;
  display: inline-flex;
  font-size: clamp(17px, 1.8vw, 23px) !important;
  line-height: 1.15;
  margin: 0 !important;
  padding-left: 22px !important;
  position: relative;
  text-transform: uppercase;
}

.in-shili h4 small::before {
  background: rgba(200, 160, 100, 0.55) !important;
  content: "" !important;
  height: 1px !important;
  left: 0 !important;
  position: absolute;
  top: 50% !important;
  width: 14px !important;
}

.in-shili .desc {
  border-bottom: 1px solid rgba(200, 160, 100, 0.18) !important;
  color: var(--fm-ink) !important;
  font-size: clamp(16px, 1.7vw, 20px) !important;
  font-weight: 700 !important;
  height: auto !important;
  line-height: 1.55;
  margin: 0 0 18px !important;
  padding: 0 0 14px !important;
}

.in-shili p {
  background: none !important;
  color: rgba(26, 26, 46, 0.68) !important;
  font-size: 15px !important;
  line-height: 1.85 !important;
  margin: 8px 0 0 !important;
  padding-left: 24px !important;
}

.in-shili p::before {
  background: transparent !important;
  border: 1px solid rgba(200, 160, 100, 0.8) !important;
  border-radius: 50%;
  box-sizing: border-box;
  content: "" !important;
  height: 9px !important;
  left: 0 !important;
  top: 0.82em !important;
  transform: translateY(-50%);
  width: 9px !important;
}

.fm-pillar-visual {
  align-self: center;
  box-sizing: border-box;
  display: block !important;
  height: 280px !important;
  justify-self: center;
  max-width: 100%;
  overflow: visible !important;
  pointer-events: none;
  position: relative !important;
  transform: none !important;
  width: min(360px, 100%) !important;
  z-index: 2;
}

.in-shili .item:nth-child(even) .fm-pillar-visual {
  order: 1;
}

.fm-pillar-visual *,
.fm-pillar-visual *::before,
.fm-pillar-visual *::after {
  box-sizing: border-box;
}

.fm-visual-compass::before,
.fm-visual-compass::after,
.fm-visual-eye::before {
  box-sizing: border-box;
}

.fm-visual-compass {
  height: 260px !important;
  width: 260px !important;
}

.fm-compass-ring {
  border: 1px solid rgba(200, 160, 100, 0.42) !important;
  inset: 8px !important;
}

.fm-compass-ring-2 {
  border-style: dashed !important;
  inset: 34px !important;
  opacity: 0.48 !important;
}

.fm-visual-compass::before {
  border: 1px solid rgba(200, 160, 100, 0.3) !important;
  inset: 58px !important;
}

.fm-visual-compass::after {
  border: 2px solid rgba(200, 160, 100, 0.7) !important;
  inset: 84px !important;
}

.fm-compass-arm {
  background: linear-gradient(180deg, rgba(238, 212, 160, 0.96), rgba(180, 127, 42, 0.82) 65%, transparent) !important;
  height: 132px !important;
  left: 50% !important;
  top: 50% !important;
  transform-origin: top center !important;
  width: 4px !important;
}

.fm-compass-arm-l {
  transform: translateX(-50%) rotate(27deg) !important;
}

.fm-compass-arm-r {
  transform: translateX(-50%) rotate(-27deg) !important;
}

.fm-compass-pivot {
  height: 16px !important;
  width: 16px !important;
}

.fm-visual-eye {
  height: 260px !important;
  width: 300px !important;
}

.fm-eye-triangle {
  background: linear-gradient(180deg, rgba(212, 176, 106, 0.46), rgba(212, 176, 106, 0.08)) !important;
  border: 0 !important;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 18px 36px rgba(116, 83, 33, 0.13)) !important;
  height: 214px !important;
  left: 50% !important;
  position: absolute;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 248px !important;
  z-index: 1;
}

.fm-eye-triangle::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 241, 0.86)) !important;
  border: 0 !important;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  content: "" !important;
  height: auto !important;
  inset: 8px 9px 11px !important;
  left: 9px !important;
  position: absolute !important;
  top: 8px !important;
  width: auto !important;
}

.fm-eye-rays {
  height: 236px !important;
  left: 50% !important;
  opacity: 0.56 !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 236px !important;
  z-index: 0;
}

.fm-eye-iris {
  background:
    radial-gradient(circle at 50% 50%, rgba(180, 127, 42, 0.24) 0 19%, transparent 20%),
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.94), rgba(246, 232, 203, 0.75) 64%, rgba(200, 160, 100, 0.06)) !important;
  border: 1.5px solid rgba(200, 160, 100, 0.86) !important;
  height: 52px !important;
  left: 50% !important;
  top: 55% !important;
  width: 92px !important;
  z-index: 3;
}

.fm-eye-pupil {
  background: radial-gradient(circle, #f4dfad 0 18%, var(--fm-gold) 42%, var(--fm-gold-deep) 76%) !important;
  height: 24px !important;
  left: 50% !important;
  top: 55% !important;
  width: 24px !important;
  z-index: 4;
}

.fm-eye-glow {
  height: 190px !important;
  left: 50% !important;
  top: 55% !important;
  width: 190px !important;
  z-index: 2;
}

.fm-visual-pillars {
  height: 260px !important;
  width: 300px !important;
}

.fm-pillar-col {
  bottom: 30px !important;
  width: 58px !important;
  z-index: 3;
}

.fm-pillar-left {
  left: 58px !important;
}

.fm-pillar-right {
  right: 58px !important;
}

.fm-pillar-cap,
.fm-pillar-base {
  background: linear-gradient(90deg, #9b6724, #d4ad63 48%, #9b6724) !important;
  border-radius: 3px !important;
  box-shadow: 0 8px 20px rgba(100, 69, 21, 0.16) !important;
  height: 16px !important;
  width: 58px !important;
}

.fm-pillar-shaft {
  background:
    linear-gradient(90deg, rgba(155, 103, 36, 0.26), rgba(237, 209, 151, 0.92) 50%, rgba(155, 103, 36, 0.26)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.16) 0 1px, transparent 1px 16px) !important;
  border-left: 1px solid rgba(155, 103, 36, 0.28) !important;
  border-right: 1px solid rgba(155, 103, 36, 0.28) !important;
  height: 128px !important;
  width: 34px !important;
}

.fm-pillar-arch {
  background:
    radial-gradient(ellipse at center bottom, transparent 0 57%, rgba(200, 160, 100, 0.26) 58% 60%, transparent 61%),
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent) !important;
  border: 2px solid rgba(200, 160, 100, 0.78) !important;
  border-bottom: 0 !important;
  border-radius: 100px 100px 0 0 !important;
  bottom: 170px !important;
  box-shadow: 0 18px 32px rgba(100, 69, 21, 0.08) !important;
  height: 72px !important;
  left: 50% !important;
  opacity: 1 !important;
  transform: translateX(-50%) !important;
  width: 196px !important;
  z-index: 2;
}

.fm-pillar-arch::before {
  height: 13px !important;
  top: -9px !important;
  width: 13px !important;
}

.fm-pillar-glow {
  bottom: 76px !important;
  height: 156px !important;
  opacity: 0.72 !important;
  width: 156px !important;
}

@media (hover: hover) {
  .in-shili .item .wrap:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 900px) {
  .in-shili .item .wrap,
  .in-shili .item:nth-child(even) .wrap {
    gap: 18px;
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    padding: 28px 22px 24px !important;
  }

  .in-shili .item:nth-child(even) .fm-pillar-text,
  .in-shili .item:nth-child(even) .fm-pillar-visual {
    order: initial;
  }

  .fm-pillar-visual {
    height: 190px !important;
    margin: 0 auto !important;
    order: 1 !important;
    width: 100% !important;
  }

  .fm-pillar-text {
    max-width: none;
    order: 2 !important;
    width: 100% !important;
  }

  .fm-visual-compass,
  .fm-visual-eye,
  .fm-visual-pillars {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.72) !important;
    transform-origin: center center;
  }

  .in-shili h4 {
    display: block;
    font-size: 26px !important;
  }

  .in-shili h4 small {
    display: flex;
    font-size: 14px !important;
    margin-top: 8px !important;
    padding-left: 18px !important;
  }

  .in-shili .desc {
    font-size: 16px !important;
    margin-bottom: 12px !important;
    padding-bottom: 11px !important;
  }

  .in-shili p {
    font-size: 14px !important;
    line-height: 1.75 !important;
  }
}

@media (max-width: 480px) {
  .fm-pillars-section {
    padding: 28px 0 34px !important;
  }

  .fm-pillars-section .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .fm-pillars-section .section-title {
    margin-bottom: 18px !important;
  }

  .fm-pillars-section .section-title strong {
    font-size: 22px !important;
  }

  .fm-pillars-section .section-title p {
    font-size: 13px !important;
    padding-left: 8px;
    padding-right: 8px;
  }

  .in-shili {
    gap: 16px;
  }

  .in-shili .item .wrap,
  .in-shili .item:nth-child(even) .wrap {
    border-radius: 8px !important;
    padding: 20px 16px 18px !important;
  }

  .fm-pillar-visual {
    height: 148px !important;
  }

  .fm-visual-compass,
  .fm-visual-eye,
  .fm-visual-pillars {
    transform: translate(-50%, -50%) scale(0.56) !important;
  }

  .in-shili h4 {
    font-size: 24px !important;
  }

  .in-shili h4 small {
    font-size: 12px !important;
  }

  .in-shili .desc {
    font-size: 15px !important;
  }
}

/* Mobile overflow repair for pillar drawings */
@media (max-width: 900px) {
  html,
  body {
    overflow-x: hidden;
  }

  .fm-pillars-section,
  .fm-pillars-section .container,
  .in-shili,
  .in-shili .item,
  .in-shili .item .wrap {
    max-width: 100%;
  }

  .fm-pillars-section .section-title {
    box-sizing: border-box;
    padding-left: 12px;
    padding-right: 12px;
  }

  .fm-pillars-section .section-title strong {
    font-size: clamp(20px, 6vw, 26px) !important;
    line-height: 1.22;
    overflow-wrap: normal;
    white-space: normal;
  }

  .fm-pillars-section .section-title p {
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
  }

  .fm-pillar-visual {
    justify-self: center;
    margin: 0 auto !important;
    position: relative !important;
  }

  .fm-visual-compass,
  .fm-visual-eye,
  .fm-visual-pillars {
    left: auto !important;
    top: auto !important;
    transform: none !important;
    transform-origin: center center !important;
  }

  .fm-visual-compass {
    height: 176px !important;
    width: 176px !important;
  }

  .fm-compass-ring {
    inset: 6px !important;
  }

  .fm-compass-ring-2 {
    inset: 24px !important;
  }

  .fm-visual-compass::before {
    inset: 42px !important;
  }

  .fm-visual-compass::after {
    inset: 58px !important;
  }

  .fm-compass-arm {
    height: 88px !important;
    width: 3px !important;
  }

  .fm-compass-pivot {
    height: 12px !important;
    width: 12px !important;
  }

  .fm-compass-glow {
    height: 44px !important;
    width: 44px !important;
  }

  .fm-visual-eye {
    height: 176px !important;
    width: 226px !important;
  }

  .fm-eye-triangle {
    height: 148px !important;
    width: 174px !important;
  }

  .fm-eye-triangle::after {
    inset: 6px 7px 8px !important;
    left: 7px !important;
    top: 6px !important;
  }

  .fm-eye-rays {
    height: 170px !important;
    width: 170px !important;
  }

  .fm-eye-iris {
    height: 38px !important;
    width: 68px !important;
  }

  .fm-eye-pupil {
    height: 18px !important;
    width: 18px !important;
  }

  .fm-eye-glow {
    height: 130px !important;
    width: 130px !important;
  }

  .fm-visual-pillars {
    height: 182px !important;
    width: 226px !important;
  }

  .fm-pillar-col {
    bottom: 22px !important;
    width: 42px !important;
  }

  .fm-pillar-left {
    left: 40px !important;
  }

  .fm-pillar-right {
    right: 40px !important;
  }

  .fm-pillar-cap,
  .fm-pillar-base {
    height: 12px !important;
    width: 42px !important;
  }

  .fm-pillar-shaft {
    height: 88px !important;
    width: 25px !important;
  }

  .fm-pillar-arch {
    bottom: 124px !important;
    height: 48px !important;
    width: 146px !important;
  }

  .fm-pillar-arch::before {
    height: 10px !important;
    top: -7px !important;
    width: 10px !important;
  }

  .fm-pillar-glow {
    bottom: 50px !important;
    height: 100px !important;
    width: 100px !important;
  }
}

/* =========================================================
   Homepage rebuild 2026-08-15
   ========================================================= */
.fm-home {
  --fm-home-bg: #ffffff;
  --fm-home-soft: #f7f3eb;
  --fm-home-cream: #fbfaf6;
  --fm-home-forest: #173f37;
  --fm-home-wine: #6f2d43;
  --fm-home-blue: #263d5f;
  --fm-home-border: rgba(40, 40, 40, 0.1);
  color: var(--fm-ink);
  background: var(--fm-home-bg);
  overflow: hidden;
}

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

.fm-home [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

.fm-home-section {
  padding: clamp(54px, 7vw, 92px) 0;
  position: relative;
}

.fm-home-section .container,
.fm-home-cta .container {
  position: relative;
  z-index: 2;
}

.fm-home-kicker {
  color: var(--fm-gold-deep);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.4;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.fm-home-head {
  margin: 0 auto clamp(28px, 4vw, 46px);
  max-width: 780px;
  text-align: center;
}

.fm-home-head-left {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.fm-home h2,
.fm-home h3,
.fm-home p {
  margin-top: 0;
}

.fm-home h2,
.fm-home h3,
.fm-home p,
.fm-home a,
.fm-home li,
.fm-home span,
.fm-home strong,
.fm-home summary {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.fm-home h2 {
  color: #1f1f1f;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 14px;
}

.fm-home h3 {
  color: #242424;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}

.fm-home p {
  color: rgba(31, 31, 31, 0.68);
  font-size: 15px;
  line-height: 1.85;
}

.fm-home-btn {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(200, 160, 100, 0.38);
  border-radius: 4px;
  color: var(--fm-gold-deep);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  line-height: 1.2;
  min-height: 44px;
  padding: 12px 24px;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.fm-home-btn-primary {
  background: var(--fm-gold);
  border-color: var(--fm-gold);
  color: #fff;
}

.fm-home-btn:hover {
  background: var(--fm-gold-deep);
  border-color: var(--fm-gold-deep);
  box-shadow: 0 16px 34px rgba(118, 80, 25, 0.18);
  color: #fff;
  transform: translateY(-2px);
}

.fm-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.fm-home-text-link {
  color: var(--fm-gold-deep);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  margin-top: 18px;
}

.fm-home-text-link::after {
  content: ">";
  margin-left: 8px;
  transition: transform 0.25s ease;
}

.fm-home-text-link:hover {
  color: var(--fm-home-forest);
}

.fm-home-text-link:hover::after {
  transform: translateX(4px);
}

.fm-home-intro-section {
  background:
    linear-gradient(135deg, rgba(200, 160, 100, 0.08) 0 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(180deg, #fff 0%, var(--fm-home-cream) 100%);
  padding-top: clamp(42px, 6vw, 76px);
}

.fm-home-intro {
  align-items: stretch;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(200, 160, 100, 0.2);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(35, 28, 18, 0.08);
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
}

.fm-home-intro-copy {
  align-self: center;
  max-width: 580px;
}

.fm-home-intro-copy p {
  font-size: 16px;
}

.fm-home-intro-visual {
  aspect-ratio: 16 / 10;
  background: #142b35;
  border-radius: 6px;
  min-height: 320px;
  overflow: hidden;
  position: relative;
}

.fm-home-intro-visual::before {
  background:
    linear-gradient(115deg, rgba(12, 29, 42, 0.12), transparent 46%, rgba(8, 31, 29, 0.26)),
    linear-gradient(180deg, transparent 64%, rgba(7, 20, 25, 0.38));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 3;
}

.fm-vision-code {
  isolation: isolate;
}

.fm-vision-field {
  background:
    linear-gradient(90deg, rgba(224, 196, 133, 0.045) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(rgba(224, 196, 133, 0.045) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(128deg, #17243d 0%, #183847 54%, #16473d 100%);
  inset: 0;
  overflow: hidden;
  position: absolute;
}

.fm-vision-field::before,
.fm-vision-field::after {
  content: "";
  position: absolute;
}

.fm-vision-field::before {
  background: radial-gradient(circle, rgba(235, 205, 141, 0.34) 0%, rgba(224, 196, 133, 0.08) 22%, transparent 68%);
  height: 76%;
  left: 38%;
  top: -30%;
  width: 54%;
}

.fm-vision-field::after {
  background: linear-gradient(90deg, transparent, rgba(224, 196, 133, 0.42), transparent);
  bottom: 20%;
  height: 1px;
  left: 8%;
  width: 84%;
}

.fm-vision-orbit {
  border: 1px solid rgba(224, 196, 133, 0.2);
  border-radius: 50%;
  position: absolute;
}

.fm-vision-orbit-one {
  height: 270px;
  right: -72px;
  top: -84px;
  width: 270px;
}

.fm-vision-orbit-two {
  bottom: -124px;
  height: 250px;
  left: -112px;
  width: 250px;
}

.fm-vision-axis {
  border-left: 1px solid rgba(224, 196, 133, 0.16);
  height: 136%;
  left: 58%;
  position: absolute;
  top: -18%;
  transform: rotate(29deg);
}

.fm-vision-light {
  background: #f0cf8c;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(240, 207, 140, 0.06), 0 0 52px rgba(240, 207, 140, 0.32);
  height: 8px;
  left: calc(62% - 4px);
  position: absolute;
  top: 14%;
  width: 8px;
}

.fm-vision-temple {
  bottom: 15%;
  height: 66%;
  left: 48%;
  position: absolute;
  transform: translateX(-50%);
  width: 54%;
  z-index: 2;
}

.fm-vision-pediment {
  background: linear-gradient(110deg, #b9894d, #edd6a5 48%, #b9894d);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  height: 58px;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 82%;
}

.fm-vision-pediment::before {
  background: #173541;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  content: "";
  inset: 10px 14px 7px;
  position: absolute;
}

.fm-vision-pediment span {
  border: 1px solid rgba(240, 207, 140, 0.64);
  border-radius: 50%;
  bottom: 9px;
  height: 20px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 20px;
  z-index: 2;
}

.fm-vision-pediment span::after {
  background: #f0cf8c;
  border-radius: 50%;
  content: "";
  height: 4px;
  left: 7px;
  position: absolute;
  top: 7px;
  width: 4px;
}

.fm-vision-beam,
.fm-vision-threshold {
  background: linear-gradient(90deg, rgba(192, 151, 85, 0.82), rgba(245, 220, 166, 0.96), rgba(192, 151, 85, 0.82));
  left: 4%;
  position: absolute;
  width: 92%;
}

.fm-vision-beam {
  height: 9px;
  top: 60px;
}

.fm-vision-columns {
  bottom: 34px;
  display: flex;
  justify-content: space-around;
  left: 8%;
  position: absolute;
  top: 74px;
  width: 84%;
}

.fm-vision-columns i {
  background: linear-gradient(90deg, #ac824a 0%, #ead19d 28%, #f5e1b7 50%, #c99b58 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 10px 18px rgba(5, 18, 24, 0.2);
  display: block;
  position: relative;
  width: 9%;
}

.fm-vision-columns i::before,
.fm-vision-columns i::after {
  background: #e3c487;
  content: "";
  height: 7px;
  left: -28%;
  position: absolute;
  width: 156%;
}

.fm-vision-columns i::before {
  top: -5px;
}

.fm-vision-columns i::after {
  bottom: -5px;
}

.fm-vision-threshold {
  bottom: 24px;
  height: 8px;
}

.fm-vision-steps {
  bottom: 0;
  left: 0;
  position: absolute;
  width: 100%;
}

.fm-vision-steps i {
  background: linear-gradient(90deg, rgba(174, 132, 73, 0.72), rgba(232, 204, 148, 0.9), rgba(174, 132, 73, 0.72));
  display: block;
  height: 5px;
  margin: 3px auto 0;
}

.fm-vision-steps i:nth-child(1) { width: 86%; }
.fm-vision-steps i:nth-child(2) { width: 94%; }
.fm-vision-steps i:nth-child(3) { width: 100%; }

.fm-vision-mark {
  align-items: center;
  background: rgba(15, 42, 48, 0.88);
  border: 1px solid rgba(240, 207, 140, 0.48);
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(5, 18, 24, 0.26);
  display: flex;
  height: 82px;
  justify-content: center;
  left: 48%;
  position: absolute;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 82px;
  z-index: 4;
}

.fm-vision-mark b {
  color: #f0cf8c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  position: relative;
  z-index: 3;
}

.fm-vision-compass,
.fm-vision-square {
  left: 50%;
  position: absolute;
  top: 50%;
}

.fm-vision-compass {
  border-left: 2px solid rgba(240, 207, 140, 0.84);
  border-top: 2px solid rgba(240, 207, 140, 0.84);
  height: 46px;
  transform: translate(-50%, -54%) rotate(45deg);
  width: 46px;
}

.fm-vision-square {
  border-bottom: 2px solid rgba(240, 207, 140, 0.72);
  border-right: 2px solid rgba(240, 207, 140, 0.72);
  height: 38px;
  transform: translate(-50%, -34%) rotate(45deg);
  width: 38px;
}

.fm-vision-caption {
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  position: absolute;
  right: 18px;
  text-transform: uppercase;
  top: 16px;
  z-index: 4;
}

.fm-home-visual-note {
  background: rgba(14, 31, 40, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  bottom: 20px;
  color: #fff;
  left: 20px;
  max-width: calc(100% - 40px);
  padding: 14px 16px;
  position: absolute;
  z-index: 5;
}

.fm-home-visual-note strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}

.fm-home-visual-note span {
  color: rgba(255, 255, 255, 0.78);
  display: block;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 4px;
}

.fm-home-paths {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.fm-home-path {
  background: #fff;
  border: 1px solid var(--fm-home-border);
  border-radius: 8px;
  color: #2b2b2b;
  display: block;
  min-height: 150px;
  padding: 22px;
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.fm-home-path::after {
  background: linear-gradient(90deg, var(--fm-gold), var(--fm-home-forest));
  content: "";
  height: 3px;
  left: 22px;
  position: absolute;
  right: 22px;
  top: 0;
}

.fm-home-path em {
  color: rgba(23, 63, 55, 0.42);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-style: normal;
  line-height: 1;
  margin-bottom: 16px;
}

.fm-home-path strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.fm-home-path span {
  color: rgba(31, 31, 31, 0.62);
  display: block;
  font-size: 13px;
  line-height: 1.7;
}

.fm-home-path:hover {
  border-color: rgba(200, 160, 100, 0.45);
  box-shadow: 0 18px 42px rgba(35, 28, 18, 0.1);
  transform: translateY(-4px);
}

.fm-home-values-section {
  background: #fff;
}

.fm-home-values {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fm-home-value {
  background: linear-gradient(180deg, #fff, #fbfaf7);
  border: 1px solid var(--fm-home-border);
  border-radius: 8px;
  min-height: 260px;
  padding: 28px 24px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.fm-home-value:hover {
  border-color: rgba(200, 160, 100, 0.42);
  box-shadow: 0 18px 44px rgba(35, 28, 18, 0.09);
  transform: translateY(-4px);
}

.fm-home-value-icon {
  height: 50px;
  margin-bottom: 22px;
  position: relative;
  width: 50px;
}

.fm-home-value-icon::before,
.fm-home-value-icon::after {
  content: "";
  position: absolute;
}

.fm-icon-square::before {
  border: 2px solid var(--fm-gold);
  height: 38px;
  left: 6px;
  top: 6px;
  transform: rotate(45deg);
  width: 38px;
}

.fm-icon-square::after {
  background: var(--fm-home-forest);
  height: 2px;
  left: 9px;
  top: 24px;
  width: 32px;
}

.fm-icon-link::before,
.fm-icon-link::after {
  border: 2px solid var(--fm-gold);
  border-radius: 999px;
  height: 22px;
  top: 14px;
  width: 32px;
}

.fm-icon-link::before {
  left: 0;
  transform: rotate(-28deg);
}

.fm-icon-link::after {
  right: 0;
  transform: rotate(-28deg);
}

.fm-icon-circle::before {
  border: 2px solid var(--fm-gold);
  border-radius: 50%;
  inset: 4px;
}

.fm-icon-circle::after {
  background: var(--fm-home-wine);
  border-radius: 50%;
  height: 14px;
  left: 18px;
  top: 18px;
  width: 14px;
}

.fm-icon-hand::before {
  border-bottom: 3px solid var(--fm-gold);
  border-left: 3px solid var(--fm-gold);
  height: 28px;
  left: 10px;
  top: 10px;
  transform: rotate(-45deg);
  width: 30px;
}

.fm-icon-hand::after {
  background: var(--fm-home-forest);
  height: 3px;
  left: 9px;
  top: 29px;
  transform: rotate(22deg);
  width: 34px;
}

.fm-home-governance-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(111, 45, 67, 0.08), transparent 32%),
    linear-gradient(180deg, var(--fm-home-soft), #fff);
}

.fm-home-split {
  align-items: stretch;
  display: grid;
  gap: clamp(22px, 4vw, 44px);
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
}

.fm-home-panel {
  background: #fff;
  border: 1px solid rgba(200, 160, 100, 0.22);
  border-radius: 8px;
  box-shadow: 0 24px 62px rgba(35, 28, 18, 0.08);
  padding: clamp(28px, 4vw, 42px);
}

.fm-home-checklist {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.fm-home-checklist li {
  color: rgba(31, 31, 31, 0.72);
  font-size: 14px;
  line-height: 1.8;
  margin-top: 10px;
  padding-left: 24px;
  position: relative;
}

.fm-home-checklist li::before {
  border: 1px solid var(--fm-gold);
  border-radius: 50%;
  content: "";
  height: 9px;
  left: 0;
  position: absolute;
  top: 0.82em;
  transform: translateY(-50%);
  width: 9px;
}

.fm-home-governance-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fm-home-governance-card {
  background:
    linear-gradient(140deg, rgba(23, 63, 55, 0.92), rgba(38, 61, 95, 0.9)),
    linear-gradient(180deg, #273b45, #1d2d34);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  min-height: 190px;
  overflow: hidden;
  padding: 24px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fm-home-governance-card::before {
  border: 1px solid rgba(224, 196, 133, 0.28);
  border-radius: 50%;
  content: "";
  height: 104px;
  position: absolute;
  right: -22px;
  top: -22px;
  width: 104px;
}

.fm-home-governance-card span {
  border-bottom: 3px solid rgba(224, 196, 133, 0.72);
  border-left: 3px solid rgba(224, 196, 133, 0.72);
  display: block;
  height: 40px;
  margin-bottom: 28px;
  transform: rotate(-45deg);
  width: 40px;
}

.fm-home-governance-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.35;
  position: relative;
  z-index: 2;
}

.fm-home-governance-card em {
  color: rgba(255, 255, 255, 0.62);
  display: block;
  font-size: 12px;
  font-style: normal;
  line-height: 1.6;
  margin-top: 8px;
  min-height: 20px;
  position: relative;
  text-transform: uppercase;
  z-index: 2;
}

.fm-home-governance-card:hover {
  box-shadow: 0 20px 46px rgba(16, 33, 40, 0.2);
  color: #fff;
  transform: translateY(-4px);
}

.fm-home-practice-section {
  background: #fff;
}

.fm-home-practice {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fm-home-practice-card {
  background: var(--fm-home-cream);
  border: 1px solid rgba(200, 160, 100, 0.24);
  border-radius: 8px;
  color: #232323;
  min-height: 250px;
  overflow: hidden;
  padding: 30px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.fm-home-practice-card::after {
  border: 1px solid rgba(200, 160, 100, 0.28);
  border-radius: 50%;
  bottom: -58px;
  content: "";
  height: 150px;
  position: absolute;
  right: -44px;
  width: 150px;
}

.fm-home-practice-card-wide {
  background:
    linear-gradient(120deg, rgba(23, 63, 55, 0.95), rgba(111, 45, 67, 0.82)),
    #173f37;
  color: #fff;
  grid-column: span 1;
}

.fm-home-practice-card-wide h3,
.fm-home-practice-card-wide p,
.fm-home-practice-card-wide .fm-home-card-eyebrow {
  color: #fff;
}

.fm-home-card-eyebrow {
  color: var(--fm-gold-deep);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.4;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.fm-home-practice-card h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  margin-bottom: 16px;
}

.fm-home-practice-card p {
  margin-bottom: 0;
  max-width: 360px;
}

.fm-home-practice-card:hover {
  border-color: rgba(200, 160, 100, 0.5);
  box-shadow: 0 18px 48px rgba(35, 28, 18, 0.1);
  color: #232323;
  transform: translateY(-4px);
}

.fm-home-practice-card-wide:hover {
  color: #fff;
}

.fm-home-join-section {
  background:
    linear-gradient(180deg, var(--fm-home-soft), #fdfcf8);
}

.fm-home-join {
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
}

.fm-home-join-copy {
  align-self: center;
}

.fm-home-steps {
  counter-reset: fm-step;
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fm-home-steps li {
  background: #fff;
  border: 1px solid rgba(40, 40, 40, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(35, 28, 18, 0.05);
  min-height: 98px;
  padding: 22px 24px 22px 78px;
  position: relative;
}

.fm-home-steps li::before {
  align-items: center;
  background: var(--fm-home-forest);
  border-radius: 50%;
  color: #fff;
  content: counter(fm-step, decimal-leading-zero);
  counter-increment: fm-step;
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  height: 40px;
  justify-content: center;
  left: 24px;
  position: absolute;
  top: 24px;
  width: 40px;
}

.fm-home-steps strong {
  color: #242424;
  display: block;
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 6px;
}

.fm-home-steps span {
  color: rgba(31, 31, 31, 0.62);
  display: block;
  font-size: 14px;
  line-height: 1.75;
}

.fm-home-news-section {
  background: #fff;
}

.fm-home-news-layout {
  align-items: start;
  display: grid;
  gap: clamp(22px, 4vw, 44px);
  grid-template-columns: minmax(0, 1fr) 360px;
}

.fm-home-news-list {
  border-top: 1px solid rgba(40, 40, 40, 0.1);
}

.fm-home-news-item {
  border-bottom: 1px solid rgba(40, 40, 40, 0.1);
  color: #242424;
  display: grid;
  gap: 12px;
  grid-template-columns: 112px minmax(180px, 0.7fr) minmax(0, 1fr);
  padding: 22px 0;
  transition: color 0.25s ease;
}

.fm-home-news-item time {
  color: var(--fm-gold-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.5;
}

.fm-home-news-item strong {
  font-size: 17px;
  line-height: 1.55;
}

.fm-home-news-item span {
  color: rgba(31, 31, 31, 0.62);
  font-size: 14px;
  line-height: 1.75;
}

.fm-home-news-item:hover {
  color: var(--fm-home-forest);
}

.fm-home-reference {
  background:
    linear-gradient(150deg, rgba(38, 61, 95, 0.94), rgba(23, 63, 55, 0.92)),
    var(--fm-home-blue);
  border-radius: 8px;
  color: #fff;
  min-height: 380px;
  overflow: hidden;
  padding: 32px;
  position: sticky;
  top: 20px;
}

.fm-home-reference::after {
  border: 1px solid rgba(224, 196, 133, 0.22);
  border-radius: 50%;
  content: "";
  height: 220px;
  position: absolute;
  right: -80px;
  top: -70px;
  width: 220px;
}

.fm-home-reference-mark {
  align-items: center;
  border: 1px solid rgba(224, 196, 133, 0.5);
  border-radius: 50%;
  color: var(--fm-gold-light);
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  height: 96px;
  justify-content: center;
  margin-bottom: 32px;
  width: 96px;
}

.fm-home-reference h3,
.fm-home-reference p {
  color: #fff;
  position: relative;
  z-index: 2;
}

.fm-home-reference p {
  color: rgba(255, 255, 255, 0.76);
}

.fm-home-reference a {
  border: 1px solid rgba(224, 196, 133, 0.45);
  border-radius: 4px;
  color: var(--fm-gold-light);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  margin-top: 18px;
  padding: 12px 18px;
  position: relative;
  z-index: 2;
}

.fm-home-reference a:hover {
  background: var(--fm-gold);
  color: #fff;
}

.fm-home-faq-section {
  background:
    radial-gradient(circle at 86% 12%, rgba(200, 160, 100, 0.12), transparent 32%),
    var(--fm-home-cream);
}

.fm-home-faq {
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: 920px;
}

.fm-home-faq details {
  background: #fff;
  border: 1px solid rgba(40, 40, 40, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(35, 28, 18, 0.05);
  overflow: hidden;
}

.fm-home-faq summary {
  color: #242424;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.55;
  list-style: none;
  padding: 20px 56px 20px 24px;
  position: relative;
}

.fm-home-faq summary::-webkit-details-marker {
  display: none;
}

.fm-home-faq summary::after {
  border-bottom: 2px solid var(--fm-gold-deep);
  border-right: 2px solid var(--fm-gold-deep);
  content: "";
  height: 10px;
  position: absolute;
  right: 26px;
  top: 26px;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  width: 10px;
}

.fm-home-faq details[open] summary::after {
  transform: rotate(225deg);
}

.fm-home-faq details p {
  border-top: 1px solid rgba(40, 40, 40, 0.08);
  margin: 0;
  padding: 18px 24px 22px;
}

.fm-home-cta {
  background:
    linear-gradient(120deg, rgba(18, 31, 42, 0.92), rgba(23, 63, 55, 0.9)),
    #17262e;
  color: #fff;
  padding: clamp(52px, 7vw, 88px) 0;
}

.fm-home-cta-inner {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(160px, 0.26fr) minmax(0, 1fr) auto;
}

.fm-home-cta span {
  color: var(--fm-gold-light);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
}

.fm-home-cta h2 {
  color: #fff;
  font-size: clamp(24px, 2.6vw, 34px);
  margin: 0;
}

.fm-home-cta .fm-home-actions {
  justify-content: flex-end;
  margin-top: 0;
}

@media (max-width: 1100px) {
  .fm-home-intro,
  .fm-home-split,
  .fm-home-join,
  .fm-home-news-layout {
    grid-template-columns: 1fr;
  }

  .fm-home-intro-copy {
    max-width: none;
  }

  .fm-home-news-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .fm-home-news-item span {
    grid-column: 2;
  }

  .fm-home-reference {
    min-height: 0;
    position: relative;
    top: auto;
  }

  .fm-home-cta-inner {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .fm-home-cta .fm-home-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .fm-home-paths,
  .fm-home-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fm-home-practice {
    grid-template-columns: 1fr;
  }

  .fm-home-practice-card {
    min-height: 210px;
  }
}

@media (max-width: 640px) {
  .fm-home-section {
    padding: 42px 0;
  }

  .fm-home .container {
    box-sizing: border-box;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    width: auto !important;
  }

  .fm-home-intro {
    gap: 20px;
    max-width: 100%;
    overflow: hidden;
    padding: 18px;
  }

  .fm-home h2 {
    font-size: 25px;
  }

  .fm-home p {
    font-size: 14px;
    line-height: 1.75;
  }

  .fm-home-intro-visual {
    aspect-ratio: 4 / 3;
    min-height: 220px;
  }

  .fm-home-visual-note {
    bottom: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
  }

  .fm-home-paths,
  .fm-home-values,
  .fm-home-governance-grid {
    grid-template-columns: 1fr;
  }

  .fm-home-path,
  .fm-home-value,
  .fm-home-governance-card,
  .fm-home-practice-card,
  .fm-home-panel,
  .fm-home-reference {
    padding: 22px 18px;
  }

  .fm-home-news-item {
    gap: 4px;
    grid-template-columns: 1fr;
    padding: 18px 0;
  }

  .fm-home-news-item span {
    grid-column: auto;
  }

  .fm-home-steps li {
    padding: 74px 18px 20px;
  }

  .fm-home-steps li::before {
    left: 18px;
    top: 20px;
  }

  .fm-home-faq summary {
    font-size: 15px;
    padding: 18px 48px 18px 18px;
  }

  .fm-home-faq summary::after {
    right: 22px;
    top: 24px;
  }

  .fm-home-faq details p {
    padding: 16px 18px 18px;
  }

  .fm-home-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .fm-home-btn {
    width: 100%;
  }
}

/* Shared site chrome and first-party cookie controls */
.topbar {
  background: #162730 !important;
  color: rgba(255, 255, 255, 0.62) !important;
}

.topbar a {
  color: rgba(240, 207, 140, 0.82) !important;
}

.f-nav {
  background: linear-gradient(90deg, #b8894b, #d0a45f 48%, #ad7d41) !important;
}

.footer {
  background-color: #14252d !important;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.018)),
    url(../images/fobxg2.png) !important;
}

.footer-copy {
  border-top-color: rgba(240, 207, 140, 0.16) !important;
  color: rgba(255, 255, 255, 0.52) !important;
}

.fm-footer-copy-inner {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: center;
}

.fm-footer-copy-text p {
  margin: 0;
}

.fm-cookie-settings {
  background: transparent;
  border: 0;
  color: rgba(240, 207, 140, 0.82);
  cursor: pointer;
  font: inherit;
  padding: 4px 0;
}

.fm-cookie-settings:hover,
.fm-cookie-settings:focus {
  color: #f0cf8c;
  outline: none;
  text-decoration: underline;
}

.fm-cookie-panel[hidden] {
  display: none !important;
}

.fm-cookie-panel {
  align-items: center;
  background: rgba(20, 37, 45, 0.98);
  border: 1px solid rgba(240, 207, 140, 0.28);
  border-radius: 8px;
  bottom: 18px;
  box-shadow: 0 24px 68px rgba(5, 15, 20, 0.3);
  color: #fff;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  left: 50%;
  max-width: 1120px;
  padding: 20px 22px;
  position: fixed;
  transform: translateX(-50%);
  width: calc(100% - 36px);
  z-index: 1001;
}

.fm-cookie-panel-copy strong {
  color: #f0cf8c;
  display: block;
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 7px;
}

.fm-cookie-panel-copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  max-width: 720px;
}

.fm-cookie-panel-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
  max-width: 350px;
}

.fm-cookie-btn {
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  min-height: 40px;
  padding: 9px 16px;
}

.fm-cookie-btn-primary {
  background: #c89d58;
  border: 1px solid #c89d58;
  color: #fff;
}

.fm-cookie-btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.fm-cookie-btn:hover,
.fm-cookie-btn:focus {
  border-color: #f0cf8c;
  box-shadow: 0 0 0 3px rgba(240, 207, 140, 0.14);
  outline: none;
}

.fm-cookie-delete {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  font-size: 12px;
  padding: 4px;
  width: 100%;
}

.fm-cookie-delete:hover,
.fm-cookie-delete:focus {
  color: #fff;
  outline: none;
  text-decoration: underline;
}

@media (max-width: 760px) {
  .fm-footer-copy-inner {
    flex-direction: column;
    gap: 6px;
  }

  .fm-cookie-panel {
    bottom: 68px;
    gap: 14px;
    grid-template-columns: 1fr;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    padding: 17px;
    width: calc(100% - 22px);
  }

  .fm-cookie-panel-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }

  .fm-cookie-delete {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .fm-cookie-panel-actions {
    grid-template-columns: 1fr;
  }

  .fm-cookie-delete {
    grid-column: auto;
  }
}

/* One-shot AI question workspace */
.fm-ai-page {
  background: #f4f4f0;
  color: #1d2529;
}

.fm-ai-page [hidden] {
  display: none !important;
}

.fm-ai-masthead {
  background:
    linear-gradient(90deg, rgba(200, 160, 100, 0.08) 1px, transparent 1px) 0 0 / 82px 82px,
    linear-gradient(145deg, #142238, #153f37 72%, #1c493d);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.fm-ai-masthead::after {
  border: 1px solid rgba(224, 196, 133, 0.24);
  border-radius: 50%;
  content: "";
  height: 300px;
  position: absolute;
  right: -78px;
  top: -154px;
  width: 300px;
}

.fm-ai-masthead-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 230px;
  position: relative;
  z-index: 2;
}

.fm-ai-kicker,
.fm-ai-section-label {
  color: #d6ad67;
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.4;
  margin-bottom: 14px;
}

.fm-ai-masthead h1 {
  color: #fff;
  font-size: 42px;
  line-height: 1.16;
  margin: 0 0 9px;
}

.fm-ai-masthead p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  margin: 0;
}

.fm-ai-seal {
  align-items: center;
  border: 1px solid rgba(224, 196, 133, 0.5);
  display: flex;
  height: 104px;
  justify-content: center;
  position: relative;
  transform: rotate(45deg);
  width: 104px;
}

.fm-ai-seal::before {
  border: 1px solid rgba(255, 255, 255, 0.23);
  content: "";
  inset: 11px;
  position: absolute;
}

.fm-ai-seal span {
  color: #e0c485;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 35px;
  transform: rotate(-45deg);
}

.fm-ai-workspace {
  padding: 56px 0 72px;
}

.fm-ai-layout {
  align-items: start;
  display: grid;
  gap: 44px;
  grid-template-columns: 280px minmax(0, 1fr);
}

.fm-ai-position {
  border-top: 3px solid #c8a064;
  padding: 28px 8px 0 0;
}

.fm-ai-position h2 {
  color: #17243a;
  font-size: 30px;
  line-height: 1.26;
  margin: 0 0 18px;
}

.fm-ai-position > p {
  color: rgba(29, 37, 41, 0.68);
  font-size: 14px;
  line-height: 1.9;
  margin: 0 0 28px;
}

.fm-ai-position dl,
.fm-ai-position dd {
  margin: 0;
}

.fm-ai-position dl > div {
  border-top: 1px solid rgba(31, 49, 55, 0.12);
  display: grid;
  gap: 12px;
  grid-template-columns: 50px 1fr;
  padding: 13px 0;
}

.fm-ai-position dt {
  color: #a2742f;
  font-size: 12px;
  font-weight: 700;
}

.fm-ai-position dd {
  color: #27353a;
  font-size: 13px;
}

.fm-ai-tool {
  background: #fff;
  border: 1px solid rgba(24, 53, 48, 0.16);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(20, 32, 39, 0.1);
  min-height: 570px;
  overflow: hidden;
}

.fm-ai-tool-head {
  align-items: center;
  background: #f9faf8;
  border-bottom: 1px solid rgba(24, 53, 48, 0.12);
  display: flex;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 28px;
}

.fm-ai-tool-head > div {
  align-items: center;
  display: flex;
  gap: 10px;
}

.fm-ai-tool-head strong {
  color: #17243a;
  font-size: 15px;
}

.fm-ai-live-dot {
  background: #1a6656;
  border: 4px solid rgba(26, 102, 86, 0.12);
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.fm-ai-once-badge {
  border: 1px solid rgba(200, 160, 100, 0.5);
  color: #9d7130;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 8px;
}

.fm-ai-composer {
  padding: 36px 38px 32px;
}

.fm-ai-composer > label {
  color: #17243a;
  display: block;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
}

.fm-ai-composer textarea {
  background: #fbfbf8;
  border: 1px solid rgba(29, 53, 48, 0.2);
  border-radius: 4px;
  box-sizing: border-box;
  color: #20292d;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.8;
  min-height: 190px;
  outline: none;
  padding: 19px 20px;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.fm-ai-composer textarea:focus {
  border-color: #b68a45;
  box-shadow: 0 0 0 3px rgba(200, 160, 100, 0.12);
}

.fm-ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.fm-ai-suggestions button {
  background: transparent;
  border: 1px solid rgba(23, 63, 55, 0.2);
  border-radius: 4px;
  color: #34534d;
  cursor: pointer;
  font-size: 12px;
  min-height: 34px;
  padding: 6px 11px;
}

.fm-ai-suggestions button:hover,
.fm-ai-suggestions button:focus {
  background: #f3f7f5;
  border-color: #4f756d;
  outline: none;
}

.fm-ai-submit-row {
  align-items: center;
  border-top: 1px solid rgba(29, 53, 48, 0.1);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 22px;
}

.fm-ai-submit-row p {
  color: rgba(29, 37, 41, 0.54);
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
  max-width: 480px;
}

.fm-ai-submit {
  align-items: center;
  background: #bd8f49;
  border: 1px solid #bd8f49;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  gap: 14px;
  justify-content: center;
  min-height: 46px;
  min-width: 144px;
  padding: 10px 18px;
}

.fm-ai-submit i {
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  height: 7px;
  transform: rotate(45deg);
  width: 7px;
}

.fm-ai-submit:hover,
.fm-ai-submit:focus {
  background: #a77836;
  border-color: #a77836;
  outline: none;
}

.fm-ai-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.fm-ai-tool.is-busy .fm-ai-live-dot {
  animation: fm-ai-pulse 1s ease-in-out infinite;
}

@keyframes fm-ai-pulse {
  50% { box-shadow: 0 0 0 8px rgba(26, 102, 86, 0.12); }
}

.fm-ai-result {
  padding: 34px 38px 30px;
}

.fm-ai-result-question {
  border-bottom: 1px solid rgba(29, 53, 48, 0.12);
  padding-bottom: 24px;
}

.fm-ai-result-question span {
  color: #a2742f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.fm-ai-result-question p {
  color: #17243a;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.65;
  margin: 9px 0 0;
  white-space: pre-wrap;
}

.fm-ai-result-answer {
  padding: 30px 0 34px;
}

.fm-ai-answer-head {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 19px;
}

.fm-ai-answer-head span {
  align-items: center;
  background: #173f37;
  border-radius: 50%;
  color: #e0c485;
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.fm-ai-answer-head strong {
  color: #173f37;
  font-size: 16px;
}

.fm-ai-answer-text {
  color: #27353a;
  font-size: 15px;
  line-height: 2;
  min-height: 160px;
  white-space: pre-wrap;
}

.fm-ai-answer-text.is-error {
  color: #8c3434;
}

.fm-ai-result-footer {
  align-items: center;
  background: #f4f6f3;
  border-top: 1px solid rgba(29, 53, 48, 0.1);
  display: flex;
  justify-content: space-between;
  margin: 0 -38px -30px;
  min-height: 78px;
  padding: 0 38px;
}

.fm-ai-result-footer strong,
.fm-ai-result-footer span {
  display: block;
}

.fm-ai-result-footer strong {
  color: #17243a;
  font-size: 14px;
}

.fm-ai-result-footer span {
  color: rgba(29, 37, 41, 0.48);
  font-size: 10px;
  margin-top: 3px;
}

.fm-ai-result-footer button {
  background: #173f37;
  border: 1px solid #173f37;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  min-height: 40px;
  padding: 8px 16px;
}

@media (max-width: 900px) {
  .fm-ai-layout {
    gap: 28px;
    grid-template-columns: 1fr;
  }

  .fm-ai-position {
    display: grid;
    gap: 14px 24px;
    grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1.28fr);
    padding-right: 0;
  }

  .fm-ai-position .fm-ai-section-label,
  .fm-ai-position h2 {
    grid-column: 1;
  }

  .fm-ai-position > p,
  .fm-ai-position dl {
    grid-column: 2;
  }

  .fm-ai-position > p {
    margin: 0;
  }
}

@media (max-width: 600px) {
  .fm-ai-masthead-inner {
    min-height: 176px;
  }

  .fm-ai-masthead h1 {
    font-size: 31px;
  }

  .fm-ai-seal {
    height: 70px;
    margin-right: 12px;
    width: 70px;
  }

  .fm-ai-seal span {
    font-size: 25px;
  }

  .fm-ai-workspace {
    padding: 32px 0 88px;
  }

  .fm-ai-layout {
    gap: 22px;
  }

  .fm-ai-position {
    display: block;
    padding-top: 20px;
  }

  .fm-ai-position h2 {
    font-size: 25px;
  }

  .fm-ai-position > p {
    margin-bottom: 20px;
  }

  .fm-ai-tool {
    min-height: 0;
  }

  .fm-ai-tool-head {
    min-height: 58px;
    padding: 0 17px;
  }

  .fm-ai-composer,
  .fm-ai-result {
    padding: 24px 17px;
  }

  .fm-ai-composer > label {
    font-size: 19px;
  }

  .fm-ai-composer textarea {
    font-size: 15px;
    min-height: 160px;
    padding: 14px;
  }

  .fm-ai-submit-row {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .fm-ai-submit {
    width: 100%;
  }

  .fm-ai-result-question p {
    font-size: 17px;
  }

  .fm-ai-answer-text {
    font-size: 14px;
    line-height: 1.9;
  }

  .fm-ai-result-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    margin: 0 -17px -24px;
    padding: 17px;
  }

  .fm-ai-result-footer button {
    width: 100%;
  }
}
