html.is-weixin #page-content {
  display: none !important;
}

html.is-weixin #wechat-browser-tip {
  display: block !important;
}

#wechat-browser-tip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 999999;
  color: #fff;
  text-align: center;
  padding: 20px;
  display: none;
}

#wechat-browser-tip .content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 380px;
}

#wechat-browser-tip .logo {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

#wechat-browser-tip h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #fff;
}

#wechat-browser-tip p {
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

#wechat-browser-tip .arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transform: rotate(90deg);
}

#wechat-browser-tip .steps {
  max-width: 300px;
  margin: 30px auto;
  text-align: left;
}

#wechat-browser-tip .step {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

#wechat-browser-tip .step-number {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  margin-right: 10px;
  font-weight: bold;
  flex-shrink: 0;
}

:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --bg-color: #f9fafb;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --border-color: #e5e7eb;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
}

body {
  background: var(--bg-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: var(--text-color);
}

.search-header {
  background: #fff;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.skeleton {
  position: relative;
  overflow: hidden;
  background-color: #edeff1;
  border-radius: 4px;
}

.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.skeleton-category {
  height: 38px;
  width: 100px;
  display: inline-block;
  margin: 0 8px;
}

.skeleton-card {
  display: flex;
  flex-direction: column;
  height: 200px;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--card-shadow);
}

.skeleton-title {
  height: 18px;
  width: 70%;
  margin-bottom: 12px;
}

.skeleton-desc {
  height: 14px;
  width: 90%;
  margin-bottom: 8px;
}

.skeleton-desc-short {
  height: 14px;
  width: 60%;
  margin-bottom: 18px;
}

.skeleton-tag {
  height: 24px;
  width: 60px;
  display: inline-block;
  margin-right: 8px;
}

.skeleton-stat {
  height: 20px;
  width: 40px;
  display: inline-block;
  margin-left: 16px;
}

.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
  backdrop-filter: blur(3px);
}

.loader-overlay.show {
  visibility: visible;
  opacity: 1;
}

.loader {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(79, 70, 229, 0.2);
  border-left-color: var(--primary-color);
  border-radius: 50%;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.main-container {
  display: flex;
  gap: 24px;
  padding: 24px 0;
}

.category-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 0;
  box-shadow: var(--card-shadow);
}

.category-title {
  padding: 20px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-title .icon {
  color: var(--primary-color);
  font-size: 18px;
}

.category-list {
  list-style: none;
  padding: 12px 16px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-list::-webkit-scrollbar {
  display: none;
}

.category-item,
.category-all {
  margin: 0;
  flex-shrink: 0;
}

.category-item a,
.category-all a {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  color: var(--text-light);
  font-size: 14px;
  border-radius: 20px;
  transition: all 0.2s;
  position: relative;
  font-weight: 400;
  border: 1px solid var(--border-color);
  text-decoration: none;
}

.category-item.active a,
.category-all.active a {
  color: #fff;
  background: var(--primary-color);
  font-weight: 500;
  border-color: var(--primary-color);
}

.category-item a:hover,
.category-all a:hover {
  color: var(--primary-color);
  background: rgba(79, 70, 229, 0.05);
  border-color: rgba(79, 70, 229, 0.2);
}

.category-item.active a:hover,
.category-all.active a:hover {
  color: #444;
}

.content-main {
  flex: 1;
  min-width: 0;
}

.api-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 24px 0;
  width: 100%;
}

.api-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  height: 100%;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.api-title,
.api-desc {
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

.api-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  max-height: 4.8em;
  font-size: 12px;
  color: #666;
  margin: 8px 0;
  line-height: 1.5;
  flex-grow: 1;
}

.api-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: #d1d5db;
}

.api-card:hover::before {
  opacity: 1;
}

.api-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.api-title {
  font-size: 14px;
  font-weight: 400;
  color: #333;
  margin: 0;
  padding-right: 12px;
  flex: 1;
}

.api-price {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fff1f0;
  color: #ff4d4f;
  white-space: nowrap;
  flex-shrink: 0;
}

.api-price.free {
  background: #e6f7ff;
  color: #1890ff;
}

.api-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid #f5f5f5;
  padding-top: 12px;
}

.api-tags {
  display: flex;
  gap: 8px;
}

.api-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: #f5f5f5;
  border-radius: 4px;
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}

.api-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.api-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
}

.api-stat .icon {
  font-size: 14px;
  margin-right: 2px;
  color: var(--text-light);
}

@media (max-width: 1200px) {
  .api-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .api-grid {
    grid-template-columns: 1fr;
  }

  .api-card {
    padding: 12px;
  }

  .api-meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  .api-tags {
    order: 1;
    width: 100%;
  }

  .api-stats {
    order: 2;
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}

.search-placeholder {
  text-align: center;
  padding: 40px;
  color: #94a3b8;
  font-size: 14px;
  background: #fff;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: var(--card-shadow);
}

.link-section {
  margin-top: 24px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

.link-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.link-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.link-grid {
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.link-item {
  padding: 6px 12px;
  background: var(--bg-color);
  border-radius: 4px;
  color: var(--text-light);
  font-size: 13px;
  transition: all 0.2s;
  text-decoration: none;
}

.link-item:hover {
  color: var(--primary-color);
  background: rgba(79, 70, 229, 0.05);
}

@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }

  .category-sidebar {
    width: 100%;
  }

  .api-grid {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }

  .api-card {
    padding: 16px;
  }
}

@media (max-width: 768px) {
  .search-header {
    padding: 12px 0;
  }

  .search-container {
    padding: 0 1rem;
  }

  #searchkw {
    height: 40px;
    font-size: 14px;
  }

  .category-sidebar {
    margin-bottom: 1rem;
  }

  .category-title {
    padding: 1rem;
  }

  .category-item a,
  .category-all a {
    padding: 0.75rem 1rem;
  }

  .api-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .api-card {
    padding: 12px;
  }

  .api-header {
    gap: 8px;
  }

  .api-title {
    font-size: 14px;
  }

  .api-tag {
    padding: 3px 6px;
    font-size: 11px;
  }

  .api-stats {
    padding-top: 8px;
    gap: 8px;
  }

  .api-stat {
    font-size: 11px;
  }

  .link-section {
    margin-top: 1rem;
  }

  .link-header {
    padding: 12px;
  }

  .link-grid {
    padding: 12px;
    gap: 6px;
  }

  .link-item {
    padding: 4px 8px;
    font-size: 12px;
  }
}

