/* ==========================================================================
   他石智能科技 · TASHI AMUSEMENT
   base.css — 设计变量 / 基础排版 / 全站页头页脚 / 通用组件
   Build: 2026-10
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --ink: #0F1215;
  --ink-2: #171B20;
  --ink-3: #262C33;
  --paper: #F5F1E9;
  --paper-2: #FBF8F2;
  --white: #FFFFFF;
  --line: #E2D9CA;
  --line-2: #EFE8DC;
  --text: #191C20;
  --text-2: #5B6067;
  --text-3: #8D9299;
  --brass: #B07C3C;
  --brass-2: #D3AA6C;
  --brass-3: #8A5E28;
  --accent: #BE5A3E;
  --success: #2F7A5B;

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB",
    "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui,
    -apple-system, "Segoe UI", Arial, sans-serif;
  --font-latin: "Helvetica Neue", "Segoe UI", Arial, sans-serif;

  --container: 1376px;
  --gutter: 48px;
  --radius: 2px;
  --radius-lg: 4px;

  --shadow-1: 0 1px 2px rgba(24, 19, 12, .05);
  --shadow-2: 0 24px 60px -34px rgba(24, 19, 12, .38);
  --shadow-3: 0 40px 90px -50px rgba(24, 19, 12, .55);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 88px;
}

/* ---------- 2. Base ---------- */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 0 !important;
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body,
input,
button,
select,
textarea {
  font-family: var(--font-sans);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color .25s var(--ease), border-color .25s var(--ease),
    background-color .25s var(--ease), opacity .25s var(--ease);
}

a:hover {
  color: var(--brass-3);
  text-decoration: none;
}

img {
  max-width: 100%;
}

::selection {
  background: var(--ink);
  color: var(--paper-2);
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* Discuz 基础容器 */
.wp {
  width: auto;
  max-width: var(--container);
  min-width: 0;
  margin: 0 auto;
  padding: 0 var(--gutter);
  box-sizing: border-box;
}

#wp {
  width: auto;
  max-width: var(--container);
  min-width: 0;
  margin: 0 auto;
  padding: 0 var(--gutter);
  box-sizing: border-box;
  min-height: 40vh;
}

#wp .wp {
  max-width: none;
  padding: 0;
}

.z { float: left; }
.y { float: right; }
.cl::after { content: ""; display: table; clear: both; }

.pipe {
  color: var(--line);
  margin: 0 10px;
}

.xg1, .xg2 { color: var(--text-3); }
.xi1, .xi2 { color: var(--brass-3); }

/* 移动端切换提示条：桌面端不显示 */
@media (min-width: 1025px) {
  body > .bm.bm_c { display: none !important; }
}

/* ---------- 3. Header ---------- */
#toptb { display: none !important; }

#hd.ts-header {
  position: sticky;
  top: 0;
  z-index: 800;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 242, .9);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset;
  transition: box-shadow .3s var(--ease);
}

#hd.ts-header.is-scrolled {
  box-shadow: 0 18px 40px -32px rgba(24, 19, 12, .55),
    0 1px 0 rgba(255, 255, 255, .6) inset;
}

#hd.ts-header .wp {
  max-width: var(--container);
  min-width: 0;
  padding: 0 var(--gutter);
}

.ts-header__inner {
  position: relative;
  min-width: 0;
}

#hd .hdc {
  display: flex;
  align-items: center;
  gap: 44px;
  height: var(--header-h);
  min-height: 0;
}

/* .cl 的清除浮动伪元素会成为 flex item，这里去掉 */
#hd .hdc.cl::after { content: none; }

/* brand */
#hd h2.ts-logo {
  float: none;
  margin: 0;
  padding: 0;
  height: auto;
  flex: 0 0 auto;
}

.ts-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.ts-logo img {
  display: block;
  height: 42px;
  width: auto;
}

.ts-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ts-logo__text strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink);
  white-space: nowrap;
}

.ts-logo__text span {
  font-family: var(--font-latin);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .28em;
  color: var(--text-3);
  white-space: nowrap;
}

/* nav */
#nv.ts-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--header-h);
  overflow: visible;
  background: none;
  border: 0;
}

#nv.ts-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  padding: 0;
}

#nv.ts-nav li {
  float: none;
  display: block;
  height: auto;
  line-height: 1.2;
  padding: 0;
  background: none;
  font-weight: 500;
  font-size: 15px;
}

#nv.ts-nav li a {
  float: none;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
  border-radius: 999px;
  white-space: nowrap;
}

#nv.ts-nav li a span { display: none; }

#nv.ts-nav li a:hover,
#nv.ts-nav li.hover a:hover {
  background: rgba(24, 20, 14, .05);
  color: var(--ink);
}

#nv.ts-nav li.a a,
#nv.ts-nav li.ts-active a {
  color: var(--ink);
  font-weight: 600;
  background: rgba(24, 20, 14, .05);
}

#nv.ts-nav li.a a::after,
#nv.ts-nav li.ts-active a::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--brass);
}

/* 快捷导航按钮（保留功能，视觉弱化） */
#qmenu {
  display: none !important;
}

