/* ============================================
   帝国CMS模板网 v2 — 简约专业风格
   Design System: Blue primary + Orange accent
   Typography: Noto Sans SC + Inter
   ============================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  /* Primary: Blue */
  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
  --color-primary-dark: #1E40AF;
  --color-primary-light: #DBEAFE;
  --color-primary-50: #EFF6FF;
  --color-primary-100: #DBEAFE;
  --color-primary-600: #2563EB;
  --color-primary-700: #1D4ED8;

  /* Accent: Orange */
  --color-accent: #F97316;
  --color-accent-hover: #EA580C;
  --color-accent-light: #FFF7ED;
  --color-accent-500: #F97316;
  --color-accent-600: #EA580C;

  /* Neutrals */
  --color-text: #0F172A;
  --color-text-secondary: #475569;
  --color-text-muted: #94A3B8;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-bg-subtle: #F1F5F9;
  --color-border: #E2E8F0;
  --color-border-light: #F1F5F9;

  /* Semantic */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;

  /* Spacing scale (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Typography */
  --font-heading: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Font sizes */
  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.25rem;
  /* 20px */
  --text-2xl: 1.5rem;
  /* 24px */
  --text-3xl: 1.875rem;
  /* 30px */
  --text-4xl: 2.25rem;
  /* 36px */

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --navbar-height: 64px;
  --container-max: 1280px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, #0C1E3A 0%, #1A3A6B 35%, #1E5AAD 65%, #0F2D5E 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(96, 165, 250, 0.25);
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}


.navbar .container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-shrink: 0;
  height: 100%;
}

.navbar-brand img {
  height: 36px;
  width: auto;
}

.navbar-brand .brand-text {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 40%, #818CF8 70%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: filter var(--transition-base);
}




.navbar-brand:hover .brand-text {
  filter: brightness(1.3);
}

/* Nav Links */
.navbar-nav {
  display: flex;
  align-items: stretch;
  gap: var(--space-6);
  list-style: none;
  height: 100%;
}

.navbar-nav li {
  display: flex;
}

.navbar-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
}

.navbar-nav a:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
}

.navbar-nav a.active {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: #60A5FA;
  border-radius: 3px 3px 0 0;
}

.navbar-nav a .nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Mobile menu toggle */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.navbar-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.navbar-toggle svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main {
  padding-top: var(--space-10);
  padding-bottom: var(--space-20);
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-border-light);
}



.section-header h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
}

.section-header h2 .section-icon {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.section-header .section-more {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.section-header .section-more:hover {
  color: var(--color-primary);
}

.section-header .section-more svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.section-header .section-more:hover svg {
  transform: translateX(2px);
}

/* ============================================
   TEMPLATE CARDS GRID
   ============================================ */
.template-grid,
.template-grid-3 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.template-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.template-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

.template-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(249, 115, 22, 0.03) 0%, transparent 50%),
    linear-gradient(135deg, transparent 49.5%, rgba(37, 99, 235, 0.02) 49.5%, rgba(37, 99, 235, 0.02) 50.5%, transparent 50.5%);
  background-size: 100% 100%, 100% 100%, 20px 20px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.template-card:hover::before {
  opacity: 1;
}

.template-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.template-card:focus-within {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Card Image */
.template-card .card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin: var(--space-3);
  border-radius: var(--radius-md);
}

.template-card .card-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.template-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.template-card:hover .card-image img {
  transform: scale(1.04);
}

/* Card Body */
.template-card .card-body {
  position: relative;
  padding: 0 var(--space-4);
  flex: 1;
  z-index: 1;
}

.template-card .card-title {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.template-card:hover .card-title {
  color: var(--color-primary);
}

/* Card Footer */
.template-card .card-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4) var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  z-index: 1;
}

.template-card .card-footer .stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.template-card .card-footer .stat svg,
.template-card .card-footer .stat .icon {
  width: 14px;
  height: 14px;
}

.template-card .card-footer .price {
  font-weight: 700;
  color: var(--color-accent);
  font-size: var(--text-sm);
}

/* ============================================
   MORE BUTTON
   ============================================ */
.more-section {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-16);
}

.btn-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-bg);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}

