


:root {
  --yjtuji-bg: #f0f2f5;
  --yjtuji-card-bg: #ffffff;
  --yjtuji-border: #e1e4e8;
  --yjtuji-primary: #0052cc; 
  --yjtuji-text: #4e5969;
  --yjtuji-text-bright: #1d2129;
  --yjtuji-text-muted: #86909c;
  --yjtuji-shadow: 0 4px 12px rgba(0, 82, 204, 0.04);
  --yjtuji-radius: 6px;
  --yjtuji-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}


[data-theme="dark"] {
  --yjtuji-bg: #0b0f19;
  --yjtuji-card-bg: #161e2e;
  --yjtuji-border: #243046;
  --yjtuji-primary: #38bdf8; 
  --yjtuji-text: #94a3b8;
  --yjtuji-text-bright: #f8fafc;
  --yjtuji-text-muted: #64748b;
  --yjtuji-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

html {
  scrollbar-gutter: stable;
  overflow-y: scroll; 
}

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

body {
  background-color: var(--yjtuji-bg);
  color: var(--yjtuji-text);
  font-family: var(--yjtuji-font);
  font-size: 14px;
  line-height: 1.6;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}


.yjtuji-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--yjtuji-card-bg);
  border-bottom: 1px solid var(--yjtuji-border);
  z-index: 1000;
  padding: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}


.yjtuji-navbar-inner {
  max-width: 1600px;
  width: 95%;
  height: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.yjtuji-navbar-left {
  display: flex;
  align-items: center;
  gap: 35px;
  height: 100%;
}


.yjtuji-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.yjtuji-logo:hover {
  transform: translateY(-1px) scale(1.02);
}

.yjtuji-logo img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 2px 8px rgba(0, 82, 204, 0.25));
  transition: filter 0.3s ease;
}

.yjtuji-logo:hover img {
  filter: drop-shadow(0 4px 12px rgba(56, 189, 248, 0.45));
}

.yjtuji-logo span {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.8px;
  background: linear-gradient(135deg, #0052cc 0%, #00a8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 82, 204, 0.12);
  display: inline-block;
  font-family: 'Outfit', 'SF Pro Display', -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  transition: all 0.3s ease;
}

[data-theme="dark"] .yjtuji-logo span {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 12px rgba(56, 189, 248, 0.3);
}

.yjtuji-nav-menu {
  display: flex;
  gap: 8px;
}

.yjtuji-nav-link {
  color: var(--yjtuji-text-bright); 
  font-weight: 700; 
  padding: 6px 14px;
  border-radius: var(--yjtuji-radius);
  font-size: 14px; 
  background: rgba(0, 0, 0, 0.04); 
  border: 1px solid var(--yjtuji-border);
  transition: all 0.2s ease;
}

[data-theme="dark"] .yjtuji-nav-link {
  color: var(--yjtuji-text-bright);
  background: rgba(255, 255, 255, 0.05);
}

.yjtuji-nav-link:hover, .yjtuji-nav-link.active {
  color: var(--yjtuji-primary) !important;
  background: rgba(0, 82, 204, 0.1) !important;
  border-color: rgba(0, 82, 204, 0.3) !important;
  box-shadow: 0 2px 8px rgba(0, 82, 204, 0.12);
}

[data-theme="dark"] .yjtuji-nav-link:hover, [data-theme="dark"] .yjtuji-nav-link.active {
  color: var(--yjtuji-primary) !important;
  background: rgba(56, 189, 248, 0.15) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
}


.yjtuji-navbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  color: var(--yjtuji-text-muted);
}

.yjtuji-navbar-right a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.yjtuji-navbar-right a:hover {
  color: var(--yjtuji-primary);
}


.yjtuji-theme-toggle {
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  color: var(--yjtuji-text);
  font-size: 15px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s;
}

.yjtuji-theme-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--yjtuji-primary);
}

[data-theme="dark"] .yjtuji-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}


.yjtuji-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  color: var(--yjtuji-text);
  font-size: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s;
}

