/* PartyCraft Borderless Card Design - 2025 */
/* Design Token Variables */
:root {
  /* New Borderless Design Colors */
  --bg: #F8FAFC;
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --accent: #3B82F6;
  --gradient-start: #3B82F6;
  --gradient-end: #8B5CF6;
  
  /* Legacy colors for compatibility */
  --surface: #FFFFFF;
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --primary: var(--accent);
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --border: #E2E8F0;
  
  /* Party Type Theme Colors */
  --birthday-primary: #FF6B6B;
  --birthday-secondary: #FFD166;
  --social-primary: #7C3AED;
  --social-secondary: #22D3EE;
  --theme-primary: #F97316;
  --theme-secondary: #8B5CF6;
  --music-primary: #10B981;
  --music-secondary: #0EA5E9;
  
  /* Borderless Design Shadows & Effects */
  --shadow-card: 0px 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0px 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-focus: 0px 0px 0px 3px rgba(59, 130, 246, 0.1);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-2xl: 24px;
  --space-3xl: 32px;
  
  /* Typography - Inter Font */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 28px;
  --line-height-sm: 20px;
  --line-height-base: 22px;
  --line-height-lg: 28px;
  --line-height-xl: 34px;
}

/* Theme Data Attributes */
[data-theme="birthday"] {
  --theme-primary: var(--birthday-primary);
  --theme-secondary: var(--birthday-secondary);
}

[data-theme="social"] {
  --theme-primary: var(--social-primary);
  --theme-secondary: var(--social-secondary);
}

[data-theme="theme"] {
  --theme-primary: var(--theme-primary);
  --theme-secondary: var(--theme-secondary);
}

[data-theme="music"] {
  --theme-primary: var(--music-primary);
  --theme-secondary: var(--music-secondary);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  font-size: var(--font-size-base);
  overflow-x: hidden;
}

.borderless-design {
  font-weight: 400;
}

/* Top Navigation */
.top-nav {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
}

.nav-container {
  max-width: 428px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  height: 100%;
}

.nav-brand h1 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.nav-search input {
  background: #F1F5F9;
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  width: 200px;
  outline: none;
  transition: all 0.2s ease;
}

.nav-search input:focus {
  background: white;
  box-shadow: var(--shadow-focus);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.user-avatar:hover {
  transform: scale(1.05);
}

/* Main Content */
.main-content {
  max-width: 428px;
  margin: 0 auto;
  padding-top: 64px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.home-screen,
.planning-screen,
.event-details,
.profile-screen {
  padding: var(--space-xl);
}

/* Highlight Card */
.highlight-card {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.highlight-bg {
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(10px);
}

.highlight-content {
  padding: var(--space-3xl);
  color: white;
  position: relative;
}

.date-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: var(--space-xs) var(--space-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  display: inline-block;
  margin-bottom: var(--space-lg);
}

.highlight-content h2 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  line-height: var(--line-height-xl);
  margin: 0 0 var(--space-md);
}

.tagline {
  font-size: var(--font-size-base);
  opacity: 0.9;
  margin: 0 0 var(--space-2xl);
  line-height: var(--line-height-base);
}

.participants {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.participant-avatars {
  display: flex;
  gap: var(--space-xs);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
}

.participant-count {
  font-size: var(--font-size-sm);
  font-weight: 500;
  opacity: 0.9;
}

.join-btn {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: auto;
}

.join-btn:hover {
  background: white;
  transform: translateY(-1px);
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.section-header h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.see-all {
  background: none;
  border: none;
  color: var(--accent);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  padding: var(--space-xs) 0;
}

/* Events Scroll */
.events-scroll {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.events-scroll::-webkit-scrollbar {
  display: none;
}

.event-card {
  min-width: 280px;
  flex: 0 0 280px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  scroll-snap-align: start;
}

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

.event-card:active {
  transform: translateY(-2px);
  transition: transform 0.1s ease;
}

.event-image {
  height: 120px;
  background: linear-gradient(135deg, #FF6B6B 0%, #FFD166 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
}

.event-date {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-sm);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.event-info {
  padding: var(--space-lg);
}

.event-info h4 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-xs);
}

.event-meta {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* Screen Headers */
.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
  padding: 0 var(--space-md);
}

.screen-header h2 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.back-btn {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: var(--font-size-lg);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: var(--bg);
  box-shadow: var(--shadow-card);
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-card);
  border: none;
  transition: all 0.3s ease;
}

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

.card h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-lg);
}

.success-card {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
}

.success-content {
  text-align: center;
}

.success-content h4 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin: 0 0 var(--space-md);
}

/* Trust Section */
.trust-section {
  margin-bottom: var(--space-2xl);
  padding: 0 var(--space-md);
}

.trust-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.trust-item {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  padding: var(--space-sm) 0;
}

/* Type Grid */
.type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.type-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.type-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.type-card.active {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
}

.type-emoji {
  font-size: var(--font-size-3xl);
}

.type-label {
  font-size: var(--font-size-base);
  font-weight: 600;
}

/* Form Elements */
.form-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-label {
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
  font-family: var(--font-family);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background: white;
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
}

