/* ============================================
   店伙计 - 客户端下载页
   基础变量、导航与页脚样式复用 home.css
   ============================================ */

.navbar-links a.is-active {
  color: var(--neutral-900);
  font-weight: 600;
}

/* --- Hero --- */
.apps-hero {
  position: relative;
  overflow: hidden;
  padding: 148px 0 56px;
  background: linear-gradient(180deg, var(--teal-50) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--neutral-100);
}

.apps-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.apps-hero-blob-1,
.apps-hero-blob-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.apps-hero-blob-1 {
  width: 420px;
  height: 420px;
  top: -180px;
  right: -80px;
  background: rgba(20, 184, 166, 0.18);
}

.apps-hero-blob-2 {
  width: 320px;
  height: 320px;
  bottom: -200px;
  left: -60px;
  background: rgba(245, 158, 11, 0.14);
}

.apps-hero-inner {
  position: relative;
  max-width: 720px;
}

.apps-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--teal-200);
  color: var(--teal-700);
  font-size: 13px;
  font-weight: 500;
}

.apps-hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-500);
}

.apps-hero-title {
  margin-top: 20px;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--neutral-900);
}

.apps-hero-desc {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--neutral-600);
}

.apps-hero-tips {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--neutral-500);
}

.apps-hero-dot {
  color: var(--neutral-300);
}

/* --- List --- */
.apps-list {
  padding: 48px 0 96px;
  background: var(--neutral-50);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.app-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.app-card-empty {
  justify-content: center;
}

.app-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.app-logo {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.app-card[data-color="teal"] .app-logo   { background: #f0fdfa; color: #0d9488; }
.app-card[data-color="orange"] .app-logo { background: #fff7ed; color: #ea580c; }
.app-card[data-color="violet"] .app-logo { background: #f5f3ff; color: #7c3aed; }
.app-card[data-color="blue"] .app-logo   { background: #eff6ff; color: #2563eb; }

.app-head-text {
  flex: 1 1 auto;
  min-width: 0;
}

.app-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--neutral-900);
}

.app-tagline {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--neutral-500);
}

.app-platform {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--neutral-100);
  color: var(--neutral-600);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.app-platform[data-platform="windows"] {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1d4ed8;
  font-weight: 600;
}

.app-latest {
  padding-top: 2px;
}

.app-version-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-version {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--neutral-900);
}

.app-tag-latest {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  color: var(--teal-700);
  font-size: 11px;
  font-weight: 600;
}

.app-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--neutral-500);
}

.app-meta-dot {
  color: var(--neutral-300);
}

.app-changelog {
  padding: 14px 16px;
  background: var(--neutral-50);
  border-radius: var(--radius-lg);
}

.app-changelog-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--neutral-500);
}

.app-changelog-list {
  margin-top: 10px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.app-changelog-list li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--neutral-700);
}

.app-changelog-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-400);
}

.app-actions {
  margin-top: auto;
  display: flex;
}

.app-download {
  width: 100%;
}

.app-download.is-disabled,
.app-history-download.is-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-400);
  font-size: 13px;
}

.app-empty-note {
  font-size: 13px;
  color: var(--neutral-400);
}

/* --- Upcoming card（已规划、尚未开放下载的平台） --- */
.app-card-upcoming {
  border-style: dashed;
  box-shadow: none;
  background: linear-gradient(180deg, #ffffff 0%, var(--neutral-50) 100%);
}

.app-card-upcoming:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.app-tag-planning {
  padding: 3px 9px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 600;
}

.app-upcoming-headline {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--neutral-900);
}

.app-upcoming-req {
  margin-top: 8px;
  font-size: 13px;
  color: var(--neutral-500);
}

.app-upcoming-list {
  margin-top: 14px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-upcoming-list li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--neutral-700);
}

.app-upcoming-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #93c5fd;
}

.app-upcoming-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--neutral-400);
}

.app-download.is-upcoming {
  width: 100%;
  padding: 12px 32px;
  border: 1px dashed var(--neutral-300);
  border-radius: var(--radius-lg);
  background: #ffffff;
  color: var(--neutral-400);
  font-size: 16px;
  font-weight: 600;
  cursor: not-allowed;
}

/* --- History --- */
.app-history {
  border-top: 1px solid var(--neutral-100);
  padding-top: 14px;
}

.app-history summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--neutral-600);
  list-style: none;
}

.app-history summary::-webkit-details-marker {
  display: none;
}

.app-history summary::after {
  content: "▾";
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.2s ease;
  color: var(--neutral-400);
}

.app-history[open] summary::after {
  transform: rotate(180deg);
}

.app-history summary:hover {
  color: var(--neutral-900);
}

.app-history-list {
  margin-top: 12px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--neutral-100);
  font-size: 13px;
}

.app-history-item:last-child {
  border-bottom: none;
}

.app-history-version {
  flex: 0 0 auto;
  font-weight: 600;
  color: var(--neutral-800);
}

.app-history-meta {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--neutral-500);
  font-size: 12px;
}

.app-history-download {
  flex: 0 0 auto;
  color: var(--teal-700);
  font-weight: 500;
}

.app-history-download:hover {
  color: var(--teal-800);
  text-decoration: underline;
}

/* --- Install guide --- */
.apps-guide {
  margin-top: 56px;
  padding: 36px 40px 40px;
  background: #ffffff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
}

.apps-guide-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--neutral-900);
}

.apps-guide-block + .apps-guide-block {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--neutral-100);
}

.apps-guide-subtitle {
  font-size: 15px;
  font-weight: 600;
  color: var(--neutral-800);
}

.apps-guide-block .apps-guide-grid {
  margin-top: 18px;
}

.apps-guide-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.apps-guide-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.apps-guide-item h3 {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--neutral-900);
}

.apps-guide-item p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--neutral-600);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .apps-hero {
    padding: 120px 0 40px;
  }

  .apps-hero-title {
    font-size: 32px;
  }

  .apps-grid,
  .apps-guide-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .apps-guide {
    margin-top: 40px;
    padding: 28px 22px 32px;
  }
}
