/*
Theme Name: Technology
Theme URI: https://www.tglobaltechnology.com/
Author: ShopAGG
Author URI: https://www.shopagg.com/
Description: 科技工业风 B2B 企业主题。以冷调蓝青为主色、深石墨为底色，采用技术图纸式的网格底纹、序号流程与方角卡片，适合热管理、精密制造、电子材料、工业设备等科技型出口企业。参考 T-Global Technology 官网结构设计。
Version: 1.0.0
License: MIT
*/

/**
 * Technology Theme - Custom Styles for Tailwind CSS
 * 所有 Tailwind 工具类之外的组件样式集中在此文件。
 */

/* ============================================================
   Base & Variables
   ============================================================ */
:root {
  --tech-primary: #11b5e6;
  --tech-primary-dark: #0a8fbb;
  --tech-primary-deep: #06647f;
  --tech-ink: #141617;
  --tech-ink-2: #1e2427;
  --tech-ink-3: #2b3338;
  --tech-muted: #5b666d;
  --tech-surface: #ffffff;
  --tech-alt: #f4f7f9;
  --tech-border: #e2e9ee;
  --tech-green: #65bc7b;
  --tech-radius: 3px;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Mulish', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
}

summary::-webkit-details-marker {
  display: none;
}

.font-display {
  font-family: 'Roboto Condensed', 'Mulish', 'Oswald', sans-serif;
  letter-spacing: -0.01em;
}

html {
  scroll-behavior: smooth;
}

/* ============================================================
   Typography helpers
   ============================================================ */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   Signature elements
   ============================================================ */

/* 小标签：等宽大写 + 前缀短横线 */
.tech-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tech-primary-dark);
}

.tech-eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--tech-primary);
  flex-shrink: 0;
}

.tech-eyebrow--light {
  color: #8fd8f2;
}

.tech-eyebrow--light::before {
  background: var(--tech-primary);
}

.tech-eyebrow--center {
  justify-content: center;
}

/* 技术图纸式网格底纹 */
.tech-grid {
  background-image:
    linear-gradient(to right, rgba(17, 181, 230, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 181, 230, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
}

.tech-grid--dark {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* 深色底：石墨 + 蓝色辉光 */
.tech-dark {
  background-color: var(--tech-ink);
  background-image:
    radial-gradient(ellipse 60% 50% at 15% 0%, rgba(17, 181, 230, 0.22), transparent 70%),
    radial-gradient(ellipse 50% 60% at 90% 110%, rgba(17, 181, 230, 0.14), transparent 70%);
}

/* 卡片：方角 + 边框 + 顶部高亮线 */
.tech-card {
  position: relative;
  background: var(--tech-surface);
  border: 1px solid var(--tech-border);
  border-radius: var(--tech-radius);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.tech-card::before {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 2px;
  background: var(--tech-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.tech-card:hover {
  border-color: rgba(17, 181, 230, 0.45);
  box-shadow: 0 18px 40px -18px rgba(6, 100, 127, 0.35);
  transform: translateY(-3px);
}

.tech-card:hover::before {
  transform: scaleX(1);
}

/* 四角定位符（工程图纸感） */
.tech-bracket {
  position: relative;
}

.tech-bracket::before,
.tech-bracket::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--tech-primary);
  opacity: 0.85;
}

.tech-bracket::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.tech-bracket::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

/* 序号大字 */
.tech-index {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(17, 181, 230, 0.65);
}

.tech-index--solid {
  color: var(--tech-primary);
  -webkit-text-stroke: 0;
}

/* 分割斜线 */
.tech-slant-top {
  clip-path: polygon(0 2.2rem, 100% 0, 100% 100%, 0 100%);
}

.tech-slant-bottom {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.2rem), 0 100%);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-tech {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.6rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--tech-primary);
  border: 1px solid var(--tech-primary);
  border-radius: var(--tech-radius);
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn-tech:hover {
  background: var(--tech-primary-dark);
  border-color: var(--tech-primary-dark);
}

.btn-tech--dark {
  background: var(--tech-ink);
  border-color: var(--tech-ink);
}

.btn-tech--dark:hover {
  background: var(--tech-ink-3);
  border-color: var(--tech-ink-3);
}

.btn-tech--ghost {
  background: transparent;
  color: var(--tech-ink);
  border-color: rgba(20, 22, 23, 0.22);
}

.btn-tech--ghost:hover {
  background: var(--tech-ink);
  border-color: var(--tech-ink);
  color: #fff;
}

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

.btn-tech--ghost-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--tech-ink);
}

.btn-tech--sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.75rem;
}

