/* ============================================
   Travel With Yu - Modern Design System
   Theme: Soft spring pastels with elegant minimalism
   ============================================ */

:root {
  /* Core colors */
  --primary: #6BA9E8;
  --primary-light: #A8D4F5;
  --primary-dark: #4A90D9;
  --accent: #F0A5B5;
  --accent-light: #FCD5DE;
  --accent-dark: #E88A9E;
  
  /* Neutrals */
  --text-900: #1A2332;
  --text-700: #3D4A5C;
  --text-500: #6B7A90;
  --text-300: #9CAEC4;
  --text-100: #D4DEEB;
  
  /* Backgrounds */
  --bg-white: #FFFFFF;
  --bg-cream: #FDFBF7;
  --bg-soft: #F7F9FC;
  --bg-blue: #EFF6FD;
  --bg-pink: #FEF2F5;
  --bg-gradient: linear-gradient(180deg, #FDFBF7 0%, #F7F9FC 100%);
  
  /* Borders */
  --border: #EAEEF5;
  --border-light: #F2F5FA;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(26, 35, 50, 0.04);
  --shadow-md: 0 4px 20px rgba(26, 35, 50, 0.06);
  --shadow-lg: 0 8px 40px rgba(26, 35, 50, 0.08);
  --shadow-xl: 0 20px 60px rgba(26, 35, 50, 0.1);
  --shadow-primary: 0 4px 20px rgba(107, 169, 232, 0.2);
  --shadow-accent: 0 4px 20px rgba(240, 165, 181, 0.2);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6BA9E8 0%, #A8D4F5 100%);
  --gradient-accent: linear-gradient(135deg, #F0A5B5 0%, #FCD5DE 100%);
  --gradient-hero: linear-gradient(135deg, #EFF6FD 0%, #FEF2F5 100%);
  --gradient-card: linear-gradient(135deg, rgba(107, 169, 232, 0.08) 0%, rgba(240, 165, 181, 0.08) 100%);
  --gradient-text: linear-gradient(135deg, #6BA9E8 0%, #F0A5B5 100%);
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-display: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-900);
  background: var(--bg-cream);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   Navigation
   ============================================ */

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: all 0.3s ease;
}

.top-nav.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.95);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo i {
  font-size: 1.4rem;
  -webkit-text-fill-color: var(--primary);
  color: var(--primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-500);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all 0.25s ease;
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary);
  background: var(--bg-blue);
}

.nav-menu a.active {
  color: var(--primary);
  background: var(--bg-blue);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  font-size: 1.3rem;
  color: var(--text-700);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: var(--bg-soft);
}

/* ============================================
   Main Layout with Sidebar
   ============================================ */

.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 32px 80px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  position: relative;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-inner {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 12px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-300);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 12px 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 8px;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 2px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text-500);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  position: relative;
}

.sidebar-nav a:hover {
  color: var(--primary);
  background: var(--bg-blue);
}

.sidebar-nav a.active {
  color: var(--primary);
  background: var(--bg-blue);
  font-weight: 600;
}

.sidebar-nav a.active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: 0 3px 3px 0;
}

.sidebar-nav a i {
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
}

/* Content Area */
.content-area {
  min-width: 0;
}

/* ============================================
   Section Styles
   ============================================ */

.section-block {
  margin-bottom: var(--space-2xl);
  scroll-margin-top: 100px;
}

.section-header {
  margin-bottom: var(--space-lg);
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-900);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-500);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  margin-bottom: var(--space-2xl);
  scroll-margin-top: 100px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-500);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-eyebrow i {
  color: var(--accent);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-500);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-name {
  font-size: 1.1rem;
  color: var(--text-700);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero-name span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-500);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-description strong {
  color: var(--text-700);
  font-weight: 600;
}

/* Feature tags */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 28px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  color: var(--text-700);
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.feature-tag:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.feature-tag i {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  background: var(--bg-blue);
  border-radius: 50%;
  flex-shrink: 0;
}

.feature-tag-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-700);
  margin-bottom: 6px;
  line-height: 1.4;
}

.feature-tag-text p {
  font-size: 0.78rem;
  color: var(--text-400);
  line-height: 1.5;
  margin: 0;
}

