:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #1a1a1a;
  --sub: #9aa0a8;
  --muted: #b4b8c0;
  --blue: #3b82f6;
  --track: #ececee;
  --line: #efefef;
  --radius: 14px;
  --shadow: 0 2px 8px rgba(16, 24, 40, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #cfd3da;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.phone {
  width: min(390px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.page-list {
  padding: 16px 12px 20px;
  flex: 1;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 12px;
}
.section-head h1 {
  margin: 0;
  line-height: 0;
}
.site-logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  object-position: left center;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--track);
  border-radius: 8px;
  padding: 2px;
  flex: 0 0 auto;
}
.lang-btn {
  border: 0;
  background: transparent;
  color: #7a8088;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 6px;
  font-family: inherit;
  min-width: 28px;
  cursor: pointer;
  user-select: none;
}
.lang-btn.is-on {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.08);
}
.detail-nav .lang-switch {
  margin-right: 4px;
}

.tabs-wrap {
  margin: 0 0 12px;
}
.tabs {
  display: flex;
  gap: 2px;
  background: var(--track);
  border-radius: 10px;
  padding: 3px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #7a8088;
  font-size: 13px;
  line-height: 1;
  padding: 8px 11px;
  border-radius: 8px;
  font-weight: 500;
  white-space: nowrap;
  font-family: inherit;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
.tab.active {
  background: #fff;
  color: var(--blue);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(17, 24, 39, 0.08);
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.list.is-switching {
  opacity: 0;
  transform: translateY(6px);
}
.list.is-in {
  animation: listIn .22s ease both;
}
@keyframes listIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.card {
  display: flex;
  gap: 10px;
  align-items: stretch;
  background: var(--card);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  min-height: 98px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:active {
  transform: scale(0.985);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}

.thumb {
  width: 118px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 118px;
  background: #e8eaee;
  display: block;
}

.card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 1px 2px 0 0;
}
.card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.38;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-desc {
  margin-top: 4px;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 6px;
  font-size: 11px;
}
.card-source {
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  font-size: 11px;
  color: #222;
}
.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c8ccd3;
  flex: 0 0 3px;
}
.card-time { color: var(--muted); }

.empty, .loading {
  text-align: center;
  color: var(--sub);
  padding: 48px 0;
  font-size: 13px;
}

.detail-nav {
  height: 48px;
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  padding: 0 8px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.back {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  color: #111;
  border-radius: 18px;
  justify-self: start;
}
.back:active { background: #f3f4f6; }
.nav-title {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  pointer-events: none;
}
.detail-nav #lang-slot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.article {
  padding: 18px 16px 28px;
  background: #fff;
  flex: 1;
}
.legal-article {
  background: var(--bg);
}
.legal-article .article-body {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 14px 8px;
  box-shadow: var(--shadow);
}

.site-footer {
  margin-top: auto;
  padding: 18px 16px 28px;
  text-align: center;
  color: #9aa0a8;
  background: var(--bg);
}
.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12px;
}
.footer-link {
  color: #6b7280;
  text-decoration: none;
}
.footer-link.is-active,
.footer-link:active {
  color: var(--blue);
}
.footer-sep {
  color: #d0d4da;
  font-size: 11px;
}
.footer-copy,
.footer-icp {
  font-size: 11px;
  line-height: 1.6;
  color: #b4b8c0;
}
.footer-icp a {
  color: inherit;
  text-decoration: none;
}
.article h2 {
  font-size: 20px;
  line-height: 1.45;
  font-weight: 700;
  color: #111;
}
.article-title-alt {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--sub);
}
.original-note {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 16px;
  font-size: 12px;
  color: var(--sub);
}
.article-meta strong {
  color: #222;
  font-size: 12px;
  letter-spacing: 0.2px;
}
.article-cover {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  margin-bottom: 16px;
  display: block;
  background: #f4f5f7;
  vertical-align: top;
}
.article-body p,
.article-body li {
  font-size: 15px;
  line-height: 1.85;
  color: #333;
  margin-bottom: 14px;
}
.article-body h2,
.article-body h3 {
  font-size: 16px;
  margin: 20px 0 8px;
  color: #111;
}
.article-body blockquote {
  border-left: 3px solid var(--blue);
  padding: 2px 0 2px 12px;
  color: #555;
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
}
.card-time { color: var(--muted); }

@media (min-width: 430px) {
  body { padding: 16px 0; }
  .phone {
    min-height: calc(100vh - 32px);
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
    overflow: hidden;
  }
}