.yjtuji-menu-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--yjtuji-primary);
}

[data-theme="dark"] .yjtuji-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}


.yjtuji-hero {
  margin-top: 60px;
  padding: 24px 0 8px 0;
  background: var(--yjtuji-bg);
  transition: background-color 0.2s ease;
}

.yjtuji-hero-panel {
  max-width: 1600px;
  width: 95%;
  margin: 0 auto;
  padding: 0;
}

.yjtuji-hero-inner-bg {
  background: var(--yjtuji-card-bg);
  border: 1px solid var(--yjtuji-border);
  border-radius: var(--yjtuji-radius);
  padding: 18px;
  box-shadow: var(--yjtuji-shadow);
  display: flex;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.yjtuji-search-box {
  max-width: 480px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.02);
  border: 1.5px solid var(--yjtuji-border);
  border-radius: 4px;
  padding: 1px 2px;
  transition: border-color 0.2s, background-color 0.2s;
}

[data-theme="dark"] .yjtuji-search-box {
  background: rgba(255, 255, 255, 0.02);
}

.yjtuji-search-box:focus-within {
  border-color: var(--yjtuji-primary);
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .yjtuji-search-box:focus-within {
  background: rgba(255, 255, 255, 0.04);
}

.yjtuji-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 7px 14px;
  color: var(--yjtuji-text-bright);
  font-size: 13px;
}

.yjtuji-search-btn {
  background: transparent;
  color: var(--yjtuji-text-muted);
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0 14px;
  font-size: 14px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yjtuji-search-btn:hover {
  color: var(--yjtuji-primary);
}


.yjtuji-container {
  max-width: 1600px;
  width: 95%;
  margin: 18px auto 30px auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}


.yjtuji-content-left, .yjtuji-content-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}


.yjtuji-section-title {
  font-size: 16px;
  color: var(--yjtuji-text-bright);
  border-left: 4px solid var(--yjtuji-primary);
  padding-left: 10px;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 22px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.yjtuji-section-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
}

.yjtuji-section-title-link:hover {
  color: var(--yjtuji-primary);
}


.yjtuji-section-tags {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.yjtuji-section-tag {
  font-size: 11px;
  font-weight: 600;
  background: rgba(0, 82, 204, 0.05);
  color: var(--yjtuji-primary);
  border: 1px solid rgba(0, 82, 204, 0.15);
  padding: 1px 8px;
  border-radius: 12px;
  cursor: pointer; 
  user-select: none;
  transition: all 0.25s ease;
}

[data-theme="dark"] .yjtuji-section-tag {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--yjtuji-primary);
}

.yjtuji-section-tag:hover {
  background: var(--yjtuji-primary);
  color: #ffffff;
  border-color: var(--yjtuji-primary);
}

[data-theme="dark"] .yjtuji-section-tag:hover {
  color: #0b0f19;
}


.yjtuji-section-tag.active {
  background: var(--yjtuji-primary) !important;
  color: #ffffff !important;
  border-color: var(--yjtuji-primary) !important;
}

[data-theme="dark"] .yjtuji-section-tag.active {
  color: #0b0f19 !important;
}


.yjtuji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}

.yjtuji-card {
  position: relative; 
  background: var(--yjtuji-card-bg);
  border: 1px solid var(--yjtuji-border);
  border-radius: var(--yjtuji-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.yjtuji-card:hover {
  transform: translateY(-2px);
  border-color: var(--yjtuji-primary);
  box-shadow: var(--yjtuji-shadow);
}

.yjtuji-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  min-width: 0; 
}

.yjtuji-card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--yjtuji-radius);
  background: rgba(0, 82, 204, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

[data-theme="dark"] .yjtuji-card-icon {
  background: rgba(255, 255, 255, 0.04);
}

.yjtuji-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yjtuji-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--yjtuji-text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; 
  flex: 1;
  min-width: 0;
}