/* 文字箭头按钮 */
.tech-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tech-primary-dark);
  transition: gap 0.2s ease, color 0.2s ease;
}

.tech-link-arrow:hover {
  gap: 0.85rem;
  color: var(--tech-primary);
}

/* ============================================================
   Header
   ============================================================ */
.tech-topbar {
  background: var(--tech-ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.tech-nav {
  background: #fff;
  border-bottom: 1px solid var(--tech-border);
  transition: box-shadow 0.25s ease;
}

.tech-nav.is-stuck {
  box-shadow: 0 12px 30px -18px rgba(20, 22, 23, 0.4);
}

/* 一级菜单容器：横向排列 */
.tech-menu {
  display: flex;
  align-items: center;
}

/* 一级菜单项：左侧 2px 竖线（参考站核心特征） */
.tech-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 1.15rem;
  padding: 0.3rem 0.95rem;
  border-left: 2px solid var(--tech-primary);
  font-family: 'Roboto Condensed', 'Mulish', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  color: #202020;
  transition: color 0.2s ease;
}

/* 首项不再额外让位 */
.tech-menu > li:first-child > .tech-nav-link,
.tech-menu > .tech-has-dd:first-child > .tech-nav-link,
.tech-menu > .tech-nav-link:first-child {
  margin-left: 0;
}

.tech-nav-link:hover,
.tech-nav-link:focus-visible,
.tech-has-dd:hover > .tech-nav-link,
.tech-has-dd.is-open > .tech-nav-link {
  color: var(--tech-primary);
}

/* 下拉箭头：展开时旋转 */
.tech-nav-link .tech-caret {
  font-size: 0.6rem;
  opacity: 0.75;
  transition: transform 0.25s ease;
}

.tech-has-dd:hover > .tech-nav-link .tech-caret,
.tech-has-dd.is-open > .tech-nav-link .tech-caret {
  transform: rotate(180deg);
}

.tech-has-dd {
  position: relative;
}

/* 下拉面板：白底 + 顶部青色横线，悬停下滑展开 */
.tech-dropdown {
  position: absolute;
  left: -2px;
  top: 100%;
  min-width: 16rem;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--tech-border);
  border-top: 2px solid var(--tech-primary);
  box-shadow: 0 26px 50px -26px rgba(20, 22, 23, 0.5);
  opacity: 0;
  visibility: hidden;
  margin-top: 1.1rem;
  transition: opacity 0.22s ease, margin-top 0.22s ease, visibility 0.22s ease;
  z-index: 60;
}

/* 子项较多时展开为多列面板 */
.tech-dropdown--mega {
  left: -2px;
  display: grid;
  grid-template-columns: repeat(3, minmax(12rem, 1fr));
  gap: 0 0.25rem;
  padding: 0.55rem;
  max-width: min(48rem, calc(100vw - 4rem));
}

/* 靠右的菜单项，面板改为右对齐避免溢出屏幕 */
.tech-menu > li:last-child > .tech-dropdown--mega {
  left: auto;
  right: -2px;
}

.tech-has-dd:hover > .tech-dropdown,
.tech-has-dd:focus-within > .tech-dropdown,
.tech-has-dd.is-open > .tech-dropdown {
  opacity: 1;
  visibility: visible;
  margin-top: 0;
}

.tech-dropdown-item {
  position: relative;
  list-style: none;
}

/* 下拉项：同样带左侧竖线，文字用主色 */
.tech-dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-left: 0.9rem;
  padding: 0.5rem 0.95rem;
  border-left: 2px solid var(--tech-primary);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--tech-primary);
  transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}

.tech-dropdown-link:hover,
.tech-dropdown-link:focus-visible {
  background: var(--tech-alt);
  color: var(--tech-primary-dark);
  padding-left: 1.15rem;
}

.tech-dropdown-link .tech-caret-right {
  font-size: 0.6rem;
  opacity: 0.7;
}

/* 三级菜单：向右飞出 */
.tech-dropdown-sub {
  position: absolute;
  left: 100%;
  top: -0.5rem;
  min-width: 15rem;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--tech-border);
  border-top: 2px solid var(--tech-primary);
  box-shadow: 0 26px 50px -26px rgba(20, 22, 23, 0.5);
  opacity: 0;
  visibility: hidden;
  margin-left: 0.75rem;
  transition: opacity 0.2s ease, margin-left 0.2s ease, visibility 0.2s ease;
  z-index: 61;
}