.verified-badge {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-300);
}

.verified-badge i {
  color: var(--primary);
}

/* ============================================
   Product Cards
   ============================================ */

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: var(--space-lg);
}

.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card.popular {
  background: var(--bg-pink);
  border-color: var(--accent-light);
  box-shadow: var(--shadow-accent);
}

.product-card.popular::before {
  background: var(--gradient-accent);
  opacity: 1;
}

.product-card.popular .product-votes {
  background: var(--accent-light);
  color: var(--accent-dark);
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 0;
  padding: 4px 12px 4px 14px;
  background: var(--gradient-accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.product-votes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-blue);
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  line-height: 1.4;
}

.product-votes i {
  font-size: 0.7rem;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-900);
  margin-bottom: 4px;
}

.product-title-zh {
  font-size: 0.85rem;
  color: var(--text-300);
  margin-bottom: 10px;
}

.product-desc {
  font-size: 0.82rem;
  color: var(--text-500);
  line-height: 1.6;
  margin-bottom: 14px;
}

.product-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-900);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.product-price .bonus {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-left: 4px;
}

.product-features {
  list-style: none;
  margin-bottom: 24px;
}

.product-features li {
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text-500);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.product-features li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  background: var(--primary-light);
  border-radius: 50%;
}

.product-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: var(--bg-soft);
  color: var(--text-700);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.product-btn:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-primary);
}

/* Dining note */
.dining-note {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--bg-blue);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
  font-size: 0.85rem;
  color: var(--text-500);
  line-height: 1.7;
}

.dining-note p {
  margin-bottom: 10px;
}

.dining-note p:last-child {
  margin-bottom: 0;
}

.dining-note strong {
  color: var(--text-700);
}

/* Products unified note */
.products-unified-note {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-500);
  line-height: 1.7;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.products-unified-note p {
  margin-bottom: 10px;
}

.products-unified-note p:last-child {
  margin-bottom: 0;
}

.products-unified-note strong {
  color: var(--text-700);
  font-weight: 600;
}

/* ============================================
   Progress Section (RV Fund)
   ============================================ */

.progress-wrapper {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}

.progress-amount {
  text-align: left;
}

.progress-amount-label {
  font-size: 0.8rem;
  color: var(--text-300);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.progress-amount-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-900);
  letter-spacing: -0.02em;
}

.progress-goal {
  text-align: right;
}

.progress-goal-label {
  font-size: 0.8rem;
  color: var(--text-300);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.progress-goal-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-500);
}

.progress-bar-track {
  height: 12px;
  background: var(--bg-soft);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-percent {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.progress-percent-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-300);
}

/* Fund usage cards */
.fund-usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.fund-item {
  padding: 20px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.3s ease;
}

.fund-item:hover {
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.fund-item i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.fund-item-label {
  font-size: 0.8rem;
  color: var(--text-500);
  font-weight: 500;
}

.fund-note {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-pink);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-500);
  text-align: center;
  font-style: italic;
}

/* ============================================
   Voting Section
   ============================================ */

.voting-intro {
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.voting-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: var(--space-lg);
}

.voting-step {
  padding: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.3s ease;
}

.voting-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 12px;
}

.step-text {
  font-size: 0.85rem;
  color: var(--text-500);
  line-height: 1.6;
}

.step-text strong {
  display: block;
  color: var(--text-700);
  margin-bottom: 4px;
}

/* Voting Rules Card */
.voting-rules-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.voting-rules-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-900);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.voting-rules-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.voting-rules-list {
  list-style: none;
  counter-reset: rule-counter;
  padding: 0;
  margin: 0;
}

.voting-rules-list li {
  counter-increment: rule-counter;
  position: relative;
  padding: 10px 0 10px 36px;
  font-size: 0.9rem;
  color: var(--text-500);
  line-height: 1.7;
  border-bottom: 1px dashed var(--border-light);
}

.voting-rules-list li:last-child {
  border-bottom: none;
}

.voting-rules-list li::before {
  content: counter(rule-counter);
  position: absolute;
  left: 0;
  top: 10px;
  width: 24px;
  height: 24px;
  background: var(--bg-blue);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ranking Chart */
.ranking-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.ranking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.ranking-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-900);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ranking-title i {
  color: var(--primary);
}

