/* ═══════════════════════════════════════════════════════
   TiengTrungOnline Theme — assets/css/theme.css v1.0
   Design: Mực tàu trên giấy gạo — thư pháp meets modern
═══════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --red:        #C62828;
  --red-dark:   #8B1A1A;
  --red-dim:    rgba(198,40,40,.08);
  --gold:       #D4A017;
  --gold-light: #FFF8E1;
  --ink:        #1A0A0A;
  --ink-mid:    #3D2B2B;
  --muted:      #6B5B5B;
  --paper:      #FAF8F4;
  --paper-warm: #F5F1EB;
  --border:     rgba(198,40,40,.12);
  --border-ink: rgba(26,10,10,.1);
  --white:      #FFFFFF;

  /* Type */
  --font-display: 'Noto Serif SC', 'STSong', 'SimSun', serif;
  --font-body:    'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --container:  1180px;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Shadow */
  --shadow-sm:  0 1px 4px rgba(26,10,10,.08);
  --shadow-md:  0 4px 20px rgba(26,10,10,.1);
  --shadow-lg:  0 12px 40px rgba(26,10,10,.12);

  /* Motion */
  --ease: cubic-bezier(.22,.68,0,1.2);
}

/* ── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color .15s; }
a:hover { color: var(--red-dark); }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-body); font-weight: 700; line-height: 1.25; color: var(--ink); }

/* ── UTILITY ─────────────────────────────────────────── */
.ttt-container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.ttt-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; transition: all .2s var(--ease);
  text-decoration: none; line-height: 1;
}
.ttt-btn-hero { background: var(--red); color: #fff; box-shadow: 0 4px 20px rgba(198,40,40,.35); }
.ttt-btn-hero:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(198,40,40,.45); }
.ttt-btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border-ink); }
.ttt-btn-ghost:hover { border-color: var(--red); color: var(--red); background: var(--red-dim); }
.ttt-btn-outline { background: transparent; color: var(--red); border: 1.5px solid var(--red); }
.ttt-btn-outline:hover { background: var(--red); color: #fff; }
.ttt-btn-white { background: #fff; color: var(--red); font-weight: 700; }
.ttt-btn-white:hover { background: var(--gold-light); color: var(--red-dark); }

/* ── TOPBAR ──────────────────────────────────────────── */
.ttt-topbar {
  background: var(--ink); color: rgba(255,255,255,.75);
  font-size: 12.5px; padding: 7px 0;
}
.ttt-topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ttt-topbar-left { display: flex; align-items: center; gap: 8px; }
.ttt-topbar-char { font-family: var(--font-display); font-size: 16px; color: var(--gold); }
.ttt-topbar-right { display: flex; align-items: center; gap: 14px; }
.ttt-topbar-link { color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 4px; font-size: 12px; }
.ttt-topbar-link:hover { color: #fff; }
.ttt-topbar-register { background: var(--red); color: #fff !important; padding: 4px 10px; border-radius: var(--radius-sm); }
.ttt-topbar-register:hover { background: var(--red-dark) !important; }

/* ── HEADER ──────────────────────────────────────────── */
.ttt-header {
  background: rgba(250,248,244,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.ttt-header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding-top: 12px; padding-bottom: 12px;
}

/* Logo */
.ttt-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ttt-logo-hanzi {
  font-family: var(--font-display); font-size: 32px; color: var(--red);
  line-height: 1; text-shadow: 2px 2px 0 rgba(198,40,40,.15);
}
.ttt-logo-text { display: flex; flex-direction: column; }
.ttt-logo-vn { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.ttt-logo-domain { font-size: 11px; color: var(--muted); letter-spacing: .3px; }

/* Quick nav */
.ttt-quicknav { display: flex; gap: 4px; margin: 0 auto; }
.ttt-quicknav-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 12px; color: var(--muted); transition: all .15s; line-height: 1.2;
}
.ttt-quicknav-item:hover { background: var(--red-dim); color: var(--red); }
.ttt-quicknav-zh { font-family: var(--font-display); font-size: 18px; color: var(--red); }

/* Primary nav */
.ttt-nav { flex-shrink: 0; }
.ttt-menu { display: flex; list-style: none; gap: 4px; }
.ttt-menu li a {
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--ink-mid);
  display: block; transition: all .15s;
}
.ttt-menu li a:hover, .ttt-menu li.current-menu-item a { color: var(--red); background: var(--red-dim); }

/* Header actions */
.ttt-header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ttt-search-toggle, .ttt-menu-toggle {
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: var(--radius-sm); color: var(--ink-mid);
  display: flex; align-items: center; transition: all .15s;
}
.ttt-search-toggle:hover, .ttt-menu-toggle:hover { background: var(--red-dim); color: var(--red); }
.ttt-menu-toggle { flex-direction: column; gap: 4px; }
.ttt-menu-toggle span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: all .25s; }

/* Search overlay */
.ttt-search-overlay {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 1rem 0; box-shadow: var(--shadow-md);
}
.ttt-search-overlay form { display: flex; gap: 8px; align-items: center; }
.ttt-search-overlay input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-md); font-size: 15px;
  font-family: var(--font-body); color: var(--ink);
  background: var(--paper);
}
.ttt-search-overlay input:focus { outline: none; border-color: var(--red); }
.ttt-search-overlay button { padding: 10px; background: none; border: none; cursor: pointer; color: var(--muted); }
.ttt-search-close { color: var(--red); font-size: 16px; }

/* Mobile menu */
.ttt-mobile-menu {
  background: var(--white); border-top: 1px solid var(--border);
  padding: 1rem;
}
.ttt-mobile-nav { list-style: none; }
.ttt-mobile-nav li a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 15px; color: var(--ink); }
.ttt-mobile-nav li a:hover { background: var(--red-dim); color: var(--red); }
.ttt-mobile-quicknav { display: flex; gap: 8px; padding: 10px 0; flex-wrap: wrap; border-top: 1px solid var(--border); margin-top: 8px; }
.ttt-mobile-quicknav a { padding: 6px 12px; background: var(--paper-warm); border-radius: 20px; font-size: 13px; color: var(--ink-mid); }