.yjtuji-card-desc {
  font-size: 12px;
  color: var(--yjtuji-text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 38px;
  line-height: 1.5;
}

.yjtuji-card-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.yjtuji-btn {
  flex: 1;
  text-align: center;
  padding: 6px 0;
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.yjtuji-btn-visit {
  background: var(--yjtuji-primary);
  color: #ffffff;
  border: 1px solid var(--yjtuji-primary);
}

[data-theme="dark"] .yjtuji-btn-visit {
  color: #0b0f19;
}

.yjtuji-btn-visit:hover {
  filter: brightness(1.1);
}

.yjtuji-btn-copy {
  background: rgba(0, 0, 0, 0.02);
  color: var(--yjtuji-text);
  border: 1px solid var(--yjtuji-border);
}

[data-theme="dark"] .yjtuji-btn-copy {
  background: rgba(255, 255, 255, 0.03);
}

.yjtuji-btn-copy:hover {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .yjtuji-btn-copy:hover {
  background: rgba(255, 255, 255, 0.06);
}


.yjtuji-widget {
  background: var(--yjtuji-card-bg);
  border: 1px solid var(--yjtuji-border);
  border-radius: var(--yjtuji-radius);
  padding: 16px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.yjtuji-bulletin-list li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--yjtuji-border);
  font-size: 12px;
}

.yjtuji-bulletin-list li:last-child {
  border-bottom: none;
}

.yjtuji-rank-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 12px;
}

.yjtuji-rank-num {
  width: 18px;
  height: 18px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  margin-right: 6px;
  color: var(--yjtuji-text);
}

[data-theme="dark"] .yjtuji-rank-num {
  background: rgba(255, 255, 255, 0.05);
}

.yjtuji-rank-list li:nth-child(1) .yjtuji-rank-num { background: #ef4444; color: #fff; }
.yjtuji-rank-list li:nth-child(2) .yjtuji-rank-num { background: #f97316; color: #fff; }
.yjtuji-rank-list li:nth-child(3) .yjtuji-rank-num { background: #f59e0b; color: #fff; }


.yjtuji-footer {
  border-top: 1px solid var(--yjtuji-border);
  padding: 30px 20px;
  text-align: center;
  color: var(--yjtuji-text-muted);
  font-size: 12px;
  margin-top: 40px;
  transition: border-color 0.2s ease;
}

.yjtuji-footer-links {
  margin-bottom: 10px;
}

.yjtuji-footer-links a {
  margin: 0 8px;
}


.yjtuji-modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .yjtuji-modal-mask {
  background: rgba(0, 0, 0, 0.6);
}

.yjtuji-modal {
  background: var(--yjtuji-card-bg);
  border: 1px solid var(--yjtuji-border);
  border-radius: var(--yjtuji-radius);
  max-width: 420px;
  width: 90%;
  padding: 20px;
  box-shadow: var(--yjtuji-shadow);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.yjtuji-modal-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--yjtuji-text-bright);
  margin-bottom: 10px;
}

.yjtuji-modal-body {
  font-size: 13px;
  color: var(--yjtuji-text);
  margin-bottom: 16px;
  word-break: break-all;
}

.yjtuji-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.yjtuji-modal-btn {
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  border: none;
}

.yjtuji-modal-btn-cancel {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.yjtuji-modal-btn-cancel:hover {
  background: #e2e8f0;
}

[data-theme="dark"] .yjtuji-modal-btn-cancel {
  background: rgba(255, 255, 255, 0.04);
  color: var(--yjtuji-text);
  border: 1px solid var(--yjtuji-border);
}

[data-theme="dark"] .yjtuji-modal-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
}

.yjtuji-modal-btn-confirm {
  background: var(--yjtuji-primary);
  color: #ffffff;
}

[data-theme="dark"] .yjtuji-modal-btn-confirm {
  color: #0b0f19;
}


@media (max-width: 992px) {
  .yjtuji-navbar-inner, .yjtuji-hero-panel, .yjtuji-container {
    width: 90%;
  }
  .yjtuji-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .yjtuji-navbar {
    height: 60px;
  }
  .yjtuji-navbar-inner {
    flex-direction: row;
    height: 100%;
    padding: 0;
    gap: 0;
    width: 95%;
  }
  .yjtuji-navbar-left {
    gap: 0;
    width: auto;
  }
  
  .yjtuji-nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--yjtuji-card-bg);
    border-bottom: 1px solid var(--yjtuji-border);
    flex-direction: column;
    padding: 6px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    gap: 0;
  }
  
  .yjtuji-nav-menu.active {
    display: flex !important;
  }
  
  .yjtuji-nav-link {
    width: 100%;
    padding: 12px 24px;
    border-radius: 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
    display: block;
  }
  
  [data-theme="dark"] .yjtuji-nav-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  }
  
  .yjtuji-navbar-right {
    gap: 10px;
  }
  
  .yjtuji-menu-toggle {
    display: flex;
  }
  
  .yjtuji-hero {
    margin-top: 60px;
  }
  .yjtuji-hero-panel {
    width: 95%;
  }
  .yjtuji-hero-inner-bg {
    padding: 12px;
  }
  .yjtuji-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  .yjtuji-card {
    padding: 12px;
  }
  .yjtuji-card-top {
    gap: 8px;
  }
  .yjtuji-card-name {
    font-size: 13px;
  }
  .yjtuji-card-desc {
    font-size: 11px;
    height: 34px;
    margin-bottom: 8px;
  }
  .yjtuji-btn {
    padding: 5px 0;
    font-size: 10px;
  }
}