.btn-more:hover {
  color: #fff;
  background: var(--color-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-more svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.btn-more:hover svg {
  transform: translateX(3px);
}

/* ============================================
   NEWS GRID (4 columns)
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-16);
  min-width: 0;
}

.news-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--transition-base);
  min-width: 0;
  overflow: hidden;
}

.news-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

.news-card .news-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-border-light);
}

.news-card .news-header svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Color accents per column */
.news-card.accent-blue .news-header {
  color: var(--color-primary);
  border-color: var(--color-primary-light);
}

.news-card.accent-orange .news-header {
  color: var(--color-accent);
  border-color: var(--color-accent-light);
}

.news-card.accent-green .news-header {
  color: var(--color-success);
  border-color: #D1FAE5;
}

.news-card.accent-purple .news-header {
  color: #8B5CF6;
  border-color: #EDE9FE;
}

.news-card .news-header h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: inherit;
}

.news-card .news-header h3 a {
  color: inherit;
}

.news-card .news-header h3 a:hover {
  text-decoration: underline;
}

.news-card .news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.news-card .news-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  min-width: 0;
  overflow: hidden;
}

.news-card .news-list .rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.news-card .news-list .rank.r1 {
  background: #FEE2E2;
  color: #DC2626;
}

.news-card .news-list .rank.r2 {
  background: #FEF3C7;
  color: #D97706;
}

.news-card .news-list .rank.r3 {
  background: #DBEAFE;
  color: #2563EB;
}

.news-card .news-list .rank {
  background: var(--color-bg-subtle);
  color: var(--color-text-muted);
}

.news-card .news-list a {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition-fast);
  flex: 1;
  min-width: 0;
}

.news-card .news-list a:hover {
  color: var(--color-primary);
}

/* ============================================
   CTA / FEATURES SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary-50) 0%, #F0F9FF 50%, var(--color-accent-light) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-10);
  text-align: center;
  border: 1px solid var(--color-border-light);
}

.cta-section h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.cta-section .cta-subtitle {
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
}

.cta-section .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.cta-section .btn-cta:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

/* QR codes inside CTA section */
.cta-qr {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-6);
}

.cta-qr .qr-item {
  text-align: center;
}

.cta-qr .qr-item img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border);
  padding: var(--space-1);
  background: #fff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.cta-qr .qr-item img:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.cta-qr .qr-item span {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Features list below CTA */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
  text-align: left;
}

.feature-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
}

.feature-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
}

.feature-item .feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item .feature-icon.blue {
  background: var(--color-primary-50);
  color: var(--color-primary);
}

.feature-item .feature-icon.orange {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.feature-item .feature-icon.green {
  background: #D1FAE5;
  color: var(--color-success);
}

.feature-item .feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-item h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: 2px;
}

.feature-item p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ============================================
   DETAIL PAGE — LEFT/RIGHT LAYOUT
   ============================================ */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-4);
  align-items: start;
}

.news-content {
  word-break: break-all;
}

/* --- Breadcrumb --- */
.breadcrumb {
  grid-column: 1 / -1;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border-light);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

/* --- Base Info Card --- */
.detail {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.detail .base-info {
  display: flex;
  gap: var(--space-6);
}

.detail .base-thumb {
  width: 360px;
  flex-shrink: 0;
  aspect-ratio: 4 / 3;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  background: linear-gradient(135deg, var(--color-primary-50) 0%, #FFF7ED 100%);
  border: 1px solid var(--color-primary-light);
}

.detail .base-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform var(--transition-slow);
}

.detail .base-thumb img:hover {
  transform: scale(1.03);
}

.detail .base-body {
  flex: 1;
  min-width: 0;
}

.detail h1 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-5);
  line-height: 1.4;
}

.detail .base-body h1 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: var(--space-1) 0;
  line-height: 1.4;
}

.detail .meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-6);
}

.detail .meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.detail .meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.detail .meta-item .label {
  color: var(--color-text-muted);
}

.detail .meta-item .value {
  font-weight: 600;
  color: var(--color-text);
}

.detail .meta-item.price .value {
  color: var(--color-accent);
  font-size: var(--text-lg);
}

/* --- Product Info Section --- */
.detail .product-info {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}

/* Plugin ID — 右上角 */
.detail .product-id {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  padding: 3px var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

/* Price row */
.detail .product-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.detail .product-price {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-error);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1;
}

.detail .product-price small,
.detail .product-price-original small {
  font-size: var(--text-sm);
  font-weight: 500;
  margin-left: 2px;
}

.detail .product-price-original {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: line-through;
  font-weight: 500;
}