/* ── HERO ────────────────────────────────────────────── */
.ttt-hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  padding: 80px 0 60px;
  min-height: 600px; display: flex; align-items: center;
}
.ttt-hero-bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
/* Subtle grid pattern — like calligraphy practice paper */
.ttt-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.ttt-deco-char {
  position: absolute;
  font-family: var(--font-display);
  color: #fff;
  user-select: none;
  pointer-events: none;
}
.ttt-hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: center;
}
.ttt-hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,.6);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 1rem;
}
.ttt-hero-hanzi {
  font-family: var(--font-display); font-size: 20px;
  color: var(--gold); line-height: 1;
}
.ttt-hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  color: #fff; line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}
.ttt-hero-title em { font-style: normal; color: var(--gold); }
.ttt-hero-sub { font-size: 15px; color: rgba(255,255,255,.65); margin-bottom: 1.75rem; max-width: 520px; }
.ttt-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 2rem; }
.ttt-hero-stats {
  display: flex; align-items: center; gap: 20px;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1);
}
.ttt-hero-stat { text-align: center; }
.ttt-hero-stat strong { display: block; font-size: 22px; font-weight: 700; color: #fff; line-height: 1.1; }
.ttt-hero-stat span { font-size: 12px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .5px; }
.ttt-hero-stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,.15); }

/* Hero demo card */
.ttt-hero-demo {
  background: var(--paper);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.ttt-demo-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 12px; }