@media (min-width: 768px) {
  .yjtuji-grid.collapsed .yjtuji-card:nth-child(n+26) {
    display: none !important;
  }
  
  .yjtuji-section:not(:has(.yjtuji-card:nth-child(26))) .yjtuji-more-btn {
    display: none !important;
  }
}


@media (max-width: 767.98px) {
  .yjtuji-grid.collapsed .yjtuji-card:nth-child(n+11) {
    display: none !important;
  }
  
  .yjtuji-section:not(:has(.yjtuji-card:nth-child(11))) .yjtuji-more-btn {
    display: none !important;
  }

  
  .yjtuji-mobile-hide-hot {
    display: none !important;
  }

  
  .yjtuji-section-title {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
  }

  .yjtuji-section-tags {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 2px;
    flex: 1;
    min-width: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .yjtuji-section-tags::-webkit-scrollbar {
    display: none;
  }

  .yjtuji-section-tag {
    flex-shrink: 0;
  }

  
  .yjtuji-card-actions {
    gap: 6px;
  }

  .yjtuji-btn {
    padding: 7px 0;
    font-size: 11px;
  }

  .yjtuji-btn-visit {
    font-weight: 600;
  }
}


.yjtuji-more-btn {
  margin-left: auto;
  order: 99; 
  font-size: 12px;
  font-weight: 600;
  color: var(--yjtuji-primary);
  background: rgba(0, 82, 204, 0.06);
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  text-decoration: none !important;
  user-select: none;
}

.yjtuji-more-btn:hover {
  background: rgba(0, 82, 204, 0.12);
  transform: translateY(-1px);
}

.yjtuji-more-btn i {
  font-size: 11px;
  transition: transform 0.2s ease;
}


.yjtuji-status-flash {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #94a3b8; 
  background: rgba(148, 163, 184, 0.08);
  transition: all 0.25s ease;
  z-index: 10;
  cursor: help;
}


.yjtuji-status-flash i {
  animation: yjtujiPulse 1.2s infinite ease-in-out;
}

@keyframes yjtujiPulse {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}


.yjtuji-status-flash.status-ok {
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.12) !important;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.2);
}
.yjtuji-status-flash.status-ok i {
  animation: none !important;
}


.yjtuji-status-flash.status-error {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.12) !important;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.2);
}
.yjtuji-status-flash.status-error i {
  animation: none !important;
}