.tech-dropdown-item:hover > .tech-dropdown-sub,
.tech-dropdown-item:focus-within > .tech-dropdown-sub,
.tech-dropdown-item.is-open > .tech-dropdown-sub {
  opacity: 1;
  visibility: visible;
  margin-left: 0.35rem;
}

/* ============================================================
   Hero
   ============================================================ */
.tech-hero {
  position: relative;
  overflow: hidden;
  background: var(--tech-ink);
}

/* 高度定义在 section 上，避免与 swiper 的 height:100% 互相覆盖 */
.tech-hero-banner {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  height: clamp(540px, 46vw, 880px);
}

.tech-hero-banner .swiper,
.tech-hero-banner .swiper-wrapper,
.tech-hero-banner .swiper-slide {
  height: 100%;
}

.tech-hero-swiper .swiper-button-prev,
.tech-hero-swiper .swiper-button-next {
  width: 46px;
  height: 46px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  transition: background 0.2s ease;
}

.tech-hero-swiper .swiper-button-prev:hover,
.tech-hero-swiper .swiper-button-next:hover {
  background: var(--tech-primary);
  border-color: var(--tech-primary);
}

.tech-hero-swiper .swiper-button-prev::after,
.tech-hero-swiper .swiper-button-next::after {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.tech-hero-swiper .swiper-pagination-bullet {
  width: 26px;
  height: 3px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  transition: background 0.2s ease;
}

.tech-hero-swiper .swiper-pagination-bullet-active {
  background: var(--tech-primary);
}

.tech-hero-overlay {
  background:
    linear-gradient(90deg, rgba(11, 13, 14, 0.94) 0%, rgba(11, 13, 14, 0.78) 38%, rgba(11, 13, 14, 0.32) 68%, rgba(11, 13, 14, 0.55) 100%),
    radial-gradient(ellipse 60% 70% at 8% 100%, rgba(17, 181, 230, 0.28), transparent 65%);
}

/* ============================================================
   Stats strip
   ============================================================ */
.tech-stat {
  border-left: 2px solid rgba(17, 181, 230, 0.55);
  padding-left: 1.1rem;
}

.tech-stat__value {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1;
  font-weight: 700;
  color: #fff;
}

/* 文本型数值（地区、说明）使用更小字号以避免折行 */
.tech-stat__value--text {
  font-size: clamp(1.15rem, 1.75vw, 1.65rem);
  line-height: 1.25;
}

.tech-stat__label {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

/* ============================================================
   Products / content
   ============================================================ */
.tech-thumb {
  position: relative;
  overflow: hidden;
  background: var(--tech-alt);
}

.tech-thumb img {
  transition: transform 0.5s ease;
}

.tech-card:hover .tech-thumb img,
.tech-thumb:hover img {
  transform: scale(1.06);
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tech-primary-deep);
  background: rgba(17, 181, 230, 0.12);
  border: 1px solid rgba(17, 181, 230, 0.24);
  border-radius: 2px;
}

.tech-tag--green {
  color: #2f7d45;
  background: rgba(101, 188, 123, 0.14);
  border-color: rgba(101, 188, 123, 0.3);
}

/* 侧边栏分类项 */
.tech-cat-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--tech-muted);
  border-left: 3px solid transparent;
  border-bottom: 1px solid #f1f5f8;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, padding-left 0.18s ease;
}

.tech-cat-link:hover {
  background: var(--tech-alt);
  color: var(--tech-primary-dark);
  padding-left: 1.25rem;
}

.tech-cat-link.is-active {
  background: rgba(17, 181, 230, 0.08);
  color: var(--tech-primary-deep);
  border-left-color: var(--tech-primary);
  font-weight: 800;
}

/* 富文本 */
.rich-content img {
  height: auto;
}

.rich-content table {
  width: 100%;
}

.rich-content h2,
.rich-content h3 {
  font-weight: 800;
  color: var(--tech-ink);
}

.rich-content a {
  color: var(--tech-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  .rich-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* ============================================================
   Floating contact widget
   ============================================================ */
.tech-float {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 45;
  display: flex;
  align-items: flex-end;
}

.tech-float__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.15rem;
  border: none;
  border-radius: 2px;
  background: var(--tech-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 18px 36px -14px rgba(10, 143, 187, 0.7);
  transition: background 0.2s ease;
}

.tech-float__toggle:hover {
  background: var(--tech-primary-dark);
}

.tech-float__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.7rem);
  width: min(320px, calc(100vw - 2rem));
  max-height: min(74vh, 36rem);
  overflow-y: auto;
  padding: 1.1rem;
  background: #fff;
  border: 1px solid var(--tech-border);
  border-top: 3px solid var(--tech-primary);
  border-radius: 3px;
  box-shadow: 0 30px 60px -24px rgba(20, 22, 23, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.6rem);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.tech-float.is-open .tech-float__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.tech-float__title {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--tech-ink);
}

