:root,
body {
  --color-brand: #1d1d1f !important;
  --color-brand-hover: #2c2c2e !important;
  --color-brand-light: #f5f5f7 !important;
  --color-brand-dark: #000000 !important;
  --color-brand-rgb: 29, 29, 31 !important;
}

/* 兜底：直接使用品牌色背景/文字的工具类 */
[class*='BrandBg'],
[class*='brandBg'] {
  background-color: #1d1d1f !important;
}

[class*='BrandColor'],
[class*='brandColor'] {
  color: #1d1d1f !important;
}

[class*='BrandBorder'],
[class*='brandBorder'] {
  border-color: #1d1d1f !important;
}

/* 验证码组件写死的橙色 */
.HCNewCaptcha__captchaButtonActive,
.HCNewCaptcha__captchaButton:hover,
[class*='HCNewCaptcha'] [class*='ButtonActive'] {
  background-color: #fff !important;
  border-color: #1d1d1f !important;
  color: #1d1d1f !important;
  font-weight: 700;
}

:root {
  --drh-dark: #1d1d1f;
  --drh-dark-elevated: #2c2c2e;
  --drh-white: #ffffff;
  --drh-muted: rgba(255, 255, 255, 0.72);
  --drh-grey: #6e6e73;
  --drh-surface: #f5f5f7;
  --drh-border: rgba(0, 0, 0, 0.08);
  --drh-font: Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --drh-transition: 0.2s ease;
}

body {
  font-family: var(--drh-font) !important;
  background: var(--drh-white);
  color: var(--drh-dark);
  letter-spacing: 0.02em;
}

/* ---------- 顶部导航条 ---------- */
.Header__navbar,
#navBar {
  background: var(--drh-white) !important;
  border-bottom: 1px solid var(--drh-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  position: sticky;
  top: 0;
  z-index: 100;
}

.Header__container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  min-height: 72px;
}

.Header__logo {
  display: flex;
  align-items: center;
  margin-right: 2rem;
}

.Header__logo img {
  display: block;
  width: 154px;
  max-height: 44px;
  object-fit: contain;
}

.Header__menuTab {
  flex: 1;
  min-width: 0;
}

.Header__menuList {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
  float: none !important;
}

.Header__tabsTab {
  display: inline-flex !important;
  align-items: center;
  margin: 0 1rem;
  padding: 0 !important;
  white-space: nowrap;
  float: none !important;
  height: auto !important;
}

/* 登录按钮与用户偏好图标（${SignInSignOut} / ${UserPreference}） */
.Header__menuList > li:not(.Header__tabsTab),
.Header__menuList > div,
.Header__menuList > span {
  display: inline-flex !important;
  align-items: center;
  margin: 0 0 0 1rem;
  float: none !important;
}

.Header__tabsTab a,
.Header__menuList a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--drh-dark) !important;
  text-decoration: none;
  line-height: 1.2;
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0;
  transition: color 0.3s ease;
  background: none !important;
}

/* 商城同款下划线 hover 动效 */
.Header__tabsTab a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background-color: var(--drh-dark);
  transition: width 0.3s ease;
}

.Header__tabsTab a:hover::after,
.Header__tabsTab a.Header__selectTab::after,
.Header__tabsTab a[class*='select']::after,
.Header__tabsTab a[class*='active']::after {
  width: 100%;
}

.Header__tabsTab a.Header__selectTab,
.Header__tabsTab a[class*='select'],
.Header__tabsTab a[class*='active'] {
  font-weight: 700;
}

/* 移动端汉堡按钮 */
.Header__menuicon {
  display: none;
}

.Header__menuBoxMain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  cursor: pointer;
}

.Header__menu,
.Header__menu::before,
.Header__menu::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--drh-dark);
  position: relative;
  transition: var(--drh-transition);
}

.Header__menu::before,
.Header__menu::after {
  content: '';
  position: absolute;
  left: 0;
}

.Header__menu::before { top: -6px; }
.Header__menu::after { top: 6px; }

/* ---------- Hero / 欢迎搜索区 ---------- */
/* 勿写 background / background-color — 会覆盖 Appearance → Header 上传的背景图 */
.Header__searchSection,
#headerContent {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  color: var(--drh-white);
  padding: clamp(3rem, 7vw, 5rem) 0 !important;
  height: auto !important;
  min-height: 0 !important;
  text-align: center;
}

