/* =======================================================================
   皇家贵气 · ROYAL IMPERIAL THEME
   模板：CompanyTemplate/wxh
   色板：御墨 #1b1430 / #241a3d    鎏金 #c9a227 / #e8c869 / #f7e6b0
         象牙 #fbf8f1 / #ffffff    御红 #8b1a2b    暖墨 #33291c
   说明：本表为全站覆盖层，在 <head> 末尾引入即可生效。
        大量使用 !important，用于压制模板内散落的行内样式与旧 CSS。
   ======================================================================= */

/* -----------------------------------------------------------------------
   1. 全局基底
   ----------------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; }

body {
  background-color: #ffffff !important;
  background-image: none !important;
  color: #33291c !important;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.75;
}

::selection { background: #c9a227; color: #1b1430; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #efe8d8; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(#e8c869, #c9a227);
  border-radius: 6px; border: 2px solid #efe8d8;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(#f7e6b0, #c9a227); }

/* -----------------------------------------------------------------------
   2. 链接与文字
   ----------------------------------------------------------------------- */
a { color: #2f2517; transition: color .22s ease, background-color .22s ease, box-shadow .22s ease; }
a:hover { color: #a8801a !important; text-decoration: none !important; }

/* 冷灰文字 → 暖褐 */
.gray, .note, .ListDate { color: #7b6b4e !important; }
.style_foot, .style_footmenu { color: #7b6b4e !important; font-size: 13px !important; letter-spacing: 1px; }
.style_footmenu:hover { color: #a8801a !important; }
/* 面包屑：大红粗体 → 沉稳墨褐，次级灰字转暖调浅褐 */
.style_location, .style_location1 { color: #5c4a2c !important; font-weight: 600; letter-spacing: 1px; }
.style_location a, .style_location1 a { color: #5c4a2c !important; }
.style_location a:hover, .style_location1 a:hover { color: #a8801a !important; }
span[style*="color:#CCCCCC"], span[style*="color:#cccccc"] { color: #b6a988 !important; }

/* 模板里写死的行内冷灰标题链接 */
a[style*="color:#666666"], a[style*="color: #666666"] { color: #5c4a2c !important; }

/* -----------------------------------------------------------------------
   3. 标题：皇家衬线
   ----------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", SimSun, Georgia, serif;
  color: #1b1430;
  font-weight: 700;
}

/* 表格居中标题 → 鎏金装饰标题 */
td[align="center"] > h1 {
  font-family: "Songti SC", "STSong", "Noto Serif SC", SimSun, Georgia, serif !important;
  color: #1b1430 !important;
  font-size: 22px !important;
  letter-spacing: 6px !important;
  font-weight: 700 !important;
  display: inline-block;
  padding: 0 4px;
  line-height: 1.5;
}
td[align="center"] > h1::before {
  content: "";
  display: inline-block; width: 52px; height: 2px; vertical-align: middle;
  margin-right: 16px;
  background: linear-gradient(90deg, rgba(201,162,39,0), #c9a227);
}
td[align="center"] > h1::after {
  content: "";
  display: inline-block; width: 52px; height: 2px; vertical-align: middle;
  margin-left: 16px;
  background: linear-gradient(270deg, rgba(201,162,39,0), #c9a227);
}

/* -----------------------------------------------------------------------
   4. 顶部信息条
   ----------------------------------------------------------------------- */
.royal-topbar {
  background: linear-gradient(90deg, #150f26, #241a3d 45%, #150f26) !important;
  border-bottom: 1px solid #c9a227;
  color: #d8c79a;
  font-size: 12.5px;
  letter-spacing: 1px;
}
.royal-topbar-in {
  width: 1200px; margin: 0 auto; height: 34px;
  display: flex; align-items: center; justify-content: space-between;
}
.royal-topbar-tag { color: #e8c869 !important; letter-spacing: 3px; }
.royal-topbar-tag::before { content: "\25C6"; color: #c9a227; margin-right: 8px; }
.royal-topbar-right a { color: #e8c869 !important; font-size: 12.5px !important; }
.royal-topbar-right a:hover { color: #ffffff !important; }
.royal-topbar .sep { color: #5d5133; margin: 0 9px; }

/* -----------------------------------------------------------------------
   5. 品牌头部
   ----------------------------------------------------------------------- */
.royal-header {
  background:
    radial-gradient(circle at 78% 30%, rgba(201,162,39,.16), transparent 46%),
    linear-gradient(180deg, #ffffff, #faf4e7) !important;
  border-bottom: 3px double #c9a227;
}
.royal-header-in {
  width: 1200px; margin: 0 auto; padding: 22px 0;
  display: flex; align-items: center; gap: 26px;
}
.royal-logo { flex: 0 0 auto; }
.royal-logo img {
  max-height: 66px; max-width: 430px; width: auto; display: block;
  border: none !important; box-shadow: none !important;
}
.royal-slogan {
  flex: 1; text-align: center;
  border-left: 1px solid #e6d9b8; border-right: 1px solid #e6d9b8;
  padding: 6px 20px;
}
.royal-slogan-main {
  margin: 0 !important;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-family: "Songti SC", "STSong", SimSun, Georgia, serif;
  font-size: 23px; font-weight: 700; color: #1b1430; letter-spacing: 4px;
  white-space: nowrap;
}
.royal-slogan-main b {
  font-size: inherit;
  background: linear-gradient(180deg, #e8c869, #c9a227 55%, #a8801a);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #a8801a;
  padding-bottom: 2px;
  text-shadow: 0 1px 0 rgba(255,251,235,.65);
}
/* 鎏金菱形分隔符 */
.royal-slogan-main .sep-diamond {
  flex: 0 0 auto; width: 7px; height: 7px; margin: 0;
  background: linear-gradient(135deg, #f0d78a, #c9a227);
  transform: rotate(45deg);
  box-shadow: 0 0 0 1px rgba(201,162,39,.28), inset 0 1px 0 rgba(255,255,255,.55);
  border-radius: 1px; opacity: .9;
}
.royal-slogan-sub {
  margin: 9px 0 0 !important;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 13.5px; color: #6b5a3a; letter-spacing: 2px; white-space: nowrap;
}
.royal-slogan-sub .svc { color: #8a7a58; }
.royal-slogan-sub b {
  color: #1b1430 !important; font-size: 15.5px; letter-spacing: 1.5px;
  font-family: Georgia, "Songti SC", SimSun, serif;
  border-bottom: 1px solid #e3d5b0; padding-bottom: 1px;
}
.royal-dot {
  color: #8b6f14 !important; font-weight: 400; font-size: 12.5px;
  border: 1px solid #d9c07a; border-radius: 20px;
  padding: 1.5px 12px; margin-left: 2px;
  background: rgba(201,162,39,.06); text-decoration: none !important;
  letter-spacing: 1.5px; line-height: 1.5;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.royal-dot:hover { background: rgba(201,162,39,.16) !important; color: #241a3d !important; border-color: #c9a227; }
.royal-contact { flex: 0 0 auto; text-align: center; min-width: 168px; }

/* 鎏金按钮 */
.royal-btn {
  display: inline-block; padding: 9px 22px; border-radius: 3px; cursor: pointer;
  font-size: 14px; font-weight: 700; letter-spacing: 2px; text-decoration: none !important;
  color: #241a3d !important;
  background: linear-gradient(180deg, #f7e6b0, #e8c869 45%, #c9a227) !important;
  border: 1px solid #a8801a !important;
  box-shadow: 0 2px 6px rgba(154,122,20,.35), inset 0 1px 0 rgba(255,255,255,.65);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.royal-btn:hover {
  transform: translateY(-1px); filter: brightness(1.06);
  box-shadow: 0 7px 18px rgba(154,122,20,.45), inset 0 1px 0 rgba(255,255,255,.7);
  color: #150f26 !important;
}
.royal-btn-ghost {
  background: transparent !important; color: #8b6f14 !important;
  border: 1px solid #c9a227 !important; box-shadow: none;
}
.royal-btn-ghost:hover { background: rgba(201,162,39,.14) !important; color: #150f26 !important; }
.royal-phone { display: block; margin-top: 9px; font-size: 12.5px; color: #7b6b4e; letter-spacing: 1px; }

/* -----------------------------------------------------------------------
   6. 导航：鎏金御墨
   ----------------------------------------------------------------------- */
#head { position: relative; }
#head #NavLink {
  height: auto !important; padding: 0 !important; width: 100%;
  background: linear-gradient(180deg, #2a2044, #1b1430) !important;
  border-top: 1px solid rgba(232,200,105,.55) !important;
  border-bottom: 2px solid #c9a227 !important;
  box-shadow: 0 8px 20px rgba(27,20,48,.22);
  position: relative; z-index: 100;
}
#head #NavLink .NavBG {
  position: static !important; height: auto !important;
  background: none !important; width: 100% !important;
}
#head #NavLink #sddm {
  width: 1200px !important; margin: 0 auto !important; list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch;
}
#head #NavLink #sddm LI { float: none !important; position: relative; font-weight: 400 !important; }
#head #NavLink #sddm LI > A {
  display: block; width: auto !important; height: auto !important;
  padding: 0 26px !important; line-height: 48px !important;
  background: none !important;
  color: #e9dcb6 !important; font-size: 15px; letter-spacing: 3px; font-weight: 400;
  position: relative; white-space: nowrap;
  transition: color .22s ease, background .22s ease;
}
#head #NavLink #sddm LI > A::after {
  content: ""; position: absolute; left: 50%; bottom: 12px; width: 0; height: 2px;
  background: linear-gradient(90deg, rgba(201,162,39,0), #e8c869, rgba(201,162,39,0));
  transform: translateX(-50%); transition: width .28s ease;
}
#head #NavLink #sddm LI > A:hover {
  color: #f7e6b0 !important; background: rgba(201,162,39,.10) !important;
}
#head #NavLink #sddm LI > A:hover::after { width: 64%; }
#head #NavLink #sddm .CurrentLi > A {
  color: #1b1430 !important; font-weight: 700 !important;
  background: linear-gradient(180deg, #f7e6b0, #e8c869 50%, #c9a227) !important;
}
#head #NavLink #sddm .CurrentLi > A::after { display: none; }

/* 二级下拉 */
#head #NavLink #sddm DIV {
  position: absolute; top: 100%; left: 0; min-width: 100%; width: auto !important;
  background: linear-gradient(180deg, #241a3d, #1b1430) !important;
  border: 1px solid #c9a227 !important; border-top: 2px solid #e8c869 !important;
  box-shadow: 0 16px 34px rgba(21,15,38,.45);
  padding: 6px 0 !important; z-index: 6000 !important;
}
#head #NavLink #sddm DIV A {
  display: block; width: auto !important; min-width: 190px;
  padding: 0 22px !important; line-height: 38px !important;
  background: none !important;
  border-bottom: 1px dashed rgba(201,162,39,.22) !important;
  color: #ded0a6 !important; font-size: 13px; letter-spacing: 1.5px; font-weight: 400;
  text-align: left; white-space: nowrap;
}
#head #NavLink #sddm DIV A:last-child { border-bottom: none !important; }
#head #NavLink #sddm DIV A:hover {
  background: linear-gradient(90deg, rgba(201,162,39,.28), rgba(201,162,39,.04)) !important;
  color: #f7e6b0 !important; border-bottom-color: #c9a227 !important;
}

/* -----------------------------------------------------------------------
   7. 主视觉 / 横幅 / 工具区
   ----------------------------------------------------------------------- */
.royal-banner { width: 1200px !important; margin: 14px auto 0 !important; }
.royal-banner img {
  width: 100% !important; display: block; border-radius: 4px;
  border: 1px solid #e6d9b8 !important;
  box-shadow: 0 12px 32px rgba(27,20,48,.14);
}
.royal-codetools-wrap {
  margin: 12px auto 0 !important;
  background: #ffffff; border: 1px solid #e6d9b8; border-top: 3px solid #c9a227;
  border-radius: 4px; box-shadow: 0 8px 24px rgba(27,20,48,.08);
  padding: 6px;
}

/* -----------------------------------------------------------------------
   8. 版块卡片
   ----------------------------------------------------------------------- */
.royal-section {
  width: 1200px; margin: 18px auto 0; background: #ffffff;
  border: 1px solid #e6d9b8; border-radius: 4px;
  box-shadow: 0 8px 26px rgba(27,20,48,.07);
  position: relative; overflow: hidden;
}
.royal-section::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, #c9a227, #f7e6b0 30%, #c9a227 62%, #8b1a2b);
}
.royal-section-bd { padding: 10px 14px 20px; }
/* 服务端 [Content] 输出的表格：占满版心，消除两侧留白 */
.royal-section-bd > table,
.royal-section-bd table[width="95%"],
.royal-section-bd table[width="90%"] { width: 100% !important; }

.royal-section-hd { text-align: center; padding: 24px 16px 12px; }
.royal-section-hd h1,
.royal-section-hd h2 {
  display: inline-block; margin: 0 !important;
  font-family: "Songti SC", "STSong", "Noto Serif SC", SimSun, Georgia, serif;
  font-size: 24px !important; color: #1b1430 !important; letter-spacing: 6px !important;
  line-height: 1.5;
}
.royal-section-hd h1::before,
.royal-section-hd h2::before {
  content: ""; display: inline-block; width: 46px; height: 2px; vertical-align: middle;
  margin-right: 16px;
  background: linear-gradient(90deg, rgba(201,162,39,0), #c9a227);
}
.royal-section-hd h1::after,
.royal-section-hd h2::after {
  content: ""; display: inline-block; width: 46px; height: 2px; vertical-align: middle;
  margin-left: 16px;
  background: linear-gradient(270deg, rgba(201,162,39,0), #c9a227);
}
.royal-section-hd .en {
  display: block; margin-top: 7px;
  font-size: 11px; letter-spacing: 4px; color: #bdaa72; text-transform: uppercase;
}
.royal-section-hd h1 a, .royal-section-hd h2 a { color: #1b1430 !important; text-decoration: none !important; }
.royal-section-hd h1 a:hover, .royal-section-hd h2 a:hover { color: #a8801a !important; }
.royal-section-hd .rule {
  display: block; width: 120px; height: 1px; margin: 12px auto 0;
  background: linear-gradient(90deg, transparent, #c9a227, transparent);
}

/* -----------------------------------------------------------------------
   9. 旧表格容器：象牙卡 + 金线
   ----------------------------------------------------------------------- */
table[bgcolor="#FFFFFF"], table[bgcolor="#ffffff"] { background-color: #ffffff !important; }
/* 注意：用 background-color 而非 background 简写，避免清掉表格的 background 属性背景图（如登录页 crmbg.png） */
.grayline { border: 1px solid #e9dcbe !important; background-color: #ffffff !important; box-shadow: 0 6px 20px rgba(27,20,48,.05); }
.greengrayline { border: 1px solid #e9dcbe !important; background-color: #ffffff !important; }
.grayline, .greengrayline { border-radius: 3px; }
.dotline { border-bottom: 1px dashed #e3d5b0 !important; }

/* 搜索条标签：墨褐细字重，去黑体压迫感 */
.grayline td strong, .greengrayline td strong { color: #4a3b26 !important; font-weight: 600; letter-spacing: 1px; }

/* 侧栏 / 面包屑 / 分页条 的背景图 → 皇家配色 */
td[background*="leftbg"] {
  background: linear-gradient(180deg, #2a2044, #1b1430) !important;
  border-bottom: 2px solid #c9a227 !important;
}
td[background*="rightbg"] { background: linear-gradient(180deg, #fdfcfa, #f7f6f3) !important; }
td[background*="titlebg"] { background: linear-gradient(180deg, #f7f0da, #eddfb2) !important; }
td[background*="list_bg"] { background: linear-gradient(180deg, #fdfcfa, #f7f6f3) !important; }

/* 用链接色替代模板里写死的深蓝/蓝黑 */
span[style*="#0000CC"], span[style*="#000099"] { color: #1b1430 !important; }
.style1 { color: #f7e6b0 !important; font-weight: 700; }

/* 侧栏子菜单：统一左对齐，图标不随文字长短漂移 */
td.dotline:has(> img[src*="arrow"]) {
  text-align: left !important;
  padding-left: 32px !important;
}

/* 侧栏空容器：无数据时隐藏，不留空白行 */
.royal-list:empty, .royal-dotlist:empty { display: none !important; }
.royal-block:empty { display: none !important; }

/* -----------------------------------------------------------------------
   10. 图片与缩略图
   ----------------------------------------------------------------------- */
img[style*="outset"] {
  border: 1px solid #e6d9b8 !important;
  padding: 3px !important; background: #ffffff;
  box-shadow: 0 5px 14px rgba(27,20,48,.10);
  transition: box-shadow .25s ease, transform .25s ease;
}
img[style*="outset"]:hover {
  box-shadow: 0 12px 26px rgba(201,162,39,.42);
  transform: translateY(-2px);
}
.imgzoom:hover, .rounded-div:hover { box-shadow: 0 12px 28px rgba(201,162,39,.34); }

/* -----------------------------------------------------------------------
   11. 按钮
   ----------------------------------------------------------------------- */
.down_btn {
  background: linear-gradient(180deg, #f5e6b8, #e3c768 55%, #d4b24a) !important;
  border: 1px solid #b8933a !important; color: #241a3d !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7) !important;
  border-radius: 3px !important; font-weight: 700; letter-spacing: 2px;
}
.down_btn:hover { filter: brightness(1.05); background: linear-gradient(180deg, #f7e6b0, #e8c869 55%, #d4b24a) !important; }
.btn, .down_tab td a.btn {
  background: linear-gradient(180deg, #fdf7e6, #f1e3b8) !important;
  border: 1px solid #d9c07a !important; color: #6b5312 !important;
  border-radius: 3px !important; letter-spacing: 1px; font-size: 12px;
  padding: 0 9px; margin: 0 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}
.btn:hover {
  background: linear-gradient(180deg, #f7e6b0, #e8c869) !important;
  color: #241a3d !important; text-decoration: none !important;
  border-color: #c9a227 !important;
}

input[type=submit], input[type=button], input[type=reset], button {
  background: linear-gradient(180deg, #fdf7e6, #f1e3b8) !important;
  border: 1px solid #d9c07a !important; color: #6b5312 !important;
  border-radius: 3px !important; letter-spacing: 1px; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}
input[type=submit]:hover, input[type=button]:hover, input[type=reset]:hover, button:hover {
  filter: brightness(1.04);
  background: linear-gradient(180deg, #f7e6b0, #e8c869) !important;
  color: #241a3d !important;
}

/* -----------------------------------------------------------------------
   12. 表格
   ----------------------------------------------------------------------- */
.down_tab { border: 1px solid #e9dcbe !important; }
.down_tab thead td {
  background: linear-gradient(180deg, #f7f0da, #eddfb2) !important;
  color: #241a3d !important;
  border-bottom: 2px solid #c9a227 !important;
  border-right: 1px solid rgba(168,128,26,.16) !important;
  font-weight: 700 !important; letter-spacing: 2px; font-size: 12.5px;
}
.down_tab thead td a, .down_tab tr.thead td a { color: #1b1430 !important; }
.down_tab td { border-bottom: 1px dotted #e8dcc0 !important; color: #4a3e2a; font-size: 12.5px; }
.down_tab td a { color: #5c4a2c !important; }
.down_tab td a:hover { color: #a8801a !important; }
.down_tab tr:hover { background: #faf7ee !important; }
.down_tab tfoot td { background: #f6efe0 !important; }
.down_tab td.gray { background: #f6efe0 !important; }
.down_tab td.org { color: #a8801a !important; }

/* -----------------------------------------------------------------------
   13. 表单
   ----------------------------------------------------------------------- */
input[type=text], input[type=password], input[type=number], input[type=email], textarea, select {
  border: 1px solid #dcc99a !important; border-radius: 3px !important;
  background: #ffffff !important; color: #33291c !important;
  padding: 3px 6px; transition: border-color .2s ease, box-shadow .2s ease;
}
input[type=text]:focus, input[type=password]:focus, input[type=number]:focus,
input[type=email]:focus, textarea:focus, select:focus {
  border-color: #c9a227 !important;
  box-shadow: 0 0 0 3px rgba(201,162,39,.16) !important;
  outline: none;
}

/* -----------------------------------------------------------------------
   14. 皇家页脚
   ----------------------------------------------------------------------- */
.royal-footer {
  margin-top: 26px;
  background: linear-gradient(180deg, #241a3d, #150f26) !important;
  border-top: 3px double #c9a227;
  color: #c3b48d !important;
}
.royal-footer-in { width: 1200px; margin: 0 auto; padding: 26px 0 22px; text-align: center; }
.royal-footer .royal-service {
  display: flex; flex-wrap: wrap; width: 1200px; margin: 0 auto 22px;
  border-top: 1px solid rgba(201,162,39,.28); border-bottom: 1px solid rgba(201,162,39,.28);
}
.royal-footer .royal-service-item {
  flex: 1 1 0; min-width: 210px; padding: 18px 12px; text-align: center;
  border-right: 1px solid rgba(201,162,39,.16);
}
.royal-footer .royal-service-item:last-child { border-right: none; }
.royal-footer .royal-service-item .ico {
  display: block; font-size: 19px; color: #d9bc5f; margin-bottom: 7px; letter-spacing: 0;
}
.royal-footer .royal-service-item .t {
  color: #f0e4c4 !important; font-size: 14.5px; letter-spacing: 3px;
  font-family: "Songti SC", "STSong", SimSun, Georgia, serif;
}
.royal-footer .royal-service-item .d { color: #a3946f !important; font-size: 12px; margin-top: 5px; letter-spacing: 1.5px; }
.royal-footer-menu { line-height: 2.2; }
.royal-footer-menu a { color: #d0bf95 !important; font-size: 13px; letter-spacing: 2px; }
.royal-footer-menu a:hover { color: #f7e6b0 !important; }
.royal-footer-sep { color: #5d5133; margin: 0 7px; }
.royal-footer-copy { margin-top: 16px; color: #9a8c6c !important; font-size: 12.5px; line-height: 2.1; letter-spacing: 1px; }
.royal-footer-copy a { color: #c9a227 !important; }
.royal-footer-copy a:hover { color: #f7e6b0 !important; }
.royal-footer-badge {
  display: inline-block; padding: 4px 16px; margin: 14px 5px 0;
  border: 1px solid rgba(201,162,39,.4); border-radius: 20px;
  color: #c8b582 !important; font-size: 11.5px; letter-spacing: 3px;
}
.royal-footer-badge::before { content: "\25C6"; margin-right: 6px; font-size: 9px; color: #a8892f; }
/* 页脚里的资质/备案徽标：白底 PNG 加浅色衬底，避免深底上发灰 */
.royal-footer img {
  background: #fbf6ea !important; padding: 3px 7px; border-radius: 4px;
  height: 30px !important; width: auto !important; vertical-align: middle;
  margin: 0 3px;
}

/* -----------------------------------------------------------------------
   15. 动效：收敛为优雅淡入，去掉廉价摇晃
   ----------------------------------------------------------------------- */
.animated.bounceIn, .animated.fadeIn, .animated.pulse {
  animation: royalRise .72s cubic-bezier(.22,.61,.36,1) both !important;
}
.animated.swing, .animated.wobble, .animated.shake {
  animation: royalGlow .5s ease both !important;
}
@keyframes royalRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes royalGlow {
  from { opacity: .55; }
  to   { opacity: 1; }
}

/* -----------------------------------------------------------------------
   16. 首页栅格与列表组件
   ----------------------------------------------------------------------- */
.royal-cols { display: flex; gap: 22px; align-items: flex-start; }
.royal-col-main { flex: 1 1 auto; min-width: 0; }
.royal-col-side { flex: 0 0 322px; width: 322px; }
.royal-block { margin-bottom: 24px; }
.royal-block:last-child { margin-bottom: 0; }

.royal-subhead {
  display: flex; align-items: center; gap: 10px;
  position: relative;
  padding: 0 0 10px 14px; margin-bottom: 14px;
  border-bottom: 2px solid #e6d9b8;
}
.royal-subhead::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 13px; width: 4px;
  border-radius: 2px; background: linear-gradient(180deg, #e8c869, #c9a227);
}
.royal-subhead .t,
.royal-subhead a.t {
  font-family: "Songti SC", "STSong", "Noto Serif SC", SimSun, Georgia, serif;
  font-size: 18px; color: #1b1430 !important; letter-spacing: 3px;
  font-weight: 700; text-decoration: none !important;
}
.royal-subhead a.t:hover { color: #a8801a !important; }
.royal-subhead .more {
  margin-left: auto; font-size: 12.5px !important; font-weight: 400 !important;
  letter-spacing: 1px; color: #a8801a !important; font-family: inherit;
  border: 1px solid #e0cf9f; border-radius: 20px; padding: 2px 12px;
  transition: background .2s ease, color .2s ease;
}
.royal-subhead .more::after { content: " \203A"; }
.royal-subhead .more:hover { background: #c9a227; color: #1b1430 !important; text-decoration: none !important; }

.royal-list { display: flex; flex-wrap: wrap; gap: 12px; }
.royal-news {
  display: flex; flex-direction: column; gap: 8px; width: calc(50% - 6px);
  box-sizing: border-box;
  padding: 8px; border: 1px solid #ece0c4; border-radius: 4px; background: #ffffff;
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.royal-news:hover {
  border-color: #c9a227 !important;
  box-shadow: 0 8px 20px rgba(201,162,39,.22);
  transform: translateY(-2px);
}
.royal-news > a { display: block; text-decoration: none !important; }
.royal-news img { width: 100%; height: 88px; object-fit: cover; border-radius: 3px; display: block; border: none !important; padding: 0 !important; box-shadow: none !important; background: none !important; }
.royal-news .tt { color: #43371f !important; font-size: 13px; line-height: 1.55; letter-spacing: .5px; }
.royal-news .tt:hover { color: #a8801a !important; }

.royal-dotlist { display: flex; flex-direction: column; }
.royal-dotlist a {
  display: block; padding: 9px 0 9px 20px; position: relative;
  border-bottom: 1px dashed #e8dcc0; color: #43371f !important; font-size: 13.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color .2s ease, padding-left .2s ease;
}
.royal-dotlist a::before {
  content: ""; position: absolute; left: 4px; top: 50%; width: 6px; height: 6px;
  margin-top: -3px; background: #c9a227; transform: rotate(45deg);
}
.royal-dotlist a:hover { color: #a8801a !important; padding-left: 25px; text-decoration: none !important; }

/* 图墙（首页大图区 / 解决方案网格） */
/* 图墙：服务端循环会包一层等分表格，基类用块级 + table-layout:fixed 让每列严格等宽 */
.royal-grid { display: block; }
.royal-grid:has(> .royal-grid-item) {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 16px;
}
.royal-grid > table {
  width: 100% !important; table-layout: fixed !important;
  border-collapse: separate !important; border-spacing: 10px 0 !important; margin: 0 !important;
}
.royal-grid > table > tbody > tr > td { padding: 0 0 14px; vertical-align: top; text-align: center; }
.royal-grid .royal-grid-item {
  min-width: 0; box-sizing: border-box; text-align: center;
  padding: 10px; border: 1px solid #ece0c4; border-radius: 4px; background: #ffffff;
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.royal-grid .royal-grid-item:hover {
  border-color: #c9a227;
  box-shadow: 0 12px 26px rgba(201,162,39,.22);
  transform: translateY(-3px);
}
.royal-grid .royal-grid-item img {
  width: 100% !important; height: 178px !important; object-fit: cover;
  border: 1px solid #ece0c4 !important; border-radius: 3px;
  padding: 0 !important; background: none !important; box-shadow: none !important;
  transform: none !important;
}
.royal-grid .royal-grid-item .cap {
  margin-top: 10px; font-size: 13.5px; color: #43371f !important;
  letter-spacing: .5px; line-height: 1.8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.royal-grid .royal-grid-item .cap a { color: #43371f !important; }
.royal-grid .royal-grid-item .cap a:hover { color: #a8801a !important; }
.royal-grid .royal-grid-item .sum {
  margin-top: 5px; font-size: 12px; color: #8a7c5e !important; line-height: 1.8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 二维码 / 常用电话网格 */
/* 二维码 / 常用电话网格：与图墙同策略（引擎表格 → fixed 等分） */
.royal-codegrid { display: block; }
.royal-codegrid:has(> .item) { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.royal-codegrid > table {
  width: 100% !important; table-layout: fixed !important;
  border-collapse: separate !important; border-spacing: 10px 0 !important; margin: 0 !important;
}
.royal-codegrid > table > tbody > tr > td { padding: 0 0 14px; vertical-align: top; }
.royal-codegrid .item { box-sizing: border-box; text-align: center; }
.royal-codegrid:has(> table) .item { width: auto; }
.royal-codegrid .item img {
  width: 168px !important; height: 168px !important;
  padding: 6px; background: #ffffff; border-radius: 4px;
  border: 1px solid #e6d9b8 !important;
  box-shadow: 0 5px 16px rgba(27,20,48,.08);
  transition: box-shadow .22s ease, transform .22s ease;
}
.royal-codegrid .item:hover img { box-shadow: 0 12px 26px rgba(201,162,39,.3); transform: translateY(-2px); }
.royal-codegrid .item .cap { margin-top: 9px; font-size: 13.5px; color: #43371f !important; }
.royal-codegrid .item .cap a { color: #43371f !important; }
.royal-codegrid .item .cap a:hover { color: #a8801a !important; }

/* 友情链接 */
.royal-friend {
  width: 1200px; margin: 20px auto 0; padding: 16px 22px; box-sizing: border-box;
  background: #ffffff; border: 1px solid #e6d9b8; border-radius: 4px;
  font-size: 13.5px; color: #7b6b4e; box-shadow: 0 6px 20px rgba(27,20,48,.05);
  line-height: 2.1;
}
.royal-friend strong {
  color: #1b1430; font-family: "Songti SC", "STSong", SimSun, Georgia, serif;
  letter-spacing: 2px; margin-right: 10px;
}
.royal-friend a { color: #5c4a2c !important; margin: 0 5px; }
.royal-friend a:hover { color: #a8801a !important; }

/* 滚动显现（JS 渐进增强） */
.royal-reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
.royal-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .royal-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .animated.swing, .animated.wobble, .animated.bounceIn,
  .animated.fadeIn, .animated.pulse { animation: none !important; }
}

/* -----------------------------------------------------------------------
   17. 管理平台框架（crm_User）与遗留灰字
   ----------------------------------------------------------------------- */
/* 顶部页签：位图页签 → 香槟金墨字（激活态由 JS 切换 .crm-tab-on） */
td[id^="toptd_"] {
  background: linear-gradient(180deg, #fdf7e6, #f3e6c0) !important;
  background-image: none !important;
  border: 1px solid #e3d3a4; border-bottom: 2px solid #dcc98f;
  border-radius: 4px 4px 0 0; cursor: pointer;
  transition: background .2s ease;
}
td[id^="toptd_"]:hover { background: linear-gradient(180deg, #faf1d8, #eeddb0) !important; }
td[id^="toptd_"].crm-tab-on {
  background: linear-gradient(180deg, #f7e6b0, #e3c768) !important;
  border-bottom-color: #c9a227;
  box-shadow: 0 -2px 10px rgba(201,162,39,.16);
}

/* 平台右上角用户信息：浅灰 → 暖褐，可读且不抢戏 */
td[style*="color:#DFDFDF"], td[style*="color:#dfdfdf"] { color: #8a7c5e !important; }
a[style*="color:#999999"] { color: #7b6b4e !important; }
a[style*="color:#999999"]:hover { color: #a8801a !important; }

/* 遗留冷灰链接 → 暖墨褐 */
a[style*="color:#727171"], a[style*="color:#696969"], div[style*="color:#727171"] { color: #5c4a2c !important; }
a[style*="color:#727171"]:hover, a[style*="color:#696969"]:hover { color: #a8801a !important; }

/* 平台左侧菜单：位图小标题 → 香槟金条 */
td[background*="menubgtop2"] { background: linear-gradient(180deg, #f7f0da, #eddfb2) !important; }
td[background*="menubgtop2"] a { color: #241a3d !important; font-weight: 700; letter-spacing: 2px; }
#td_menu a { color: #5c4a2c !important; }
#td_menu a:hover { color: #a8801a !important; }

/* 面包屑兜底：服务端可能输出的暗红内联色 */
span[style*="#BE0002"], a[style*="#BE0002"], span[style*="#CC0000"], a[style*="#CC0000"] { color: #5c4a2c !important; }

/* 扫码页标题栏（手机微信扫一扫）：墨字加字距 */
.down_tab thead td a { letter-spacing: 2px; }

/* -----------------------------------------------------------------------
   18. 兜底：窄屏
   ----------------------------------------------------------------------- */
@media (max-width: 1240px) {
  .royal-topbar-in, .royal-header-in, .royal-footer-in,
  .royal-footer .royal-service, .royal-banner, .royal-section, .royal-friend,
  #head #NavLink #sddm { width: 100% !important; max-width: 1200px; box-sizing: border-box; }
  .royal-header-in { flex-wrap: wrap; padding: 14px 12px; }
  .royal-slogan { border: none; }
  .royal-cols { flex-wrap: wrap; }
  .royal-col-side { flex: 1 1 100%; width: 100%; }
  .royal-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