.tech-float__desc {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--tech-muted);
}

.tech-float__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.tech-float__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--tech-border);
  border-radius: 2px;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tech-float__item:hover {
  border-color: rgba(17, 181, 230, 0.5);
  background: var(--tech-alt);
}

.tech-float__icon {
  width: 2.3rem;
  height: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 2px;
  background: var(--tech-primary);
  color: #fff;
}

.tech-float__item--whatsapp .tech-float__icon {
  background: #25d366;
}

.tech-float__item--address .tech-float__icon {
  background: var(--tech-ink-2);
}

.tech-float__label {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3ad;
}

.tech-float__value {
  display: block;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--tech-ink);
  word-break: break-word;
}

.tech-float__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.tech-float__social a {
  width: 2.3rem;
  height: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tech-border);
  border-radius: 2px;
  color: var(--tech-muted);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tech-float__social a:hover {
  background: var(--tech-primary);
  border-color: var(--tech-primary);
  color: #fff;
}

.tech-float__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding: 0.85rem 1rem;
  background: var(--tech-ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.tech-float__cta:hover {
  background: var(--tech-primary);
}

/* ============================================================
   Footer
   ============================================================ */
.tech-footer {
  background: var(--tech-ink);
  color: rgba(255, 255, 255, 0.68);
}

.tech-footer__link {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.66);
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.tech-footer__link:hover {
  color: var(--tech-primary);
  padding-left: 0.3rem;
}

.tech-footer__title {
  margin-bottom: 1.1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}

/* ============================================================
   Focus / motion / print
   ============================================================ */
.tech-nav-link:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(17, 181, 230, 0.35);
  outline-offset: 2px;
}

#mobile-menu {
  transition: max-height 0.3s ease;
}

/* ---------- 移动端菜单：与桌面一致的竖线样式 ---------- */
.tech-m-group {
  border-bottom: 1px solid #f1f5f8;
}

.tech-m-toggle,
.tech-m-link {
  display: flex;
  width: calc(100% - 0.85rem);
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-left: 0.85rem;
  padding: 0.7rem 0.9rem;
  border-left: 2px solid var(--tech-primary);
  font-family: 'Roboto Condensed', 'Mulish', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
  color: #202020;
  transition: color 0.18s ease;
}

.tech-m-toggle:hover,
.tech-m-link:hover {
  color: var(--tech-primary);
}

.tech-m-toggle .tech-caret {
  font-size: 0.65rem;
  opacity: 0.7;
  transition: transform 0.25s ease;
}

.tech-m-group.is-open > .tech-m-toggle .tech-caret {
  transform: rotate(180deg);
}

.tech-m-panel {
  display: none;
  padding-bottom: 0.5rem;
}

.tech-m-group.is-open > .tech-m-panel {
  display: block;
}

/* 移动端下拉项 */
.tech-m-sub {
  display: block;
  margin-left: 1.75rem;
  padding: 0.5rem 0.85rem;
  border-left: 2px solid var(--tech-primary);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--tech-primary);
  transition: background 0.18s ease, color 0.18s ease;
}

.tech-m-sub:hover {
  background: var(--tech-alt);
  color: var(--tech-primary-dark);
}

.tech-m-sub--sub {
  margin-left: 2.6rem;
  font-weight: 500;
}

@media (max-width: 1023px) {
  .tech-float__panel {
    width: calc(100vw - 1.5rem);
  }
}

@media (max-width: 767px) {
  .tech-hero-banner {
    min-height: 460px;
    height: min(600px, calc(100svh - 4rem));
  }

  .tech-hero-swiper .swiper-button-prev,
  .tech-hero-swiper .swiper-button-next {
    display: none;
  }

  .tech-float__toggle span {
    display: none;
  }

  .tech-float__toggle {
    width: 3.3rem;
    height: 3.3rem;
    justify-content: center;
    padding: 0;
  }
}

@media (max-width: 640px) {
  .rich-content {
    font-size: 0.9375rem;
  }
}

@media print {
  nav,
  footer,
  .no-print,
  .tech-float,
  .tech-topbar {
    display: none !important;
  }

  body {
    background: #fff;
  }
}

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