/* =============================================================
   GeoCourse — 复刻自 Mkconlife's Blog（hexo-theme-async）
   配色与结构保持博客一致，去掉了 APlayer / 音乐组件。
   -------------------------------------------------------------
   博客主题色板 (source: hexo-theme-async _variables/index.less)
   --primary       #afb42b   (橄榄黄绿，强调色)
   --primary-weak  #c0ca33
   --card-top      #ff6a00   (橙色点缀)
   body-bg         #00151f   (墨青色)
   theme-bg 亮     #fcfcfe   / theme-bg 暗  #00283a
   ============================================================= */

:root {
  /* base */
  --primary: #afb42b;
  --primary-weak: #c0ca33;
  --primary-70: rgba(175, 180, 43, 0.7);
  --primary-30: rgba(175, 180, 43, 0.3);
  --primary-weak-50: rgba(192, 202, 51, 0.5);

  /* light */
  --body-color: #5d5d5e;
  --body-color-5: rgba(93, 93, 94, 0.05);
  --theme-color: #00283a;
  --theme-bg-color: #fcfcfe;
  --theme-bg-color-80: rgba(252, 252, 254, 0.8);
  --theme-bg2-color: #f4f5f7;
  --page-bg-color: #e9eaee;

  --box-shadow: 1px 2px 4px -2px rgba(0, 0, 0, 0.15);
  --box-shadow-hover: 2px 2px 4px -2px rgba(121, 121, 121, 0.67);

  --card-padding: 40px;
  --card-bottom-card: 40px;
  --card-border-radius: 10px;

  --card-top-color: #ffffff;
  --card-top-bg-color: #ff6a00;

  --preloader-background: #00283a;

  --selection-bg-color: #1f2d3d;
  --selection-color: #f1f1f1;

  --top-bar-bg: rgba(252, 252, 254, 0.82);
  --top-bar-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.15);

  --border-dotted: dotted 2px rgba(225, 225, 235, 0.9);

  --code-bg-color: #f1f1f1;
}

html.dark {
  /* dark */
  --body-color: rgba(209, 217, 233, 0.7);
  --body-color-5: rgba(209, 217, 233, 0.05);
  --theme-color: #dedee0;
  --theme-bg-color: #00283a;
  --theme-bg-color-80: rgba(0, 40, 58, 0.8);
  --theme-bg2-color: #02162b;
  --page-bg-color: #00151f;

  --box-shadow: 0 2px 4px -2px rgba(0, 0, 0, 0.6);
  --box-shadow-hover: 2px 2px 4px -2px #282828fc;

  --preloader-background: #dedee0;

  --card-top-bg-color: #ff6a00;
  --top-bar-bg: rgba(0, 40, 58, 0.82);
  --top-bar-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.6);

  --border-dotted: dotted 2px rgba(225, 225, 235, 0.15);

  --code-bg-color: #3a3a3a;
}

/* ===================== base ===================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Monaco for Powerline Bold", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background-color: var(--page-bg-color);
  color: var(--body-color);
  line-height: 1.75;
  font-size: 15px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

::selection {
  background-color: var(--selection-bg-color);
  color: var(--selection-color);
}

a { color: inherit; text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--primary); }

img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; }

.hidden { display: none !important; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.trm-accent-color { color: var(--primary); }

/* ===================== icons ===================== */

.icon-moon, .icon-sun, .icon-search, .icon-play, .icon-check,
.icon-clock, .icon-loop, .icon-screen {
  display: inline-block;
  flex: none;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  vertical-align: -3px;
}