/* Segmented Control */
.segmented-control {
  display: flex;
  background: #F1F5F9;
  border-radius: var(--radius-md);
  padding: var(--space-xs);
  gap: var(--space-xs);
}

.segment {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.segment.active {
  background: white;
  color: var(--text-primary);
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
}

/* Budget Slider */
.budget-slider {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

#budgetSlider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #E2E8F0;
  outline: none;
  -webkit-appearance: none;
}

#budgetSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

#budgetSlider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}

.budget-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: var(--space-sm) 0;
  z-index: 100;
}

.nav-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  min-width: 60px;
}

.nav-item.active {
  color: var(--accent);
}

.nav-icon {
  font-size: var(--font-size-lg);
}

.nav-label {
  font-size: 12px;
  font-weight: 500;
}

/* Action Buttons */
.action-buttons {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-md);
  z-index: 90;
}

.action-btn {
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-card);
}

.action-btn.primary {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
}

.action-btn.secondary {
  background: white;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

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

/* Event Details */
.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  position: relative;
  z-index: 10;
}

.event-cover {
  height: 200px;
  background: linear-gradient(135deg, #FF6B6B 0%, #FFD166 100%);
  display: flex;
  align-items: flex-end;
  margin: 0 calc(-1 * var(--space-xl)) var(--space-xl);
  position: relative;
}

.event-overlay {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  padding: var(--space-2xl);
  width: 100%;
  color: white;
}

.event-overlay h2 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin: 0 0 var(--space-sm);
}

.event-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.meta-icon {
  font-size: var(--font-size-base);
}

.host-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.host-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.host-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--font-size-lg);
}

.host-info h4 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.host-info p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin: 0;
}

.follow-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
}

.feature-list {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.feature-item {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

/* Profile */
.profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  text-align: left;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--font-size-2xl);
}

.profile-info h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.profile-info p {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  margin: var(--space-xs) 0 0;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.action-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.action-card h4 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-xs);
}

.action-card p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: modalFadeIn 0.3s ease-out;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 24px;
  max-width: 320px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  animation: modalSlideIn 0.3s ease-out forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
 }

/* Calendar页面完整样式 */
.add-event-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.add-event-btn:hover {
  background: #0056b3;
}

.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: white;
  border-bottom: 1px solid #eee;
}

.nav-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #007bff;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.nav-btn:hover {
  background: #f8f9ff;
}

#currentMonth {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.calendar-container {
  background: white;
  margin: 0 20px 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.weekday {
  padding: 12px;
  text-align: center;
  font-weight: 600;
  color: #666;
  font-size: 14px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
  min-height: 80px;
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  position: relative;
}

.calendar-day:hover {
  background: #f8f9ff;
}

.calendar-day.other-month {
  color: #ccc;
  background: #fafafa;
}

.calendar-day.today {
  background: #e3f2fd;
}

.calendar-day.has-events {
  background: #fff3cd;
}

.day-number {
  font-weight: 600;
  margin-bottom: 4px;
}

.day-events {
  font-size: 10px;
  color: #007bff;
}

.event-dot {
  width: 6px;
  height: 6px;
  background: #007bff;
  border-radius: 50%;
  display: inline-block;
  margin: 1px;
}

.event-list-section {
  margin: 0 20px;
}

.event-list-section h3 {
  margin-bottom: 16px;
  color: #333;
  font-size: 18px;
}

