/* Download Page Styles */
.download-content {
  padding: 0;
}

.main > .download-section {
  padding: 120px 0 80px;
  min-height: calc(100vh - 72px);
}

.download-header {
  text-align: center;
  margin-bottom: 60px;
}

.download-title {
  font-size: 48px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.download-description {
  font-size: 20px;
  color: #515154;
  font-weight: 400;
}

.download-content {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.software-list {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  height: fit-content;
}

.software-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 8px;
}

.software-item:last-child {
  margin-bottom: 0;
}

.software-item:hover {
  background: rgba(0, 122, 255, 0.05);
  transform: translateX(2px);
}

.software-item.active {
  background: linear-gradient(
    135deg,
    rgba(0, 122, 255, 0.1),
    rgba(0, 91, 181, 0.15)
  );
  border: 1px solid rgba(0, 122, 255, 0.2);
}

.software-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.software-info {
  flex: 1;
  min-width: 0;
}

.software-name {
  font-size: 18px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 4px 0;
  letter-spacing: -0.02em;
}

.software-desc {
  font-size: 14px;
  color: #515154;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.version-count {
  font-size: 12px;
  color: #86868b;
  font-weight: 500;
}

.version-details {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  height: fit-content;
}

.version-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.selected-software {
  font-size: 32px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.selected-desc {
  font-size: 17px;
  color: #515154;
  margin: 0;
}

.versions-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.version-item {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.2s ease;
}

.version-item:hover {
  border-color: rgba(0, 122, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.version-header-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.version-number {
  font-size: 20px;
  font-weight: 700;
  color: #1d1d1f;
  display: flex;
  align-items: center;
  gap: 8px;
}

.version-tag {
  padding: 4px 12px;
  background: linear-gradient(135deg, #34c759, #30d158);
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.version-date {
  font-size: 14px;
  color: #86868b;
  font-weight: 500;
}

.version-info {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
}

.version-changelog {
  flex: 1;
}

.changelog-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 12px 0;
}

.changelog-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.changelog-item {
  font-size: 14px;
  color: #515154;
  line-height: 1.5;
  margin-bottom: 6px;
  padding-left: 16px;
  position: relative;
}

.changelog-item:before {
  content: "•";
  color: #34c759;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 120px;
}

.download-actions .download-btn {
  padding: 12px 20px;
  background: linear-gradient(135deg, #007aff, #005bb5);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.download-actions .download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.download-actions .download-btn.secondary {
  background: rgba(142, 142, 147, 0.12);
  color: #1d1d1f;
}

.download-actions .download-btn.secondary:hover {
  background: rgba(142, 142, 147, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.file-size {
  font-size: 12px;
  color: #86868b;
  text-align: center;
  margin-top: 4px;
}

/* Download Categories - 四个模块横向居中排列 */
.download-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 40px;
  justify-content: center;
}

.category-card {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 38px 26px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.category-card.active {
  border-color: #34c759;
  background: rgba(52, 199, 89, 0.08);
  box-shadow: 0 4px 16px rgba(52, 199, 89, 0.2);
}

.category-card:nth-child(2).active {
  border-color: #007aff;
  background: rgba(0, 122, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.2);
}

.category-card:nth-child(3).active {
  border-color: #ff9500;
  background: rgba(255, 149, 0, 0.08);
  box-shadow: 0 4px 16px rgba(255, 149, 0, 0.2);
}

.category-card:nth-child(4).active {
  border-color: #af52de;
  background: rgba(175, 82, 222, 0.08);
  box-shadow: 0 4px 16px rgba(175, 82, 222, 0.2);
}

.category-card:nth-child(5).active {
  border-color: #5856d6;
  background: rgba(88, 86, 214, 0.08);
  box-shadow: 0 4px 16px rgba(88, 86, 214, 0.2);
}

.category-icon {
  margin-bottom: 12px;
}

.category-icon svg {
  width: 48px;
  height: 48px;
}

.category-name {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0;
}

/* Software List Section */
.software-list-section {
  max-width: 1200px;
  margin: 0 auto;
}

.software-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Category Description */
.category-description {
  background: linear-gradient(
    135deg,
    rgba(52, 199, 89, 0.08),
    rgba(0, 122, 255, 0.08)
  );
  border: 1px solid rgba(52, 199, 89, 0.2);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 8px;
  backdrop-filter: blur(10px);
}

.category-desc-item {
  font-size: 14px;
  color: #515154;
  line-height: 2;
  padding-left: 20px;
  position: relative;
}

.category-desc-item::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: #34c759;
  font-weight: bold;
  font-size: 16px;
}

.category-desc-paragraph {
  font-size: 18px;
  color: #000000;
  line-height: 1.8;
  margin-bottom: 12px;
  text-indent: 2em;
  font-weight: 4xw00;
}

.category-desc-title {
  font-size: 20px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 12px;
  line-height: 1.6;
}

.category-desc-paragraph.category-desc-guide {
  font-size: 20px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 16px;
  line-height: 1.6;
  text-indent: 0;
}

.category-desc-paragraph:last-child {
  margin-bottom: 0;
}

.software-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
}

.software-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.software-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.software-card-info {
  flex: 1;
}

.software-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 4px;
}

.software-card-subtitle {
  font-size: 14px;
  color: #86868b;
}

.expand-icon {
  color: #86868b;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.software-card.expanded .expand-icon {
  transform: rotate(180deg);
}

.software-card-desc {
  font-size: 15px;
  color: #515154;
  line-height: 1.7;
  margin-top: 16px;
  text-align: justify;
}

.desc-paragraph {
  text-indent: 2em;
  margin: 0 0 12px 0;
  line-height: 1.8;
  font-size: 15px;
  color: #515154;
}

.desc-title {
  font-size: 18px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 16px 0 8px 0;
  line-height: 1.6;
  text-indent: 0;
}

.desc-paragraph-guide {
  font-size: 18px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 16px 0 12px 0;
  line-height: 1.6;
  text-indent: 0;
}

.desc-paragraph:last-child {
  margin-bottom: 0;
}

.software-card-expand-content {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.software-card.expanded .software-card-expand-content {
  display: block;
}

.versions-section {
  background: rgba(248, 250, 252, 0.8);
  border-radius: 12px;
  padding: 20px;
}

.versions-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.version-count-badge {
  font-size: 12px;
  font-weight: 500;
  color: #86868b;
  background: rgba(0, 0, 0, 0.05);
  padding: 4px 10px;
  border-radius: 12px;
}

.software-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #34c759, #30d158);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.software-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 2px;
}

.software-card-version {
  font-size: 12px;
  color: #86868b;
}

.software-card-desc {
  font-size: 18px;
  color: #515154;
  line-height: 1.5;
  margin-bottom: 16px;
  min-height: 40px;
  text-indent: 2em;
}

.software-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 16px;
  background: linear-gradient(135deg, #007aff, #005bb5);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.software-card-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.software-card-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.software-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.software-card-info {
  flex: 1;
}

.software-card-desc-short {
  font-size: 12px;
  color: #86868b;
  margin-top: 2px;
}

.software-card-summary {
  margin-bottom: 8px;
}

.version-count {
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
}

/* 版本列表样式 */
.versions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.version-row {
  background: white;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.version-row.latest {
  border-color: rgba(52, 199, 89, 0.3);
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.05) 0%, white 100%);
}

.version-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.version-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.version-number {
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
}

.version-tag {
  font-size: 10px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #34c759, #30d158);
  color: white;
  border-radius: 10px;
  font-weight: 600;
}

.version-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.version-date {
  font-size: 12px;
  color: #86868b;
}

.version-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #007aff, #005bb5);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.version-download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.version-download-btn.disabled,
.version-download-btn:disabled {
  background: #d1d1d6;
  color: #86868b;
  cursor: not-allowed;
  opacity: 0.6;
}

.version-download-btn.disabled:hover,
.version-download-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

.no-versions {
  text-align: center;
  padding: 20px;
  color: #86868b;
  font-size: 13px;
}

.no-download {
  font-size: 12px;
  color: #86868b;
}

/* 更新日志样式 */
.version-changelog {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

/* 多下载选项样式 */
.version-row.multi-download .version-header-row {
  margin-bottom: 12px;
}

.version-downloads {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 8px;
  margin-bottom: 4px;
}

.download-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.download-option:not(:last-child) {
  border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
  padding-bottom: 12px;
}

.download-label {
  font-size: 14px;
  font-weight: 500;
  color: #515154;
}

@media (max-width: 480px) {
  .version-downloads {
    padding: 10px 12px;
  }

  .download-option {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .download-label {
    font-size: 13px;
  }

  .download-option .version-download-btn {
    width: 100%;
    justify-content: center;
  }
}

.changelog-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.changelog-item {
  font-size: 15px;
  color: #515154;
  line-height: 1.6;
  padding: 4px 0 4px 20px;
  position: relative;
}

.changelog-item::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: #34c759;
  font-weight: bold;
}

/* Download Categories Responsive */
@media (max-width: 1024px) {
  .download-categories {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .category-card {
    padding: 20px 16px;
  }

  .category-icon svg {
    width: 38px;
    height: 38px;
  }

  .category-name {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .download-categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 500px;
  }

  .category-card {
    padding: 24px 16px;
  }

  .category-icon svg {
    width: 40px;
    height: 40px;
  }

  .category-name {
    font-size: 14px;
  }

  .software-card {
    padding: 20px;
  }

  .software-card-title {
    font-size: 18px;
  }

  .software-card-desc {
    font-size: 14px;
  }

  .category-description {
    padding: 16px 20px;
  }

  .category-desc-item {
    font-size: 13px;
    line-height: 1.8;
  }

  .category-desc-paragraph {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 10px;
  }

  .category-desc-title {
    font-size: 16px;
  }

  .category-desc-paragraph.category-desc-guide {
    font-size: 15px;
  }

  .desc-title {
    font-size: 15px;
  }

  .desc-paragraph-guide {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .download-categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 400px;
  }

  .category-card {
    padding: 20px 12px;
  }

  .category-icon svg {
    width: 36px;
    height: 36px;
  }

  .category-icon {
    margin-bottom: 8px;
  }

  .category-name {
    font-size: 13px;
  }

  .software-card {
    padding: 16px;
  }

  .software-card-icon {
    width: 36px;
    height: 36px;
  }

  .software-card-title {
    font-size: 16px;
  }

  .version-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .category-description {
    padding: 14px 16px;
  }

  .category-desc-item {
    font-size: 12px;
    line-height: 1.6;
    padding-left: 16px;
  }

  .category-desc-item::before {
    font-size: 14px;
    left: 4px;
  }

  .category-desc-paragraph {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 8px;
    text-indent: 2em;
  }

  .category-desc-title {
    font-size: 14px;
  }

  .category-desc-paragraph.category-desc-guide {
    font-size: 14px;
  }

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

  .desc-paragraph-guide {
    font-size: 14px;
  }
}

/* 数据与模板简化列表样式 */
.data-list-section {
  padding: 24px 0;
}

.data-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s ease;
}

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

.data-item:hover {
  background: #f8f9fa;
}

.data-name {
  font-size: 16px;
  font-weight: 500;
  color: #1d1d1f;
}

.data-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: linear-gradient(135deg, #34c759, #30d158);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.data-download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
}

.data-download-btn svg {
  width: 14px;
  height: 14px;
}

/* 骨架屏样式 */
.skeleton-software-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
}

.skeleton-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.skeleton-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  flex-shrink: 0;
}

.skeleton-card-content {
  flex: 1;
}

.skeleton-card-title {
  width: 150px;
  height: 20px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 8px;
}

.skeleton-card-subtitle {
  width: 100px;
  height: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

.skeleton-card-desc {
  width: 100%;
  height: 60px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 12px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
