:root {
  --tm-ink: #2451A3;
  --tm-ink-dark: #183878;
  --tm-bg: #E7EEF8;
  --tm-card: #FFFFFF;
  --tm-border: #E6DDD0;
  --tm-text: #241E18;
  --tm-muted: #6A6158;
  --tm-radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #F6F3EC;
  color: var(--tm-text);
  line-height: 1.6;
}

a { color: var(--tm-ink); text-decoration: none; }
a:hover { color: var(--tm-ink-dark); text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

header.tm-header {
  position: sticky; top: 0; z-index: 100;
  background: #FFFFFF; border-bottom: 2px solid var(--tm-ink);
}
.tm-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.tm-brand { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; color: #1C1814; }
.tm-brand span { color: var(--tm-ink); }
.tm-links { display: flex; gap: 24px; list-style: none; }
.tm-links a { font-size: 15px; font-weight: 600; color: #6A6158; }
.tm-links a:hover, .tm-links a.active { color: var(--tm-ink); text-decoration: none; }

.btn-tm {
  padding: 8px 20px; border-radius: 4px; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border: none;
}
.btn-tm-primary { background: var(--tm-ink); color: #fff; box-shadow: 0 2px 8px rgba(36, 81, 163, 0.28); }
.btn-tm-primary:hover { background: var(--tm-ink-dark); color: #fff; text-decoration: none; }

.tm-hero {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, #E7EEF8 0%, #F6F3EC 100%);
  border-bottom: 1px solid #E6DDD0;
}
.tm-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
  background: #E3EAF8; border-radius: 20px; font-size: 13px; color: var(--tm-ink); font-weight: 700; margin-bottom: 16px;
}
.tm-hero h1 { font-size: 38px; font-weight: 800; line-height: 1.25; margin-bottom: 16px; color: #1C1814; }
.tm-hero p { font-size: 16px; color: var(--tm-muted); max-width: 720px; margin-bottom: 24px; }

.tm-meter {
  background: #FFFFFF; border: 1px solid #D5CBBA; border-radius: var(--tm-radius);
  padding: 24px; margin: 30px 0; box-shadow: 0 4px 12px rgba(36, 81, 163, 0.05);
}
.tm-bar-row { margin-bottom: 16px; }
.tm-bar-label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.tm-track { height: 20px; background: #EDE6DA; border-radius: 4px; overflow: hidden; }
.tm-fill-fast { height: 100%; background: linear-gradient(90deg, #1F8A78, #0E5C50); width: 95%; display: flex; align-items: center; padding-left: 8px; font-size: 11px; color: #fff; font-weight: 700; }
.tm-fill-slow { height: 100%; background: #8A6230; width: 15%; display: flex; align-items: center; padding-left: 8px; font-size: 11px; color: #fff; font-weight: 700; }

.tm-dl { padding: 50px 0 70px; }
.tm-dl-card {
  background: #fff; border: 1px solid #E6DDD0;
  border-radius: var(--tm-radius); padding: 36px; margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(28, 24, 20, 0.03);
}

.tm-code {
  background: #1C1814; color: #F6F1E8; border-radius: 6px; padding: 18px;
  font-family: Consolas, monospace; font-size: 13px; position: relative; margin: 16px 0; overflow-x: auto;
}
.tm-copy {
  position: absolute; right: 12px; top: 12px; background: var(--tm-ink); color: #fff;
  border: none; padding: 4px 10px; border-radius: 4px; font-size: 12px; cursor: pointer;
}

.tm-article {
  background: #fff; border: 1px solid #E6DDD0; border-radius: var(--tm-radius);
  padding: 36px; margin-bottom: 24px;
}
.tm-article h2 { font-size: 22px; margin-bottom: 14px; color: #1C1814; }
.tm-article h3 { font-size: 17px; margin: 18px 0 8px; color: var(--tm-ink); }
.tm-article p { font-size: 15px; color: #3A342C; margin-bottom: 14px; }
.tm-article ul, .tm-article ol { margin-left: 20px; font-size: 15px; color: #3A342C; margin-bottom: 16px; }

footer.tm-footer { background: #1A1C24; color: #C8C2B8; padding: 48px 0 24px; font-size: 13px; }
.tm-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.tm-footer-col h4 { color: #fff; margin-bottom: 12px; font-size: 14px; }
.tm-footer-col ul { list-style: none; }
.tm-footer-col li { margin-bottom: 8px; }
.tm-footer-col a { color: #C8C2B8; }
.tm-footer-col a:hover { color: #B9C9F0; }

@media (max-width: 850px) {
  .tm-footer-grid { grid-template-columns: 1fr; }
  .tm-links { display: none; }
}