.detail .product-badge-hot {
  display: inline-flex;
  align-items: center;
  padding: 3px var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #EF4444 0%, #F97316 100%);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

@keyframes badge-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* Feature items — 简洁列表风格 */
.detail .product-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
}

.detail .product-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
}


.detail .product-feature-tag .icon {
  font-size: 14px;
  color: var(--color-primary);
}

/* Install note — 低调文字风格 */
.detail .product-install-note {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
  line-height: 1.5;

}

.detail .product-install-note .icon {
  font-size: 14px;
  color: var(--color-success);
}

/* Download button */
.detail .btn-download {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.detail .btn-download:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

/* ============================================
   WX MODAL
   ============================================ */
.wx-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}

.wx-modal.open {
  visibility: visible;
  pointer-events: auto;
}

/* Mask */
.wx-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wx-modal.open .wx-modal-mask {
  opacity: 1;
}

/* Dialog */
.wx-modal-dialog {
  position: relative;
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-10);
  text-align: center;
  box-shadow: var(--shadow-xl);
  max-width: 360px;
  width: 90%;
  transform: translateY(-24px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease;
  z-index: 1;
}

.wx-modal.open .wx-modal-dialog {
  transform: translateY(0);
  opacity: 1;
}

.wx-modal-dialog h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-5);
  color: var(--color-text);
}

/* Close button */
.wx-modal-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-4);
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.wx-modal-close:hover {
  color: var(--color-text);
  background: var(--color-bg-subtle);
}

/* QR image */
.wx-modal-qr {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border);
  padding: var(--space-2);
  background: #fff;
  margin: 0 auto var(--space-4);
  display: block;
  object-fit: contain;
}

.wx-modal-tip {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.wx-modal-wxid {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.wx-modal-wxid strong {
  color: var(--color-primary);
  font-weight: 600;
}

/* Divider between info and detail */
.detail .info-divider {
  border: none;
  border-top: 2px solid var(--color-border-light);
  margin: var(--space-6) 0;
}

/* Detail body inside detail */
.detail .detail-body {
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.detail .detail-body h3 {
  font-size: var(--text-lg);
  margin: var(--space-6) 0 var(--space-3);
}

.detail .detail-body p {
  margin-bottom: var(--space-3);
}

.detail .detail-body img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: var(--space-4) 0;
}

.detail .detail-body pre,
.detail .detail-body code {
  background: var(--color-bg-subtle);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.detail .detail-body pre {
  padding: var(--space-4);
  overflow-x: auto;
  margin: var(--space-4) 0;
  word-break: break-all;
  white-space: pre-line;
}

.detail .detail-body pre code {
  background: none;
  padding: 0;
}

.detail .detail-body ul,
.detail .detail-body ol {
  padding-left: 2em;
  margin-bottom: var(--space-3);
}

/* Detail body table */
.detail .detail-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-4) 0;
  font-size: var(--text-sm);
}

.detail .detail-body thead {
  background: var(--color-bg-subtle);
}

.detail .detail-body th {
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
  padding: var(--space-3) var(--space-4);
  border-bottom: 2px solid var(--color-border);
}

.detail .detail-body td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
}

.detail .detail-body tbody tr:hover {
  background: var(--color-primary-50);
}

.detail .detail-body td code {
  background: var(--color-bg-subtle);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--color-accent);
}

/* Detail body hr */
.detail .detail-body hr {
  border: none;
  height: 1px;
  margin: var(--space-6) 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-border-light) 15%,
    var(--color-primary-200, var(--color-primary)) 50%,
    var(--color-border-light) 85%,
    transparent 100%
  );
  opacity: 0.5;
}

.detail h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-border-light);
}

/* --- Entry Footer (tags + prev/next) --- */

/* --- Tag & Prev/Next Navigation --- */
.entry-footer {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-8);
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
}

.entry-tags .tags-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.entry-tags .tags-label svg {
  width: 16px;
  height: 16px;
}

.entry-tags a {
  font-size: var(--text-xs);
  color: var(--color-primary);
  background: var(--color-primary-50);
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.entry-tags a:hover {
  background: var(--color-primary);
  color: #fff;
}

.entry-prev-next {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
}

.entry-prev-next span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  min-width: 0;
}