/* Zoho 默认主题用浮动/表格布局把标题、描述、搜索框排成三列，
   这里强制改回垂直单列并居中 */
.Header__searchSection .Header__container,
#headerContent .Header__container {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 760px;
  min-height: 0 !important;
  height: auto !important;
  float: none !important;
  margin-top: 100px;
  padding: 50px 0 60px 0;
}

.Header__searchSection .Header__container > *,
#headerContent .Header__container > * {
  float: none !important;
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  position: static !important;
  text-align: center;
}

.Header__searchTitle {
  margin: 0 0 0.75rem !important;
  font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
  font-weight: 700;
  line-height: 1.25 !important;
  letter-spacing: 0.02em;
  color: var(--drh-white) !important;
}

.Header__description {
  margin: 0 auto 2rem !important;
  max-width: 40rem !important;
  font-size: clamp(0.9375rem, 1.75vw, 1.0625rem) !important;
  line-height: 1.6;
  color: var(--drh-muted) !important;
}

/* 搜索胶囊 — elegant 主题 ${SearchHome} 实际结构：
   .Header__globalSearch > form > .SearchContainer__formGroup > .Input__headerSearch
   右侧是 .Button__search 搜索按钮 */
.Header__searchSection .Header__globalSearch,
#headerContent .Header__globalSearch,
.Header__searchSection .Header__globalSearchAlt,
#headerContent .Header__globalSearchAlt {
  width: 100% !important;
  max-width: 560px !important;
  margin: 0 auto !important;
  border: none !important;
  border-radius: 9999px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.Header__searchSection .Header__globalSearch form,
#headerContent .Header__globalSearch form,
.Header__searchSection .Header__globalSearchAlt form,
#headerContent .Header__globalSearchAlt form {
  display: flex !important;
  align-items: center;
  width: 100%;
  margin: 0;
}

.SearchContainer__formGroup {
  flex: 1 !important;
  min-width: 0;
}

.SearchContainer__globalSearch {
  background-color: transparent !important;
}

.Header__searchSection .Input__headerSearch,
#headerContent .Input__headerSearch {
  width: 100% !important;
  border: none !important;
  border-radius: 9999px 0 0 9999px !important;
  background: var(--drh-white) !important;
  color: var(--drh-dark) !important;
  padding: 0.95rem 1rem 0.95rem 1.5rem !important;
  font-size: 0.9375rem !important;
  font-family: var(--drh-font);
  box-shadow: none !important;
  outline: none;
  height: auto !important;
  text-align: left !important;
}

.Header__searchSection .Input__headerSearch::placeholder,
#headerContent .Input__headerSearch::placeholder {
  color: rgba(29, 29, 31, 0.45);
}

/* 搜索按钮：胶囊内右侧纯图标，不使用深色圆块 */
.Header__searchSection .Button__search,
#headerContent .Button__search {
  flex-shrink: 0;
  background: transparent !important;
  color: var(--drh-dark) !important;
  border: none !important;
  border-left: 1px solid #ececee !important;
  border-radius: 0 !important;
  margin: 0 !important;
  min-width: 3rem;
  padding: 0.9rem 0.95rem !important;
  font-size: 0 !important;
  line-height: 0;
  font-family: var(--drh-font);
  cursor: pointer;
  transition: background var(--drh-transition);
}

.Header__searchSection .Button__search:hover,
#headerContent .Button__search:hover {
  background: #f7f7f7 !important;
}

/* 搜索模块筛选下拉的小箭头 / 筛选项 hover（源码写死橙色） */
.SearchContainer__downArrow {
  border-top-color: #1d1d1f !important;
}

.SearchResult__filterList:hover {
  color: #1d1d1f !important;
  font-weight: 600;
}

/* ---------- 面包屑 ---------- */
[class*='Breadcrumb'],
.breadcrumb {
  background: var(--drh-surface);
  color: var(--drh-dark);
  font-size: 0.8125rem;
}

[class*='Breadcrumb'] a,
.breadcrumb a {
  color: var(--drh-dark);
  text-decoration: none;
  transition: color var(--drh-transition);
}

[class*='Breadcrumb'] a:hover,
.breadcrumb a:hover {
  color: var(--drh-grey);
}