.icon-moon  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d5d5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E"); }
.icon-sun   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d5d5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41'/%3E%3C/svg%3E"); }
.icon-search { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d5d5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E"); }
.icon-play  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='6 3 20 12 6 21 6 3'/%3E%3C/svg%3E"); }
.icon-check { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23afb42b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.icon-clock { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23afb42b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E"); }
.icon-loop { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23afb42b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 2.64-6.36M3 3v6h6'/%3E%3C/svg%3E"); }
.icon-screen { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23afb42b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E"); }

html.dark .icon-moon   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dedee0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E"); }
html.dark .icon-sun    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dedee0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41'/%3E%3C/svg%3E"); }
html.dark .icon-search { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dedee0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E"); }

/* ===================== app frame / preloader ===================== */

.trm-app-frame { min-height: 100vh; }

.trm-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--preloader-background);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.trm-preloader.trm-loaded { opacity: 0; visibility: hidden; pointer-events: none; }

.trm-preloader .preloader { display: flex; gap: 8px; }
.trm-preloader .preloader > div {
  width: 8px; height: 8px; border-radius: 50%;
  background-color: var(--primary);
  animation: trm-bounce 1.2s infinite ease-in-out;
}
.trm-preloader .preloader > div:nth-child(2)  { animation-delay: 0.1s; }
.trm-preloader .preloader > div:nth-child(3)  { animation-delay: 0.2s; }
.trm-preloader .preloader > div:nth-child(4)  { animation-delay: 0.3s; }
.trm-preloader .preloader > div:nth-child(5)  { animation-delay: 0.4s; }
.trm-preloader .preloader > div:nth-child(6)  { animation-delay: 0.5s; }
.trm-preloader .preloader > div:nth-child(7)  { animation-delay: 0.6s; }
.trm-preloader .preloader > div:nth-child(8)  { animation-delay: 0.7s; }
.trm-preloader .preloader > div:nth-child(9)  { animation-delay: 0.8s; }
.trm-preloader .preloader > div:nth-child(10) { animation-delay: 0.9s; }

@keyframes trm-bounce {
  0%, 80%, 100% { transform: scale(0.5); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* mode switch preloader */
.trm-mode-swich-animation-frame {
  position: fixed; inset: 0; z-index: 9000;
  pointer-events: none; display: none;
}
.trm-mode-swich-animation-frame.trm-active { display: flex; align-items: center; justify-content: center; }
.trm-mode-swich-animation-frame .trm-mode-swich-animation {
  display: flex; align-items: center; gap: 16px;
  animation: trm-mode-pulse 0.6s ease;
}
@keyframes trm-mode-pulse { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ===================== scroll container ===================== */

.trm-scroll-container { transition: opacity 0.6s ease; }

/* ===================== top bar ===================== */

.trm-top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background-color: var(--top-bar-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: var(--top-bar-box-shadow);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.trm-top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.trm-logo-frame { display: flex; align-items: center; gap: 12px; }
.trm-logo-globe {
  width: 34px; height: 34px; border-radius: 50%;
  background-color: var(--theme-color);
  position: relative; flex: none;
}
.trm-logo-globe::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--primary);
}
.trm-logo-globe::after {
  content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px;
  width: 2px; background: var(--primary);
  transform: rotate(24deg);
}
.trm-logo-text {
  font-size: 16px; font-weight: 700; color: var(--theme-color);
  line-height: 1.2; display: flex; flex-direction: column;
}
.trm-logo-text span {
  font-size: 11px; font-weight: 400; letter-spacing: 2px;
  color: var(--body-color); opacity: 0.75;
}

.trm-right-side { display: flex; align-items: center; gap: 20px; }

.trm-menu nav ul { display: flex; list-style: none; gap: 6px; }
.trm-menu nav ul li a {
  display: inline-block; padding: 8px 14px;
  font-size: 14px; letter-spacing: 1px; color: var(--body-color);
  border-radius: 6px;
}
.trm-menu nav ul li a:hover { color: var(--primary); }
.trm-menu nav ul li.current-menu-item a {
  color: var(--primary);
  background-color: var(--primary-30);
}

/* mode switcher (blog toggle) */
.trm-mode-switcher-place { display: flex; align-items: center; }
.trm-mode-switcher { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.tgl { display: none; }
.trm-swich {
  position: relative; display: block; width: 42px; height: 22px;
  background-color: var(--theme-bg2-color);
  border: 1px solid var(--border-dotted);
  border-radius: 22px; cursor: pointer; transition: background-color 0.3s;
}
.trm-swich::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background-color: var(--primary);
  transition: transform 0.3s ease;
}
.tgl:checked + .trm-swich::after { transform: translateX(20px); }

/* search button */
.trm-search-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background-color 0.3s;
}
.trm-search-btn:hover { background-color: var(--primary-30); }
.trm-search-btn .icon-search { width: 18px; height: 18px; }

/* hamburger */
.trm-menu-btn { display: none; width: 34px; height: 34px; cursor: pointer; position: relative; }
.trm-menu-btn span,
.trm-menu-btn span::before,
.trm-menu-btn span::after {
  content: ""; position: absolute; left: 6px; right: 6px; height: 2px;
  background-color: var(--theme-color); transition: transform 0.3s, top 0.3s;
}
.trm-menu-btn span { top: 50%; transform: translateY(-50%); }
.trm-menu-btn span::before { top: -7px; }
.trm-menu-btn span::after { top: 7px; }
.trm-menu-btn.trm-active span { background-color: transparent; }
.trm-menu-btn.trm-active span::before { top: 0; transform: rotate(45deg); }
.trm-menu-btn.trm-active span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .trm-menu { display: none; }
  .trm-menu-btn { display: block; }
  .trm-menu.trm-open {
    display: block; position: fixed; top: 62px; left: 0; right: 0;
    background-color: var(--theme-bg-color);
    box-shadow: var(--box-shadow); padding: 10px 0;
  }
  .trm-menu.trm-open nav ul { flex-direction: column; gap: 0; padding: 0 20px; }
  .trm-menu.trm-open nav ul li a { display: block; padding: 12px 8px; }
}

/* ===================== banner ===================== */

.trm-banner { position: relative; min-height: 100vh; display: flex; align-items: center; }
.trm-banner-short { min-height: 340px; align-items: flex-end; }
.trm-banner-cover { position: absolute; inset: 0; z-index: 0; }
.trm-banner-grad {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(175, 180, 43, 0.35), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(0, 148, 158, 0.35), transparent 55%),
    linear-gradient(160deg, #00151f 0%, #00283a 55%, #013349 100%);
}
.trm-banner-content {
  position: relative; z-index: 2; width: 100%;
  color: #f1f1f1; padding: 120px 0 60px;
}
.trm-overlay::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 21, 31, 0.25), rgba(0, 21, 31, 0.55));
  z-index: -1;
}
.trm-banner-text { max-width: 720px; }
.trm-banner-text h1 {
  font-size: 44px; line-height: 1.3; font-weight: 800;
  color: #ffffff; letter-spacing: 1px;
}
.trm-banner-desc { margin-bottom: 30px; font-size: 17px; color: rgba(241, 241, 241, 0.85); }
.trm-label {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--primary-weak); font-weight: 600;
}
.trm-mb-20 { margin-bottom: 20px; }
.trm-mb-30 { margin-bottom: 30px; }
.trm-mt-20 { margin-top: 20px; }

/* scroll hint */
.trm-scroll-hint-frame {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer;
}
.trm-scroll-hint {
  width: 24px; height: 40px; border: 2px solid rgba(241, 241, 241, 0.6);
  border-radius: 14px; position: relative;
}
.trm-scroll-hint::after {
  content: ""; position: absolute; left: 50%; top: 7px;
  width: 4px; height: 4px; border-radius: 50%;
  background-color: var(--primary-weak);
  transform: translateX(-50%);
  animation: trm-scroll-dot 1.6s infinite;
}
@keyframes trm-scroll-dot {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 14px); opacity: 0; }
}
.trm-banner-short .trm-scroll-hint-frame { display: none; }