.entry-prev-next span .icon {
  font-size: 14px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.entry-prev-next a {
  color: var(--color-text-secondary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition-fast);
}

.entry-prev-next a:hover {
  color: var(--color-primary);
}

/* ============================================
   RIGHT SIDEBAR
   ============================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.sidebar-widget {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.sidebar-widget h2,
.mod-hd h2 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.sidebar-widget h2 svg,
.mod-hd h2 svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

/* Sidebar plugin list */
.sidebar-plugin-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.sidebar-plugin-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  word-break: break-all;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-3);
}

.sidebar-plugin-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-plugin-list li img {
  width: 80px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--color-border-light);
}

.sidebar-plugin-list li a {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  transition: color var(--transition-fast);
  text-decoration: none;
}

.sidebar-plugin-list li a span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-plugin-list li a:hover {
  color: var(--color-primary);
}

/* Sidebar text list */
.sidebar-text-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.sidebar-text-list li {
  padding-left: var(--space-3);
  position: relative;
}

.sidebar-text-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border);
}

.sidebar-text-list li a {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition-fast);
}

.sidebar-text-list li a:hover {
  color: var(--color-primary);
}

/* Sidebar tags */
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.sidebar-tags a {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  background: var(--color-bg-subtle);
  padding: 4px var(--space-3);
  border-radius: var(--radius-full);
  font-weight: 500;
  transition: all var(--transition-fast);
  border: 1px solid var(--color-border-light);
}

.sidebar-tags a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary-light);
  background: var(--color-primary-50);
}


/* ============================================
   LIST PAGE
   ============================================ */

.list-main {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.list-hd {
  padding-bottom: var(--space-6);
}

.list-hd h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
}

.page-list .cta-section {
  margin-top: var(--space-4);
}

/* ============================================
   NEWS BASE (detail header)
   ============================================ */
.news-base .breadcrumb {
  grid-column: auto;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
}

.news-base h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: var(--space-5);
  color: var(--color-text);
}

.news-base .news-meta {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
}

.news-base .news-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.news-base .news-meta-item svg {
  flex-shrink: 0;
}

.news-base .news-meta-item a {
  color: var(--color-primary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.news-base .news-meta-item a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

/* ============================================
   NEWS LIST ITEM
   ============================================ */
.picture-list-item,
.list-sample-class-name {
  display: flex;
  gap: var(--space-5);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  cursor: pointer;
  transition: all var(--transition-base);
}

.picture-list-item:hover,
.list-sample-class-name:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

/* Image container */
.picture-list-item .list-img,
.list-sample-class-name .list-img {
  width: 200px;
  flex-shrink: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border-light);
}

.picture-list-item .list-img img,
.list-sample-class-name .list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.picture-list-item:hover .list-img img,
.list-sample-class-name:hover .list-img img {
  transform: scale(1.06);
}

.picture-list-item .list-img:empty,
.list-sample-class-name .list-img:empty {
  display: none;
}

/* When no image, body fills */
.picture-list-item .list-body,
.list-sample-class-name .list-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.picture-list-item .list-body h4,
.list-sample-class-name .list-body h4 {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.picture-list-item:hover .list-body h4,
.list-sample-class-name:hover .list-body h4 {
  color: var(--color-primary);
}

.picture-list-item .list-body h4 a,
.list-sample-class-name .list-body h4 a {
  color: inherit;
}

.picture-list-item .list-body .list-desc,
.list-sample-class-name .list-body .list-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-3);
}

/* Footer meta */
.picture-list-item .list-footer,
.list-sample-class-name .list-footer {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.picture-list-item .list-footer .list-cat a,
.list-sample-class-name .list-footer .list-cat a {
  color: var(--color-primary);
  background: var(--color-primary-50);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.picture-list-item .list-footer .list-cat a:hover,
.list-sample-class-name .list-footer .list-cat a:hover {
  background: var(--color-primary);
  color: #fff;
}

.picture-list-item .list-footer .list-cat,
.picture-list-item .list-footer .list-date,
.picture-list-item .list-footer .list-views,
.list-sample-class-name .list-footer .list-cat,
.list-sample-class-name .list-footer .list-date,
.list-sample-class-name .list-footer .list-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.picture-list-item .list-footer svg,
.list-sample-class-name .list-footer svg {
  flex-shrink: 0;
}

/* Mobile */
@media (max-width: 768px) {

  .picture-list-item,
  .list-sample-class-name {
    flex-direction: column;
    padding: var(--space-4);
    gap: var(--space-3);
  }

  .picture-list-item .list-img,
  .list-sample-class-name .list-img {
    width: 100%;
    max-width: 100%;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 100%);
  border-top: 1px solid var(--color-border);
  padding: var(--space-12) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
  background-size: 200% 100%;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

/* Brand */
.footer-brand a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-brand a:hover {
  color: var(--color-primary);
}

.footer-brand a:hover img {
  transform: rotate(10deg) scale(1.1);
  filter: drop-shadow(0 2px 6px rgba(37, 99, 235, 0.3));
}

.footer-brand img {
  height: 36px;
  width: auto;
  transition: all var(--transition-base);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-top: var(--space-4);
  max-width: 480px;
  position: relative;
  padding-left: var(--space-4);
  border-left: 3px solid var(--color-primary-light);
}

/* Links */
.footer-links h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-5);
  color: var(--color-text);
  position: relative;
  padding-bottom: var(--space-2);
  display: inline-block;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  border-radius: 1px;
}

.footer-links .links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3) var(--space-6);
}