.ranking-date {
  font-size: 0.8rem;
  color: var(--text-300);
}

.ranking-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rank-number {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.rank-1 .rank-number { background: linear-gradient(135deg, #FFD700, #FFA500); color: white; }
.rank-2 .rank-number { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: white; }
.rank-3 .rank-number { background: linear-gradient(135deg, #CD7F32, #B8860B); color: white; }
.rank-row:not(.rank-1):not(.rank-2):not(.rank-3) .rank-number { 
  background: var(--bg-soft); 
  color: var(--text-500); 
}

.rank-city {
  width: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-700);
  flex-shrink: 0;
}

.rank-bar-track {
  flex: 1;
  height: 32px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.rank-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
}

.rank-1 .rank-bar-fill { background: linear-gradient(90deg, #FFD700, #FFA500); }
.rank-2 .rank-bar-fill { background: linear-gradient(90deg, #C0C0C0, #A0A0A0); }
.rank-3 .rank-bar-fill { background: linear-gradient(90deg, #CD7F32, #B8860B); }

.rank-votes {
  width: 50px;
  text-align: right;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-500);
  flex-shrink: 0;
}

.view-all-link {
  text-align: right;
  margin-top: 20px;
}

.view-all-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: gap 0.2s ease;
}

.view-all-link a:hover {
  gap: 10px;
}

/* ============================================
   Guide Progress Cards
   ============================================ */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: var(--space-lg);
}

/* Guide Progress Notes */
.guide-progress-notes {
  max-width: 700px;
  margin: 16px auto 0;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--text-400);
  line-height: 1.7;
}

.guide-progress-notes p {
  margin-bottom: 8px;
}

.guide-progress-notes p:last-child {
  margin-bottom: 0;
}

.guide-progress-notes strong {
  color: var(--text-500);
  font-weight: 600;
}

/* In Production - List Style */
.guide-production-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: var(--space-lg);
}

.guide-production-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.guide-production-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.guide-production-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-production-city {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-900);
  display: flex;
  align-items: center;
  gap: 12px;
}

.guide-production-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: linear-gradient(135deg, #A8E6CF 0%, #88D8B0 100%);
  color: #2D6A4F;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.guide-production-date {
  font-size: 0.9rem;
  color: var(--text-500);
  display: flex;
  align-items: center;
  gap: 6px;
}

.guide-production-date i {
  color: var(--primary-light);
  font-size: 0.85rem;
}

.guide-production-countdown {
  text-align: right;
}

.countdown-label {
  font-size: 0.75rem;
  color: var(--text-400);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.countdown-days {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.countdown-days span {
  font-size: 0.8rem;
  font-weight: 600;
  -webkit-text-fill-color: var(--accent-dark);
  margin-left: 2px;
}

/* Fundraising Cards */
.guide-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.guide-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.guide-city {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-900);
}

.guide-status {
  padding: 4px 10px;
  background: var(--bg-blue);
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.guide-status.voting {
  background: var(--bg-pink);
  color: var(--accent-dark);
}

.guide-vote-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-500);
  margin-bottom: 8px;
}

.guide-vote-info .votes-num {
  font-weight: 700;
  color: var(--text-700);
}

.guide-progress-bar {
  height: 8px;
  background: var(--bg-soft);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 16px;
}

.guide-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.guide-date {
  font-size: 0.8rem;
  color: var(--text-300);
  display: flex;
  align-items: center;
  gap: 6px;
}

.guide-date i {
  color: var(--primary-light);
}

.guide-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-500);
  line-height: 1.7;
}

.guide-note strong {
  color: var(--text-700);
}

/* ============================================
   Rewards Section
   ============================================ */

.rewards-intro {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.reward-section-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.reward-section-card:hover {
  box-shadow: var(--shadow-md);
}

.reward-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.reward-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  font-size: 1.3rem;
  border-radius: var(--radius-md);
}

.reward-section-card.accent .reward-icon {
  background: var(--gradient-accent);
}

.reward-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-900);
}

