:root {
  --bg: #ffe8e1;
  --paper: #fffdfb;
  --ink: #3b1020;
  --muted: #8a5a68;
  --line: #f3c9d0;
  --coral: #e85d75;
  --gold: #c9a227;
  --berry: #9d174d;
  --header-h: 4.2rem;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(233, 93, 117, 0.18), transparent 42%),
    radial-gradient(circle at 90% 0%, rgba(201, 162, 39, 0.16), transparent 40%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(233, 93, 117, 0.04) 18px,
      rgba(233, 93, 117, 0.04) 19px
    ),
    var(--bg);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--coral); }
button { font: inherit; }

.tk-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--coral);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.tk-skip:focus { left: 0.75rem; top: 0.75rem; }

.tk-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 251, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--gold);
}

.tk-header-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.tk-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  color: var(--ink) !important;
}
.tk-brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff 0 18%, transparent 19%),
    linear-gradient(135deg, var(--coral), #fda4af);
  box-shadow: 0 0 0 3px rgba(233, 93, 117, 0.18);
}
.tk-brand span:last-child {
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  white-space: nowrap;
}

.tk-nav-toggle {
  margin-left: auto;
  height: 2.4rem;
  padding: 0 0.85rem 0 0.7rem;
  border: 1px solid var(--coral);
  background: #fff;
  color: var(--coral);
  display: none;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  z-index: 60;
  border-radius: 999px;
}
.tk-nav-toggle b {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.14em;
}
.tk-nav-toggle i {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.tk-nav-toggle i span {
  width: 14px;
  height: 2px;
  background: var(--coral);
}

.tk-nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--max), calc(100% - 2rem));
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 51;
  pointer-events: none;
}
.tk-nav > ul {
  pointer-events: auto;
  display: flex;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tk-nav-item { position: relative; }
.tk-nav-parent {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: default;
  color: var(--ink);
  border-radius: 999px;
  border: 1px solid transparent;
}
.tk-nav-item:hover .tk-nav-parent,
.tk-nav-item:focus-within .tk-nav-parent {
  color: #fff;
  background: var(--coral);
  border-color: var(--coral);
}
.tk-sub {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 10rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: 0 14px 28px rgba(59, 16, 32, 0.12);
}
.tk-nav-item:hover .tk-sub,
.tk-nav-item:focus-within .tk-sub { display: block; }
.tk-sub a {
  display: block;
  padding: 0.5rem 0.7rem;
  color: var(--ink);
  border-radius: 0.5rem;
}
.tk-sub a:hover {
  background: #fff1f2;
  color: var(--coral);
}

.tk-wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 1.3rem auto 3rem;
}
.tk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17.6rem;
  gap: 1.45rem;
  align-items: start;
}

.tk-banner {
  margin: 0 0 1rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  position: relative;
  box-shadow: 0 10px 0 rgba(233, 93, 117, 0.08);
}
.tk-banner::after {
  content: "推荐票";
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.25rem 0.65rem;
  background: var(--gold);
  color: #3b1020;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  border-radius: 999px;
}
.tk-banner img {
  width: 100%;
  max-height: 190px;
  object-fit: cover;
}

.tk-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.tk-card {
  display: grid;
  grid-template-columns: 1.8rem 5.2rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem 1rem 0.95rem 0.55rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 10px 0 rgba(157, 23, 77, 0.06);
  position: relative;
  transition: transform 0.28s var(--ease);
}
.tk-card::before {
  content: "";
  width: 1.8rem;
  min-height: 5.2rem;
  align-self: stretch;
  background-color: #ffe0e6;
  background-image: radial-gradient(circle, var(--bg) 0.26rem, transparent 0.28rem);
  background-size: 100% 1.05rem;
  background-repeat: repeat-y;
  background-position: center 0.15rem;
  border-right: 1px dashed var(--line);
}
.tk-card:hover { transform: translateY(-4px) rotate(-0.2deg); }
.tk-card-cover {
  overflow: hidden;
  background: #ffe8e1;
  min-height: 5.2rem;
  height: 5.2rem;
  border-radius: 0.7rem;
}
.tk-card-cover img {
  width: 100%;
  height: 5.2rem;
  object-fit: cover;
  min-height: 5.2rem;
}
.tk-card h2 {
  margin: 0 0 0.28rem;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.4;
  font-weight: 750;
}
.tk-card h2 a { color: var(--ink); }
.tk-card h2 a:hover { color: var(--coral); }
.tk-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tk-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
  color: var(--berry);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}
