:root {
  --bg: #f3f6f8;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #5b6b7a;
  --nav: #1f2a33;
  --nav2: #ffffff;
  --primary: #2bb673;
  --primary-700: #219a5f;
  --accent-blue: #2b7db3;
  --accent-blue-700: #236c9a;
  --danger: #e53935;
  --border: rgba(15, 23, 42, 0.1);
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  --radius: 12px;
}


* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
  z-index: 9999;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}


.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.topbar {
  background: #1e293b;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  height: 48px;
  /* Removed display: flex to allow container auto margins to work reliably */
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Removed width: 100% to allow .container width to apply */
  height: 100%;
  /* Ensure inner fills height */
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}



.topbar__nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar__link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.topbar__link:hover {
  color: #fff;
}



.navbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: 56px;
  /* Removed display: flex */
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  /* Removed width: 100% to allow .container width to apply */
  height: 100%;
  /* Ensure inner fills height */
}

/* New container for standard links, needs to be flexible */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  /* Enable scroll for links */
  height: 100%;
  flex: 1;
  /* Allow it to take up remaining space */
  min-width: 0;
  /* Enable shrinking for scroll */
  scrollbar-width: none;
  /* Hide scrollbar Firefox */
}

.navbar__nav::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar Chrome/Safari */
}

.navbar__right {
  margin-left: auto;
  /* Push to right just in case */
  flex-shrink: 0;
}