/* breadcrumbs */
.trm-breadcrumbs { list-style: none; display: flex; gap: 10px; color: rgba(241, 241, 241, 0.7); }
.trm-breadcrumbs li + li::before { content: "/"; margin-right: 10px; color: rgba(241, 241, 241, 0.4); }
.trm-breadcrumbs a { color: var(--primary-weak); }

/* ===================== buttons ===================== */

.trm-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 34px; border-radius: 6px;
  background: var(--primary); color: #fff;
  font-size: 15px; font-weight: 700; letter-spacing: 1px;
  border: 2px solid var(--primary);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;
}
.trm-btn:hover { background-color: var(--primary-weak); border-color: var(--primary-weak); color: #fff; transform: translateY(-2px); }
.trm-btn-border { background: transparent; color: #fff; }
.trm-btn-border:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.trm-btn-ghost { background: transparent; border-color: var(--primary); color: var(--primary); }
.trm-btn-ghost:hover { background: var(--primary); color: #fff; }
.trm-btn-block { display: flex; width: 100%; }
.trm-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ===================== section & titles ===================== */

.trm-section { padding: 70px 0; scroll-margin-top: 80px; }
.trm-title-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; }
.trm-title-with-divider {
  font-size: 26px; font-weight: 800; color: var(--theme-color);
  display: flex; align-items: center; gap: 14px; margin-bottom: 30px;
}
.trm-title-with-divider span {
  font-size: 13px; color: var(--primary); letter-spacing: 2px;
  border: 2px solid var(--primary); border-radius: 4px; padding: 2px 8px;
}
.trm-title-with-divider::before {
  content: ""; width: 6px; height: 26px; border-radius: 3px;
  background: var(--primary); flex: none;
}

/* category tags */
.trm-cat-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.trm-cat-tag {
  padding: 6px 14px; border-radius: 20px; cursor: pointer;
  font-size: 13px; color: var(--body-color);
  border: 1px solid var(--border-dotted);
  background: var(--theme-bg-color);
  transition: all 0.25s;
}
.trm-cat-tag:hover { color: var(--primary); }
.trm-cat-tag.trm-active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===================== cards ===================== */

.trm-card {
  background-color: var(--theme-bg-color);
  border-radius: var(--card-border-radius);
  box-shadow: var(--box-shadow);
  padding: var(--card-padding);
  transition: box-shadow 0.3s, transform 0.3s, background-color 0.3s;
}
.trm-card:hover { box-shadow: var(--box-shadow-hover); }

/* course grid & cards */
.trm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-bottom-card);
}
.trm-course-card {
  background-color: var(--theme-bg-color);
  border-radius: var(--card-border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
}
.trm-course-card:hover { box-shadow: var(--box-shadow-hover); transform: translateY(-4px); }
.trm-course-card .trm-cover-frame {
  position: relative; aspect-ratio: 16 / 9; display: block; overflow: hidden;
}
.trm-course-card .trm-cover {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.trm-course-card:hover .trm-cover { transform: scale(1.05); }
.trm-course-card .trm-card-top-badge {
  position: absolute; top: 14px; left: 0;
  background: var(--card-top-bg-color); color: var(--card-top-color);
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  padding: 5px 14px; border-radius: 0 4px 4px 0;
}
.trm-course-card .trm-card-descr { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.trm-course-card .trm-category { margin-bottom: 10px; }
.trm-course-card .trm-category a { color: var(--primary); font-weight: 600; }
.trm-course-card h5 { font-size: 19px; color: var(--theme-color); font-weight: 700; margin-bottom: 10px; }
.trm-course-card h5 a { color: inherit; }
.trm-course-card h5 a:hover { color: var(--primary); }
.trm-course-card .trm-card-desc { font-size: 13.5px; color: var(--body-color); opacity: 0.85; margin-bottom: 18px; flex: 1; }
.trm-course-card .trm-divider { border-top: 1px dashed rgba(225, 225, 235, 0.7); margin: 0 0 16px; }
html.dark .trm-course-card .trm-divider { border-top-color: rgba(225, 225, 235, 0.15); }
.trm-course-card .trm-card-data { display: flex; justify-content: space-between; align-items: center; }
.trm-course-card .trm-card-data ul { list-style: none; display: flex; gap: 14px; font-size: 12.5px; }
.trm-course-card .trm-card-data li { display: flex; align-items: center; gap: 5px; }
.trm-course-card .trm-price-box { display: flex; align-items: center; gap: 10px; }
.trm-price-cny { color: var(--card-top-bg-color); font-size: 16px; font-weight: 800; }
.trm-price { color: var(--card-top-bg-color); font-size: 26px; font-weight: 800; line-height: 1; }
.trm-price-unit { font-size: 12px; color: var(--body-color); opacity: 0.7; }
.trm-buy-mini {
  padding: 8px 18px; border-radius: 6px; font-size: 13px; font-weight: 700;
  background: var(--primary); color: #fff; border: 2px solid var(--primary);
  transition: all 0.25s;
}
.trm-buy-mini:hover { background: var(--primary-weak); border-color: var(--primary-weak); color: #fff; }

/* ===================== how to buy steps ===================== */

.trm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--card-bottom-card); }
.trm-step {
  background-color: var(--theme-bg-color);
  border-radius: var(--card-border-radius);
  box-shadow: var(--box-shadow);
  padding: 34px 30px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.trm-step:hover { box-shadow: var(--box-shadow-hover); transform: translateY(-4px); }
.trm-step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; margin-bottom: 18px;
}
.trm-step h6 { font-size: 17px; color: var(--theme-color); margin-bottom: 8px; }
.trm-step p { font-size: 13.5px; color: var(--body-color); opacity: 0.85; }

/* ===================== about ===================== */

.trm-about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-bottom-card);
}
.trm-about-card { display: flex; gap: 30px; align-items: center; }
.trm-about-left { flex: none; }
.trm-avatar {
  width: 140px; height: 140px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 4px solid var(--primary);
  box-shadow: var(--box-shadow);
  flex: none;
}
.trm-about-right { flex: 1; }
.trm-about-right .trm-label { margin-bottom: 8px; }
.trm-about-right h5 { font-size: 24px; font-weight: 800; color: var(--theme-color); margin-bottom: 14px; }
.trm-about-right p { margin-bottom: 18px; font-size: 14.5px; }
.trm-feature-list { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.trm-feature-list li { display: flex; align-items: center; gap: 10px; }
.trm-feature-list .icon-check { width: 18px; height: 18px; }

/* ===================== search overlay ===================== */

.trm-search-frame {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
  margin: 0;
}
.trm-search-frame.trm-open {
  max-height: 420px; opacity: 1; margin: 30px 0 0;
}
.trm-search-frame input {
  width: 100%; padding: 16px 22px; font-size: 16px;
  border: 2px solid var(--primary); border-radius: 8px;
  background: var(--theme-bg-color); color: var(--theme-color);
  outline: none;
}
.trm-search-hits { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.trm-search-hit {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: var(--theme-bg2-color); border-radius: 8px; padding: 14px 18px;
  transition: background-color 0.25s;
}
.trm-search-hit:hover { background: var(--primary-30); }
.trm-search-hit .hit-title { color: var(--theme-color); font-weight: 600; font-size: 14.5px; }
.trm-search-hit .hit-price { color: var(--card-top-bg-color); font-weight: 800; }

/* ===================== detail page ===================== */

.trm-detail-layout {
  display: grid; grid-template-columns: 1fr 380px;
  gap: var(--card-bottom-card); align-items: start;
  padding: 60px 0 0;
}
.trm-detail-main { display: flex; flex-direction: column; gap: var(--card-bottom-card); }
.trm-detail-side { position: sticky; top: 84px; }

/* video */
.trm-video-card { padding: 0; overflow: hidden; }
.trm-video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.trm-video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background:
    radial-gradient(700px 400px at 70% 20%, rgba(175, 180, 43, 0.25), transparent 60%),
    linear-gradient(160deg, #00151f, #013349);
  cursor: pointer;
}
.trm-video-play {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(175, 180, 43, 0.9);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='6 3 20 12 6 21 6 3'/%3E%3C/svg%3E");
  background-size: 26px; background-position: center; background-repeat: no-repeat;
  box-shadow: 0 4px 20px rgba(175, 180, 43, 0.5);
  transition: transform 0.3s;
}
.trm-video-placeholder:hover .trm-video-play { transform: scale(1.1); }
.trm-video-hint { color: rgba(241, 241, 241, 0.8); font-size: 13px; letter-spacing: 2px; }
.trm-video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; }
.trm-video-meta {
  display: flex; gap: 24px; padding: 16px 24px;
  font-size: 13.5px; color: var(--body-color);
  border-top: 1px solid var(--border-dotted);
}
.trm-video-meta span { display: flex; align-items: center; gap: 7px; }

/* desc & outline */
.trm-desc { font-size: 14.5px; }
.trm-card h5 { font-size: 21px; font-weight: 800; color: var(--theme-color); }
.trm-outline { list-style: none; counter-reset: sec; display: flex; flex-direction: column; gap: 0; }
.trm-outline li {
  counter-increment: sec;
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0; border-bottom: 1px dashed rgba(225, 225, 235, 0.6);
  font-size: 14.5px;
}
html.dark .trm-outline li { border-bottom-color: rgba(225, 225, 235, 0.12); }
.trm-outline li::before {
  content: counter(sec, decimal-leading-zero);
  font-size: 13px; font-weight: 800; color: var(--primary);
  background: var(--primary-30); border-radius: 4px; padding: 2px 8px; flex: none;
}

/* purchase card */
.trm-purchase-card { position: relative; overflow: hidden; }
.trm-purchase-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--card-top-bg-color));
}
.trm-price-row { display: flex; align-items: baseline; gap: 4px; margin-bottom: 22px; }
.trm-price-cny { font-size: 20px; }
.trm-price { font-size: 40px; }
.trm-purchase-note { text-align: center; font-size: 12px; color: var(--body-color); opacity: 0.75; margin-top: 12px; }