.footer-links .links-grid a {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
  padding: var(--space-1) 0;
}

.footer-links .links-grid a::before {
  content: '›';
  position: absolute;
  left: calc(-1 * var(--space-3));
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--transition-fast);
  color: var(--color-primary);
  font-weight: 600;
}

.footer-links .links-grid a:hover {
  color: var(--color-primary);
  padding-left: var(--space-3);
}

.footer-links .links-grid a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-8);
  margin-top: var(--space-2);
}

.footer-friends {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin-bottom: var(--space-6);
  font-size: var(--text-xs);
}

.footer-friends .friends-label {
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: var(--text-sm);
  margin-right: var(--space-1);
}

.footer-friends a {
  display: inline-block;
  color: var(--color-text-secondary);
  padding: var(--space-1) var(--space-3);
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: 999px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.footer-friends a:hover {
  color: var(--color-primary);
  background: var(--color-primary-50);
  border-color: var(--color-primary-light);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--color-border-light);
}

.footer-legal span {
  letter-spacing: 0.02em;
}

.footer-legal a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--color-primary);
}

.footer-legal a[rel="nofollow"]::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  background: var(--color-border);
  border-radius: 50%;
  margin-right: var(--space-2);
  vertical-align: middle;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .template-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Detail page */
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail .base-info {
    flex-direction: column;
  }

  .detail .base-thumb {
    width: 100%;
    max-width: 400px;
  }

  .detail .meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (375px - 768px) */
@media (max-width: 768px) {
  :root {
    --navbar-height: 56px;
  }

  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  /* Navbar mobile */
  .navbar-toggle {
    display: flex;
  }

  .navbar-nav {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: rgba(15, 27, 46, 0.98);
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
    flex-direction: column;
    padding: var(--space-4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    gap: var(--space-1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .navbar-nav.open {
    display: flex;
  }

  .navbar-nav a {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
  }

  /* Template cards */
  .template-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .template-card .card-image {
    margin: var(--space-2);
  }

  .template-card .card-body {
    padding: 0 var(--space-3);
  }

  .template-card .card-footer {
    padding: var(--space-2) var(--space-3) var(--space-3);
  }

  /* News grid */
  .news-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* CTA */
  .cta-section {
    padding: var(--space-8) var(--space-6);
  }

  .cta-section h2 {
    font-size: var(--text-2xl);
  }

  /* Detail page */
  .detail .meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail .product-price {
    font-size: var(--text-2xl);
  }

  .detail .product-features {
    gap: var(--space-2) var(--space-4);
  }

  /* Footer */
  .footer-links .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small Mobile (320px - 375px) */
@media (max-width: 480px) {
  .template-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }

  .template-card .card-image {
    margin: var(--space-2);
    border-radius: var(--radius-sm);
  }

  .template-card .card-title {
    font-size: var(--text-xs);
  }

  .template-card .card-footer {
    font-size: 11px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: var(--text-lg);
  }

  .footer-friends {
    gap: var(--space-1) var(--space-3);
  }
}

/* ============================================
   ANIMATIONS (respects prefers-reduced-motion)
   ============================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Fade in animation for cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}

/* ============================================
   FOCUS STYLES (accessibility)
   ============================================ */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

  .navbar,
  .footer,
  .btn-more,
  .btn-cta {
    display: none;
  }
}


.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: middle;
  font-size: 20px;
}

.icon svg {
  width: 100%;
  height: 100%;
}