/* auto theme: violet / layout: classic */
:root {
  --primary: #9333ea;
  --primary-dark: #7c3aed;
  --primary-deep: #6d28d9;
  --accent: #a855f7;
  --text: #3b0764;
  --muted: #57534e;
  --soft: #f5f3ff;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.75;
  background:
    radial-gradient(900px 380px at 0% 0%, #c4b5fd 0%, transparent 55%),
    radial-gradient(700px 320px at 100% 0%, #ddd6fe 0%, transparent 50%),
    linear-gradient(180deg, #f5f3ff 0%, #ffffff 45%, #f5f3ff 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.2em; }
p { margin-bottom: .75em; }
p:last-child { margin-bottom: 0; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(90deg, #6d28d9, #9333ea 55%, #fb7185);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.brand {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: .98rem;
  color: #fff;
  max-width: min(100%, 420px);
}
.brand-logo {
  width: auto;
  height: 36px;
  max-width: 120px;
  object-fit: contain;
  max-width: 36px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  background: rgba(255,255,255,.12);
}
.brand-text {
  display: inline-block;
  line-height: 1.3;
  white-space: nowrap;
}
.nav { display: flex; flex-wrap: wrap; gap: 4px 8px; justify-content: flex-end; }
.nav a {
  color: #fff; font-size: .88rem; padding: 6px 10px; border-radius: 8px;
  opacity: .92;
}
.nav a:hover, .nav a.active {
  font-weight: 600; background: rgba(255,255,255,.18); opacity: 1;
  color: #fff;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: 10px; font-weight: 650; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, #fb7185, #9333ea); color: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.15); }
.btn-primary:hover { color: #fff; filter: brightness(1.05); }
.btn-ghost { background: #fff; color: var(--primary-deep); border-color: #c4b5fd; }
.btn-download { background: linear-gradient(135deg, #fb7185, #7c3aed); color: #fff; min-width: 180px; }
.btn-download:hover { color: #fff; filter: brightness(1.05); }
.page { padding: 28px 0 48px; flex: 1 0 auto; }
.panel {
  background: rgba(255,255,255,.94);
  border: 1px solid #ddd6fe;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  padding: 28px 30px; margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute; left: 0; top: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #7c3aed, #9333ea, #fb7185);
}
.section-title { font-size: 1.45rem; margin-bottom: 8px; color: var(--primary-deep); }
.section-desc { color: var(--muted); margin-bottom: 18px; max-width: 52em; }
.eyebrow { color: var(--accent); font-weight: 650; font-size: .88rem; margin-bottom: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.app-card {
  display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center;
  border: 1px solid #ddd6fe; border-radius: var(--radius); padding: 14px;
  background: linear-gradient(135deg, #fff, #f5f3ff);
  margin-bottom: 12px;
}
.app-card img {
  width: 72px; height: 72px; object-fit: contain; border-radius: 14px;
  background: #f5f3ff; padding: 6px;
}
.app-card h3 { font-size: 1.05rem; margin-bottom: 4px; color: var(--primary-deep); }
.app-card p { color: var(--muted); font-size: .88rem; margin: 0 0 8px; }
.app-card .meta { color: var(--primary-dark); font-size: .8rem; margin-bottom: 8px; font-weight: 500; }
.detail-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center;
}
.detail-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}
.detail-icon {
  width: 240px;
  height: 240px;
  object-fit: contain;
  border-radius: 28px;
  background: var(--soft, #f5f3ff);
  padding: 18px;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  margin: 0 auto;
}
.info-table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: .92rem; }
.info-table th, .info-table td {
  border: 1px solid #ddd6fe; padding: 10px 12px; text-align: left; vertical-align: top;
}
.info-table th { width: 120px; background: #f5f3ff; color: var(--primary-deep); font-weight: 600; }
.shot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shot { border: 1px solid #ddd6fe; border-radius: 12px; overflow: hidden; background: #f5f3ff; }
.shot img { width: 100%; height: 200px; object-fit: contain; background: #f5f3ff; }
.shot figcaption { padding: 10px 12px; color: var(--muted); font-size: .86rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; color: var(--primary-deep); }
input, textarea, select {
  width: 100%; border: 1px solid #c4b5fd; border-radius: 10px;
  padding: 10px 12px; font: inherit; background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
.form-note { color: var(--muted); font-size: .85rem; margin-top: 8px; }
.alert {
  display: none; margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  background: #f5f3ff; color: var(--primary-deep); border: 1px solid #c4b5fd; font-size: .9rem;
}
.alert.show { display: block; }
.prose h2 { font-size: 1.2rem; margin: 22px 0 10px; color: var(--primary-deep); }
.prose h3 { font-size: 1.05rem; margin: 16px 0 8px; color: var(--primary-dark); }
.prose p, .prose li { color: var(--muted); font-size: .95rem; }
.prose ul, .prose ol { margin-bottom: 12px; }
.site-footer {
  flex-shrink: 0;
  background: #1a1a1a; color: #c8c8c8;
  padding: 36px 16px 28px; margin-top: auto; text-align: center;
}
.footer-center { max-width: 980px; }
.footer-nav { margin: 0 0 14px; font-size: .9rem; line-height: 1.8; color: #ddd; }
.footer-nav a { color: #e8e8e8; margin: 0 2px; }
.footer-nav a:hover { color: #fff; }
.footer-nav span { color: #666; margin: 0 6px; user-select: none; }
.footer-line { margin: 0 0 8px; font-size: .82rem; color: #a8a8a8; line-height: 1.7; }
.footer-line:last-child { margin-bottom: 0; }
.footer-line a { color: #a8a8a8; }
.footer-line a:hover { color: #fff; }
@media (max-width: 900px) {
  .grid-2, .detail-top, .shot-grid, .form-grid { grid-template-columns: 1fr; }
  .panel { padding: 20px 16px; }
  .brand { font-size: .82rem; }
  .brand-text { white-space: nowrap; }
  .header-row { align-items: flex-start; padding: 10px 0; }
}

/* 首页安卓软件展示 */
.home-apps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.home-apps-grid-1 {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0;
}
.app-card-lg {
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 22px 20px;
  align-items: center;
  margin-bottom: 0;
}
.app-card-lg img {
  width: 110px;
  height: 110px;
  border-radius: 22px;
  padding: 8px;
}
.app-card-lg h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.app-card-lg p {
  font-size: .95rem;
  margin-bottom: 10px;
}
.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.panel > .section-title {
  text-align: left;
  margin-bottom: 18px;
}
@media (max-width: 900px) {
  .home-apps-grid { grid-template-columns: 1fr; }
  .app-card-lg { grid-template-columns: 88px 1fr; }
  .app-card-lg img { width: 88px; height: 88px; }
}

.app-actions .btn-download { min-width: auto; padding: 0 16px; }
.app-actions .btn { min-height: 40px; font-size: .9rem; }

/* 软件主题网格 */

.themes-page-title { margin: 0 0 16px; }
.theme-block { scroll-margin-top: 80px; }
.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.theme-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 16px 12px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius, 12px);
  background: linear-gradient(180deg, #fff, var(--soft, #f8fafc));
}
.theme-app img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  padding: 6px;
}
.theme-app h3 {
  font-size: .95rem;
  color: var(--primary-deep, #111);
  margin: 0;
  line-height: 1.35;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-app .btn {
  min-height: 36px;
  padding: 0 14px;
  font-size: .85rem;
  width: 100%;
}
@media (max-width: 900px) {
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .theme-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .theme-app img { width: 64px; height: 64px; }
}

/* 软件主题交互 */

.app-name-link { color: inherit; }
.app-name-link:hover { color: var(--accent, var(--primary)); text-decoration: underline; }
.theme-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.theme-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 110px;
  padding: 22px 14px;
  border-radius: var(--radius, 12px);
  border: 1px solid rgba(0,0,0,.08);
  background: linear-gradient(180deg, #fff, var(--soft, #f8fafc));
  color: var(--primary-deep, #111);
  text-align: center;
  font-weight: 700;
  font-size: 1.15rem;
}
.theme-cat:hover { filter: brightness(.98); color: var(--primary-dark, #333); }
.theme-cat-num { font-size: .82rem; font-weight: 500; color: var(--muted, #666); }
.theme-back { margin: 0 0 12px; font-size: .92rem; }
.theme-app-icon { display: block; }
@media (max-width: 900px) {
  .theme-cat-grid { grid-template-columns: repeat(2, 1fr); }
}