.reward-desc {
  font-size: 0.9rem;
  color: var(--text-500);
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Postcard options */
.postcard-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.postcard-option {
  padding: 20px 16px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
}

.postcard-option:hover {
  background: var(--bg-blue);
  transform: translateY(-2px);
}

.option-num {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.option-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-700);
  margin-bottom: 4px;
}

.option-desc {
  font-size: 0.75rem;
  color: var(--text-300);
  line-height: 1.5;
}

.reward-list {
  list-style: none;
}

.reward-list li {
  padding: 12px 0;
  font-size: 0.9rem;
  color: var(--text-500);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
}

.reward-list li:last-child {
  border-bottom: none;
}

.reward-list li i {
  color: var(--primary);
  margin-top: 4px;
  flex-shrink: 0;
}

.reward-section-card.accent .reward-list li i {
  color: var(--accent);
}

.reward-note {
  margin-top: 16px;
  padding: 14px;
  background: var(--bg-pink);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-500);
  line-height: 1.7;
}

/* ============================================
   FAQ Section (Accordion)
   ============================================ */

.faq-container {
  max-width: 768px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.faq-item.active {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  user-select: none;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: var(--bg-soft);
}

.faq-item.active .faq-question {
  background: var(--bg-blue);
}

.faq-question-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-700);
  line-height: 1.5;
}

.faq-item.active .faq-question-text {
  color: var(--primary-dark);
}

.faq-toggle {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.faq-item.active .faq-toggle {
  background: var(--primary);
  color: white;
  transform: rotate(45deg);
}

.faq-toggle i {
  font-size: 0.8rem;
  color: var(--text-500);
  transition: color 0.2s;
}

.faq-item.active .faq-toggle i {
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 24px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-500);
  line-height: 1.8;
}

.faq-answer strong {
  color: var(--text-700);
}

.faq-answer table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.85rem;
}

.faq-answer th,
.faq-answer td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.faq-answer th {
  font-weight: 600;
  color: var(--text-700);
  background: var(--bg-soft);
}

/* ============================================
   Version Info
   ============================================ */

.version-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--gradient-primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.version-list {
  list-style: none;
  margin-bottom: 20px;
}

.version-list li {
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-500);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.version-list li i {
  color: var(--primary);
  margin-top: 4px;
  flex-shrink: 0;
}

.upgrade-note {
  padding: 20px;
  background: var(--bg-pink);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-500);
  line-height: 1.7;
}

.upgrade-note strong {
  color: var(--text-700);
}

.upgrade-note ol {
  margin: 8px 0 8px 24px;
}

.upgrade-note ol li {
  margin-bottom: 4px;
}

/* ============================================
   Closing Section
   ============================================ */

.closing {
  text-align: center;
  padding: 80px 40px;
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  margin-top: var(--space-2xl);
}

.closing::before {
  content: '旅';
  position: absolute;
  font-size: 300px;
  font-weight: 900;
  opacity: 0.03;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: serif;
  pointer-events: none;
}

.closing-text {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text-900);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.closing-text-cn {
  font-size: 1.1rem;
  color: var(--text-500);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.closing-description {
  font-size: 1rem;
  color: var(--text-500);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.closing-signature {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
  position: relative;
  z-index: 1;
}

/* Disclaimer */
.disclaimer {
  text-align: center;
  margin-top: 40px;
  padding: 24px;
  font-size: 0.8rem;
  color: var(--text-300);
  line-height: 1.8;
}

/* ============================================
   Products Page
   ============================================ */

.page-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 32px 80px;
}

.page-header {
  text-align: center;
  margin-bottom: 64px;
}

.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.page-description {
  font-size: 1.05rem;
  color: var(--text-500);
  max-width: 600px;
  margin: 0 auto;
}

.products-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-showcase-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.product-showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.product-showcase-image {
  width: 100%;
  height: 200px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: white;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.product-showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-showcase-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.2), transparent);
}

.product-showcase-body {
  padding: 24px;
}

.product-showcase-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-900);
  margin-bottom: 8px;
}

.product-showcase-desc {
  font-size: 0.85rem;
  color: var(--text-500);
  margin-bottom: 20px;
  line-height: 1.6;
}

.product-showcase-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-soft);
  color: var(--text-700);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.product-showcase-card:hover .product-showcase-btn {
  background: var(--gradient-primary);
  color: white;
}

