/* Takefu unified tactical UI layer */
:root {
  --takefu-bg: #101820;
  --takefu-bg-soft: #162128;
  --takefu-panel: #1b262d;
  --takefu-panel-strong: #202d34;
  --takefu-card: #1c282f;
  --takefu-card-2: #22313a;
  --takefu-line: rgba(211, 226, 232, 0.13);
  --takefu-line-strong: rgba(211, 226, 232, 0.22);
  --takefu-text: #f1f5f7;
  --takefu-muted: #b8c2c8;
  --takefu-dim: #87939a;
  --takefu-accent: #e8894f;
  --takefu-accent-2: #72a696;
  --takefu-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
  --takefu-radius: 16px;
  --takefu-radius-sm: 10px;
}

@media (min-width: 901px) {
  .h-fix .container {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .header .logo {
    flex: 0 0 180px;
    margin-right: 10px;
  }

  .header .nav-bar {
    flex: 1 1 auto;
    margin-left: 0;
  }

  .header .search {
    position: relative;
    display: block;
    flex: 0 0 248px;
    width: 248px;
    margin-left: auto;
  }

  .header .search > .s-btn,
  .header .search .s-form .arrow {
    display: none !important;
  }

  .header .search .s-form {
    position: static;
    display: block !important;
    width: 100%;
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .header .search .s-form .sform {
    display: flex;
    align-items: center;
    width: 100%;
    height: 40px;
    overflow: hidden;
    border: 1px solid rgba(20, 30, 36, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }

  .header .search .s-form .sform:focus-within {
    border-color: rgba(123, 189, 205, 0.7);
    box-shadow: 0 0 0 4px rgba(123, 189, 205, 0.14);
  }

  .header .search .s-form .sinput {
    flex: 1 1 auto;
    height: 40px;
    padding: 0 14px;
    border: 0;
    background: transparent;
    color: #223039;
    font-size: 13px;
    line-height: 40px;
  }

  .header .search .s-form .sinput::placeholder {
    color: #7d8b93;
  }

  .header .search .s-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #2c3a42;
    opacity: 1;
  }

  .header .search .s-form button:hover {
    background: rgba(123, 189, 205, 0.12);
    color: var(--takefu-accent);
  }

  .header .search .s-form button i.fa {
    width: auto;
    height: auto;
    font-size: 15px;
    line-height: 1;
  }
}

.footer-nav-buttons {
  position: fixed !important;
  right: max(12px, env(safe-area-inset-right)) !important;
  bottom: calc(16px + env(safe-area-inset-bottom)) !important;
  z-index: 9998 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px !important;
  border: 1px solid var(--takefu-line) !important;
  border-radius: 999px !important;
  background: rgba(13, 20, 26, 0.9) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: blur(12px);
}

.footer-nav-buttons #backtop,
.footer-nav-buttons #backbottom,
.footer-nav-buttons .footer-bilibili {
  position: static !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.07) !important;
  color: #fff !important;
  font-size: 17px !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

@media (max-width: 767px) {
  .footer-nav-buttons {
    right: max(4px, env(safe-area-inset-right)) !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    gap: 3px !important;
    padding: 3px !important;
  }

  .footer-nav-buttons .footer-bilibili {
    display: none !important;
  }

  .footer-nav-buttons #backtop,
  .footer-nav-buttons #backbottom {
    width: 34px !important;
    height: 34px !important;
    font-size: 16px !important;
  }
}

body:not(.home-page),
body.tool-detail-page {
  background:
    radial-gradient(circle at top right, rgba(114, 166, 150, 0.12), transparent 26%),
    linear-gradient(180deg, #101820 0%, #121b22 45%, #0f171d 100%);
  color: var(--takefu-text);
}

body.home-page {
  --home-bg: var(--takefu-bg);
  --home-surface: var(--takefu-panel);
  --home-border: var(--takefu-line);
  --home-shadow: var(--takefu-shadow);
  --home-primary: var(--takefu-accent);
  --home-secondary: var(--takefu-accent-2);
  background:
    radial-gradient(circle at top right, rgba(114, 166, 150, 0.14), transparent 26%),
    linear-gradient(180deg, #101820 0%, #142028 48%, #101820 100%);
  color: var(--takefu-text);
}

body a {
  color: inherit;
}

.container {
  width: min(1240px, calc(100% - 32px));
}

.header {
  height: 72px;
  z-index: 100;
}

.h-fix,
body.home-page .h-fix,
body.tool-detail-page .h-fix {
  background: rgba(248, 250, 250, 0.94);
  border-bottom: 1px solid rgba(17, 24, 30, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header .logo,
.header .logo a,
.header .nav-bar li {
  height: 72px;
  line-height: 72px;
}

.header .logo a {
  min-width: 180px;
}

.header .nav-bar li a,
body.home-page .header .nav-bar li a {
  min-width: auto;
  padding: 0 14px;
  color: #26333a;
  font-weight: 700;
}

.header .nav-bar li.active > a,
.header .nav-bar li a:hover,
body.home-page .header .nav-bar li.active > a,
body.home-page .header .nav-bar li a:hover,
body.tool-detail-page .header .nav-bar li.active > a,
body.tool-detail-page .header .nav-bar li a:hover {
  color: var(--takefu-accent);
}

.header .nav-bar li.active:before,
.header .nav-bar li[class*="li-cate-"]:before,
body.home-page .header .nav-bar li.active:before,
body.home-page .header .nav-bar li[class*="li-cate-"]:before,
body.tool-detail-page .header .nav-bar li.active:before,
body.tool-detail-page .header .nav-bar li[class*="li-cate-"]:before {
  width: 34px;
  height: 3px;
  bottom: 0;
  border-radius: 999px;
  background: var(--takefu-accent);
}

.header .nav-bar li.active:after,
.header .nav-bar li[class*="li-cate-"]:after {
  display: none;
}

.header .nav-bar ul li > ul {
  min-width: 132px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 30, 0.08);
  border-radius: 0 0 12px 12px;
  background: rgba(248, 250, 250, 0.98);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.14);
}

.header .nav-bar ul li > ul.sub-menu--wide {
  width: 420px;
  max-width: min(88vw, 420px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  padding: 8px;
}

.header .nav-bar ul li > ul.sub-menu--wide li,
.header .nav-bar ul li > ul.sub-menu--wide li a {
  height: 38px;
  line-height: 38px;
}

.header .nav-bar ul li > ul.sub-menu--wide li a {
  border-radius: 8px;
  text-align: left;
}

.header .nav-bar ul li > ul.sub-menu--wide li a:hover {
  background: rgba(177, 43, 54, 0.08);
}

.header .nav-bar ul li > ul li a {
  color: #26333a;
}



/* ===== Desktop nav: segmented-control style (user pick D) ===== */
@media (min-width: 901px) {
  .header .nav-bar > ul {
    display: flex;
    align-items: center;
    height: 40px;
    margin: 16px 0;
    padding: 4px;
    border-radius: 9px;
    background: rgba(17, 24, 30, 0.06);
  }

  .header .nav-bar li {
    height: 40px;
    line-height: 40px;
  }

  .header .nav-bar li a,
  body.home-page .header .nav-bar li a,
  body.tool-detail-page .header .nav-bar li a {
    display: inline-flex;
    align-items: center;
    height: 32px;
    line-height: 32px;
    margin: 4px 1px;
    padding: 0 14px;
    border-radius: 6px;
    color: #45545c;
    font-weight: 600;
    font-size: 13.5px;
    transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  }

  .header .nav-bar li a .takefu-legacy-nav-icon {
    display: none;
  }

  .header .nav-bar li a:hover {
    color: #1a252b;
    background: rgba(255, 255, 255, 0.6);
  }

  .header .nav-bar li.active > a,
  body.home-page .header .nav-bar li.active > a,
  body.tool-detail-page .header .nav-bar li.active > a {
    color: #1a252b;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
  }

  .header .nav-bar li.active:before,
  .header .nav-bar li[class*="li-cate-"]:before,
  body.home-page .header .nav-bar li.active:before,
  body.home-page .header .nav-bar li[class*="li-cate-"]:before,
  body.tool-detail-page .header .nav-bar li.active:before,
  body.tool-detail-page .header .nav-bar li[class*="li-cate-"]:before {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
  }
}
/* ===== end nav segmented ===== */


.search > .s-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  background: #e6ede6;
  color: #26333a;
  font-size: 0;
  line-height: 1;
  box-sizing: border-box;
}

.search > .s-btn:hover,
.search > .s-btn.no {
  background: #dce6dc;
  color: #17232a;
}

.search > .s-btn::before {
  width: 13px;
  height: 13px;
  border: 3px solid currentColor;
  border-radius: 999px;
  content: "";
}

.search > .s-btn::after {
  position: absolute;
  width: 8px;
  height: 3px;
  margin: 14px 0 0 14px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
}

.search > .s-btn.no::before,
.search > .s-btn.no::after {
  position: absolute;
  width: 18px;
  height: 3px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.search > .s-btn.no::before {
  transform: rotate(45deg);
}

.search > .s-btn.no::after {
  transform: rotate(-45deg);
}

.search .s-form {
  border: 1px solid rgba(17, 24, 30, 0.08);
  border-radius: 16px;
}

.search .s-form button {
  background: var(--takefu-accent);
}

.header .search {
  position: relative;
}

.header .search .s-form {
  right: auto;
  left: 0;
  top: calc(100% + 10px);
  width: 360px;
  padding: 12px;
  background: rgba(248, 250, 250, 0.98);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
  line-height: 1;
  z-index: 10020;
}

.header .search .s-form .arrow {
  display: none;
}

.header .search .s-form .sform {
  display: flex;
  align-items: center;
  width: 100%;
  height: 42px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 32, 0.1);
  border-radius: 12px;
  background: #fff;
}

.header .search .s-form .sinput {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 40px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #1b2a30;
  font-size: 14px;
  line-height: 40px;
  outline: none;
}

.header .search .s-form button {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 50px;
  width: 50px;
  height: 42px;
  border: 0;
  color: #fff;
  cursor: pointer;
  opacity: 1;
}

.header .search .s-form button i.fa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 17px;
  line-height: 1;
}

@media (max-width: 767px) {
  .header .search .s-form {
    right: 0;
    left: auto;
    width: min(92vw, 340px);
    padding: 10px;
  }

  .header .search .s-form .sform {
    display: flex;
    height: 42px;
    padding: 0;
  }

  .header .search .s-form .sinput {
    height: 40px;
    line-height: 40px;
  }

  .header .search .s-form button,
  .header .search .s-form button i.fa {
    height: 42px;
    line-height: 1;
  }
}

.breadnav {
  margin: 0 0 24px;
  padding: 18px 0 0;
  background: transparent;
}

.breadnav .bread {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--takefu-line);
  border-radius: var(--takefu-radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--takefu-muted);
  line-height: 44px;
}

.breadnav .bread a,
.breadnav .bread i {
  color: var(--takefu-muted);
}

.part,
body.home-page .part,
body.tool-detail-page .part {
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--takefu-line);
  border-radius: var(--takefu-radius);
  background:
    radial-gradient(circle at top right, rgba(114, 166, 150, 0.12), transparent 28%),
    linear-gradient(180deg, var(--takefu-panel-strong), var(--takefu-panel));
  box-shadow: var(--takefu-shadow);
}

