/* ==========
   Global Reset
========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  background: #05060a;
  color: #f5f5f7;
  -webkit-font-smoothing: antialiased;
}

/* ==========
   Layout
========== */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

main {
  flex: 1;
  padding: 24px 0 40px;
}

/* ==========
   Header
========== */
.header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at top, rgba(74, 107, 255, 0.18), transparent 55%), #05060a;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 20%, #ffffff, #4a6bff);
  box-shadow: 0 0 24px rgba(74, 107, 255, 0.7);
}

.brand-text-main {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.brand-text-sub {
  font-size: 11px;
  opacity: 0.7;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  font-size: 14px;
  text-decoration: none;
  color: #e5e7eb;
  opacity: 0.9;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  opacity: 1;
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Small search in header */
.header-search {
  position: relative;
}

.header-search input {
  width: 160px;
  padding: 6px 26px 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  font-size: 12px;
  outline: none;
}

.header-search input::placeholder {
  color: #6b7280;
  font-size: 12px;
}

.header-search-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0.6;
}

/* ==========
   Buttons
========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #4a6bff, #7b5cff);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(74, 107, 255, 0.6);
}

.btn-primary:hover {
  box-shadow: 0 0 26px rgba(74, 107, 255, 0.9);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

.btn-outline:hover {
  border-color: #4a6bff;
  color: #ffffff;
}

/* Small buttons */
.btn-xs {
  padding: 4px 10px;
  font-size: 11px;
}

/* ==========
   Hero Section（首页）
========== */
.hero {
  padding: 28px 0 10px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 11px;
  color: #e5e7eb;
  margin-bottom: 8px;
}

.hero-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.hero-title {
  font-size: 32px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-title span {
  background: linear-gradient(135deg, #4a6bff, #7b5cff);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 14px;
  color: #9ca3af;
  max-width: 480px;
}

.hero-subtitle-cn {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

/* Hero search block */
.hero-search-block {
  margin-top: 16px;
  padding: 12px 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top left, rgba(74, 107, 255, 0.2), transparent 60%),
              rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-search-input-wrap {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.hero-search-input-wrap input {
  width: 100%;
  padding: 10px 34px 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  outline: none;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 13px;
}

.hero-search-input-wrap input::placeholder {
  color: #6b7280;
}

.hero-search-input-wrap .hero-search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.7;
}

/* Sort controls */
.sort-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
}

.sort-label {
  font-size: 12px;
  color: #9ca3af;
}

.sort-select {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 12px;
}

/* Hero side panel */
.hero-panel {
  border-radius: 18px;
  padding: 14px 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top, rgba(74, 107, 255, 0.25), transparent 60%),
              rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 30px rgba(15, 23, 42, 0.8);
}

.hero-panel-title {
  font-size: 13px;
  color: #e5e7eb;
  margin-bottom: 6px;
}

.hero-panel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-panel-list li {
  font-size: 12px;
  color: #9ca3af;
}

/* ==========
   Cards List
========== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 15px;
  font-weight: 500;
}

.section-subtitle {
  font-size: 12px;
  color: #6b7280;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.app-card {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: linear-gradient(140deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.app-card:hover {
  border-color: #4a6bff;
  box-shadow: 0 0 24px rgba(74, 107, 255, 0.4);
  transform: translateY(-1px);
}

.app-card-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #9ca3af;
  width: fit-content;
}

.app-card-title {
  font-size: 14px;
  font-weight: 500;
}

.app-card-desc {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.4;
}

.app-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  color: #9ca3af;
}

.app-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag-pill {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.9);
  font-size: 10px;
}

/* ==========
   Upload Page
========== */
.page-title {
  font-size: 22px;
  margin-bottom: 6px;
}

.page-subtitle {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 20px;
}

.form-card {
  max-width: 640px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.95);
  padding: 18px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  color: #e5e7eb;
}

.form-label span {
  color: #f97316;
}

.form-help {
  font-size: 11px;
  color: #6b7280;
}

input[type="text"],
textarea {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

input[type="file"] {
  font-size: 12px;
  color: #e5e7eb;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.form-badge {
  font-size: 11px;
  color: #6b7280;
}

/* ==========
   Detail Page
========== */
.detail-header {
  margin-bottom: 14px;
}

.detail-tagline {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 4px;
}

.detail-title {
  font-size: 22px;
  margin-bottom: 6px;
}

.detail-meta {
  font-size: 12px;
  color: #9ca3af;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.detail-card {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.96);
  padding: 14px 12px;
  font-size: 13px;
  color: #e5e7eb;
}

.detail-card h3 {
  font-size: 13px;
  margin-bottom: 6px;
}

.detail-card p {
  font-size: 12px;
  color: #9ca3af;
}

/* ==========
   Footer
========== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #020308;
}

.footer-inner {
  padding: 16px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #6b7280;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-cn {
  font-size: 11px;
  color: #4b5563;
}

/* ==========
   Responsive
========== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    display: none; /* 小屏幕可以先隐藏导航，需要再做菜单的话后面补 */
  }

  .hero-title {
    font-size: 26px;
  }

  .app-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* 在 Responsive 之前，加上这一段全局样式 */
.aipp-values-panel {
  border-radius: 18px;
  padding: 14px 14px 16px;
  border: 1px solid rgba(148,163,184,0.5);
  background: radial-gradient(circle at top, rgba(74,107,255,0.20), transparent 60%),
              rgba(15,23,42,0.9);
  box-shadow: 0 0 30px rgba(15,23,42,0.8);
  margin-top: 18px;
}

.aipp-values-panel h3 {
  font-size: 13px;
  color: #e5e7eb;
  margin-bottom: 6px;
}

.aipp-values-panel p {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.5;
  margin-bottom: 10px;
}
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