/* ============================================
   Contact Page
   ============================================ */

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-900);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-card h3 i {
  color: var(--primary);
}

.social-handle {
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}

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

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 20px 10px;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.social-item:hover {
  background: var(--bg-blue);
  transform: translateY(-3px);
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.social-item:hover .social-icon {
  transform: scale(1.1);
}

.social-name {
  font-size: 0.75rem;
  color: var(--text-500);
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-700);
  font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-900);
  background: var(--bg-cream);
  transition: all 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(107, 169, 232, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.submit-btn:active {
  transform: translateY(0);
}

.success-message,
.error-message {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.success-message {
  background: #E8F8F0;
  color: #27AE60;
}

.error-message {
  background: #FDECEA;
  color: #E74C3C;
}

/* ============================================
   Ranking Page
   ============================================ */

.ranking-toolbar {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 12px 20px 12px 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  background: var(--bg-white);
  transition: all 0.25s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107, 169, 232, 0.1);
}

.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-300);
}

.filter-select {
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  background: var(--bg-white);
  cursor: pointer;
  color: var(--text-700);
  transition: all 0.2s ease;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
}

.ranking-table-container {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
}

.ranking-table thead {
  background: var(--bg-soft);
}

.ranking-table th {
  padding: 16px 24px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

.ranking-table td {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-700);
}

.ranking-table tbody tr {
  transition: background 0.2s ease;
}

.ranking-table tbody tr:hover {
  background: var(--bg-soft);
}

.ranking-table tbody tr:last-child td {
  border-bottom: none;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.8rem;
}

.rank-badge.rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: white; }
.rank-badge.rank-2 { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: white; }
.rank-badge.rank-3 { background: linear-gradient(135deg, #CD7F32, #B8860B); color: white; }
.rank-badge.rank-other { background: var(--bg-soft); color: var(--text-500); }

/* ============================================
   Admin Panel (basic styles, full styles in original)
   ============================================ */

/* Keeping admin styles separate for clarity */

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
  .main-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sidebar {
    position: static;
    order: -1;
  }

  .sidebar-inner {
    padding: 12px;
  }

  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .sidebar-nav li {
    margin-bottom: 0;
  }

  .sidebar-nav a.active::before {
    display: none;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .postcard-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .main-container,
  .page-container {
    padding: 90px 20px 60px;
  }

  .nav-container {
    padding: 0 20px;
  }

  .section-block {
    margin-bottom: 64px;
  }

  .hero {
    padding: 40px 0;
  }

  .progress-wrapper {
    padding: 24px;
  }

  .progress-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .progress-goal {
    text-align: left;
  }

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

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

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

  .voting-steps {
    grid-template-columns: 1fr;
  }

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

  .contact-card {
    padding: 24px;
  }

  .closing {
    padding: 48px 24px;
  }

  .rank-city {
    width: 70px;
    font-size: 0.8rem;
  }

  .ranking-card {
    padding: 20px;
  }

  .faq-question {
    padding: 16px 18px;
  }

  .faq-item.active .faq-answer {
    padding: 0 18px 20px;
  }

  .reward-section-card {
    padding: 24px;
  }
}

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

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

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

  .products-showcase {
    grid-template-columns: 1fr;
  }

  .rank-city {
    width: 55px;
    font-size: 0.75rem;
  }

  .rank-votes {
    width: 40px;
    font-size: 0.75rem;
  }
}

/* Utility classes */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none !important; }

/* ============================================
   Products Page - What I Have
   ============================================ */

.products-page {
  min-height: 100vh;
  padding-top: 72px;
}

/* Hero Section */
.products-hero {
  padding: 60px 20px 40px;
  text-align: center;
  background: var(--gradient-hero);
}

.products-hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.products-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.products-hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-500);
  line-height: 1.7;
}

/* Filter Section */
.filter-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 16px;
}

.filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-500);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.filter-tab:hover {
  background: var(--bg-blue);
  color: var(--primary);
}

.filter-tab.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-primary);
}

.filter-tab i {
  font-size: 0.85rem;
}