.nav-btn {
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(255, 107, 107, 0.4);
  background: linear-gradient(135deg, #ff7676 0%, #ff9a66 100%);
  /* Slightly lighter */
}

.navlink {
  color: #475569;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.navlink:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.navlink--active {
  color: #0f172a;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}



.page {
  padding-bottom: 60px;
}

.section {
  padding: 24px 0;
}

.section--muted {
  background: #eef3f6;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section__title {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section__icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  font-size: 16px;
}

.section__action {
  font-size: 13px;
  color: var(--accent-blue-700);
  font-weight: 700;
}

.section__action:hover {
  text-decoration: underline;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid--flash {
  grid-template-columns: repeat(3, 1fr);
}

.grid--free {
  grid-template-columns: repeat(3, 1fr);
}

.grid--blog {
  grid-template-columns: repeat(3, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--rows {
  grid-template-columns: repeat(3, 1fr);
}

.rowcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 12px;
  min-height: 86px;
}

.rowcard:hover {
  border-color: rgba(43, 125, 179, 0.35);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.rowcard__thumb {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  flex: 0 0 auto;
}

.rowcard__thumb--1 {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.rowcard__thumb--2 {
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
}

.rowcard__thumb--3 {
  background: linear-gradient(135deg, #fb7185, #a78bfa);
}

.rowcard__thumb--4 {
  background: linear-gradient(135deg, #111827, #475569);
}

.rowcard__thumb--5 {
  background: linear-gradient(135deg, #60a5fa, #94a3b8);
}

.rowcard__thumb--6 {
  background: linear-gradient(135deg, #a78bfa, #ec4899);
}

.rowcard__thumb--7 {
  background: linear-gradient(135deg, #334155, #94a3b8);
}



.rowcard__main {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 6px;
}

.rowcard__title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rowcard__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rowcard__rating .stars {
  color: rgba(148, 163, 184, 0.9);
  font-size: 12px;
  letter-spacing: 1px;
}

.rowcard__price {
  font-weight: 900;
  color: rgba(15, 23, 42, 0.75);
  font-size: 13px;
  flex: 0 0 auto;
  padding-left: 10px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  border-color: rgba(39, 180, 168, 0.45);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card__thumb {
  height: 180px;
  background: linear-gradient(135deg, rgba(43, 125, 179, 0.7), rgba(53, 201, 128, 0.55)),
    repeating-linear-gradient(45deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.08) 10px,
      rgba(0, 0, 0, 0) 10px,
      rgba(0, 0, 0, 0) 20px);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.card__thumb--hero {
  height: auto;
  aspect-ratio: 2.4 / 1;
  width: 100%;
}

.card__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card__thumb--a {
   background: #ffffff;
}

.card__thumb--b {
  background: #fff;
}

.card__thumb--c {
  background: #ffffff;
}

.card__thumb--d {
  background: #ffffff;
}

.card__thumb--e {
  background: #ffffff;
}

.card__thumb--f {
  background: #ffffff;
}

.card__thumb--g {
  background: #ffffff;
}

.card__thumb--h {
   background: #ffffff;
}

.card__thumb--i {
  background: #ffffff;
}

.card__thumb--j {
   background: #ffffff;
}

.card__thumb--k {
   background: #ffffff;
}

.card__thumb--l {
  background: #ffffff;
}

.card__thumb--m {
   background: #ffffff;
}

.card__thumb--n {
   background: #ffffff;
}

.card__thumb--o {
   background: #ffffff;
}

.card__thumb--p {
   background: #ffffff;
}

.card__thumb--q {
  background: #ffffff;
}

.card__thumb--r {
  background: linear-gradient(135deg, #22c55e, #60a5fa);
}

.card__thumb--s {
  background: linear-gradient(135deg, #a78bfa, #f472b6);
}

.card__thumb--t {
  background: linear-gradient(135deg, #38bdf8, #22c55e);
}

.card__thumb--u {
  background: linear-gradient(135deg, #38bdf8, #ffffff);
}

.card__thumb--v {
  background: linear-gradient(135deg, #22c55e, #ffffff);
}

.card__thumb--w {
  background: linear-gradient(135deg, #60a5fa, #ffffff);
}

.card__thumb--x {
  background: linear-gradient(135deg, #0ea5e9, #a78bfa);
}

.card__thumb--y {
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
}

.card__thumb--z {
  background: linear-gradient(135deg, #f97316, #60a5fa);
}

.card__thumb--aa {
  background: #ffffff;
}

.card__thumb--ab {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
}

.card__thumb--ac {
  background: linear-gradient(135deg, #a78bfa, #22c55e);
}

.card__thumb--ad {
  background: linear-gradient(135deg, #60a5fa, #94a3b8);
}

.card__thumb--ae {
  background: linear-gradient(135deg, #22c55e, #94a3b8);
}

.card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: rgba(15, 23, 42, 0.9);
}

.card__desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card__meta {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.03);
  font-size: 11px;
  color: rgba(15, 23, 42, 0.72);
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.01em;
}

.badge--free {
  background: #22c55e;
  color: #052112;
}

.card__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.card__date {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.6);
}

.card__views {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.6);
  margin-left: auto;
}

.stars {
  color: #f59e0b;
  letter-spacing: 1px;
  font-size: 12px;
}

.price {
  font-weight: 800;
  color: #0f172a;
  font-size: 13px;
}

.price--old {
  color: rgba(15, 23, 42, 0.45);
  text-decoration: line-through;
  font-weight: 700;
}

.price--sale {
  color: var(--danger);
  font-weight: 900;
}

.card--sale .card__footer {
  justify-content: flex-end;
}

.card--sale .card__footer .price+.price {
  margin-left: 10px;
}

.card--free .card__footer {
  justify-content: flex-start;
  gap: 8px;
}

.post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.post__thumb {
  height: 148px;
  background: linear-gradient(135deg, #111827, #334155);
}

.post__thumb--1 {
  background: linear-gradient(135deg, #0b1220, #1f2937);
}

.post__thumb--2 {
  background: linear-gradient(135deg, #0a3f5f, #0ea5e9);
}

.post__thumb--3 {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
}

.post__body {
  padding: 12px 12px 14px;
}

.post__meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 700;
}

.post__title {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.post__date {
  font-size: 12px;
  color: var(--muted);
}

.site-footer {
  background: #1e293b;
  color: rgba(255, 255, 255, 0.82);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 18px;
  padding: 28px 0;
}

.footer__brand {
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.footer__desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
  font-size: 13px;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.footer__col {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer__title {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2px;
  font-size: 13px;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__col a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.footer__col a:hover {
  color: rgba(255, 255, 255, 1);
}

.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.footer__legal .container {
  padding: 12px 0 18px;
}

.listhead {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.listhead__inner {
  padding: 22px 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 18px;
}

.listhead__icon {
  flex: 0 0 auto;
  width: 140px;
  height: 140px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.category-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.listhead__copy {
  min-width: 0;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.55);
}

.breadcrumb a {
  color: rgba(15, 23, 42, 0.65);
  font-weight: 700;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.listhead__title {
  margin: 10px 0 8px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.listhead__desc {
  margin: 0;
  max-width: 95%;
  color: rgba(15, 23, 42, 0.62);
  line-height: 1.55;
  font-size: 13px;
}

.listlayout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  align-items: start;
}

/* 列表页面使用两列布局 */
.listlayout .grid {
  grid-template-columns: repeat(2, 1fr);
}


.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  padding: 12px;
}

.popular {
  position: sticky;
  top: 96px;
  height: fit-content;
}

.popular__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 10px;
}

.popular__title {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.popular__more {
  font-weight: 900;
  color: rgba(43, 125, 179, 0.9);
  font-size: 13px;
}

.popular__more:hover {
  text-decoration: underline;
}

.popular__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.popular__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: inherit;
  /* border-bottom removed to use gap/cards instead */
}

.popular__item:hover {
  background: rgba(43, 125, 179, 0.04);
  transform: translateX(4px);
}

.popular__rank {
  display: none;
  /* Hide rank */
}

.popular__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.popular__icon--2 {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.popular__icon--3 {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
}

.popular__icon--4 {
  background: linear-gradient(135deg, #2563eb, #a78bfa);
}

.popular__icon--5 {
  background: linear-gradient(135deg, #94a3b8, #0ea5e9);
}

.popular__icon--6 {
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
}

.popular__icon--7 {
  background: linear-gradient(135deg, #a78bfa, #ec4899);
}

.popular__icon--8 {
  background: linear-gradient(135deg, #111827, #475569);
}

.popular__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  /* Enable text truncation */
  overflow: hidden;
}

.popular__name {
  font-weight: 700;
  color: rgba(15, 23, 42, 0.85);
  font-size: 14px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popular__desc {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popular__price {
  display: none;
  /* Hide price */
}

.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 18px 0 6px;
}

.pager__btn {
  min-width: 36px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  font-weight: 900;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.7);
}

.pager__btn[aria-current="page"] {
  background: rgba(43, 125, 179, 0.12);
  border-color: rgba(43, 125, 179, 0.35);
  color: rgba(43, 125, 179, 0.95);
}

.pager__btn:hover {
  border-color: rgba(43, 125, 179, 0.35);
}


.page-num {
  min-width: 36px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  font-weight: 900;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.7);
}

.page-num[aria-current="page"] {
  background: rgba(43, 125, 179, 0.12);
  border-color: rgba(43, 125, 179, 0.35);
  color: rgba(43, 125, 179, 0.95);
}

.page-num:hover {
  border-color: rgba(43, 125, 179, 0.35);
}



.pager__sep {
  display: inline-flex;
  align-items: center;
  color: rgba(15, 23, 42, 0.45);
  padding: 0 6px;
}

.content-block {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.content-block h2 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.content-block p {
  margin: 0 0 10px;
  color: rgba(15, 23, 42, 0.68);
  line-height: 1.6;
  font-size: 13px;
}

.content-block ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(15, 23, 42, 0.7);
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.item-details h2:not(:first-child) {
  margin-top: 28px;
  padding-top: 4px;
}

@media (max-width: 1040px) {
  /* Removed hiding of topbar__nav since we now only have 2 small links */


  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--free {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--rows {
    grid-template-columns: repeat(2, 1fr);
  }

  .listhead__inner {
    flex-direction: column;
  }

  .listlayout {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 820px) {
  .navbar__inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--free {
    grid-template-columns: 1fr;
  }

  .grid--blog {
    grid-template-columns: 1fr;
  }

  .grid--rows {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .listhead__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .listhead__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .listhead__desc {
    margin: 0 auto;
  }

  /* Force 2 columns for list pages on mobile (as requested) */
  .listlayout .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {

  /* Default grid goes to 1 column, but listlayout stays 2 cols */
  .grid {
    grid-template-columns: 1fr;
  }

  .listlayout .grid {
    grid-template-columns: 1fr;
    gap: 24px;
    /* Default gap for large cards */
  }

  .grid--3 {
    grid-template-columns: 1fr;
  }
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lightbox.is-visible {
  display: flex;
  opacity: 1;
}

.lightbox__img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.2s ease;
  background: #fff;
}

.lightbox.is-visible .lightbox__img {
  transform: scale(1);
  background: #fff;
}

#screens .card__thumb-img {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

#screens .card__thumb:hover .card__thumb-img {
  transform: scale(1.02);
}

/* Download Section Styles */
.download-section h2 {
  margin-bottom: 20px;
}

.download-list {
  display: grid;
  gap: 12px;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.2s ease;
}

.download-item:hover {
  background: #fff;
  border-color: rgba(43, 125, 179, 0.35);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transform: translateX(4px);
}

.download-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(43, 125, 179, 0.1);
  color: var(--accent-blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.download-info {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.download-site {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  line-height: 1.3;
}

.download-url {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-action {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  transition: all 0.2s ease;
}

.download-item:hover .download-action {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Support Panel Styles */
.support-panel {
  background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  margin-bottom: 24px;
}

.support-head {
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  padding-bottom: 12px;
}

.support-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #0c4a6e;
  margin: 0;
}

.support-body {
  font-size: 13px;
  color: #334155;
  line-height: 1.6;
}

.support-intro {
  margin-bottom: 16px;
  color: #475569;
}

.support-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 8px;
}

.support-item {
  position: relative;
  padding-left: 20px;
}

.support-item::before {
  content: "✅";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 11px;
}

.support-note {
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed rgba(56, 189, 248, 0.4);
  padding: 10px;
  border-radius: 6px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 20px;
}

.support-contact-title {
  font-size: 14px;
  font-weight: 700;
  color: #0c4a6e;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.contact-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fixed color values for icons */
.contact-icon--tg svg path {
  fill: #0088cc;
}

.contact-icon--wa svg path {
  fill: #25D366;
}

.contact-icon--wx svg path {
  fill: #07C160;
}

.contact-label {
  font-weight: 600;
  color: #1e293b;
  margin-right: 4px;
}

.contact-val {
  color: #475569;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}


/* Item Specs - 产品属性 */
.item-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
  padding: 16px;
  background: rgba(15, 23, 42, 0.03);
  border-radius: 8px;
}

.item-specs__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-specs__label {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.5);
  font-weight: 500;
}

.item-specs__value {
  font-size: 14px;
  color: rgba(15, 23, 42, 0.85);
  font-weight: 600;
}

@media (max-width: 480px) {
  .item-specs {
    grid-template-columns: 1fr;
  }
}

/* Item Actions - 操作按钮 */
.item-actions {
  display: flex;
  gap: 12px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.item-actions .btn {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
}

.item-specs__value a {
  color: var(--primary);
  text-decoration: none;
}

.item-specs__value a:hover {
  text-decoration: underline;
}