@media (max-width: 375px) {
  .api-card {
    padding: 10px;
  }

  .api-title {
    font-size: 13px;
  }

  .api-tag,
  .api-stat {
    font-size: 10px;
  }

  .link-item {
    padding: 3px 6px;
    font-size: 11px;
  }
}

.announcement-bar {
  background-color: #fff8e6;
  border-bottom: 1px solid #ffeac1;
  padding: 8px 0;
  overflow: hidden;
  position: relative;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.announcement-text {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 24px;
  padding-right: 40px;
}

.announcement-text span {
  position: absolute;
  white-space: nowrap;
  color: #d48806;
  font-size: 14px;
  animation: scrollText 28s linear infinite;
  padding-left: 100%;
}

@keyframes scrollText {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

.announcement-btn {
  background: transparent;
  border: none;
  color: #d48806;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.announcement-btn:hover {
  background-color: rgba(212, 136, 6, 0.1);
}

.announcement-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.announcement-modal.show {
  display: flex;
}

.announcement-modal-content {
  background-color: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.announcement-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.announcement-modal-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-color);
  margin: 0;
}

.announcement-modal-close {
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.announcement-modal-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--text-color);
}

.announcement-modal-body {
  padding: 20px;
  color: var(--text-color);
  line-height: 1.6;
}

.announcement-modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}

.announcement-modal-btn {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.announcement-modal-btn:hover {
  background-color: var(--primary-hover);
}

@media (max-width: 768px) {
  .announcement-modal-content {
    width: 95%;
  }

  .announcement-modal-title {
    font-size: 16px;
  }

  .announcement-modal-body {
    padding: 16px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .main-container {
    -webkit-overflow-scrolling: touch;
  }

  .category-sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
  }
}

.api-banner {
  background-color: #4f46e5;
  background-image: url("/template/index/jksite/assets/image/mapxxxx.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.api-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.184 20c.357-.13.72-.264.888-.14 1.854-1.67 3.04-5.49 5.234-2.58C26.4 9.33 31.578 17.13 37.09 12.62c1.92-.14 2.39-5.7 10.398-6.5 5.825-.5 10.26 6.68 17.9 2.98 2.19-1.64 3.69-6 7.88-2.84 3.9 2.94 5.67-1.6 9.5-3.32 2.93-1.3 6.23 5.1 11.02 3.34-1.97-5.41-12.77-18.4-30.92-18.4-11.84 0-23.43 5.8-30.08 12.62-5.3-1.23-8.86-1.92-12.9 3.5-3 3.98-3.66 7.8-8.63 8.1z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 32px;
  position: relative;
  z-index: 2;
}

.banner-box {
  max-width: 600px;
  margin: 0 auto;
}

.banner-icon {
  margin-bottom: 24px;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.icon-plus {
  width: 32px;
  height: 32px;
  object-fit: contain;
  color: #fff;
}

.banner-title {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.banner-desc {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.search-box {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.search-container {
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 4px;
  transition: all 0.3s;
}

.search-container:focus-within {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#searchkw {
  width: 100%;
  height: 48px;
  padding: 0 60px 0 16px;
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s;
  color: var(--text-color);
}

#searchkw:focus {
  border-color: var(--primary-color);
  outline: none;
}

.search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: var(--primary-color);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

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

.api-categories {
  background: #fff;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.category-list {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  list-style: none;
}

.category-item a {
  display: flex;
  align-items: center;
  color: #666;
  font-size: 14px;
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 16px;
  transition: all 0.2s;
}

.category-item.active a {
  background: #f0f7ff;
  color: #1677ff;
  font-weight: 400;
}

@media (max-width: 768px) {
  .api-banner {
    padding: 60px 0;
  }

  .banner-title {
    font-size: 28px;
  }

  .banner-desc {
    font-size: 14px;
    padding: 0 16px;
  }

  #searchkw {
    height: 48px;
    font-size: 14px;
  }

  .search-btn {
    width: 36px;
    height: 36px;
  }

  .category-list {
    gap: 16px;
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .category-item a {
    padding: 6px 12px;
    white-space: nowrap;
  }
}

.api-promotion-tag {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, var(--warning-color) 0%, #ff6b00 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 0 10px;
  border-radius: 0 8px 0 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.api-card:hover .api-promotion-tag {
  background: linear-gradient(135deg, #ff6b00 0%, var(--warning-color) 100%);
}

.api-discontinued-tag {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #9e9e9e 0%, #616161 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 0 10px;
  border-radius: 0 8px 0 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.api-card:hover .api-discontinued-tag {
  background: linear-gradient(135deg, #616161 0%, #9e9e9e 100%);
}