.tk-meta-l {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.tk-avatar {
  width: 1.05rem;
  height: 1.05rem;
  object-fit: cover;
  border-radius: 50%;
}

.tk-crumb {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.tk-crumb a { color: var(--coral); }

.tk-pager {
  display: flex;
  justify-content: flex-start;
  gap: 0.55rem;
  margin: 1.15rem 0 0.2rem;
}
.tk-pager a {
  min-width: 6.8rem;
  text-align: center;
  padding: 0.65rem 1.05rem;
  background: var(--coral);
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--berry);
}
.tk-pager a:hover { background: var(--berry); }

.tk-aside {
  position: sticky;
  top: calc(var(--header-h) + 0.8rem);
  display: grid;
  gap: 0.85rem;
}
.tk-side {
  background: var(--paper);
  padding: 0.95rem 0.95rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  border-top: 0.55rem solid var(--coral);
}
.tk-side:nth-child(2) { border-top-color: var(--gold); }
.tk-side:nth-child(3) { border-top-color: var(--berry); }
.tk-side h3 {
  margin: 0 0 0.7rem;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--berry);
}
.tk-side ul {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: n;
}
.tk-side li { border-top: 1px dashed var(--line); }
.tk-side li a {
  display: flex;
  gap: 0.5rem;
  padding: 0.58rem 0;
  color: var(--ink);
  font-size: 0.88rem;
}
.tk-side .tk-widlist a::before {
  counter-increment: n;
  content: counter(n, decimal-leading-zero);
  color: var(--coral);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  flex: 0 0 1.5rem;
  font-size: 0.76rem;
}
.tk-topthub a {
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0;
}
.tk-topthub img {
  width: 100%;
  height: 7.4rem;
  object-fit: cover;
  border-radius: 0.7rem;
}
.tk-topthub span { font-weight: 650; }

.tk-article-card {
  background: var(--paper);
  padding: clamp(1.15rem, 3.2vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  box-shadow: inset 5px 0 0 var(--coral);
  position: relative;
}
.tk-article-card::before {
  content: "甜";
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 900;
  opacity: 0.55;
  transform: rotate(12deg);
  pointer-events: none;
}
.tk-article-card h1 {
  margin: 0 0 0.7rem;
  text-align: left;
  font-size: clamp(1.32rem, 3vw, 1.9rem);
  line-height: 1.35;
  padding-right: 3rem;
}
.tk-bloginfo {
  display: flex;
  justify-content: flex-start;
  color: var(--coral);
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
}
.tk-bloginfo ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tk-prose {
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.95;
  color: #4a2030;
  max-width: 44rem;
}
.tk-prose img,
.tk-prose video,
.tk-prose iframe,
.tk-prose table { max-width: 100%; }
.tk-prose table { display: block; overflow-x: auto; }
.tk-copyright {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}
.tk-pagerow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 1.15rem;
}
.tk-pagerow a {
  display: block;
  padding: 0.8rem 0.9rem;
  background: #fff1f2;
  border-radius: 0.75rem;
  font-size: 0.86rem;
  line-height: 1.45;
}
.tk-pagerow .next { text-align: right; }

.tk-footer {
  background: #3b1020;
  padding: 1.5rem 1rem 2.3rem;
  text-align: center;
  color: #f3c9d0;
  font-size: 0.86rem;
  border-top: 4px solid var(--gold);
}
.tk-footer p { margin: 0 0 0.7rem; }
.tk-footer a { color: #fda4af; margin: 0 0.35rem; }

#go-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1.2rem;
  width: 2.55rem;
  height: 2.55rem;
  background: var(--coral);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.28);
}
#go-to-top::after { content: "↑"; font-size: 1.05rem; font-weight: 800; }

.tk-mask { display: none; }

@media (max-width: 980px) {
  .tk-layout { grid-template-columns: 1fr; }
  .tk-aside { position: static; }
}

@media (max-width: 768px) {
  .tk-nav-toggle { display: inline-flex; }
  .tk-nav {
    left: auto;
    right: 0;
    top: 0;
    width: min(84vw, 20rem);
    height: 100dvh;
    margin: 0;
    display: block;
    background: #fff;
    box-shadow: -8px 0 28px rgba(59, 16, 32, 0.16);
    padding: 5rem 1.1rem 1.5rem;
    transform: translateX(110%);
    transition: transform 0.35s var(--ease), visibility 0.35s;
    overflow-y: auto;
    visibility: hidden;
    z-index: 55;
    pointer-events: auto;
    border-left: 4px solid var(--coral);
  }
  body.nav-open .tk-nav {
    transform: translateX(0);
    visibility: visible;
  }
  .tk-nav > ul {
    flex-direction: column;
    gap: 0.2rem;
  }
  .tk-sub {
    display: block;
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0.4rem 0.8rem;
    background: transparent;
  }
  .tk-nav-parent { color: var(--ink); }
  .tk-nav-item:hover .tk-nav-parent {
    background: #fff1f2;
    color: var(--coral);
  }
  .tk-mask {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(59, 16, 32, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
    z-index: 40;
  }
  body.nav-open .tk-mask {
    opacity: 1;
    pointer-events: auto;
  }
  body.nav-open { overflow: hidden; }
  .tk-card {
    grid-template-columns: 1.4rem 4.3rem minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.8rem 0.8rem 0.8rem 0.4rem;
  }
  .tk-card::before {
    width: 1.4rem;
    min-height: 4.3rem;
  }
  .tk-card-cover,
  .tk-card-cover img {
    min-height: 4.3rem;
    height: 4.3rem;
  }
  .tk-pagerow { grid-template-columns: 1fr; }
  .tk-pagerow .next { text-align: left; }
}

@media (max-width: 420px) {
  .tk-card {
    grid-template-columns: 1.2rem minmax(0, 1fr);
    grid-template-areas: "perf cover" "perf body";
  }
  .tk-card::before { grid-area: perf; }
  .tk-card-cover { grid-area: cover; }
  .tk-card > div { grid-area: body; }
  .tk-card-cover,
  .tk-card-cover img {
    width: 100%;
    height: 8.5rem;
    min-height: 8.5rem;
  }
}

@media (min-width: 1440px) {
  :root { --max: 1260px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