/* 头部工具区 */
.ts-header__tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

/* 搜索 */
#scbar.ts-search {
  position: static;
  display: flex;
  align-items: center;
  height: 42px;
  width: 238px;
  padding: 0;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  transition: border-color .25s var(--ease), background .25s var(--ease),
    width .3s var(--ease);
}

#scbar.ts-search:focus-within {
  border-color: var(--ink-3);
  background: var(--white);
}

#scbar.ts-search input[type="search"] {
  flex: 1;
  width: 100%;
  height: 40px;
  padding: 0 4px 0 18px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  letter-spacing: .02em;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

#scbar.ts-search input[type="search"]::placeholder {
  color: var(--text-3);
}

#scbar.ts-search button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0 2px 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}

#scbar.ts-search button:hover {
  background: var(--ink);
  color: var(--paper-2);
}

#scbar.ts-search svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

/* 登录 / 注册 */
.ts-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ts-auth__login {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  color: var(--text-2);
  font-size: 14px;
  letter-spacing: .04em;
  border-radius: 999px;
}

.ts-auth__login:hover { color: var(--ink); background: rgba(24, 20, 14, .05); }

.ts-auth__reg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-2) !important;
  font-size: 14px;
  letter-spacing: .06em;
}

.ts-auth__reg:hover {
  background: var(--brass-3);
  color: #fff !important;
}

.ts-auth__reg svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

/* 登录用户 */
.ts-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding-left: 4px;
}

.ts-user__avatar {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.ts-user__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ts-user__name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.ts-user__panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 168px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease),
    visibility .22s;
  z-index: 20;
}

.ts-user:hover .ts-user__panel,
.ts-user:focus-within .ts-user__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ts-user__panel a {
  display: block;
  padding: 8px 12px;
  border-radius: 3px;
  color: var(--text-2);
  font-size: 13.5px;
}

.ts-user__panel a:hover { background: var(--paper); color: var(--ink); }

/* 子导航 */
#mu {
  display: none;
}

/* 移动端菜单按钮 */
.ts-burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.ts-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s;
}

.ts-nav-open .ts-burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.ts-nav-open .ts-burger span:nth-child(2) { opacity: 0; }
.ts-nav-open .ts-burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- 4. Footer ---------- */
.ts-footer {
  margin-top: 0;
  background: var(--ink);
  color: #A8ADB4;
  font-size: 13px;
}

.ts-footer a { color: #A8ADB4; }
.ts-footer a:hover { color: var(--brass-2); }

.ts-footer__main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 56px;
  padding-top: 78px;
  padding-bottom: 64px;
}

.ts-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 320px;
}

.ts-footer__brand img {
  width: 44px;
  height: 44px;
  filter: brightness(0) invert(1);
  opacity: .92;
}

.ts-footer__brand strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--paper-2);
}

.ts-footer__brand p {
  margin: 0;
  color: #8A9097;
  line-height: 1.9;
  font-size: 13px;
}

.ts-footer__col h4 {
  margin: 2px 0 20px;
  color: var(--paper-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
}

.ts-footer__col ul { margin: 0; padding: 0; list-style: none; }

.ts-footer__col li { margin-bottom: 10px; }

.ts-footer__col a { font-size: 13px; }

.ts-footer__contact p {
  margin: 0 0 10px;
  line-height: 1.8;
  color: #8A9097;
}

.ts-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #6E747B;
  font-size: 12px;
  letter-spacing: .03em;
}

.ts-footer__bar .wp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.ts-footer__bar p { margin: 0; }

.ts-footer__legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* 回到顶部 */
#scrolltop {
  position: fixed;
  right: 28px;
  bottom: 32px;
  z-index: 700;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#scrolltop span { float: none; display: block; }

#scrolltop a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(251, 248, 242, .92);
  box-shadow: var(--shadow-1);
  color: var(--text-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

#scrolltop a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper-2); }

#scrolltop b { font-weight: 400; font-size: 0; }

#scrolltop a::before {
  font-size: 15px;
  line-height: 1;
}

#scrolltop .scrolltopa::before { content: "↑"; }
#scrolltop .returnlist::before { content: "☰"; font-size: 13px; }
#scrolltop .returnboard::before { content: "⌂"; font-size: 15px; }

/* ---------- 5. Buttons / inputs / pagination ---------- */
.ts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  cursor: pointer;
  transition: all .3s var(--ease);
  white-space: nowrap;
}

.ts-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.ts-btn--solid {
  background: var(--ink);
  color: var(--paper-2) !important;
}

.ts-btn--solid:hover {
  background: var(--brass-3);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -18px rgba(24, 19, 12, .6);
}

.ts-btn--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink) !important;
}

.ts-btn--ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-2) !important;
}

.ts-btn--light {
  background: var(--paper-2);
  color: var(--ink) !important;
}

.ts-btn--light:hover { background: var(--brass-2); color: var(--ink) !important; }

.ts-btn--sm { height: 42px; padding: 0 20px; font-size: 13px; }

