:root {
  --bg: #f4f6f8;
  --card: #fff;
  --text: #1a1a1a;
  --muted: #666;
  --accent: #2563eb;
  --accent-visited: #7c3aed;
  --ok: #16a34a;
  --border: #e5e7eb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 1rem; }
header { margin-bottom: 1rem; }
header h1 { margin: 0 0 0.65rem; }
.site-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}
.site-header-row h1 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.tutorial-link-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 55%, #dc2626 100%);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.tutorial-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.5);
  filter: brightness(1.05);
}
.tutorial-link-btn:active {
  transform: translateY(0);
}
.product-topbar .tutorial-link-btn {
  margin-left: auto;
}
.breadcrumb-bar {
  margin: 0 0 0.85rem;
}
.breadcrumb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  width: 100%;
  max-width: 100%;
  flex-wrap: wrap;
}
.breadcrumb-bar .breadcrumb-row,
.wrap > .breadcrumb-row {
  margin: 0 0 0.85rem;
}
.breadcrumb-row .breadcrumb {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.breadcrumb-back-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  color: #334155;
  text-decoration: none;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.breadcrumb-back-btn:hover {
  color: var(--accent);
  border-color: #93c5fd;
  background: #eff6ff;
  text-decoration: none;
}
.site-home-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
.site-home-link:hover {
  color: var(--accent);
}
.flow-steps-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0;
  flex-wrap: wrap;
}
.flow-steps-label {
  flex-shrink: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  line-height: 1.2;
}
.flow-steps {
  display: flex;
  flex: 1 1 100%;
  min-width: 0;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.35rem;
}
.flow-step {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.flow-step-1 { background: #eff6ff; border-color: #bfdbfe; }
.flow-step-2 { background: #f0fdf4; border-color: #bbf7d0; }
.flow-step-3 { background: #fff7ed; border-color: #fed7aa; }
.flow-step-4 { background: #faf5ff; border-color: #e9d5ff; }
.flow-step-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: #dc2626;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.35);
}
.flow-step-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  white-space: nowrap;
}
.flow-step-arrow {
  flex: 0 0 auto;
  align-self: center;
  color: #64748b;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  padding: 0 0.15rem;
  user-select: none;
}
.product-download .flow-steps-wrap {
  margin-bottom: 1rem;
  padding: 0.85rem;
  background: #f1f5f9;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.product-download .flow-steps-wrap .flow-steps {
  margin: 0;
}
@media (max-width: 640px) {
  .flow-step-arrow { font-size: 1.2rem; }
}
header a { color: var(--accent); text-decoration: none; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
input[type="text"], input[type="password"], select {
  width: 100%;
  max-width: 360px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.search-form-label {
  display: block;
  margin-bottom: 0.65rem;
  font-weight: 600;
}
.search-form-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}
.search-form .search-form-input {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: none;
  height: 2.5rem;
  margin: 0;
  padding: 0.5rem 0.75rem;
  line-height: 1.4;
  box-sizing: border-box;
}
.search-form-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
}
.search-form-actions button,
.search-form-actions .btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 4.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0.5rem 0.85rem;
  white-space: nowrap;
  box-sizing: border-box;
}
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
}
table.admin {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.admin th,
table.admin td {
  border-bottom: 1px solid var(--border);
  padding: 8px;
  text-align: left;
  vertical-align: top;
}
.login-card {
  max-width: 400px;
  margin: 3rem auto;
}
textarea {
  max-width: 100%;
}
button, .btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}
.btn-secondary { background: #64748b; }
.btn-free { background: var(--ok); }
.platform-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0; }
.platform-tabs label {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}
.platform-tabs input { display: none; }
.platform-tabs input:checked + span { font-weight: 600; }
.platform-tabs label:has(input:checked) {
  border-color: var(--accent);
  background: #eff6ff;
}
.msg { padding: 0.75rem; border-radius: 6px; margin: 0.75rem 0; }
.msg-ok { background: #dcfce7; color: #166534; }
.msg-err { background: #fee2e2; color: #991b1b; }
#dl-redeem { scroll-margin-top: 4.5rem; }
.dl-verified-msg { margin: 0.35rem 0 0.75rem; font-size: 0.95rem; }
.is-hidden { display: none !important; }

body.dl-modal-open { overflow: hidden; }
.dl-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}
.dl-modal.is-hidden { display: none !important; }
.dl-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.dl-modal-panel {
  position: relative;
  width: 100%;
  max-width: 22rem;
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.35rem 1.1rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  text-align: center;
}
.dl-modal.is-ok .dl-modal-panel { border-top: 4px solid #16a34a; }
.dl-modal.is-err .dl-modal-panel { border-top: 4px solid #dc2626; }
.dl-modal-title {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  color: #0f172a;
}
.dl-modal.is-ok .dl-modal-title { color: #166534; }
.dl-modal.is-err .dl-modal-title { color: #991b1b; }
.dl-modal-msg {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #334155;
}
.dl-modal-btn {
  width: 100%;
  max-width: 14rem;
  margin: 0 auto;
}
.muted { color: var(--muted); font-size: 0.9rem; }
.card > h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 1rem;
}
.card-subtitle {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #64748b;
}
.breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 1rem;
  padding: 0.6rem 0.85rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.breadcrumb-sep {
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.88rem;
  user-select: none;
}
.breadcrumb-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  padding: 0.05rem 0.1rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.breadcrumb-link:hover {
  color: #ea580c;
  background: #fff7ed;
  text-decoration: none;
}
.card .breadcrumb + h2 {
  margin-top: 0;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.65rem;
  margin-top: 1.35rem;
  padding: 1.1rem 0.75rem 0.25rem;
  border-top: 2px solid #e2e8f0;
}
.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.85rem;
  min-height: 2.65rem;
  padding: 0.55rem 0.95rem;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.2;
  border-radius: 8px;
  border: 2px solid #94a3b8;
  background: #fff;
  color: #1e293b;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
  cursor: pointer;
}
a.pagination-btn:hover {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
  transform: translateY(-1px);
}
.pagination-btn.is-active {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  border-color: #1d4ed8;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  cursor: default;
}
.pagination-btn.is-disabled {
  opacity: 0.42;
  box-shadow: none;
  cursor: not-allowed;
}
.pagination-prev,
.pagination-next {
  min-width: 6.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  background: #f8fafc;
}
a.pagination-prev:hover,
a.pagination-next:hover {
  background: #eff6ff;
}
.pagination-ellipsis {
  min-width: 1.5rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #94a3b8;
  user-select: none;
}
@media (max-width: 520px) {
  .pagination-prev,
  .pagination-next {
    min-width: 5.5rem;
    font-size: 0.95rem;
  }
  .pagination-btn {
    min-width: 2.5rem;
    min-height: 2.45rem;
    padding: 0.5rem 0.75rem;
  }
}
ul.brand-list { list-style: none; padding: 0; }
ul.brand-list li { padding: 0.35rem 0; border-bottom: 1px solid var(--border); }
ul.brand-list a { color: inherit; text-decoration: none; }
.list-stack {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.list-stack-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
@media (max-width: 640px) {
  .list-stack-2col {
    grid-template-columns: 1fr;
  }
}
.list-item {
  margin: 0;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s, transform 0.1s;
}
.list-item:hover {
  background: #fff;
  border-color: #93c5fd;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}
.list-item-link {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.list-item-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.list-item-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
}
.list-item-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
}
.list-item-product .list-item-title {
  color: var(--accent);
}
.list-stack .list-item-link:visited .list-item-title {
  color: var(--accent-visited);
}
.list-item-product:hover .list-item-title {
  color: #ea580c;
}
.list-item-brand {
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  padding: 0.12rem 0.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
}
.list-item-count {
  flex-shrink: 0;
  min-width: 2rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #2563eb;
  text-align: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
}
.list-item-arrow {
  flex-shrink: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: #94a3b8;
  transition: color 0.15s, transform 0.15s;
}
.list-item:hover .list-item-arrow {
  color: var(--accent);
  transform: translateX(2px);
}
.list-stack .list-item-link:visited .list-item-arrow {
  color: #a78bfa;
}
.list-item-sub {
  display: block;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-item-snippet {
  display: block;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-item-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.list-item-search .list-item-link {
  align-items: flex-start;
  padding: 0.95rem 1rem;
}
.list-item-search .list-item-arrow {
  margin-top: 0.15rem;
}
.search-results { border-color: #2563eb; box-shadow: 0 0 0 1px #2563eb20; }
span.badge-dl {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}
span.badge-dl.badge-pc {
  background-color: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}
span.badge-dl.badge-android {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}
span.badge-dl.badge-ios {
  background-color: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #d8b4fe;
}
.product-content img { max-width: 100%; height: auto; }
.product-content img.product-main-img { max-width: 640px; display: block; margin: 0.75rem 0; }
.product-content .product-platform-line {
  display: inline-block;
  margin: 0 0 0.35rem;
  color: #dc2626;
  font-weight: 700;
  line-height: 1.55;
}
.product-content .product-platform-line strong {
  color: inherit;
  font-weight: inherit;
}
.product-detail h1 { font-size: 1.25rem; line-height: 1.45; margin: 0 0 0.5rem; }
.product-meta { margin: 0 0 1rem; }
.product-download h2 { font-size: 1.1rem; margin: 0 0 0.75rem; }
.product-download .dl-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 1rem;
}
.dl-multi-platform-note {
  margin: -0.35rem 0 1rem;
  font-size: 0.95rem;
}
.dl-section-divider {
  margin: 1.25rem 0;
  border: none;
  border-top: 1px solid #e5e7eb;
}
.dl-apple-inline { margin-bottom: 0.25rem; }
.dl-apple-inline .dl-section-title { margin-bottom: 0.5rem; }
.dl-steps-box {
  margin-top: 0.5rem;
  padding: 1.15rem 1.2rem;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
.dl-step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem 1.15rem;
  padding: 1.1rem 0;
}
.dl-step-item-files .dl-step-content {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}
.dl-file-list-wrap {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}
.dl-step-item + .dl-step-item {
  border-top: 1px dashed #cbd5e1;
}
.dl-step-item:first-child { padding-top: 0.25rem; }
.dl-step-item:last-child { padding-bottom: 0.25rem; }
.dl-step-num-lg {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  background: #dc2626;
  color: #fff;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
}
.dl-step-content {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}
.dl-step-title {
  margin: 0 0 0.45rem;
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}
.dl-step-desc {
  margin: 0 0 0.85rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #475569;
}
.dl-step-note {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
}
.dl-taobao-btn {
  background: #ea580c;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.6rem 1.15rem;
}
.dl-taobao-btn:hover { filter: brightness(1.06); }
.dl-file-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0;
  width: max-content;
  max-width: 100%;
}
.dl-file-list-locked .dl-file-card {
  opacity: 0.72;
}
.dl-file-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: flex-start;
  gap: 0;
  width: 100%;
  max-width: 22rem;
  height: auto;
  padding: 0.75rem 0.9rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-sizing: border-box;
}
.dl-file-card-main {
  display: flex;
  align-items: center;
  gap: 0.85rem 1rem;
  width: 100%;
}
.dl-file-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
  width: 100%;
}
.dl-btn-copy {
  width: 100%;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  background: #fff;
  color: #1e40af;
  border: 1px solid #93c5fd;
}
.dl-btn-copy:hover { background: #eff6ff; }
.dl-btn-download {
  width: 100%;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.65rem 0.75rem;
  text-align: center;
}
.dl-file-card-pending { opacity: 0.82; }
.dl-file-icon {
  position: relative;
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}
.dl-file-icon svg { width: 2.35rem; height: 2.35rem; }
.dl-file-icon-archive { background: #fffbeb; border-color: #fde68a; color: #d97706; }
.dl-file-icon-exe { background: #eff6ff; border-color: #bfdbfe; color: #2563eb; }
.dl-file-icon-apk { background: #f0fdf4; border-color: #bbf7d0; color: #16a34a; }
.dl-file-icon-apple { background: #faf5ff; border-color: #e9d5ff; color: #9333ea; }
.dl-file-icon-file { background: #f1f5f9; border-color: #cbd5e1; color: #475569; }
.dl-file-ext-tag {
  position: absolute;
  right: -0.35rem;
  bottom: -0.35rem;
  min-width: 2rem;
  padding: 0.1rem 0.35rem;
  background: #0f172a;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  border-radius: 4px;
  line-height: 1.35;
}
.dl-file-body {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  white-space: normal;
}
.dl-file-name {
  white-space: nowrap;
}
.dl-file-meta {
  white-space: nowrap;
}
.dl-file-platform {
  margin-top: 0.4rem;
  line-height: 1.4;
}
.dl-file-platform .badge-dl {
  font-size: 0.72rem;
}
.dl-file-name {
  font-size: 1.12rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.3rem;
}
.dl-file-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.98rem;
  color: #475569;
}
.dl-file-size {
  font-weight: 700;
  color: #1e293b;
  font-size: 1.02rem;
}
.dl-file-status {
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #64748b;
}
.dl-file-status.is-ready {
  background: #dcfce7;
  color: #15803d;
}
.dl-file-pwd {
  margin-top: 0.45rem;
  font-size: 0.95rem;
  color: #475569;
}
.dl-file-pwd strong {
  color: #0f172a;
  font-size: 1rem;
  letter-spacing: 0.03em;
}
.dl-code-form { margin: 0; }
.dl-code-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
}
.dl-code-input {
  flex: 1 1 14rem;
  min-width: min(100%, 14rem);
  max-width: none;
  width: auto;
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  border: 2px solid #93c5fd;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dl-code-input::placeholder {
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #94a3b8;
}
.dl-code-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.dl-code-submit {
  flex-shrink: 0;
  padding: 0.85rem 1.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}
.dl-code-submit:hover { filter: brightness(1.05); }
.dl-verified-msg {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.25rem 0 0;
}
.dl-empty {
  font-size: 1rem;
  color: #64748b;
  margin: 0.25rem 0 0;
}
@media (max-width: 560px) {
  .dl-steps-box { padding: 1rem; }
  .dl-step-num-lg {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.35rem;
  }
  .dl-file-actions .dl-btn-copy,
  .dl-file-actions .dl-btn-download {
    text-align: center;
  }
  .dl-code-submit { width: 100%; }
}
.product-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}
.product-topbar-back {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  color: var(--accent);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.product-topbar-back:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  text-decoration: none;
}
.product-topbar-search {
  flex: 1 1 16rem;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.product-topbar-search input[type="search"],
.product-topbar-search input[type="text"] {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: none;
  height: 2.5rem;
  margin: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.product-topbar-search input[type="search"]:focus,
.product-topbar-search input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}
.product-topbar-search input[type="search"]::placeholder {
  color: #94a3b8;
}
.product-topbar-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.product-topbar-search button {
  flex: 0 0 auto;
  width: auto;
  min-width: 4.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0.5rem 0.85rem;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}
.product-topbar-search button:hover {
  filter: brightness(1.05);
}
@media (max-width: 520px) {
  .product-topbar {
    flex-wrap: wrap;
  }
  .product-topbar-back {
    flex: 0 0 auto;
    width: auto;
  }
  .product-topbar-search {
    flex: 1 1 12rem;
    min-width: 0;
  }
}
.apple-box {
  border: 1px dashed var(--ok);
  background: #f0fdf4;
  padding: 1rem;
  border-radius: 8px;
}

/* ===== 手机 / 小屏适配 ===== */
@media (max-width: 768px) {
  html {
    -webkit-text-size-adjust: 100%;
  }
  body {
    font-size: 15px;
  }
  .wrap {
    padding: 0.7rem;
    padding-left: max(0.7rem, env(safe-area-inset-left));
    padding-right: max(0.7rem, env(safe-area-inset-right));
    padding-bottom: max(0.85rem, env(safe-area-inset-bottom));
  }
  header h1 {
    font-size: 1.28rem;
    line-height: 1.35;
  }
  .site-header-row {
    align-items: flex-start;
  }
  .tutorial-link-btn {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
  }
  .product-topbar .tutorial-link-btn {
    flex: 0 0 auto;
    width: 100%;
    margin-left: 0;
    margin-top: 0.25rem;
  }
  .card {
    padding: 0.95rem;
    margin-bottom: 0.85rem;
  }
  .card > h2 {
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
  }
  .breadcrumb {
    padding: 0.5rem 0.7rem;
    font-size: 0.85rem;
  }
  .breadcrumb-back-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }
  .search-form .search-form-input,
  .search-form-actions button,
  .search-form-actions .btn {
    height: 2.5rem;
    font-size: 16px;
  }
  .flow-steps-wrap {
    align-items: flex-start;
    gap: 0.5rem;
  }
  .flow-steps-label {
    width: 100%;
    font-size: 1rem;
  }
  .flow-steps {
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
    gap: 0.35rem 0.3rem;
    overflow: visible;
    padding-bottom: 0;
  }
  .flow-step {
    flex: 0 1 auto;
    max-width: 100%;
    padding: 0.45rem 0.55rem;
    gap: 0.35rem;
  }
  .flow-step-num {
    width: 1.45rem;
    height: 1.45rem;
    font-size: 0.78rem;
    border-radius: 6px;
  }
  .flow-step-text {
    font-size: 0.72rem;
    white-space: nowrap;
  }
  .flow-step-arrow {
    display: inline-block;
    flex-shrink: 0;
    font-size: 0.95rem;
    padding: 0 0.05rem;
  }
  input[type="text"],
  input[type="password"],
  input[type="search"],
  select,
  .product-topbar-search input,
  .dl-code-input {
    font-size: 16px;
  }
  button,
  .btn {
    min-height: 2.5rem;
  }
  .list-item-link {
    padding: 0.8rem 0.85rem;
    gap: 0.65rem;
  }
  .list-item-title {
    font-size: 0.98rem;
  }
  .list-item-sub,
  .list-item-snippet {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .list-item-row {
    gap: 0.35rem 0.45rem;
  }
  .list-item-arrow {
    font-size: 1.2rem;
  }
  .pagination {
    gap: 0.45rem;
    padding-top: 1rem;
  }
  .pagination-pages {
    order: 3;
    width: 100%;
    margin-top: 0.15rem;
  }
  .pagination-prev {
    order: 1;
    flex: 1 1 45%;
  }
  .pagination-next {
    order: 2;
    flex: 1 1 45%;
  }
  .product-detail h1 {
    font-size: 1.12rem;
    line-height: 1.45;
  }
  .product-meta {
    font-size: 0.88rem;
  }
  .product-content {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .product-content img.product-main-img {
    max-width: 100%;
  }
  .product-download .dl-section-title {
    font-size: 1.15rem;
  }
  .dl-steps-box {
    width: 100%;
    padding: 0.85rem;
  }
  .dl-file-list-wrap {
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
  }
  .dl-file-list {
    width: auto;
    max-width: 100%;
  }
  .dl-file-card {
    flex-direction: column;
    width: 100%;
    max-width: calc(100vw - 2.75rem);
    padding: 0.7rem 0.85rem;
    box-sizing: border-box;
  }
  .dl-file-card-main {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
  }
  .dl-file-icon {
    flex: 0 0 auto;
  }
  .dl-file-body {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: calc(100vw - 7rem);
  }
  .dl-file-name,
  .dl-file-meta {
    white-space: normal;
  }
  .dl-file-actions {
    width: 100%;
    box-sizing: border-box;
  }
  .dl-step-item {
    gap: 0.75rem;
    padding: 0.95rem 0;
  }
  .dl-step-num-lg {
    width: 2.45rem;
    height: 2.45rem;
    font-size: 1.25rem;
    border-radius: 8px;
  }
  .dl-step-title {
    font-size: 1.05rem;
  }
  .dl-step-desc {
    font-size: 0.94rem;
    line-height: 1.55;
  }
  .dl-taobao-btn {
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  .dl-code-input-row {
    width: 100%;
    flex-direction: column;
  }
  .dl-code-input {
    flex: none;
    width: 100%;
    box-sizing: border-box;
    letter-spacing: 0.06em;
  }
  .dl-code-submit {
    width: 100%;
    box-sizing: border-box;
  }
  .platform-tabs label {
    flex: 1 1 auto;
    text-align: center;
    min-width: calc(50% - 0.35rem);
  }
  .product-topbar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .product-topbar-back {
    width: auto;
  }
  .product-topbar-search {
    flex: 1 1 10rem;
    min-width: 0;
    width: auto;
    flex-direction: row;
  }
  .product-topbar-search input[type="search"],
  .product-topbar-search input[type="text"] {
    flex: 1 1 0;
    width: auto;
    height: 2.5rem;
  }
  .product-topbar-search button {
    width: auto;
    height: 2.5rem;
  }
  .admin-nav {
    font-size: 0.92rem;
  }
  table.admin {
    font-size: 0.82rem;
  }
  table.admin th,
  table.admin td {
    padding: 6px;
  }
  .login-card {
    margin: 1rem auto;
    max-width: none;
  }
  input[type="text"],
  input[type="password"],
  input[type="search"],
  select,
  textarea {
    max-width: none;
  }
}

@media (max-width: 400px) {
  .list-stack-2col {
    grid-template-columns: 1fr;
  }
  .pagination-prev,
  .pagination-next {
    flex: 1 1 100%;
    min-width: 100%;
  }
  .search-form-actions .btn-secondary {
    min-width: 3.5rem;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
    font-size: 0.9rem;
  }
}
.site-footer {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: #94a3b8;
  font-size: 0.75rem;
  line-height: 1.65;
}
.site-footer p {
  margin: 0 0 0.35rem;
}
.site-footer p:last-child {
  margin-bottom: 0;
}
.site-footer-notice,
.site-footer-icp {
  text-align: center;
  word-break: break-word;
}
