:root {
  --primary: #FF6B35;
  --primary-light: #FF8F5E;
  --primary-dark: #E55A2B;
  --primary-gradient: linear-gradient(135deg, #FF6B35 0%, #FF8F5E 100%);
  --secondary: #2EC4B6;
  --secondary-light: #5DD9CD;
  --accent-gold: #FFB800;
  --accent-red: #FF4757;
  --accent-green: #26DE81;
  --accent-blue: #4B7BEC;
  --bg: #F7F8FA;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --text-primary: #1A1D26;
  --text-secondary: #6B7280;
  --text-tertiary: #9CA3AF;
  --text-white: #FFFFFF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --shadow-primary: 0 4px 14px rgba(255,107,53,0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tab-height: 56px;
  --header-height: 52px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: calc(var(--tab-height) + var(--safe-bottom));
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; font-size: inherit; outline: none; border: none; background: none; }
button { cursor: pointer; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-white);
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
}

.header-title {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.header-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background 0.2s;
}

.header-btn:active { background: var(--border-light); }

.header-btn svg { width: 22px; height: 22px; color: var(--text-primary); }

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: calc(var(--tab-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
  min-width: 60px;
  transition: color 0.2s;
  color: var(--text-tertiary);
  position: relative;
}

.tab-item.active { color: var(--primary); }

.tab-item svg { width: 24px; height: 24px; }

.tab-item span { font-size: 10px; font-weight: 500; }

.tab-item.publish-btn {
  margin-top: -20px;
}

.tab-item.publish-btn .pub-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-primary);
  transition: transform 0.2s;
}

.tab-item.publish-btn:active .pub-icon { transform: scale(0.92); }

.tab-item.publish-btn .pub-icon svg { width: 24px; height: 24px; color: white; }

.badge {
  position: absolute;
  top: -2px;
  right: 8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  background: var(--accent-red);
  color: white;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.page { padding: 12px 16px; }

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:active { transform: scale(0.985); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.tag-skill {
  background: rgba(255,107,53,0.1);
  color: var(--primary);
}

.tag-hobby {
  background: rgba(46,196,182,0.1);
  color: var(--secondary);
}

.tag-welfare {
  background: rgba(255,71,87,0.1);
  color: #FF4757;
}

.tag-free {
  background: rgba(38,222,129,0.1);
  color: var(--accent-green);
}

.tag-cash {
  background: rgba(255,184,0,0.1);
  color: #D4960A;
}

.tag-point {
  background: rgba(75,123,236,0.1);
  color: var(--accent-blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  gap: 6px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-primary);
}

.btn-primary:active { transform: scale(0.96); box-shadow: none; }

.btn-outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.btn-outline:active { background: rgba(255,107,53,0.05); }

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--border-light);
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-lg { width: 56px; height: 56px; }

.avatar-sm { width: 32px; height: 32px; }

.divider {
  height: 1px;
  background: var(--border-light);
  margin: 12px 0;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-tertiary);
}

.empty-state svg { width: 80px; height: 80px; margin-bottom: 16px; opacity: 0.4; }
.empty-state p { font-size: 14px; }

.color-highlight-red { border-left: 4px solid #FF4757; background: linear-gradient(90deg, rgba(255,71,87,0.06) 0%, transparent 100%); }
.color-highlight-orange { border-left: 4px solid #FF6B35; background: linear-gradient(90deg, rgba(255,107,53,0.06) 0%, transparent 100%); }
.color-highlight-gold { border-left: 4px solid #FFB800; background: linear-gradient(90deg, rgba(255,184,0,0.06) 0%, transparent 100%); }
.color-highlight-green { border-left: 4px solid #26DE81; background: linear-gradient(90deg, rgba(38,222,129,0.06) 0%, transparent 100%); }
.color-highlight-blue { border-left: 4px solid #4B7BEC; background: linear-gradient(90deg, rgba(75,123,236,0.06) 0%, transparent 100%); }

.pinned-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  color: white;
  font-size: 10px;
  font-weight: 600;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-in {
  animation: fadeInUp 0.4s ease-out both;
}

.animate-in:nth-child(2) { animation-delay: 0.05s; }
.animate-in:nth-child(3) { animation-delay: 0.1s; }
.animate-in:nth-child(4) { animation-delay: 0.15s; }
.animate-in:nth-child(5) { animation-delay: 0.2s; }
.animate-in:nth-child(6) { animation-delay: 0.25s; }