.part .tt,
body.home-page .part .tt,
body.tool-detail-page .part .tt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
}

.part .tt strong,
.part .tt span,
.part .tt .title_color,
body.home-page .part .tt strong .title_color,
body.tool-detail-page .part .tt span {
  color: var(--takefu-text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.part .tt i {
  margin-right: 8px;
  color: var(--takefu-accent);
}

.part .tt a,
body.home-page .part .tt a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(123, 189, 205, 0.28);
  border-radius: 999px;
  color: #ffd3ba;
  font-size: 13px;
  line-height: 1;
}

.part .tt a:hover,
body.home-page .part .tt a:hover {
  background: rgba(123, 189, 205, 0.14);
  color: #fff;
}

.part .items,
body.home-page .part .items,
body.tool-detail-page .part .items,
.list_items {
  padding: 18px;
  background: transparent;
}

.part .item,
.part .inner_item,
.part .relateditem,
body.home-page .part .item,
body.home-page .part .inner_item,
body.home-page .part .art-item,
body.tool-detail-page .tool-related .relateditem {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid var(--takefu-line);
  border-radius: var(--takefu-radius);
  background: linear-gradient(180deg, var(--takefu-card-2), var(--takefu-card));
  box-shadow: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.part .item:hover,
.part .inner_item:hover,
.part .relateditem:hover,
body.home-page .part .item:hover,
body.home-page .part .inner_item:hover,
body.home-page .part .art-item:hover,
body.tool-detail-page .tool-related .relateditem:hover {
  border-color: rgba(123, 189, 205, 0.42);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.part .item .a:not(.topa),
.part .inner_item .a,
.part .relateditem .a,
body.home-page .part .item .a:not(.topa),
body.tool-detail-page .tool-related .relateditem .a {
  display: block;
  min-height: 100%;
  padding: 0 0 14px;
  background: transparent;
}

.part .inner_item > .a,
.part .item > .a:not(.topa),
.part .relateditem > .a {
  overflow: hidden;
  border-radius: var(--takefu-radius) var(--takefu-radius) 0 0;
}

.part .item .a:not(.topa) img,
.part .inner_item .a img,
.part .relateditem .a img,
body.home-page .part .item .a:not(.topa) img,
body.home-page .part .art-item .art-a img,
body.tool-detail-page .tool-related .relateditem img.br {
  display: block;
  width: 100%;
  height: 176px;
  border-radius: 0;
  object-fit: cover;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(180deg, #25333b, #172229);
}

.part .inner_item .a img[src*="not_adv"],
.part .inner_item .a img[src*="defaultpic"],
.part .inner_item .a img[src*="no"],
.part .item .a img[src*="not_adv"],
.part .item .a img[src*="defaultpic"],
.part .item .a img[src*="no"] {
  padding: 34px;
  object-fit: contain;
  filter: grayscale(1) brightness(0.72) contrast(1.08);
  opacity: 0.62;
}

.part .item h3,
.part .inner_item h3,
.part .relateditem h3,
body.home-page .part .item .a:not(.topa) h3,
body.home-page .part .art-item h3,
body.home-page .part .art-item h3 a,
body.tool-detail-page .tool-related .relateditem h3 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  margin: 12px 14px 6px;
  color: var(--takefu-text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.part .item p,
.part .inner_item p,
.part .relateditem p,
body.home-page .part .item .a:not(.topa) p,
body.home-page .part .art-item p,
body.tool-detail-page .tool-related .relateditem p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 42px;
  margin: 0 14px;
  color: var(--takefu-muted);
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.angle_fix {
  top: 10px;
  right: 10px;
  width: 42px;
  height: 24px;
  opacity: 0.86;
}

.article_btm,
body.home-page .part .item .article_btm {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 46px;
  margin: 10px 14px 0;
  padding: 8px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
}

.part .item .link,
body.home-page .part .item .link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(123, 189, 205, 0.32);
  border-radius: 999px;
  background: rgba(123, 189, 205, 0.12);
  color: #ffd3ba;
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
}

.part .item .link:hover,
body.home-page .part .item .link:hover {
  transform: none;
  background: rgba(123, 189, 205, 0.22);
  box-shadow: none;
}

.part .inner_item .a,
.part .inner_item .article_btm,
.part .item.inner_item .a,
.part .item.inner_item .article_btm,
.part .relateditem .a,
body.home-page .part .inner_item .a,
body.home-page .part .inner_item .article_btm {
  background: transparent !important;
}

.list_items .inner_item,
.part .items .inner_item {
  display: flex !important;
  flex-direction: column !important;
  min-height: 258px !important;
  padding: 0 !important;
}

.list_items .inner_item > .a,
.part .items .inner_item > .a {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 0 10px !important;
  color: var(--takefu-text) !important;
}

.list_items .inner_item > .a > img,
.part .items .inner_item > .a > img {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.list_items .inner_item > .a > h3,
.part .items .inner_item > .a > h3 {
  display: -webkit-box !important;
  position: static !important;
  overflow: hidden !important;
  min-height: 24px !important;
  height: auto !important;
  margin: 12px 14px 4px !important;
  color: var(--takefu-text) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  text-align: left !important;
  opacity: 1 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.list_items .inner_item > .a > p,
.part .items .inner_item > .a > p {
  display: -webkit-box !important;
  overflow: hidden !important;
  min-height: 22px !important;
  height: auto !important;
  margin: 0 14px !important;
  color: var(--takefu-muted) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  text-align: left !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.list_items .inner_item > .a > p:empty::before,
.part .items .inner_item > .a > p:empty::before {
  content: "塔科夫地图资料入口";
  color: var(--takefu-dim);
}

.list_items .inner_item .article_btm,
.part .items .inner_item .article_btm {
  display: flex !important;
  flex: 0 0 auto !important;
  margin: 0 14px 12px !important;
}

.top_model .part,
body.home-page .top_model .part {
  background: linear-gradient(180deg, #202d34, #1a252c);
}

.part .item .topa,
body.home-page .part .item .topa {
  min-height: 40px;
  border: 1px solid var(--takefu-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.part .item .topa h3,
body.home-page .part .item .topa h3 {
  min-height: auto;
  margin: 0;
  color: var(--takefu-muted);
  font-size: 13px;
  line-height: 40px;
}

.part .item .topa:hover,
body.home-page .part .item .topa:hover {
  background: rgba(123, 189, 205, 0.14);
  border-color: rgba(123, 189, 205, 0.36);
}

.part .item .topa:hover h3 {
  color: var(--takefu-text);
}

body.home-page .takefu-quick-hub-wrap {
  scroll-margin-top: 104px;
  margin: 30px 0 42px;
}

body.home-page .takefu-wide-container {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
}

body.home-page .takefu-quick-hub {
  counter-reset: takefu-hub;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body.home-page .takefu-quick-card {
  counter-increment: takefu-hub;
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 246px;
  padding: 18px;
  border: 1px solid rgba(211, 226, 232, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 86% 0, rgba(114, 166, 150, 0.22), transparent 36%),
    linear-gradient(180deg, #22323b 0%, #17232a 100%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

body.home-page .takefu-quick-card:nth-child(2) {
  background:
    radial-gradient(circle at 86% 0, rgba(123, 189, 205, 0.18), transparent 36%),
    linear-gradient(180deg, #25343d 0%, #17232a 100%);
}

body.home-page .takefu-quick-card:nth-child(3) {
  background:
    radial-gradient(circle at 86% 0, rgba(124, 151, 218, 0.2), transparent 36%),
    linear-gradient(180deg, #22313d 0%, #17232a 100%);
}

body.home-page .takefu-quick-card:nth-child(4) {
  background:
    radial-gradient(circle at 86% 0, rgba(218, 179, 112, 0.18), transparent 36%),
    linear-gradient(180deg, #26333a 0%, #17232a 100%);
}

body.home-page .takefu-quick-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.home-page .takefu-quick-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

body.home-page .takefu-quick-head h2 {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  color: var(--takefu-text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

body.home-page .takefu-quick-head h2::before {
  content: "0" counter(takefu-hub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 28px;
  margin-right: 10px;
  border: 1px solid rgba(123, 189, 205, 0.34);
  border-radius: 10px;
  color: #ffd9c2;
  background: rgba(13, 20, 26, 0.72);
  font-size: 13px;
  font-weight: 800;
}

body.home-page .takefu-quick-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(123, 189, 205, 0.38);
  border-radius: 999px;
  color: #ffd9c2;
  background: rgba(123, 189, 205, 0.12);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

body.home-page .takefu-quick-more:hover {
  color: #fff;
  background: rgba(123, 189, 205, 0.24);
}

body.home-page .takefu-quick-links {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.home-page .takefu-quick-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(211, 226, 232, 0.17);
  border-radius: 999px;
  color: rgba(241, 245, 247, 0.82);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

body.home-page .takefu-quick-link:nth-child(n+16) {
  display: none;
}

body.home-page .takefu-quick-link span {
  overflow: hidden;
  max-width: 100%;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home-page .takefu-quick-link:hover {
  border-color: rgba(123, 189, 205, 0.48);
  color: #fff;
  background: rgba(123, 189, 205, 0.16);
  transform: translateY(-1px);
}

@media (max-width: 1199px) {
  body.home-page .takefu-quick-hub {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.home-page .takefu-quick-hub-wrap {
    margin: 18px 0 24px;
  }

  body.home-page .takefu-wide-container {
    width: min(100% - 18px, 1240px);
  }

  body.home-page .takefu-quick-hub {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.home-page .takefu-quick-card {
    min-height: 0;
    padding: 14px 54px 14px 14px;
    border-radius: 15px;
  }

  body.home-page .takefu-quick-head h2 {
    font-size: 18px;
  }

  body.home-page .takefu-quick-head h2::before {
    width: 34px;
    height: 26px;
    margin-right: 9px;
    font-size: 12px;
  }

  body.home-page .takefu-quick-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  body.home-page .takefu-quick-link {
    min-height: 34px;
    padding: 0 8px;
  }

  body.home-page .takefu-quick-link:nth-child(n+13) {
    display: none;
  }

  body.home-page .takefu-quick-link span {
    font-size: 12px;
  }
}

.pglist {
  padding: 18px 0 4px;
  text-align: center;
}

.pglist a,
.pglist span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  margin: 3px;
  padding: 0 10px;
  border: 1px solid var(--takefu-line);
  border-radius: 999px;
  color: var(--takefu-muted);
  background: rgba(255, 255, 255, 0.04);
}

.pglist a:hover,
.pglist .current {
  border-color: rgba(123, 189, 205, 0.42);
  color: #fff;
  background: rgba(123, 189, 205, 0.16);
}

.footer-copyright {
  margin-top: 28px;
  border-top: 1px solid var(--takefu-line);
  background: #0d141a;
  color: var(--takefu-muted);
}

.footer-copyright a {
  color: #ffd3ba;
}

.footer-nav-buttons #backtop,
.footer-nav-buttons #backbottom,
.footer-nav-buttons .footer-bilibili {
  border: 1px solid var(--takefu-line);
  background: rgba(18, 27, 34, 0.92);
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.footer-nav-buttons {
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--takefu-line);
  border-radius: 999px;
  background: rgba(13, 20, 26, 0.88);
  backdrop-filter: blur(12px);
}

.footer-nav-buttons #backtop,
.footer-nav-buttons #backbottom,
.footer-nav-buttons .footer-bilibili {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  line-height: 42px;
  box-shadow: none;
}

@media (max-width: 900px) {
  .h-fix .container {
    position: relative;
    display: flex;
    align-items: center;
  }

  .header .logo {
    flex: 0 1 168px;
    width: auto;
    margin-right: auto;
  }

  .header .logo a {
    min-width: 0;
    width: 168px;
  }

  .header .nav-bar {
    display: none;
  }

  .header .search {
    position: static;
    margin-left: auto;
  }

  .header .search > .s-btn {
    width: 42px;
    height: 40px;
    border-radius: 999px;
    border-right: 1px solid rgba(16, 24, 32, 0.12);
  }

  #m-btn {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 40px;
    margin-left: 8px;
    padding: 0;
    border: 1px solid rgba(16, 24, 32, 0.12);
    border-radius: 999px;
    background: #e6ede6;
    line-height: 1;
  }

  #m-btn i {
    color: #24333a;
    line-height: 1;
    opacity: 1;
  }

  .m-nav {
    right: 0;
    left: auto;
    width: min(86vw, 360px);
    background: #101820;
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.28);
    transform: translateX(100%);
    transition: transform 0.18s ease;
    z-index: 100000;
  }

  .m-nav.m-open {
    left: auto;
    transform: translateX(0);
  }

  .m-nav .m-wrap {
    padding: 16px;
  }

  .m-nav ul {
    padding: 0;
  }

  .m-nav li a {
    min-height: 46px;
    padding: 0 4px;
    border-bottom: 1px solid rgba(211, 226, 232, 0.12);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    line-height: 46px;
  }

  .m-nav li em[class*="dot"] {
    width: 46px;
    height: 46px;
  }

  .m-nav li em[class*="dot"] .fa {
    width: 46px;
    line-height: 46px;
  }
}

@media (max-width: 520px) {
  .header .logo {
    flex-basis: 150px;
    max-width: calc(100% - 100px);
  }

  .header .logo a {
    width: 150px;
  }

  .footer-nav-buttons {
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
    gap: 6px;
    padding: 5px;
  }

  .footer-nav-buttons #backtop,
  .footer-nav-buttons #backbottom,
  .footer-nav-buttons .footer-bilibili {
    width: 38px;
    height: 38px;
    line-height: 38px;
    font-size: 17px;
  }
}

@media (max-width: 991px) {
  .header {
    height: 58px;
  }

  .header .logo,
  .header .logo a {
    height: 58px;
  }

  .m-btn {
    top: 0;
    height: 58px;
    line-height: 58px;
  }

  .search i.fa {
    line-height: 58px;
  }

  .m-nav {
    background: #101820;
  }

  .m-nav li a {
    color: var(--takefu-text);
  }
}

@media (max-width: 767px) {
  .container {
    width: min(100% - 18px, 1240px);
  }

  .part,
  body.home-page .part,
  body.tool-detail-page .part {
    border-radius: 14px;
  }

  .part .tt,
  body.home-page .part .tt,
  body.tool-detail-page .part .tt {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 16px 14px 10px;
  }

  .part .items,
  body.home-page .part .items,
  body.tool-detail-page .part .items,
  .list_items {
    padding: 12px;
  }

  .part .item .a:not(.topa) img,
  .part .inner_item .a img,
  .part .relateditem .a img,
  body.home-page .part .item .a:not(.topa) img,
  body.home-page .part .art-item .art-a img,
  body.tool-detail-page .tool-related .relateditem img.br {
    height: 132px;
  }

  .part .item h3,
  .part .inner_item h3,
  .part .relateditem h3,
  body.home-page .part .item .a:not(.topa) h3,
  body.home-page .part .art-item h3,
  body.home-page .part .art-item h3 a,
  body.tool-detail-page .tool-related .relateditem h3 {
    min-height: 40px;
    margin: 10px 10px 4px;
    font-size: 14px;
  }

  .part .item p,
  .part .inner_item p,
  .part .relateditem p,
  body.home-page .part .item .a:not(.topa) p,
  body.home-page .part .art-item p,
  body.tool-detail-page .tool-related .relateditem p {
    margin: 0 10px;
    font-size: 12px;
  }
}

@media (min-width: 901px) {
  .h-fix .container {
    display: flex !important;
    align-items: center;
    gap: 18px;
  }

  .header .logo {
    flex: 0 0 180px;
    margin-right: 10px;
  }

  .header .nav-bar {
    float: none;
    flex: 1 1 auto;
    margin-left: 0;
  }

  .header .search {
    position: relative !important;
    display: block !important;
    float: none !important;
    flex: 0 0 248px;
    width: 248px !important;
    margin-left: auto !important;
  }

  .header .search > .s-btn,
  .header .search .s-form .arrow {
    display: none !important;
  }

  .header .search .s-form {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .header .search .s-form .sform {
    display: flex !important;
    align-items: center;
    width: 100%;
    height: 40px;
    overflow: hidden;
    border: 1px solid rgba(20, 30, 36, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
  }

  .header .search .s-form .sform:focus-within {
    border-color: rgba(123, 189, 205, 0.72);
    box-shadow: 0 0 0 4px rgba(123, 189, 205, 0.14);
  }

  .header .search .s-form .sinput {
    flex: 1 1 auto;
    width: 100% !important;
    height: 40px !important;
    padding: 0 14px !important;
    border: 0 !important;
    background: transparent !important;
    color: #223039;
    font-size: 13px;
    line-height: 40px !important;
  }

  .header .search .s-form .sinput::placeholder {
    color: #7d8b93;
  }

  .header .search .s-form button {
    position: static !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px !important;
    height: 40px !important;
    border: 0 !important;
    background: transparent !important;
    color: #2c3a42;
    opacity: 1 !important;
  }

  .header .search .s-form button:hover {
    background: rgba(123, 189, 205, 0.12) !important;
    color: var(--takefu-accent) !important;
  }

  .header .search .s-form button i.fa {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 15px !important;
    line-height: 1 !important;
  }
}

/* 申请收录页（/html/shenqingshoulu/index.html）的提示条：
   style.css 给它硬编码了浅底 rgb(238,238,238)，而本深色主题层只提供了近白字色
   --takefu-text:#f1f5f7 → 近白字压浅灰底，对比度 1.06:1（几乎不可见）。
   此处按深色主题令牌补齐，与相邻 .item 面板保持一致（--takefu-muted 在 --takefu-panel-strong 上约 7.8:1）。
   .page-tips 全站仅用于该页与 template/pc/lists_guestbook.htm。  —— 2026-09-23 */
.page-tips {
  background: var(--takefu-panel-strong);
  border: 1px solid var(--takefu-line);
  color: var(--takefu-muted);
}