.upcoming-events {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-item {
  background: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 4px solid #007bff;
}

.event-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.event-item.party {
  border-left-color: #ff6b6b;
}

.event-item.meeting {
  border-left-color: #4ecdc4;
}

.event-item.birthday {
  border-left-color: #ffe66d;
}

.event-item.wedding {
  border-left-color: #ff8b94;
}

.event-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.event-time {
  color: #666;
  font-size: 14px;
  margin-bottom: 4px;
}

.event-location {
  color: #888;
  font-size: 12px;
}

/* 事件表单样式 */
.event-form {
  padding: 20px;
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

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

.reminder-options {
  margin-top: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.btn-secondary {
  background: #6c757d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-secondary:hover {
  background: #545b62;
}

.btn-danger {
  background: #dc3545;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-danger:hover {
  background: #c82333;
}

.event-details-content {
  padding: 20px;
}

.detail-item {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.detail-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.detail-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.detail-value {
  color: #666;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 16px 20px;
  border-top: 1px solid #eee;
}

/* Calendar响应式设计 */
@media (max-width: 768px) {
  .calendar-day {
    min-height: 60px;
    padding: 4px;
  }
  
  .day-number {
    font-size: 12px;
  }
  
  .event-item {
    padding: 12px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn-secondary,
  .btn-danger {
    width: 100%;
  }
  
  .add-event-btn {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Social Page Styles */
.social-screen {
  padding: 0;
  background: #f8f9fa;
}

.social-screen .screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: white;
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: 0;
  z-index: 10;
}

.create-post-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.create-post-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* Social Tabs */
.social-tabs {
  display: flex;
  background: white;
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: 73px;
  z-index: 9;
}

.social-tab {
  flex: 1;
  padding: 16px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.social-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.social-tab:hover {
  background: #f8f9fa;
}

/* Tab Content */
.social-tab-content {
  display: none;
  padding: 20px;
}

.social-tab-content.active {
  display: block;
}

/* Post Creation */
.post-creation {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.user-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

#quickPostInput {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e9ecef;
  border-radius: 24px;
  background: #f8f9fa;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#quickPostInput:hover {
  background: #e9ecef;
}

/* Posts Feed */
.posts-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-item {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.post-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.post-author {
  flex: 1;
}

.post-author-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 2px;
}

.post-time {
  font-size: 12px;
  color: #6c757d;
}

.post-menu {
  background: none;
  border: none;
  font-size: 18px;
  color: #6c757d;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.post-menu:hover {
  background: #f8f9fa;
}

.post-content {
  margin-bottom: 12px;
  line-height: 1.6;
  color: #2c3e50;
}

.post-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
  max-height: 300px;
  object-fit: cover;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid #f1f3f4;
}

.post-action {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.post-action:hover {
  background: #f8f9fa;
  color: var(--primary-color);
}

.post-action.liked {
  color: #e74c3c;
}

/* Friends Tab */
.friends-search {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  background: white;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#friendsSearchInput {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
}

.add-friend-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-friend-btn:hover {
  background: var(--primary-dark);
}

.friends-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.friend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.friend-info {
  flex: 1;
}

.friend-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
}

.friend-status {
  font-size: 12px;
  color: #6c757d;
}

.friend-actions {
  display: flex;
  gap: 8px;
}

.friend-action {
  padding: 6px 12px;
  border: 1px solid #e9ecef;
  background: white;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.friend-action:hover {
  background: #f8f9fa;
}

.friend-action.primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.friend-action.primary:hover {
  background: var(--primary-dark);
}

/* Events Tab */
.events-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: white;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid #e9ecef;
  background: white;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.filter-btn:hover {
  background: #f8f9fa;
}

.filter-btn.active:hover {
  background: var(--primary-dark);
}

.social-events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.social-event-item {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.social-event-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.event-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.event-date {
  background: var(--primary-color);
  color: white;
  padding: 8px;
  border-radius: 8px;
  text-align: center;
  min-width: 60px;
}

.event-date-day {
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.event-date-month {
  font-size: 12px;
  opacity: 0.9;
}

.event-info {
  flex: 1;
}

.event-title {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
}

.event-location {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 4px;
}

.event-attendees {
  font-size: 12px;
  color: #6c757d;
}

.event-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.event-action {
  padding: 8px 16px;
  border: 1px solid #e9ecef;
  background: white;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.event-action:hover {
  background: #f8f9fa;
}

.event-action.primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.event-action.primary:hover {
  background: var(--primary-dark);
}

/* Modal Styles for Social */
.image-preview {
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
  max-height: 200px;
}

.image-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.comments-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e9ecef;
}

.comments-list {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.comment-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.comment-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-content {
  flex: 1;
  background: #f8f9fa;
  padding: 12px;
  border-radius: 12px;
}

.comment-author {
  font-weight: 600;
  font-size: 14px;
  color: #2c3e50;
  margin-bottom: 4px;
}

.comment-text {
  font-size: 14px;
  color: #2c3e50;
  line-height: 1.4;
  margin-bottom: 4px;
}

.comment-time {
  font-size: 12px;
  color: #6c757d;
}

.comment-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

#commentInput {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e9ecef;
  border-radius: 24px;
  font-size: 14px;
}

.user-search-results {
  margin-top: 16px;
  max-height: 300px;
  overflow-y: auto;
}

.user-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-result-item:hover {
  background: #f8f9fa;
}

.user-result-info {
  flex: 1;
}

.user-result-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 2px;
}

.user-result-email {
  font-size: 12px;
  color: #6c757d;
}

.add-user-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-user-btn:hover {
  background: var(--primary-dark);
}

/* Responsive Design for Social */
@media (max-width: 768px) {
  .social-screen .screen-header {
    padding: 12px 16px;
  }
  
  .social-tab-content {
    padding: 16px;
  }
  
  .post-creation {
    padding: 12px;
  }
  
  .friends-search {
    flex-direction: column;
    gap: 8px;
  }
  
  .events-filter {
    flex-wrap: wrap;
  }
  
  .event-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .event-actions {
    flex-wrap: wrap;
  }
}

@keyframes modalSlideIn {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: var(--font-size-xl);
}

.close {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 4px;
}

.close:hover {
  color: var(--text-primary);
}

/* Share Modal Specific Styles */
.share-unlock-info {
  margin-bottom: 1.5rem;
}

.unlock-benefit {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 12px;
  color: white;
  margin-bottom: 1rem;
}

.unlock-benefit i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.unlock-benefit h4 {
  margin: 0.5rem 0;
  font-size: var(--font-size-lg);
}

.unlock-benefit p {
  margin: 0;
  opacity: 0.9;
  font-size: var(--font-size-sm);
}

.share-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.share-buttons button {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-size: var(--font-size-sm);
}

.share-buttons .btn-primary {
  background: var(--accent);
  color: white;
}

.share-buttons .btn-primary:hover {
  background: #2563EB;
  transform: translateY(-1px);
}

.share-buttons .btn-secondary {
  background: var(--bg);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.share-buttons .btn-secondary:hover {
  background: #E2E8F0;
  transform: translateY(-1px);
}

.share-tips {
  text-align: center;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
}

.share-tips p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.share-tips i {
  color: var(--accent);
  margin-right: 0.5rem;
}

/* Duplicate styles removed - using original definitions above */

/* Share modal specific styles */
.share-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8f9fa;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
  text-align: left;
  width: 100%;
}

.share-option:hover {
  background: #e9ecef;
  transform: translateY(-1px);
}

.share-option:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

.share-option i {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #6c757d;
}

/* Responsive Design */
@media (max-width: 375px) {
  .nav-container {
    padding: 0 var(--space-md);
  }
  
  .nav-search input {
    width: 160px;
  }
  
  .type-grid {
    grid-template-columns: 1fr;
  }
  
  .event-meta-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card,
.event-card,
.type-card {
  animation: fadeInUp 0.3s ease-out;
}

/* Legacy compatibility styles */
.container {
  max-width: 428px;
  margin: 0 auto;
  padding: var(--space-xl);
}

.hero {
  /* Legacy hero styles maintained for compatibility */
}

.note {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.primary {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-xl);
  font-weight: 600;
  cursor: pointer;
}

.ghost {
  background: white;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-xl);
  font-weight: 600;
  cursor: pointer;
}

/* Hide elements that are not part of new design */
.home-screen ~ *:not(.planning-screen):not(.event-details):not(.profile-screen) {
  display: none;
}

/* Calendar and Social placeholder pages */
.calendar-screen,
.social-screen {
  padding: 20px;
  min-height: calc(100vh - 140px);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.placeholder-content {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 40px 0;
}

.placeholder-icon {
  font-size: 64px;
  margin-bottom: 24px;
  opacity: 0.6;
}

.placeholder-content h2 {
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 12px;
}

.placeholder-content p {
  font-size: 16px;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 32px;
}

.placeholder-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.feature-item {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.2s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-item .icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.feature-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

.coming-soon-badge {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 20px;
}

/* Event Details Timeline */
.timeline {
  position: relative;
  padding-left: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #667eea, #764ba2);
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #667eea;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #667eea;
}

.timeline-time {
  min-width: 80px;
  font-weight: 600;
  color: #667eea;
  font-size: 14px;
}

.timeline-content h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
}

.timeline-content p {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
  line-height: 1.4;
}

/* Budget Breakdown */
.budget-breakdown {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.budget-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.budget-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  font-size: 14px;
  font-weight: 500;
}

.budget-icon {
  font-size: 16px;
}

.budget-bar {
  flex: 1;
  height: 8px;
  background: #f1f3f4;
  border-radius: 4px;
  overflow: hidden;
}

.budget-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.budget-amount {
  min-width: 60px;
  text-align: right;
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
}

.budget-total {
  padding-top: 16px;
  border-top: 2px solid #e9ecef;
  text-align: right;
  font-size: 16px;
  color: #2c3e50;
}

/* Preparation Checklist */
.checklist-sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.checklist-section h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  padding-bottom: 8px;
  border-bottom: 1px solid #e9ecef;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.checklist-item:hover {
  background-color: #f8f9fa;
}

.checklist-item input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.checklist-item input[type="checkbox"]:checked + .checkmark {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
}

.checklist-item input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.checklist-item span:last-child {
  font-size: 14px;
  line-height: 1.4;
  color: #2c3e50;
}

.checklist-item input[type="checkbox"]:checked + .checkmark + span {
  text-decoration: line-through;
  color: #6c757d;
}

.share-option:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

.share-option i {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #6c757d;
}

/* Responsive Design */
@media (max-width: 375px) {
  .nav-container {
    padding: 0 var(--space-md);
  }
  
  .nav-search input {
    width: 160px;
  }
  
  .type-grid {
    grid-template-columns: 1fr;
  }
  
  .event-meta-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card,
.event-card,
.type-card {
  animation: fadeInUp 0.3s ease-out;
}

/* Legacy compatibility styles */
.container {
  max-width: 428px;
  margin: 0 auto;
  padding: var(--space-xl);
}

.hero {
  /* Legacy hero styles maintained for compatibility */
}

.note {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.primary {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-xl);
  font-weight: 600;
  cursor: pointer;
}

.ghost {
  background: white;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-xl);
  font-weight: 600;
  cursor: pointer;
}

/* Hide elements that are not part of new design */
.home-screen ~ *:not(.planning-screen):not(.event-details):not(.profile-screen) {
  display: none;
}

/* Calendar and Social placeholder pages */
.calendar-screen,
.social-screen {
  padding: 20px;
  min-height: calc(100vh - 140px);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.placeholder-content {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 40px 0;
}

.placeholder-icon {
  font-size: 64px;
  margin-bottom: 24px;
  opacity: 0.6;
}

.placeholder-content h2 {
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 12px;
}

.placeholder-content p {
  font-size: 16px;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 32px;
}

.placeholder-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.feature-item {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.2s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-item .icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.feature-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

.coming-soon-badge {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 20px;
}

/* Venue and Supplier Cards */
.venues-grid, .suppliers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.venue-card, .supplier-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.venue-card:hover, .supplier-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.venue-icon, .supplier-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.venue-card h5, .supplier-card h5 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.venue-price, .supplier-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  margin: 4px 0;
}

.venue-desc, .supplier-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 8px 0 0 0;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.meta-icon {
  font-size: var(--font-size-base);
}

.host-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.host-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.host-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--font-size-lg);
}

.host-info h4 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.host-info p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin: 0;
}

.follow-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
}

.feature-list {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.feature-item {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

/* Profile */
.profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  text-align: left;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--font-size-2xl);
}

.profile-info h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.profile-info p {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  margin: var(--space-xs) 0 0;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.action-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.action-card h4 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-xs);
}

.action-card p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: modalFadeIn 0.3s ease-out;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 24px;
  max-width: 320px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  animation: modalSlideIn 0.3s ease-out forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideIn {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

/* Duplicate styles removed - using original definitions above */

/* Share modal specific styles */
.share-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8f9fa;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
  text-align: left;
  width: 100%;
}

.share-option:hover {
  background: #e9ecef;
  transform: translateY(-1px);
}

.share-option:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

.share-option i {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #6c757d;
}

/* Responsive Design */
@media (max-width: 375px) {
  .nav-container {
    padding: 0 var(--space-md);
  }
  
  .nav-search input {
    width: 160px;
  }
  
  .type-grid {
    grid-template-columns: 1fr;
  }
  
  .event-meta-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card,
.event-card,
.type-card {
  animation: fadeInUp 0.3s ease-out;
}

/* Legacy compatibility styles */
.container {
  max-width: 428px;
  margin: 0 auto;
  padding: var(--space-xl);
}

.hero {
  /* Legacy hero styles maintained for compatibility */
}

.note {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.primary {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-xl);
  font-weight: 600;
  cursor: pointer;
}

.ghost {
  background: white;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-xl);
  font-weight: 600;
  cursor: pointer;
}

/* Hide elements that are not part of new design */
.home-screen ~ *:not(.planning-screen):not(.event-details):not(.profile-screen) {
  display: none;
}

/* Calendar and Social placeholder pages */
.calendar-screen,
.social-screen {
  padding: 20px;
  min-height: calc(100vh - 140px);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.placeholder-content {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 40px 0;
}

.placeholder-icon {
  font-size: 64px;
  margin-bottom: 24px;
  opacity: 0.6;
}

.placeholder-content h2 {
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 12px;
}

.placeholder-content p {
  font-size: 16px;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 32px;
}

.placeholder-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.feature-item {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.2s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-item .icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.feature-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

.coming-soon-badge {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 20px;
}

/* Performance Optimizations */
.scroll-container {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* 加载状态样式 */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 支付模态框样式 */
.payment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.payment-modal.show {
  opacity: 1;
  visibility: visible;
}

.payment-modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.payment-modal.show .payment-modal-content {
  transform: translateY(0);
}

.payment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.payment-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.payment-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.payment-close:hover {
  background: #f5f5f5;
  color: #666;
}

.payment-body {
  padding: 20px;
}

.payment-info {
  text-align: center;
  margin-bottom: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  color: white;
}

.price-display {
  margin-bottom: 8px;
}

.price {
  font-size: 32px;
  font-weight: bold;
}

.period {
  font-size: 16px;
  opacity: 0.8;
}

.payment-description {
  margin: 0;
  opacity: 0.9;
  font-size: 14px;
}

.payment-methods {
  margin-bottom: 20px;
}

.payment-method {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.payment-method:hover {
  border-color: #007bff;
  background: #f8f9ff;
}

.payment-method[data-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5;
}

.payment-method[data-disabled="true"]:hover {
  border-color: #eee;
  background: #f5f5f5;
}

.method-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-right: 12px;
  border-radius: 6px;
  background: #f8f9fa;
}

.method-info {
  flex: 1;
}

.method-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.method-desc {
  font-size: 12px;
  color: #666;
}

.method-arrow {
  color: #999;
  font-size: 18px;
}

.payment-footer {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.payment-notice {
  margin: 0;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .payment-modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .payment-header,
  .payment-body {
    padding: 16px;
  }
  
  .price {
    font-size: 28px;
  }
  
  .payment-method {
    padding: 12px;
  }
  
  .method-icon {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

/* 方案卡片样式 */
.plan-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.plan-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
}

.plan-price {
    font-size: 1.6em;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
}

.plan-content {
    padding: 24px;
}

.plan-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.plan-features h4,
.plan-vendors h4 {
    color: #333;
    margin: 0 0 12px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.plan-features ul,
.plan-vendors ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.plan-features li,
.plan-vendors li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 20px;
}

.plan-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.plan-vendors li:before {
    content: '🏢';
    position: absolute;
    left: 0;
}

.plan-features li:last-child,
.plan-vendors li:last-child {
    border-bottom: none;
}

.plan-actions {
    padding: 0 24px 24px;
}

.btn-select-plan {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-select-plan:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

/* 方案容器 */
#plans-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .plan-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .plan-content {
        padding: 16px;
    }
    
    .plan-actions {
        padding: 0 16px 16px;
    }
}

/* Lazy Loading Images */
.lazy-image {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  background: var(--bg);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lazy-image.loaded {
  opacity: 1;
}

.lazy-image::before {
  content: '📷';
  font-size: 2rem;
  color: var(--text-secondary);
  opacity: 0.5;
}

.lazy-image.loaded::before {
  display: none;
}

/* Scroll Performance */
.scroll-optimized {
  will-change: transform;
  transform: translateZ(0);
}

.scroll-optimized:not(:hover) {
  will-change: auto;
}

/* Reduce paint on scroll */
.event-card,
.plan-card,
.venue-card,
.supplier-card {
  contain: layout style paint;
}

/* GPU acceleration for animations */
.action-btn,
.card,
.modal {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Optimize text rendering */
body {
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Reduce reflow during animations */
@media (prefers-reduced-motion: no-preference) {
  .animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  .animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 用户认证模态框样式 */
.auth-modal {
  z-index: 1001;
}

.auth-modal-content {
  max-width: 400px;
  width: 90%;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.auth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.auth-tabs {
  display: flex;
  gap: 0;
}

.auth-tab {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s ease;
  position: relative;
}

.auth-tab.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.auth-tab:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.auth-form {
  padding: 32px 24px 24px;
  background: white;
}

.auth-form h3 {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 600;
  color: #2d3748;
  text-align: center;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #4a5568;
  font-size: 14px;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  margin: 0;
  margin-top: 2px;
}

.checkbox-label span {
  color: #4a5568;
}

.terms-link, .privacy-link {
  color: #667eea;
  text-decoration: none;
}

.terms-link:hover, .privacy-link:hover {
  text-decoration: underline;
}

.auth-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

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

.auth-footer {
  text-align: center;
  margin-top: 20px;
}

.forgot-password {
  color: #667eea;
  text-decoration: none;
  font-size: 14px;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .auth-modal-content {
    width: 95%;
    margin: 20px auto;
  }
  
  .auth-form {
    padding: 24px 20px 20px;
  }
  
  .auth-header {
    padding: 16px 20px 0;
  }
}

/* 导航栏认证相关样式 */
.auth-nav-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 用户菜单样式 */
.user-menu {
  position: relative;
  display: inline-block;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.user-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.user-initial {
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: 1000;
  overflow: hidden;
}

.user-info {
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.user-name {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 4px;
}

.user-email {
  font-size: 12px;
  color: #718096;
}

.dropdown-item {
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
  color: #4a5568;
  font-size: 14px;
}

.dropdown-item:hover {
  background: #f7fafc;
}

/* 需要认证的功能禁用状态 */
[data-requires-auth].disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* 国际化文案 */
.logout-text {
  color: #e53e3e;
}

/* 响应式用户菜单 */
@media (max-width: 768px) {
  .user-dropdown {
    right: -8px;
    min-width: 180px;
  }
  
  .auth-nav-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .user-avatar {
    width: 32px;
    height: 32px;
  }
  
  .user-initial {
    font-size: 13px;
  }
}

/* AI Recommendation Styles */
.ai-recommendation-row {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  color: white;
}

.ai-recommendation-row .form-label {
  color: white;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-toggle-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-toggle {
  display: none;
}

.ai-toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.ai-toggle:checked + .ai-toggle-label {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.ai-toggle-text {
  font-size: 14px;
  font-weight: 500;
}

.ai-status-indicator {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.ai-toggle:checked + .ai-toggle-label .ai-status-indicator {
  background: #4ade80;
  color: #065f46;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* AI Enhanced Plan Indicators */
.plan-card.ai-enhanced {
  position: relative;
  border: 2px solid #667eea;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
  overflow: hidden;
}

.plan-card.ai-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

/* AI Badge */
.ai-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  z-index: 10;
}

.ai-recommendation-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

/* Responsive AI Styles */
@media (max-width: 768px) {
  .ai-recommendation-row {
    padding: 12px;
    margin: 12px 0;
  }
  
  .ai-toggle-label {
    padding: 10px;
  }
  
  .ai-toggle-text {
    font-size: 13px;
  }
  
  .ai-status-indicator {
    font-size: 11px;
    padding: 3px 6px;
  }
  
  .ai-badge {
    top: 8px;
    right: 8px;
    font-size: 11px;
    padding: 3px 6px;
  }
}

/* Vendor Search Styles */
.vendor-search-container {
  margin-bottom: 20px;
}

.vendor-search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.vendor-search-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

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

.vendor-search-btn {
  padding: 12px 16px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  min-width: 50px;
}

.vendor-search-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.vendor-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.vendor-filter {
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

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

.vendors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.vendor-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.vendor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.vendor-card.enhanced {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(var(--primary-rgb), 0.05) 100%);
}

.vendor-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.vendor-icon {
  font-size: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 12px;
  flex-shrink: 0;
}

.vendor-info {
  flex: 1;
  min-width: 0;
}

.vendor-info h5 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.vendor-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.rating-text {
  color: var(--text-secondary);
  font-weight: 500;
}

.vendor-status {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  min-width: 60px;
}

.vendor-status.available {
  background: rgba(34, 197, 94, 0.1);
  color: #059669;
}

.vendor-status.unavailable {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.vendor-status.booked {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.vendor-details {
  margin-bottom: 16px;
}

.vendor-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.vendor-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-tag {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.vendor-pricing {
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(var(--primary-rgb), 0.05);
  border-radius: 8px;
}

.price-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.price-label {
  color: var(--text-secondary);
  font-size: 14px;
}

.price-value {
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 600;
}

.price-discount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.original-price {
  color: var(--text-secondary);
  text-decoration: line-through;
}

.discount-badge {
  background: #ef4444;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.vendor-actions {
  display: flex;
  gap: 8px;
}

.vendor-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.vendor-btn.primary {
  background: var(--primary-color);
  color: white;
}

.vendor-btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.vendor-btn.secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.vendor-btn.secondary:hover {
  background: var(--primary-color);
  color: white;
}

.vendor-btn.disabled {
  background: var(--border);
  color: var(--text-secondary);
  cursor: not-allowed;
}

.vendor-loading,
.vendor-error,
.vendor-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  font-size: 16px;
}

.vendor-error {
  color: #ef4444;
}

.vendor-loading {
  position: relative;
}

.vendor-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-top: 10px;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Vendor Styles */
@media (max-width: 768px) {
  .vendors-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .vendor-search-bar {
    flex-direction: column;
  }
  
  .vendor-filters {
    flex-direction: column;
  }
  
  .vendor-filter {
    min-width: auto;
  }
  
  .vendor-card {
    padding: 16px;
  }
  
  .vendor-header {
    gap: 8px;
  }
  
  .vendor-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .vendor-actions {
    flex-direction: column;
  }
}

/* ==================== 通知系统样式 ==================== */

/* 通知图标样式 */
.notification-icon {
  position: relative;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  margin-right: 12px;
}

.notification-icon:hover {
  background: rgba(59, 130, 246, 0.1);
}

.notification-bell {
  font-size: 20px;
  display: block;
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
  line-height: 1.2;
}

/* 通知面板样式 */
.notification-panel {
  position: fixed;
  top: 70px;
  right: 20px;
  width: 320px;
  max-height: 500px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  z-index: 1000;
  overflow: hidden;
  border: 1px solid var(--border);
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.notification-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.notification-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mark-all-read {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.mark-all-read:hover {
  background: rgba(59, 130, 246, 0.1);
}

.close-notifications {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.close-notifications:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

.notification-list {
  max-height: 400px;
  overflow-y: auto;
}

/* 无通知状态 */
.no-notifications {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.no-notifications-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
  opacity: 0.5;
}

.no-notifications p {
  margin: 0;
  font-size: 14px;
}

/* 通知项样式 */
.notification-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item:hover {
  background: var(--bg);
}

.notification-item.unread {
  background: rgba(59, 130, 246, 0.02);
  border-left: 3px solid var(--accent);
}

.notification-item.unread::before {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.notification-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.notification-icon-type {
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.notification-text {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.notification-message {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.notification-time {
  font-size: 11px;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* 通知类型样式 */
.notification-item[data-type="event_reminder"] .notification-icon-type {
  color: var(--warning);
}

.notification-item[data-type="promotion"] .notification-icon-type {
  color: var(--success);
}

.notification-item[data-type="system"] .notification-icon-type {
  color: var(--accent);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .notification-panel {
    right: 10px;
    left: 10px;
    width: auto;
    top: 60px;
  }
  
  .notification-icon {
    margin-right: 8px;
  }
}

/* 动画效果 */
@keyframes notificationSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notification-panel {
  animation: notificationSlideIn 0.3s ease;
}

@keyframes notificationBadgePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.notification-badge.pulse {
  animation: notificationBadgePulse 0.6s ease;
}

/* 性能优化样式 */
/* 懒加载图片样式 */
img.lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

img.loaded {
  opacity: 1;
}

@keyframes loading-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* 图片加载占位符 */
.image-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
}

/* 性能优化指示器 */
.performance-indicator {
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 10000;
  display: none;
}

.performance-indicator.show {
  display: block;
}

/* 预加载动画 */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 代码分割加载状态 */
.module-loading {
  position: relative;
  overflow: hidden;
}

.module-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: module-loading-sweep 1.5s infinite;
}

@keyframes module-loading-sweep {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* 缓存状态指示 */
.cached-resource {
  position: relative;
}

.cached-resource::before {
  content: '📦';
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 12px;
  opacity: 0.7;
}

/* 性能优化的响应式图片 */
.responsive-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.responsive-image:hover {
  transform: scale(1.02);
}

/* 优化的按钮样式 */
.btn-optimized {
  will-change: transform;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-optimized:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

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

/* 内容可见性优化 */
.content-visibility-auto {
  content-visibility: auto;
  contain-intrinsic-size: 200px;
}

/* 滚动性能优化 */
.scroll-optimized {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

/* GPU加速 */
.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform;
}

/* 减少重绘的动画 */
.efficient-animation {
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 字体加载优化 */
@font-face {
  font-family: 'Inter';
  font-display: swap;
}

/* 关键CSS内联标记 */
.critical-css {
  /* 关键样式已内联到HTML中 */
}

/* 非关键CSS延迟加载 */
.non-critical {
  /* 这些样式可以延迟加载 */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.non-critical.loaded {
  opacity: 1;
}

/* ==================== 移动端优化样式 ==================== */

/* 移动端基础样式 */
.is-mobile {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.is-touch {
  cursor: default;
}

/* 视口高度变量 */
:root {
  --vh: 1vh;
}

.full-height {
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
}

/* 触摸反馈 */
.touch-active {
  transform: scale(0.98);
  opacity: 0.8;
  transition: all 0.1s ease;
}

button.touch-active,
.btn.touch-active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card.touch-active {
  transform: scale(0.99);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 滚动优化 */
.is-scrolling {
  pointer-events: none;
}

.is-scrolling * {
  animation-play-state: paused;
}

/* 输入框聚焦优化 */
.input-focused {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
}

.input-focused input,
.input-focused textarea {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

/* 下拉刷新指示器 */
.pull-refresh-indicator {
  position: fixed;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 14px;
  color: var(--text-primary);
}

.pull-refresh-indicator.ready {
  background: var(--primary-color);
  color: white;
}

.pull-refresh-indicator.refreshing {
  top: 20px;
  opacity: 1;
}

.refresh-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.pull-refresh-indicator.refreshing .refresh-spinner {
  animation: spin 0.8s linear infinite;
}

/* 键盘打开时的优化 */
.keyboard-open {
  padding-bottom: 0;
}

.keyboard-open .bottom-nav,
.keyboard-open .floating-action {
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

/* 移动端导航优化 */
@media (max-width: 768px) {
  .nav-container {
    padding: 8px 16px;
    height: 60px;
  }
  
  .nav-logo {
    font-size: 18px;
  }
  
  .nav-search {
    display: none;
  }
  
  .nav-actions {
    gap: 8px;
  }
  
  .nav-actions button {
    padding: 8px;
    min-width: 40px;
    height: 40px;
  }
}

/* 移动端卡片优化 */
@media (max-width: 768px) {
  .card {
    margin: 8px;
    border-radius: 12px;
  }
  
  .event-card {
    margin-bottom: 12px;
  }
  
  .type-card {
    padding: 16px;
  }
  
  .vendor-card {
    padding: 16px;
  }
}

/* 移动端表单优化 */
@media (max-width: 768px) {
  .form-group {
    margin-bottom: 16px;
  }
  
  .form-control {
    padding: 14px 16px;
    font-size: 16px; /* 防止iOS缩放 */
    border-radius: 8px;
  }
  
  .form-actions {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 16px;
    margin: 0 -16px;
    border-top: 1px solid var(--border);
  }
  
  .btn {
    min-height: 48px;
    font-size: 16px;
    border-radius: 8px;
  }
}

/* 移动端模态框优化 */
@media (max-width: 768px) {
  .modal {
    padding: 0;
  }
  
  .modal-content {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
    border-radius: 16px 16px 0 0;
    position: fixed;
    bottom: 0;
    top: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }
  
  .modal.show .modal-content {
    transform: translateY(0);
  }
  
  .modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    position: relative;
  }
  
  .modal-header::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
  }
  
  .modal-body {
    padding: 20px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
}

/* 移动端网格优化 */
@media (max-width: 768px) {
  .type-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .vendors-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .event-meta-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* 移动端文本优化 */
@media (max-width: 768px) {
  h1 {
    font-size: 24px;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 20px;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 18px;
    line-height: 1.3;
  }
  
  .text-large {
    font-size: 18px;
  }
  
  .text-small {
    font-size: 14px;
  }
}

/* 移动端间距优化 */
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }
  
  .section {
    padding: 20px 0;
  }
  
  .screen-content {
    padding: 16px;
  }
}

/* 移动端图片优化 */
@media (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
  }
  
  .responsive-image {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  
  .image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* 移动端动画优化 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 移动端性能优化 */
@media (max-width: 768px) {
  .gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
  }
  
  .scroll-container {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  
  .animation-container {
    contain: layout style paint;
  }
}

/* 移动端无障碍优化 */
@media (max-width: 768px) {
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  
  .focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
  
  button:focus-visible,
  .btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* 移动端暗色模式优化 */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
  .pull-refresh-indicator {
    background: #1a1a1a;
    color: white;
  }
  
  .modal-content {
    background: #1a1a1a;
    color: white;
  }
  
  .form-control {
    background: #2a2a2a;
    border-color: #404040;
    color: white;
  }
}

/* ===== SEO优化样式 ===== */

/* 跳转到主内容链接 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    color: var(--text-muted);
}

.breadcrumb-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

/* 结构化数据可视化（开发模式） */
.structured-data-debug {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
    max-width: 300px;
    max-height: 200px;
    overflow: auto;
    z-index: 9999;
    display: none;
}

.structured-data-debug.show {
    display: block;
}

/* 标题层级优化 */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 16px;
}

/* 链接SEO优化 */
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 图片SEO优化 */
img {
    max-width: 100%;
    height: auto;
    border: 0;
}

img[alt=""] {
    opacity: 0.7;
}

/* 表格优化 */
table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 16px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 600;
    background-color: var(--background-secondary);
}

/* 列表优化 */
ul, ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

li {
    margin-bottom: 4px;
}

/* ... existing code ... */