.ttt-demo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 180px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1.5rem; text-align: center; cursor: pointer;
  transition: box-shadow .2s; margin-bottom: 12px;
}
.ttt-demo-card:hover { box-shadow: var(--shadow-sm); }
.ttt-demo-hanzi { font-family: var(--font-display); font-size: 52px; color: var(--red); line-height: 1; margin-bottom: 8px; }
.ttt-demo-pinyin { font-size: 16px; color: #1565C0; font-style: italic; margin-bottom: 6px; }
.ttt-demo-hint { font-size: 12px; color: var(--muted); }
.ttt-demo-meaning { font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.ttt-demo-example { font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.ttt-demo-example-vi { font-size: 13px; color: var(--muted); font-style: italic; }
.ttt-demo-actions { display: flex; gap: 8px; margin-bottom: 10px; }
.ttt-demo-btn {
  flex: 1; padding: 9px; border: 1px solid var(--border-ink);
  border-radius: var(--radius-sm); background: var(--paper-warm);
  font-size: 13px; font-weight: 500; cursor: pointer; transition: all .15s;
  font-family: var(--font-body);
}
.ttt-demo-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.ttt-demo-btn-tts { background: var(--red-dim); color: var(--red); border-color: var(--red); }
.ttt-demo-footer { text-align: center; font-size: 13px; }
.ttt-demo-footer a { color: var(--red); }

/* ── SECTION HEADER ──────────────────────────────────── */
.ttt-section-header { text-align: center; margin-bottom: 2.5rem; position: relative; }
.ttt-section-zh {
  font-family: var(--font-display);
  font-size: 80px; color: var(--red); opacity: .06;
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  line-height: 1; pointer-events: none; user-select: none;
}
.ttt-section-title { font-size: clamp(22px, 3vw, 30px); color: var(--ink); position: relative; margin-bottom: .5rem; }
.ttt-section-sub { font-size: 15px; color: var(--muted); position: relative; }
.ttt-see-all { font-size: 14px; color: var(--red); position: absolute; right: 0; top: 50%; transform: translateY(-50%); }

/* ── HSK PATH ────────────────────────────────────────── */
.ttt-hsk-path { padding: 80px 0; background: var(--paper-warm); }
.ttt-hsk-track { display: flex; gap: 0; overflow-x: auto; padding-bottom: 8px; }
.ttt-hsk-node {
  flex: 1; min-width: 140px;
  display: flex; flex-direction: column; align-items: center;
  position: relative; padding: 0 8px;
}
.ttt-hsk-connector {
  position: absolute; top: 32px; left: 50%; right: -50%;
  height: 2px; background: linear-gradient(90deg, var(--border-ink) 0%, var(--border-ink) 100%);
}
.ttt-hsk-node:last-child .ttt-hsk-connector { display: none; }
.ttt-hsk-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--hsk-color, var(--red));
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1; margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition: transform .2s var(--ease);
}
.ttt-hsk-circle:hover { transform: scale(1.1); }
.ttt-hsk-num {
  font-family: var(--font-display); font-size: 28px; color: #fff;
  font-weight: 700; line-height: 1;
}
.ttt-hsk-info { text-align: center; }
.ttt-hsk-words { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
.ttt-hsk-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 4px; }
.ttt-hsk-desc { font-size: 12px; color: var(--muted); line-height: 1.4; margin-bottom: 8px; display: none; }
.ttt-hsk-node:hover .ttt-hsk-desc { display: block; }
.ttt-hsk-link { font-size: 12px; color: var(--red); font-weight: 600; }

/* ── FEATURES ────────────────────────────────────────── */
.ttt-features { padding: 80px 0; background: var(--paper); }
.ttt-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.ttt-feature-card {
  background: var(--white);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: block; text-decoration: none; color: inherit;
  transition: all .2s var(--ease);
  position: relative; overflow: hidden;
}
.ttt-feature-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--feat-color, var(--red));
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.ttt-feature-card:hover { border-color: var(--feat-color, var(--red)); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ttt-feature-card:hover::before { transform: scaleX(1); }
.ttt-feature-icon {
  font-family: var(--font-display);
  font-size: 36px; color: var(--feat-color, var(--red));
  margin-bottom: 12px; line-height: 1;
}
.ttt-feature-title { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.ttt-feature-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.ttt-feature-link { font-size: 13px; color: var(--red); font-weight: 600; }

/* ── COURSES ─────────────────────────────────────────── */
.ttt-courses { padding: 80px 0; background: var(--paper-warm); }
.ttt-courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.ttt-course-card {
  background: var(--white);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .2s var(--ease);
}
.ttt-course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ttt-course-thumb { position: relative; overflow: hidden; aspect-ratio: 3/2; }
.ttt-course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ttt-course-card:hover .ttt-course-thumb img { transform: scale(1.04); }
.ttt-course-level {
  position: absolute; top: 10px; left: 10px;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: .5px;
}
.ttt-course-body { padding: 1.25rem; }
.ttt-course-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.ttt-course-title a { color: var(--ink); }
.ttt-course-title a:hover { color: var(--red); }
.ttt-course-excerpt { font-size: 13px; color: var(--muted); margin-bottom: 1rem; line-height: 1.6; }
.ttt-course-footer { padding-top: .75rem; border-top: 1px solid var(--border-ink); }

/* ── DAILY WORD ──────────────────────────────────────── */
.ttt-daily {
  padding: 60px 0;
  background: var(--red);
  text-align: center;
  position: relative; overflow: hidden;
}
.ttt-daily::before {
  content: '每天一词';
  position: absolute; font-family: var(--font-display);
  font-size: 120px; color: rgba(255,255,255,.05);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  white-space: nowrap; pointer-events: none;
}
.ttt-daily-inner { position: relative; z-index: 1; }
.ttt-daily-label { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,.6); margin-bottom: 1rem; }
.ttt-daily-card {
  display: inline-block;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-xl);
  padding: 2rem 3rem;
  margin-bottom: 1rem;
}
.ttt-daily-hanzi { font-family: var(--font-display); font-size: 64px; color: #fff; line-height: 1; margin-bottom: 8px; }
.ttt-daily-pinyin { font-size: 20px; color: rgba(255,255,255,.8); font-style: italic; margin-bottom: 6px; }
.ttt-daily-meaning { font-size: 18px; color: rgba(255,255,255,.9); margin-bottom: 14px; }
.ttt-daily-tts {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff; padding: 8px 18px;
  border-radius: 20px; cursor: pointer; font-size: 14px;
  font-family: var(--font-body); transition: all .15s;
}
.ttt-daily-tts:hover { background: rgba(255,255,255,.25); }
.ttt-daily-more { display: block; margin-top: 1rem; color: rgba(255,255,255,.7); font-size: 14px; }
.ttt-daily-more:hover { color: #fff; }

/* ── BLOG ────────────────────────────────────────────── */
.ttt-blog { padding: 80px 0; background: var(--paper); }
.ttt-blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.ttt-blog-card {
  background: var(--white);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius-lg);
  overflow: hidden; transition: all .2s var(--ease);
}
.ttt-blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ttt-blog-thumb { aspect-ratio: 16/9; overflow: hidden; display: block; }
.ttt-blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ttt-blog-card:hover .ttt-blog-thumb img { transform: scale(1.04); }
.ttt-blog-body { padding: 1.25rem; }
.ttt-blog-meta { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.ttt-blog-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.ttt-blog-title a { color: var(--ink); }
.ttt-blog-title a:hover { color: var(--red); }
.ttt-blog-excerpt { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── CTA BANNER ──────────────────────────────────────── */
.ttt-cta-banner {
  padding: 70px 0;
  background: var(--ink);
}
.ttt-cta-inner {
  display: flex; align-items: center; gap: 2rem;
  flex-wrap: wrap;
}
.ttt-cta-chars {
  font-family: var(--font-display); font-size: 48px;
  color: var(--gold); line-height: 1; letter-spacing: 4px; flex-shrink: 0;
}
.ttt-cta-text { flex: 1; }
.ttt-cta-text h2 { font-size: 26px; color: #fff; margin-bottom: 6px; }
.ttt-cta-text p { font-size: 15px; color: rgba(255,255,255,.6); }
.ttt-cta-action { flex-shrink: 0; }

/* ── FOOTER ──────────────────────────────────────────── */
.ttt-footer { background: var(--ink); color: rgba(255,255,255,.7); }
.ttt-footer-waves { line-height: 0; background: var(--paper); }
.ttt-footer-waves svg { display: block; }
.ttt-footer-body { padding: 60px 0 40px; }
.ttt-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.ttt-footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.ttt-footer-logo-hanzi { font-family: var(--font-display); font-size: 36px; color: var(--gold); line-height: 1; }
.ttt-footer-logo-text { font-size: 16px; font-weight: 700; color: #fff; }
.ttt-footer-desc { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,.55); margin-bottom: 1rem; }
.ttt-footer-chars {
  font-family: var(--font-display);
  font-size: 28px; color: rgba(255,255,255,.1);
  letter-spacing: 8px;
}
.ttt-footer-heading { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.9); margin-bottom: 14px; }
.ttt-footer-col ul { list-style: none; }
.ttt-footer-col ul li { margin-bottom: 8px; }
.ttt-footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.55); transition: color .15s; }
.ttt-footer-col ul li a:hover { color: var(--gold); }
.ttt-footer-social { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); margin-top: 10px; transition: all .15s; }
.ttt-footer-social:hover { background: var(--red); color: #fff; }
.ttt-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; }
.ttt-footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ttt-footer-bottom p { font-size: 12px; color: rgba(255,255,255,.4); }
.ttt-footer-bottom a { color: rgba(255,255,255,.5); }
.ttt-footer-bottom a:hover { color: var(--gold); }
.ttt-footer-menu { display: flex; list-style: none; gap: 16px; }
.ttt-footer-menu a { font-size: 12px; color: rgba(255,255,255,.4); }
.ttt-footer-menu a:hover { color: rgba(255,255,255,.8); }