/* Search Box */
.search-box {
  position: relative;
  min-width: 240px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-300);
  font-size: 0.9rem;
}

.search-box input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--bg-soft);
  color: var(--text-700);
  transition: all 0.25s ease;
  outline: none;
}

.search-box input:focus {
  border-color: var(--primary-light);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(107, 169, 232, 0.15);
}

.search-box input::placeholder {
  color: var(--text-300);
}

.results-count {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-400);
  text-align: right;
  padding-right: 4px;
}

/* City Grid Section */
.city-grid-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 48px;
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* City Card */
.city-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.city-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.city-card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
}

.city-card-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.city-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.city-card:hover .city-card-image {
  transform: scale(1.08);
}

.city-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.city-card-placeholder span {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
}

/* Status Badge - top right corner */
.city-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.city-status-badge.completed {
  color: #4CAF50;
}

.city-status-badge.in-progress {
  color: #FF9800;
}

.city-status-badge.planned {
  color: #9E9E9E;
}

.city-status-badge i {
  font-size: 0.65rem;
}

/* City Content Overlay - all text on image */
.city-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 18px 16px;
  z-index: 2;
  color: white;
}

.city-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  line-height: 1.3;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.city-card-tagline {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin-bottom: 10px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* City Tags - bottom of content */
.city-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.city-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Card Body - removed */
.city-card-body {
  display: none;
}

/* Card Action - removed */
.city-card-actions {
  display: none;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-400);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1rem;
  margin: 0;
}

/* Inside Guide Section */
.inside-guide-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  border-top: 1px solid var(--border-light);
}

.inside-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.inside-grid-row {
  display: grid;
  gap: 20px;
}

.inside-grid-row.top {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1000px;
  margin: 0 auto;
}

.inside-grid-row.bottom {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1000px;
  margin: 0 auto;
}

.inside-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.inside-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.inside-item i {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  background: var(--bg-blue);
  border-radius: 50%;
  flex-shrink: 0;
}

.inside-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-700);
  margin: 0;
  line-height: 1.4;
}

.inside-item p {
  font-size: 0.8rem;
  color: var(--text-400);
  line-height: 1.6;
  margin: 0;
}

/* Page Disclaimer */
.page-disclaimer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-300);
  line-height: 1.7;
}

.page-disclaimer strong {
  color: var(--text-400);
}

/* ============================================
   Products Page - Responsive
   ============================================ */

@media (max-width: 768px) {
  .inside-grid-row.top {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .inside-grid-row.bottom {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  .filter-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-tabs {
    justify-content: center;
  }
  
  .search-box {
    min-width: 100%;
  }
  
  .results-count {
    text-align: center;
  }
  
  .city-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .products-hero {
    padding: 40px 20px 24px;
  }
  
  .filter-section {
    padding: 20px 16px 12px;
  }
  
  .city-grid-section {
    padding: 12px 16px 32px;
  }
  
  .city-grid {
    grid-template-columns: 1fr;
  }
  
  .inside-grid-row.top {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .inside-grid-row.bottom {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
  
  .filter-tab {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}

/* ============================================
   Admin - Page Content Management Cards
   ============================================ */

.content-group-section {
  margin-bottom: 10px;
}
.content-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 768px) {
  .content-items-grid {
    grid-template-columns: 1fr;
  }
}
.content-item-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: box-shadow 0.2s;
}
.content-item-card:hover {
  box-shadow: var(--shadow-sm);
}
.content-item-header {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.content-item-key {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: var(--primary-blue);
  font-weight: 600;
  word-break: break-all;
}
.content-item-desc {
  font-size: 0.75rem;
  color: var(--text-light);
}
.content-item-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.content-field label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-500);
  text-transform: uppercase;
  display: block;
  margin-bottom: 3px;
}
.content-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-700);
  background: var(--white);
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.content-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(124, 185, 232, 0.15);
}
.content-textarea {
  resize: vertical;
  min-height: 60px;
  font-family: inherit;
}

/* ============================================
   Site Footer
   ============================================ */
.site-footer {
  margin-top: 60px;
  padding: 30px 0;
  border-top: 1px solid var(--border-light);
  text-align: center;
}
.footer-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-500);
  margin-bottom: 10px;
}
.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.6;
}