/* Discuz 原生按钮 */
.pn, .pnc, .pn:hover, .pnc:hover {
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-2);
  font-size: 13px;
  height: 34px;
  line-height: 32px;
  padding: 0 18px;
  box-shadow: none;
  text-shadow: none;
}

.pn strong, .pnc strong { color: inherit; font-weight: 500; }

.pn:hover, .pnc:hover { background: var(--brass-3); border-color: var(--brass-3); }

.px, input.px, textarea, select {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  padding: 8px 12px;
  box-shadow: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.px:focus, input.px:focus, textarea:focus, select:focus {
  border-color: var(--ink-3);
  box-shadow: 0 0 0 3px rgba(24, 20, 14, .06);
}

.pg a, .pg strong, .pg label, .pgb a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  margin: 0 2px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
}

.pg strong, .pg a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-2);
}

.pg label { border: 0; }

/* 面包屑 */
#pt {
  height: auto;
  margin: 0;
  padding: 26px 0 6px;
  background: transparent;
  border: 0;
  line-height: 1.6;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text-3);
}

#pt .z { padding: 0; }
#pt .z a, #pt .z em, #pt .z span { float: none; height: auto; }
#pt .z a { color: var(--text-2); }
#pt .z a:hover { color: var(--brass-3); }
#pt .z em { margin: 0 8px; color: var(--line); width: auto; }

/* 通用卡片 */
.bm {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.bm_h {
  background: transparent;
  border-bottom: 1px solid var(--line);
}

/* 弹层 */
.p_pop {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-2);
}

.p_pop li a { color: var(--text-2); }
.p_pop li a:hover { background: var(--paper); color: var(--ink); }

/* ---------- 6. Shell responsive ---------- */
@media (max-width: 1280px) {
  :root { --gutter: 36px; }
  #hd .hdc { gap: 28px; }
  #nv.ts-nav li a { padding: 0 12px; font-size: 14px; }
  #scbar.ts-search { width: 200px; }
}

@media (max-width: 1160px) {
  .ts-header__tools { gap: 10px; }
  #scbar.ts-search { display: none; }
  .ts-logo__text { display: none; }
}

@media (max-width: 900px) {
  :root { --gutter: 22px; --header-h: 70px; }

  #hd .hdc { gap: 14px; }

  .ts-burger { display: block; margin-left: 4px; }

  #nv.ts-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: calc(var(--gutter) * -1);
    right: calc(var(--gutter) * -1);
    display: none;
    height: auto;
    padding: 10px 22px 22px;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
  }

  .ts-nav-open #nv.ts-nav { display: block; }

  #nv.ts-nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    height: auto;
  }

  #nv.ts-nav li a {
    display: flex;
    justify-content: space-between;
    height: 52px;
    padding: 0 6px;
    border-radius: 0;
    border-bottom: 1px solid var(--line-2);
    font-size: 16px;
    color: var(--ink);
  }

  #nv.ts-nav li.a a, #nv.ts-nav li.ts-active a { background: none; }
  #nv.ts-nav li.a a::after, #nv.ts-nav li.ts-active a::after { margin-left: auto; }

  .ts-header__tools { margin-left: auto; }
  .ts-auth__login { display: none; }

  .ts-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
    padding-top: 56px;
    padding-bottom: 40px;
  }

  .ts-footer__brand { grid-column: 1 / -1; max-width: none; }

  .ts-footer__bar .wp {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  #scrolltop { right: 16px; bottom: 18px; }
}

@media (max-width: 560px) {
  .ts-logo img { height: 36px; }
  .ts-auth__reg { height: 38px; padding: 0 16px; font-size: 13px; }
  .ts-footer__main { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- 实名认证提示条 ---------- */
.rn-global-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 14px 0 0;
  padding: 11px 18px;
  background: #FBF3E6;
  border: 1px solid #E8D6B8;
  border-radius: 2px;
  color: #8A5E28;
  font-size: 12.5px;
  line-height: 1.7;
}

.rn-global-bar a {
  flex: 0 0 auto;
  color: #8A5E28 !important;
  font-weight: 600;
  letter-spacing: .04em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.rn-global-bar a:hover { color: #0F1215 !important; }

@media (max-width: 640px) {
  .rn-global-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 12px;
    font-size: 12px;
  }
}

/* 注册页实名提示 */
.rn-register-tip {
  margin: 0 0 18px;
  padding: 11px 16px;
  background: #FBF3E6;
  border: 1px solid #E8D6B8;
  border-radius: 2px;
  color: #8A5E28;
  font-size: 12.5px;
  line-height: 1.7;
}

/* 中英文切换 */
.ts-lang {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2) !important;
  font-size: 12px;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
}
.ts-lang:hover { border-color: var(--ink); color: var(--ink) !important; }

.ts-admin-entry {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(176, 124, 60, .45);
  border-radius: 999px;
  color: var(--brass) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease;
}
.ts-admin-entry:hover { background: rgba(176, 124, 60, .08); border-color: var(--brass); }

@media (max-width: 1360px) {
  #scbar.ts-search { width: 170px; }
  .ts-lang { height: 32px; padding: 0 9px; }
  .ts-admin-entry { height: 32px; padding: 0 9px; }
}