/* ---------- 正文链接 ---------- */
a {
  color: var(--drh-dark);
  transition: color var(--drh-transition);
}

a:hover {
  color: var(--drh-grey);
}

/* ---------- 按钮（胶囊形，商城同款） ---------- */
input[type='submit'],
button[type='submit'],
.newTicketBtn,
[class*='primaryBtn'],
[class*='PrimaryBtn'],
[class*='Button--primary'] {
  background: var(--drh-dark) !important;
  color: var(--drh-white) !important;
  border: 1px solid var(--drh-dark) !important;
  border-radius: 999px !important;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: var(--drh-font);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity var(--drh-transition);
}

input[type='submit']:hover,
button[type='submit']:hover,
.newTicketBtn:hover,
[class*='primaryBtn']:hover,
[class*='PrimaryBtn']:hover,
[class*='Button--primary']:hover {
  opacity: 0.85;
}

[class*='secondaryBtn'],
[class*='SecondaryBtn'],
[class*='Button--secondary'] {
  background: var(--drh-surface) !important;
  color: var(--drh-dark) !important;
  border: 1px solid var(--drh-dark) !important;
  border-radius: 999px !important;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-family: var(--drh-font);
  transition: background var(--drh-transition);
}

[class*='secondaryBtn']:hover,
[class*='SecondaryBtn']:hover,
[class*='Button--secondary']:hover {
  background: #ececee !important;
}

/* ---------- 卡片 / 内容区 ---------- */
[class*='Card'],
[class*='card'] {
  border-radius: 12px;
}

/* ---------- DR H 页脚 ---------- */
.Footer__drh {
  background: var(--drh-dark);
  color: var(--drh-white);
  padding: 3rem 0 2.5rem;
}

.Footer__container2 {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.Footer__drhInner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: 3rem;
}

.Footer__drhBrand {
  text-align: left;
}

.Footer__drhLogo {
  display: inline-flex;
}

.Footer__drhLogo img {
  display: block;
  width: 88px;
  height: auto;
  object-fit: contain;
  /* 深色底反白 — 与商城 footer 社交图标同款处理 */
  filter: brightness(0) invert(1);
}

.Footer__drhTagline {
  margin: 1rem 0 0;
  font-family: Georgia, 'Times New Roman', 'Songti SC', serif;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #b0b0b0;
  max-width: 20rem;
}

.Footer__drhColumns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.Footer__drhCol {
  text-align: left;
}

.Footer__drhCol h4 {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--drh-white);
}

.Footer__drhCol ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.Footer__drhCol a {
  color: var(--drh-muted) !important;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--drh-transition);
}

.Footer__drhCol a:hover {
  color: var(--drh-white) !important;
  text-decoration: underline;
}

/* 版权 + Powered by 条 */
.Footer__footerCopyrigt {
  background: var(--drh-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem 0;
  font-size: 0.75rem;
  color: var(--drh-muted);
}

.Footer__footerCopyrigt .Footer__container2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.Footer__drhPowered {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.Footer__footerLink {
  color: var(--drh-white) !important;
  text-decoration: none;
}

.Footer__footerLink:hover {
  text-decoration: underline;
}

/* ---------- 响应式 ---------- */
@media (max-width: 991px) {
  .Header__container {
    min-height: 60px;
  }

  .Header__logo img {
    width: 120px;
  }

  .Header__menuicon {
    display: flex;
    margin-left: auto;
  }

  .Header__menuTab {
    display: none;
  }

  /* Zoho JS 展开移动菜单时 */
  .Header__navbar.Header__menuOpen .Header__menuTab,
  #navBar.open .Header__menuTab {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--drh-white);
    border-bottom: 1px solid var(--drh-border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0 1rem;
  }

  .Header__navbar.Header__menuOpen .Header__menuList,
  #navBar.open .Header__menuList {
    flex-direction: column;
    align-items: stretch;
  }

  .Header__navbar.Header__menuOpen .Header__tabsTab,
  #navBar.open .Header__tabsTab {
    margin: 0;
    padding: 0.65rem clamp(1rem, 4vw, 3rem);
    border-bottom: 1px solid var(--drh-border);
  }

  .Footer__drhInner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .Footer__footerCopyrigt .Footer__container2 {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