/* Floating button */
.ttt-float-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 99;
  display: flex; flex-direction: column; align-items: center;
  background: var(--red); color: #fff;
  width: 56px; border-radius: 28px; padding: 8px 0;
  box-shadow: 0 4px 16px rgba(198,40,40,.4);
  text-decoration: none; transition: all .25s var(--ease);
  overflow: hidden;
}
.ttt-float-btn:hover { width: 80px; border-radius: 28px; color: #fff; box-shadow: 0 6px 24px rgba(198,40,40,.5); }
.ttt-float-zh { font-family: var(--font-display); font-size: 24px; line-height: 1; }
.ttt-float-label { font-size: 11px; font-weight: 600; white-space: nowrap; }

/* ── SINGLE POST / PAGE ───────────────────────────────── */
.ttt-main { padding: 48px 0; }
.ttt-content-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 2.5rem; align-items: start; }
.ttt-article { background: var(--white); border: 1px solid var(--border-ink); border-radius: var(--radius-lg); overflow: hidden; }
.ttt-article-header { padding: 2rem 2rem 1.5rem; border-bottom: 1px solid var(--border-ink); }
.ttt-article-title { font-size: clamp(22px, 3vw, 32px); color: var(--ink); margin-bottom: .75rem; }
.ttt-article-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); align-items: center; }
.ttt-article-meta time { color: var(--muted); }
.ttt-article-thumb { aspect-ratio: 16/7; overflow: hidden; }
.ttt-article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ttt-article-body { padding: 2rem; }
.ttt-article-body h2 { font-size: 22px; margin: 2rem 0 1rem; color: var(--ink); }
.ttt-article-body h3 { font-size: 18px; margin: 1.5rem 0 .75rem; color: var(--ink-mid); }
.ttt-article-body p { margin-bottom: 1.2rem; color: var(--ink-mid); }
.ttt-article-body ul, .ttt-article-body ol { margin: 0 0 1.2rem 1.5rem; color: var(--ink-mid); }
.ttt-article-body li { margin-bottom: .5rem; }
.ttt-article-body blockquote {
  border-left: 4px solid var(--red);
  padding: 12px 16px; margin: 1.5rem 0;
  background: var(--red-dim); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display); font-size: 17px; color: var(--red-dark);
}
.ttt-article-body .wp-block-image { margin: 1.5rem 0; border-radius: var(--radius-md); overflow: hidden; }
.ttt-article-body code { background: var(--paper-warm); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.ttt-article-body pre { background: var(--ink); color: #e8e8e8; padding: 1rem 1.25rem; border-radius: var(--radius-md); overflow-x: auto; margin-bottom: 1.2rem; }

/* Sidebar */
.ttt-sidebar { position: sticky; top: 80px; }
.ttt-sidebar .widget { background: var(--white); border: 1px solid var(--border-ink); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1rem; }
.ttt-sidebar .widget-title { font-size: 14px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 2px solid var(--red); display: inline-block; }

/* ── HSK BADGE ───────────────────────────────────────── */
.ttt-hsk-badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 700; }
.ttt-hsk-1 { background: #E8F5E9; color: #1B5E20; }
.ttt-hsk-2 { background: #E3F2FD; color: #0D47A1; }
.ttt-hsk-3 { background: #FFF3E0; color: #BF360C; }
.ttt-hsk-4 { background: #F3E5F5; color: #4A148C; }
.ttt-hsk-5 { background: #FCE4EC; color: #880E4F; }
.ttt-hsk-6 { background: #1A0A0A; color: #FFD54F; }

/* ── BREADCRUMB ──────────────────────────────────────── */
.ttt-breadcrumb { padding: 12px 0; border-bottom: 1px solid var(--border); margin-bottom: 0; }
.ttt-breadcrumb ul { display: flex; list-style: none; gap: 6px; font-size: 13px; color: var(--muted); align-items: center; }
.ttt-breadcrumb li + li::before { content: '›'; margin-right: 6px; color: var(--border-ink); }
.ttt-breadcrumb a { color: var(--muted); }
.ttt-breadcrumb a:hover { color: var(--red); }

/* ── PAGINATION ──────────────────────────────────────── */
.ttt-pagination { display: flex; justify-content: center; gap: 6px; padding: 2rem 0; }
.ttt-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  font-size: 14px; border: 1px solid var(--border-ink);
  color: var(--ink); transition: all .15s;
}
.ttt-pagination .page-numbers:hover, .ttt-pagination .current { background: var(--red); color: #fff; border-color: var(--red); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .ttt-hero-inner { grid-template-columns: 1fr; }
  .ttt-hero-demo { max-width: 380px; margin: 0 auto; }
  .ttt-content-wrap { grid-template-columns: 1fr; }
  .ttt-sidebar { position: static; }
  .ttt-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .ttt-topbar-left { display: none; }
  .ttt-quicknav { display: none; }
  .ttt-nav { display: none; }
  .ttt-hero { padding: 48px 0 40px; }
  .ttt-hero-title { font-size: 26px; }
  .ttt-hsk-track { gap: 0; }
  .ttt-hsk-desc { display: none !important; }
  .ttt-features-grid { grid-template-columns: 1fr 1fr; }
  .ttt-footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .ttt-cta-inner { flex-direction: column; text-align: center; }
  .ttt-cta-chars { font-size: 36px; }
  .ttt-float-label { display: none; }
  .ttt-float-btn:hover { width: 56px; }
  .ttt-see-all { position: static; display: block; margin-top: .5rem; }
}
@media (max-width: 480px) {
  .ttt-features-grid { grid-template-columns: 1fr; }
  .ttt-hero-cta { flex-direction: column; }
  .ttt-hero-stats { gap: 12px; }
  .ttt-hero-stat strong { font-size: 18px; }
}

/* ── DARK MODE BASICS ────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1C1210;
    --paper-warm: #221614;
    --white: #2A1A18;
    --ink: #F5F0EB;
    --ink-mid: #D4C5BF;
    --muted: #9A8580;
    --border: rgba(255,255,255,.08);
    --border-ink: rgba(255,255,255,.1);
  }
  .ttt-header { background: rgba(28,18,16,.96); }
  .ttt-topbar { background: #0D0806; }
  .ttt-feature-card, .ttt-course-card, .ttt-blog-card, .ttt-article { background: var(--white); }
  .ttt-daily-card { background: rgba(0,0,0,.2); }
}

/* ── ACCESSIBILITY ───────────────────────────────────── */
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