/* license box */
.trm-license-box { }
.trm-license-box h6 { font-size: 15px; color: var(--theme-color); margin-bottom: 12px; }
.trm-license-box input {
  width: 100%; padding: 12px 16px; font-size: 14px; letter-spacing: 1px;
  border: 2px solid var(--border-dotted); border-radius: 6px;
  background: var(--theme-bg2-color); color: var(--theme-color);
  outline: none; margin-bottom: 10px; text-transform: uppercase;
  transition: border-color 0.25s;
}
.trm-license-box input:focus { border-color: var(--primary); }
.trm-demo-hint { font-size: 12px; color: var(--body-color); opacity: 0.7; margin-bottom: 10px; }
.trm-demo-hint code {
  font-family: "Monaco for Powerline Bold", monospace;
  color: var(--primary); background: var(--primary-30);
  padding: 1px 6px; border-radius: 4px;
}
.trm-license-status { font-size: 13px; min-height: 20px; margin-bottom: 10px; }
.trm-license-status.trm-ok { color: var(--primary); }
.trm-license-status.trm-err { color: #e5534b; }
.trm-download-box { margin-top: 12px; }
.trm-uses-left { font-size: 13px; color: var(--body-color); opacity: 0.85; margin-bottom: 10px; text-align: center; }

/* ===================== footer ===================== */

.trm-footer-card {
  background-color: var(--theme-bg-color);
  border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
  box-shadow: var(--box-shadow);
  padding: 26px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 13.5px;
  margin-top: 40px;
  text-align: center;
}
.trm-footer-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.footer-separator { color: var(--primary); }

/* ===================== misc ===================== */

.trm-divider { border-top: 1px dashed rgba(225, 225, 235, 0.7); }
html.dark .trm-divider { border-top-color: rgba(225, 225, 235, 0.15); }

.trm-scroll-animation { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.trm-scroll-animation.trm-visible { opacity: 1; transform: none; }

/* ===================== responsive ===================== */

@media (max-width: 992px) {
  .trm-detail-layout { grid-template-columns: 1fr; }
  .trm-detail-side { position: static; }
  .trm-steps { grid-template-columns: 1fr; }
  .trm-about-grid { grid-template-columns: 1fr; }
  .trm-about-card { flex-direction: column; text-align: center; }
  .trm-feature-list { align-items: center; }
  .trm-banner-text h1 { font-size: 32px; }
}

@media (max-width: 768px) {
  :root { --card-padding: 20px; --card-bottom-card: 10px; --card-border-radius: 6px; }
  .trm-grid { grid-template-columns: 1fr; }
  .trm-section { padding: 44px 0; }
  .trm-banner { min-height: 82vh; }
  .trm-banner-text h1 { font-size: 26px; }
  .trm-video-meta { flex-direction: column; gap: 8px; }
}
