:root {
  --primary: #FF7A9B;
  --primary-light: #FFB5C5;
  --primary-dark: #F25F82;
  --secondary: #FFB347;
  --bg: #FFFBF7;
  --bg-card: #FFFFFF;
  --bg-sidebar: rgba(255, 251, 247, 0.85);
  --bg-sidebar-hover: rgba(255, 181, 197, 0.12);
  --bg-sidebar-active: rgba(255, 122, 155, 0.15);
  --border: #F0E6DC;
  --border-light: #F8F1E8;
  --text: #3D3A44;
  --text-secondary: #7A7685;
  --text-light: #A8A3B0;
  --text-sidebar: #7A7685;
  --text-sidebar-hover: #3D3A44;
  --success: #7FC8A9;
  --danger: #FF6B8A;
  --purple: #B088F9;
  --blue: #7EB8FF;
  --shadow-sm: 0 2px 8px rgba(255, 122, 155, 0.08);
  --shadow-md: 0 4px 20px rgba(255, 122, 155, 0.1);
  --shadow-lg: 0 8px 32px rgba(255, 122, 155, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --sidebar-w: 240px;
}

/* ===== 主题切换按钮 ===== */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 15px;
  flex-shrink: 0;
}
.theme-toggle-btn:hover { color: var(--primary); border-color: var(--primary-light); }
/* 落地页导航内的主题按钮（带文字，保持幽灵按钮外形） */
.landing-nav-btn.theme-toggle-btn {
  width: auto;
  height: auto;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--text-secondary);
  box-shadow: 0 2px 8px rgba(61, 58, 68, 0.06);
}

/* ===== App Loader (页面加载中) ===== */
#app-loader {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: flex;
  align-items: stretch;
  transition: opacity 400ms ease;
  background: var(--bg);
}
#app-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.loader-bg {
  flex: 1;
  background: url('loader-bg.jpg') center/cover no-repeat;
  position: relative;
}
.loader-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(255,251,247,0.95) 100%);
}
.loader-panel {
  width: 320px;
  flex-shrink: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}
.loader-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(255, 122, 155, 0.3);
  animation: loaderPulse 1.2s ease-in-out infinite;
}
.loader-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.9); }
}
.loader-text {
  font-size: 18px;
  color: var(--primary-dark);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.loader-dots {
  display: flex;
  gap: 6px;
}
.loader-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: dotBounce 1.4s ease-in-out infinite;
}
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}
.btn-primary:hover { box-shadow: 0 4px 14px rgba(255, 122, 155, 0.3); transform: translateY(-1px); }

.btn-ghost { background: var(--bg); color: var(--text-secondary); }
.btn-ghost:hover { background: var(--border-light); color: var(--text); }
.btn-sm { padding: 8px 14px; font-size: 13px; }

.btn-qq {
  width: 100%;
  background: linear-gradient(135deg, #56b6f7, #12b7f5);
  color: #fff;
}
.btn-qq:hover { box-shadow: 0 4px 14px rgba(18, 183, 245, 0.35); transform: translateY(-1px); }

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0 12px;
  color: var(--text-secondary);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}
.auth-divider span { padding: 0 12px; }

.bg-pink { background: linear-gradient(135deg, #FFB5C5, #FF7A9B); }
.bg-amber { background: linear-gradient(135deg, #FFD88A, #FFB347); }
.bg-purple { background: linear-gradient(135deg, #D8B8FF, #B088F9); }
.bg-blue { background: linear-gradient(135deg, #B5D8FF, #7EB8FF); }

/* ============ LANDING PAGE ============ */
body.landing {
  background: linear-gradient(135deg, #FFFBF7 0%, #FFF4EC 50%, #FFEEF2 100%);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
}

/* 顶部导航 */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(255, 251, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.landing-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.landing-nav-logo img {
  width: 32px;
  height: 32px;
}

.landing-nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-nav-user {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.landing-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #FF94AD, #FF7A9B);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(255, 122, 155, 0.25);
  text-decoration: none;
}

.landing-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 122, 155, 0.35);
}

.landing-nav-btn.ghost {
  background: transparent;
  color: var(--text-secondary);
  box-shadow: none;
  border: 1px solid var(--border);
}

.landing-nav-btn.ghost:hover {
  background: var(--bg-sidebar-hover);
  color: var(--primary);
  border-color: var(--primary-light);
}

/* 背景气泡 */
.landing-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.landing-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
}

.landing-bg .blob-1 {
  width: 500px; height: 500px;
  background: linear-gradient(135deg, #FFB5C5, #FF7A9B);
  top: -100px; right: -100px;
  animation: blobFloat1 20s ease-in-out infinite;
}

.landing-bg .blob-2 {
  width: 400px; height: 400px;
  background: linear-gradient(135deg, #FFD88A, #FFB347);
  bottom: -80px; left: -80px;
  animation: blobFloat2 25s ease-in-out infinite;
}

.landing-bg .blob-3 {
  width: 350px; height: 350px;
  background: linear-gradient(135deg, #D8B8FF, #B088F9);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: blobFloat3 18s ease-in-out infinite;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-40px, 60px); }
}

@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, -40px); }
}

@keyframes blobFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-40%, -55%) scale(1.1); }
}

/* 内容区 */
.landing-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 48px;
}

.landing-logo {
  margin-bottom: 32px;
  animation: logoFloat 4s ease-in-out infinite;
}

.landing-logo img {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 12px 32px rgba(255, 122, 155, 0.35));
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.landing-text h1 {
  font-size: 64px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  background: linear-gradient(135deg, #FF7A9B, #F25F82, #E06C85);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 4px;
}

.landing-tag {
  font-size: 20px;
  color: var(--text-secondary);
  margin: 0 0 16px;
  font-weight: 500;
}

.landing-desc {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  margin: 0 0 40px;
}

.landing-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.landing-btn.primary {
  background: linear-gradient(135deg, #FF94AD, #FF7A9B, #F25F82);
  color: white;
  box-shadow: 0 8px 28px rgba(255, 122, 155, 0.35);
}

.landing-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(255, 122, 155, 0.45);
}

.landing-btn:not(.primary) {
  background: white;
  color: var(--text);
  border-color: var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.landing-btn:not(.primary):hover {
  transform: translateY(-3px);
  border-color: var(--primary-light);
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(255, 122, 155, 0.15);
}

/* ============ NEW LANDING (index.html v2) ============ */
/* 新版落地页结构：hero 全屏背景 + 顶部玻璃导航 + 居中标题面板 */
.landing-hero-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
}

.landing-hero-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(255,255,255,0.55) 0%, rgba(255,245,247,0.35) 60%, rgba(255,238,242,0.25) 100%);
  pointer-events: none;
}

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 251, 247, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

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

.landing-nav-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.landing-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.landing-nav-brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(255, 122, 155, 0.18);
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.landing-nav-link {
  position: relative;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 2px;
  transition: color 0.2s ease;
}

.landing-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
  transition: width 0.25s ease;
}

.landing-nav-link:hover,
.landing-nav-link.active {
  color: var(--primary);
}

.landing-nav-link:hover::after,
.landing-nav-link.active::after {
  width: 100%;
}

.landing-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.landing-account {
  position: relative;
}

.landing-account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s ease;
}

.landing-account-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 122, 155, 0.25);
  box-shadow: 0 4px 12px rgba(255, 122, 155, 0.12);
}

.landing-nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: none;
}

.landing-account-chevron {
  font-size: 12px;
  color: var(--text-light);
  transition: transform 0.2s ease;
}

.landing-account.open .landing-account-chevron {
  transform: rotate(180deg);
}

.landing-account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 230px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 40px rgba(61, 58, 68, 0.12);
  display: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.landing-account.open .landing-account-dropdown {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.landing-account-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 10px;
}

.landing-account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.landing-account-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.landing-account-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-account-sub {
  font-size: 12px;
  color: var(--text-light);
}

.landing-account-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.05);
  margin: 8px 0;
}

.landing-account-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.landing-account-item:hover {
  background: rgba(255, 122, 155, 0.08);
}

.landing-account-item.danger {
  color: #ff4d4f;
}

.landing-account-item.danger:hover {
  background: rgba(255, 77, 79, 0.08);
}

.landing-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
}

.landing-hero-panel {
  text-align: center;
  max-width: 720px;
  padding: 48px 56px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 24px 80px rgba(61, 58, 68, 0.1);
}

.landing-hero-title {
  font-size: 72px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--primary);
  letter-spacing: -1px;
  text-shadow: 0 4px 20px rgba(255, 122, 155, 0.25);
}

.landing-hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--primary) 0%, #FF4D7C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-hero-subtitle {
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 18px;
}

.landing-hero-desc {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0 0 36px;
}

.landing-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: linear-gradient(135deg, #FF94AD 0%, var(--primary) 100%);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(255, 122, 155, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 122, 155, 0.45);
}

@media (max-width: 768px) {
  .landing-nav {
    padding: 12px 16px;
  }

  .landing-nav-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .landing-content {
    padding: 100px 20px 40px;
  }

  .landing-text h1 {
    font-size: 42px;
    letter-spacing: 2px;
  }

  .landing-tag {
    font-size: 16px;
  }

  .landing-desc {
    font-size: 14px;
  }

  .landing-actions {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .landing-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  .landing-nav-inner {
    height: 60px;
    padding: 0 16px;
  }

  .landing-nav-links {
    display: none;
  }

  .landing-nav-brand span {
    display: none;
  }

  .landing-hero {
    padding: 90px 16px 40px;
  }

  .landing-hero-panel {
    padding: 32px 24px;
    border-radius: 24px;
  }

  .landing-hero-title {
    font-size: 46px;
  }

  .landing-hero-subtitle {
    font-size: 20px;
  }

  .landing-hero-desc {
    font-size: 15px;
  }

  .landing-hero-btn {
    padding: 14px 28px;
    font-size: 15px;
  }
}

/* ============ APP / DASHBOARD ============ */
body.app-page {
  background: linear-gradient(135deg, #FFFBF7 0%, #FFF4EC 50%, #FFEEF2 100%);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
}

/* PC 浮动气泡背景 */
.app-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.app-blobs .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.app-blobs .blob-pink {
  width: 400px; height: 400px;
  background: #FFB5C5; opacity: 0.30;
  top: -120px; right: -80px;
  animation: floatBlob 9s ease-in-out infinite;
}
.app-blobs .blob-amber {
  width: 300px; height: 300px;
  background: #FFD88A; opacity: 0.25;
  bottom: -90px; left: 240px;
  animation: floatBlob 11s ease-in-out infinite;
  animation-delay: 2s;
}
.app-blobs .blob-purple {
  width: 250px; height: 250px;
  background: #D8B8FF; opacity: 0.20;
  top: 38%; left: 44%;
  animation: floatBlob 8s ease-in-out infinite;
  animation-delay: 4s;
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -28px) scale(1.07); }
}

.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-sidebar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow: hidden;
  border-right: 1px solid var(--border-light);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.sidebar.open { transform: translateX(0); }

.sidebar-header {
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--border-light);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.brand div { display: flex; flex-direction: column; }
.brand strong { font-size: 15px; color: var(--text); font-weight: 700; }
.brand span { font-size: 11px; color: var(--text-light); letter-spacing: 1px; }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius);
  color: var(--text-sidebar);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

.nav-item i {
  width: 20px;
  text-align: center;
  font-size: 15px;
  opacity: 0.7;
}

.nav-item:hover {
  background: var(--bg-sidebar-hover);
  color: var(--text-sidebar-hover);
}

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

.nav-item.active i {
  color: var(--primary);
  opacity: 1;
}

.sidebar-bottom {
  padding: 16px 12px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-sidebar);
  font-size: 13px;
  text-decoration: none;
  transition: all 0.15s;
}

.sidebar-link i { width: 18px; text-align: center; opacity: 0.7; }
.sidebar-link:hover { background: var(--bg-sidebar-hover); color: var(--text-sidebar-hover); }

/* Main */
.main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
  position: relative;
  pointer-events: auto;    /* 防止父层被穿透 */
}

.topbar-left h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.menu-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--text);
  cursor: pointer;
  /* 移动端最低触摸目标：48x48（iOS HIG / Material） */
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-sizing: border-box;
  /* 触摸优化：禁止系统高亮，禁止系统手势抢占 */
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  /* 保证在最上层，不被兄弟元素挡住 */
  position: relative;
  z-index: 210;
  pointer-events: auto;
}

.menu-btn:active {
  background: rgba(0, 0, 0, 0.06);
  transform: scale(0.96);
  transition: transform 0.1s ease, background 0.1s ease;
}

.content-area {
  flex: 1;
  padding: 0;
  max-width: none;
  width: 100%;
  min-width: 0;
}

/* ===== PC: Top navigation brand & tabs ===== */
.pc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.pc-brand img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.pc-brand strong { font-size: 16px; font-weight: 700; color: var(--text); }
.pc-brand span { font-size: 11px; color: var(--text-light); }

.pc-nav-tabs {
  display: flex;
  gap: 6px;
  background: rgba(255,255,255,0.7);
  border-radius: 999px;
  padding: 5px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.pc-nav-tabs .nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}
.pc-nav-tabs .nav-item i { font-size: 13px; opacity: 0.7; width: auto; text-align: auto; }
.pc-nav-tabs .nav-item:hover { background: rgba(255,122,155,0.10); color: var(--primary-dark); }
.pc-nav-tabs .nav-item.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 3px 10px rgba(255,122,155,0.3);
}
.pc-nav-tabs .nav-item.active i { opacity: 1; }

/* PC: 右上角按钮组 */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-publish-btn {
  border-radius: 999px;
  padding: 0 18px;
  height: 38px;
}

/* PC: Auth button in topbar */
.mobile-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}
.mobile-auth-btn::after {
  content: attr(aria-label);
  font-size: 13px;
  font-weight: 600;
}
.mobile-auth-btn:hover { background: rgba(255,122,155,0.10); color: var(--primary-dark); border-color: var(--primary-light); }
.mobile-auth-btn.logged-in {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  box-shadow: 0 3px 10px rgba(255,122,155,0.3);
}

/* ===== PC: 3-column Feed Layout ===== */
.feed-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 280px;
  gap: 32px;
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 32px 40px 64px;
  align-items: start;
}

/* In 3-column layout, action cards stack vertically to avoid text squeeze */
.feed-layout .action-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}
.feed-layout .action-card {
  padding: 16px 18px;
  gap: 14px;
}
.feed-layout .action-icon {
  width: 44px; height: 44px; font-size: 18px;
}
.feed-layout .action-info strong { font-size: 15px; }
.feed-layout .action-info span { font-size: 12px; }

.left-panel, .right-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 88px;
}

/* Left panel: Profile card */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.profile-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 22px;
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(255,122,155,0.3);
}
.profile-name { font-weight: 600; font-size: 15px; color: var(--text); }
.profile-bio { font-size: 12px; color: var(--text-light); margin-top: 6px; }
.profile-stats {
  display: flex; justify-content: space-around;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.stat-item { text-align: center; }
.stat-num { font-weight: 700; font-size: 16px; color: var(--text); }
.stat-label { font-size: 11px; color: var(--text-light); margin-top: 2px; }

/* Left panel: Quick links */
.quick-links { display: flex; flex-direction: column; gap: 10px; }
.quick-link {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 13px; color: var(--text-secondary);
  cursor: pointer; transition: all 0.25s ease;
  text-decoration: none; font-family: inherit;
}
.quick-link:hover {
  background: rgba(255,122,155,0.08);
  border-color: var(--primary-light);
  color: var(--primary-dark);
  transform: translateX(2px);
}
.quick-link i { width: 16px; text-align: center; color: var(--primary); }

/* Right panel: Side cards */
.side-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.side-card-title {
  font-size: 14px; font-weight: 700; color: var(--text);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.side-card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-top: 10px; }
.relation-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.relation-tag { font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.relation-tag.tag-lover { background: rgba(255,122,155,0.14); color: #F25F82; }
.relation-tag.tag-friend { background: rgba(126,184,255,0.16); color: #4A8FD1; }
.relation-tag.tag-ambig { background: rgba(176,136,249,0.16); color: #7B5BD6; }
.relation-tag.tag-free { background: rgba(255,179,71,0.18); color: #C8821E; }
.relation-tag.tag-multi { background: rgba(127,200,169,0.18); color: #4FA888; }
.safety-list { list-style: none; padding: 0; margin: 0; }
.safety-list li { font-size: 12px; color: var(--text-secondary); padding: 4px 0 4px 16px; position: relative; line-height: 1.5; }
.safety-list li::before { content: '\2022'; color: var(--primary); position: absolute; left: 4px; }

.page-header {
  margin-bottom: 32px;
}

.page-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.page-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Welcome banner */
.welcome-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}

.welcome-banner::before,
.welcome-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.welcome-banner::before {
  width: 220px;
  height: 220px;
  top: -70px;
  right: -40px;
  background: rgba(255, 255, 255, 0.14);
}

.welcome-banner::after {
  width: 130px;
  height: 130px;
  bottom: -60px;
  right: 160px;
  background: rgba(255, 255, 255, 0.10);
}

.welcome-text { position: relative; z-index: 1; }

.welcome-text h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
}

.welcome-text p {
  font-size: 16px;
  opacity: 0.95;
}

.welcome-stats {
  display: flex;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.w-stat { display: flex; flex-direction: column; align-items: center; }
.w-stat strong { font-size: 30px; font-weight: 700; }
.w-stat strong em { font-style: normal; font-size: 18px; }
.w-stat span { font-size: 13px; opacity: 0.85; margin-top: 4px; }

/* Quick actions */
.quick-actions { margin-bottom: 32px; }
.quick-actions h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 16px; }

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

.action-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  min-width: 0;
}

.action-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.action-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.action-info { flex: 1; min-width: 0; overflow: hidden; }
.action-info strong { display: block; font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.action-info span { font-size: 13px; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.action-arrow {
  color: var(--text-light);
  font-size: 14px;
  transition: transform 0.2s;
}

.action-card:hover .action-arrow { transform: translateX(4px); color: var(--primary); }

/* Recent */
.recent-section { margin-bottom: 32px; }

.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-head-row h3 { font-size: 16px; font-weight: 700; color: var(--text); }

.see-all { font-size: 13px; color: var(--primary); font-weight: 500; }
.see-all i { font-size: 11px; margin-left: 4px; }

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

.member-card {
  display: flex;
  gap: 14px;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

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

.member-card .avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}

.mc-body { flex: 1; min-width: 0; }
.mc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.mc-top h4 { font-size: 14px; font-weight: 600; color: var(--text); }
.tag { padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; }
.tag.pink { background: rgba(255, 122, 155, 0.12); color: var(--primary); }
.tag.purple { background: rgba(176, 136, 249, 0.15); color: #9B72D1; }
.tag.amber { background: rgba(255, 179, 71, 0.15); color: #E89B20; }
.tag.blue { background: rgba(126, 184, 255, 0.15); color: #5B8DEF; }

/* 标签编辑器（AI一键导入生成的个性标签） */
.tag-input-wrap {
  border: 1px solid var(--border, #E5E7EB);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--bg, #FFFFFF);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
  align-items: center;
}
.tag-cloud .tag-empty {
  color: var(--text-light, #9CA3AF);
  font-size: 12px;
  padding: 2px 4px;
}
.tag-cloud .tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.tag-cloud .tag .tag-text {
  line-height: 1;
}
.tag-cloud .tag .tag-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  color: inherit;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity .15s, background .15s;
  font-size: 9px;
}
.tag-cloud .tag .tag-x:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.7);
}
.tag-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
  border-top: 1px dashed var(--border, #F3F4F6);
  padding-top: 10px;
}
.tag-add-row input[type="text"] {
  flex: 1;
  border: 1px solid var(--border, #E5E7EB);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  background: var(--bg, #FFFFFF);
  color: var(--text);
}
.tag-add-row input[type="text"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 122, 155, 0.15);
}
.btn-sm {
  padding: 7px 12px !important;
  font-size: 12px !important;
}

.member-card .mc-body > p { font-size: 11px; color: var(--text-light); margin-bottom: 4px; }
.member-card .mc-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.mc-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.mc-tags span {
  padding: 2px 8px;
  background: var(--bg-alt, #FFF4EC);
  color: var(--text-light);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
}

/* Submit view */
.submit-layout {
  display: block;
}

.ai-classify-card {
  background: linear-gradient(135deg, rgba(255, 122, 155, 0.06), rgba(255, 168, 190, 0.04));
  border: 1px dashed rgba(255, 122, 155, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 28px;
}

.ai-classify-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.ai-classify-header i {
  font-size: 22px;
  color: var(--primary);
  margin-top: 2px;
}

.ai-classify-header strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.ai-classify-header span {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.ai-classify-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-classify-body textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
  min-height: 90px;
}

.ai-classify-body textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  background: white;
}

.ai-classify-body .btn {
  align-self: flex-start;
}

.submit-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 80px;
}

.info-card {
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.info-card i { font-size: 20px; color: var(--primary); margin-bottom: 8px; }
.info-card h4 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.info-card p { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }

.info-card.warn { border-color: rgba(255, 107, 138, 0.2); background: rgba(255, 107, 138, 0.04); }
.info-card.warn i { color: var(--danger); }
.info-card.warn h4 { color: var(--danger); }

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  width: 100%;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border-light);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.form-section-title i {
  color: var(--primary);
  font-size: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 28px;
  margin-bottom: 26px;
}

.field { display: flex; flex-direction: column; gap: 10px; }
.field.full-width { margin-bottom: 24px; }

.field label { font-size: 14px; font-weight: 600; color: var(--text); }
.field label em { color: var(--danger); font-style: normal; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--primary); background: white; }
.field textarea { resize: vertical; min-height: 90px; line-height: 1.6; }

.radio-row { display: flex; gap: 6px; }

.radio-item { flex: 1; position: relative; cursor: pointer; }
.radio-item input { position: absolute; opacity: 0; pointer-events: none; }
.radio-item span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.15s;
}
.radio-item:hover span { border-color: var(--primary-light); }
.radio-item input:checked + span {
  background: rgba(255, 122, 155, 0.08);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.char-count { align-self: flex-end; font-size: 11px; color: var(--text-light); }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 12px 0 20px;
}
.check-item input { width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0; margin-top: 2px; }

.form-btns { display: flex; justify-content: flex-end; gap: 10px; }

/* Community view — Feed stream style */
.member-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.member-full {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-height: 120px;
}

.member-full:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255,122,155,0.12);
  border-color: var(--primary-light);
}

.member-full .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}

.mf-body { flex: 1; min-width: 0; }

.mf-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 10px;
}

.mf-top h4 { font-size: 16px; font-weight: 600; color: var(--text); }
.mf-id { font-size: 12px; color: var(--text-light); margin-bottom: 0; }

.mf-body > p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 8px; }

.mf-desc { font-size: 13px; color: var(--text); line-height: 1.7; margin-bottom: 10px; white-space: pre-wrap; }
.mf-req { font-size: 12px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 6px; padding: 6px 10px; background: var(--bg-alt, #FFF4EC); border-radius: 6px; }
.mf-req strong { color: var(--primary); }

.mf-details-collapsed .mf-desc,
.mf-details-collapsed .mf-req {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
  white-space: normal;
  padding: 0;
  background: transparent;
}

.mf-details-expanded .mf-desc,
.mf-details-expanded .mf-req {
  display: block;
  overflow: visible;
}

.mf-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 11px;
  color: var(--text-light);
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  cursor: pointer;
  margin-top: 4px;
  transition: all 0.2s;
}

.mf-toggle-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--bg-alt, #FFF4EC);
}

.mf-toggle-btn i { font-size: 12px; }

.mf-images {
  display: none;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.mf-details-expanded .mf-images {
  display: flex;
}

.mf-images img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.mf-images img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.image-upload-zone {
  border: 2px dashed var(--border-light);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-alt, #FFF4EC);
}

.image-upload-zone:hover,
.image-upload-zone.dragover {
  border-color: var(--primary);
  color: var(--primary);
  background: #FFF0F3;
}

.image-upload-zone i {
  font-size: 24px;
  display: block;
  margin-bottom: 6px;
}

.image-upload-zone span {
  font-size: 13px;
}

.image-preview-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.image-preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-item button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Submission detail modal */
.sd-section { margin-bottom: 18px; }
.sd-section:last-child { margin-bottom: 0; }
.sd-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 8px 0;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border-light);
}
.sd-section .sd-content {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg-alt, #FFF9F3);
  padding: 14px 16px;
  border-radius: 10px;
  white-space: pre-wrap;
}
.sd-section.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.sd-section.meta .sd-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}
.sd-section.meta .sd-item strong { color: var(--text); }

/* VRChat avatar in modal */
.sd-vrc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: linear-gradient(135deg, #F5F0FF, #FFF5EE);
  border-radius: 12px;
  margin-bottom: 16px;
}
.sd-vrc-header img,
.sd-vrc-header .sd-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #FFB347, #FF8C42);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.sd-vrc-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px 0;
}
.sd-vrc-info { font-size: 13px; color: var(--text-light); }

.sd-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.sd-tags .tag {
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 12px;
}

/* QQ联系方式置顶 */
.sd-contact-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #e8f4fd, #dbeafe);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #1d4ed8;
}
.sd-contact-top i {
  font-size: 20px;
  color: #12B7F5;
}

.sd-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  color: #2E7D32;
  background: #E8F5E9;
  border-radius: 10px;
  margin-left: 8px;
}

.mf-tags { display: flex; gap: 5px; margin-bottom: 8px; flex-wrap: wrap; }
.mf-tags span {
  padding: 2px 8px;
  background: var(--bg-alt, #FFF4EC);
  color: var(--text-secondary);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.mf-time { font-size: 11px; color: var(--text-light); display: flex; align-items: center; gap: 4px; }

/* About view */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.about-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 18px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

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

.about-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  flex: 0 0 56px;
  box-shadow: var(--shadow-sm);
}

.about-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0 0;
  flex: 1 1 calc(100% - 74px);
}

.about-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  flex: 1 1 calc(100% - 74px);
  margin-left: 74px;
}



/* Toast */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.toast {
  position: fixed !important;
  top: 24px !important;
  right: 24px !important;
  transform: translateX(400px);
  padding: 12px 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  z-index: 99999 !important;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}

.toast.show { opacity: 1; transform: translateX(0) translateY(0); }
.toast.success { border-color: var(--success); color: #4A9B76; }
.toast.error { border-color: var(--danger); color: var(--danger); }

/* ===== 侧边栏认证区域 ===== */
.auth-section {
  padding: 4px 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-btn { width: 100%; }

.auth-user {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 181, 197, 0.08);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.auth-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.auth-user-info i { color: var(--primary-light); font-size: 16px; }

.auth-user .btn { width: 100%; font-size: 12px; padding: 6px 10px; }

/* ===== 模态框 ===== */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.show { display: flex; }

.modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 100vh !important;
  height: 100dvh !important; /* 用可见视口高度居中：避免移动端地址栏把弹窗整体顶到屏幕下方、底部按钮落到可视区外 */
  margin: 0 !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 2147483647 !important; /* 浏览器最大 z-index，绝对不会被任何东西遮挡 */
}

.modal-box {
  position: relative !important;
  background: var(--modal-bg, #FFFFFF) !important;
  color: var(--modal-text, #1D1B20) !important;
  opacity: 1 !important;
  border-radius: var(--radius-lg);
  width: 460px;
  max-width: 92%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 8px 24px rgba(0,0,0,0.2);
  animation: modalIn 0.25s ease;
  margin: 0 auto !important;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
}

/* 强制弹窗内部所有子元素都使用实色背景，防止 backdrop-filter 穿透导致文字半透明 */
.modal-box > * { opacity: 1 !important; }
.modal-box .modal-header,
.modal-box .modal-body,
.modal-box .modal-footer { background: var(--modal-bg, #FFFFFF) !important; color: var(--modal-text, #1D1B20) !important; }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.modal-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s;
}

.modal-close:hover {
  background: var(--border-light);
  color: var(--text);
}

.modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-body .field { margin-bottom: 14px; }

.modal-footer {
  padding: 14px 24px 18px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.modal-links {
  padding: 0 24px 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.modal-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.modal-links a:hover { color: var(--primary-dark); text-decoration: underline; }

.modal-links a:only-child {
  margin-left: auto;
}

/* ===== 登录模态框美化 ===== */
.login-modal-box {
  width: 460px !important;
  border-radius: 32px !important;
  overflow: visible !important;
  border: none !important;
  background: linear-gradient(180deg, var(--modal-bg, #FFFFFF) 0%, var(--bg, #FFFBF9) 100%) !important;
  box-shadow: 
    0 50px 100px rgba(255, 122, 155, 0.25),
    0 25px 50px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  animation: modalInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  position: relative !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@keyframes modalInUp {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 模态框顶部装饰 - 糖霜滴落效果 */
.login-modal-box::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 20px;
  right: 20px;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 181, 197, 0.6) 20%, 
    rgba(255, 122, 155, 0.8) 50%, 
    rgba(255, 181, 197, 0.6) 80%, 
    transparent 100%);
  border-radius: 0 0 4px 4px;
  pointer-events: none;
  filter: blur(1px);
}

/* 角落装饰 */
.login-modal-box::after {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 120px;
  background: radial-gradient(ellipse at center, rgba(255, 181, 197, 0.35) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.login-header {
  position: relative;
  padding: 16px 28px 8px !important;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-card, #FFF8F9) 0%, var(--modal-bg, #FFFFFF) 60%) !important;
  border: none !important;
  overflow: hidden;
  border-radius: 32px 32px 0 0;
}

/* 背景装饰 - 柔和的糖霜光斑 */
.login-header::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -20px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 181, 197, 0.25) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: floatBlob1 6s ease-in-out infinite;
}

.login-header::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 179, 71, 0.15) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: floatBlob2 8s ease-in-out infinite;
}

@keyframes floatBlob1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, 10px); }
}

@keyframes floatBlob2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -8px); }
}

.login-logo {
  width: 220px;
  height: auto;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.login-logo svg,
.login-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(255, 122, 155, 0.4));
}

.login-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #FF7A9B 0%, #FFB347 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  position: relative;
  z-index: 1;
}

.login-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.04) !important;
  color: var(--text-secondary) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
  z-index: 10;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.login-close:hover {
  background: rgba(255, 122, 155, 0.15) !important;
  color: var(--primary) !important;
  transform: rotate(90deg) scale(1.1);
}

.login-body {
  padding: 20px 32px 8px !important;
  overflow: visible !important;
  display: flex;
  flex-direction: column;
}

.login-qq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  margin-top: 4px;
  background: linear-gradient(135deg, #56b6f7 0%, #12b7f5 100%);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(18, 183, 245, 0.3);
  position: relative;
  overflow: hidden;
}

.login-qq-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.login-qq-btn:hover::before {
  left: 100%;
}

.login-qq-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(18, 183, 245, 0.4);
}

.login-qq-btn:active {
  transform: translateY(-1px);
}

.login-qq-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.login-divider {
  display: flex;
  align-items: center;
  margin: 16px 0;
  color: var(--text-light);
  font-size: 13px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.login-divider span {
  padding: 0 20px;
  background: #fff;
  position: relative;
  color: var(--text-light);
  font-weight: 500;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-input-wrap {
  position: relative;
  transition: all 0.25s ease;
}

.login-input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 14px;
  pointer-events: none;
  transition: color 0.25s;
}

.login-input-wrap input {
  width: 100%;
  padding: 15px 18px 15px 48px;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--border-light);
  border-radius: 16px;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.login-input-wrap input::placeholder {
  color: var(--text-light);
  font-weight: 400;
}

.login-input-wrap input:hover {
  border-color: var(--primary-light);
}

.login-input-wrap input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 122, 155, 0.12), 0 4px 16px rgba(255, 122, 155, 0.08);
}

.login-input-wrap:focus-within .login-input-icon {
  color: var(--primary);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0;
  font-size: 13px;
}

.login-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text-secondary);
  user-select: none;
  transition: color 0.2s;
}

.login-checkbox:hover {
  color: var(--text);
}

.login-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.login-checkbox .checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.login-checkbox input:checked + .checkmark {
  background: linear-gradient(135deg, #FF94AD, #FF7A9B);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(255, 122, 155, 0.3);
}

.login-checkbox input:checked + .checkmark::after {
  content: '✓';
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  animation: checkmarkPop 0.2s ease;
}

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

.login-checkbox:hover .checkmark {
  border-color: var(--primary-light);
}

.login-forgot {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
}

.login-forgot::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.login-forgot:hover {
  color: var(--primary-dark);
}

.login-forgot:hover::after {
  width: 100%;
}

.login-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #FF94AD 0%, #FF7A9B 45%, #F25F82 100%);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 28px rgba(255, 122, 155, 0.35);
  margin-top: 8px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.login-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.login-submit-btn:hover::before {
  left: 100%;
}

.login-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(255, 122, 155, 0.45);
}

.login-submit-btn:active {
  transform: translateY(-1px);
}

.login-submit-btn i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.login-submit-btn:hover i {
  transform: translateX(6px);
}

.login-footer {
  padding: 20px 28px 28px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  background: #fff;
  border-top: 1px solid var(--border-light);
}

.login-register-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  margin-left: 4px;
  transition: all 0.2s;
  position: relative;
}

.login-register-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.login-register-link:hover {
  color: var(--primary-dark);
}

.login-register-link:hover::after {
  width: 100%;
}

.code-row {
  display: flex;
  gap: 8px;
}

.code-row input { flex: 1; }

.code-row .btn { white-space: nowrap; flex-shrink: 0; }

/* View visibility */
.view { display: block; }
.view[hidden] { display: none !important; }

/* ===== 移动端专用元素（PC 端默认隐藏）===== */
.mobile-tabbar,
.mobile-brand { display: none; }

/* Responsive */

/* ---- Tablet & Mobile (≤1024px): APP 风格 — 底部 Tab 导航，单列 ---- */
@media (max-width: 1024px) {
  body.app-page { padding-left: 0; }

  /* 隐藏 PC 专用元素 */
  .pc-brand { display: none; }
  .pc-nav-tabs { display: none; }
  .left-panel, .right-panel { display: none; }

  /* 三列布局变单列 */
  .feed-layout {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
  }

  /* 内容区域底部留出 Tab Bar 空间 */
  .content-area { padding: 14px 14px 96px; }

  /* 顶栏 APP 风格 */
  .topbar { padding: 10px 14px; height: 54px; }
  .topbar-left { gap: 10px; }
  .topbar-left h1 { font-size: 17px; }

  /* 显示移动端品牌 */
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .mobile-brand img {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
  }
  .mobile-brand span {
    font-size: 16px; font-weight: 700;
    color: var(--text); letter-spacing: 0.5px;
  }

  /* 隐藏 PC 发布按钮，显示移动端认证按钮 */
  .topbar-publish-btn { display: none; }

  .mobile-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: rgba(255, 181, 197, 0.18);
    color: var(--text-secondary);
    font-size: 15px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s, transform 0.15s;
  }
  .mobile-auth-btn::after { display: none; }
  .mobile-auth-btn:active { transform: scale(0.92); background: rgba(255, 181, 197, 0.32); }
  .mobile-auth-btn.logged-in {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
  }

  /* Grids 单列 */
  .action-grid { grid-template-columns: 1fr; }
  .recent-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .member-grid { gap: 12px; }

  /* ===== 底部 Tab 导航栏 ===== */
  .mobile-tabbar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 62px;
    background: rgba(255, 251, 247, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-light);
    z-index: 200;
    padding-bottom: env(safe-area-inset-bottom, 0);
    align-items: stretch;
  }

  .mobile-tab-item {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--text-light);
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s;
  }
  .mobile-tab-item i { font-size: 18px; }
  .mobile-tab-item span { font-size: 10px; font-weight: 600; }
  .mobile-tab-item.active { color: var(--primary-dark); }
  .mobile-tab-item.active::before {
    content: '';
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--primary-dark);
  }
  .mobile-tab-item:active { transform: scale(0.92); }

  .mobile-tab-fab {
    flex: 0 0 auto;
    width: 56px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-tab-fab i {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(242, 95, 130, 0.4);
    transition: transform 0.15s;
  }
  .mobile-tab-fab:active i { transform: scale(0.92); }

  /* 欢迎横幅紧凑 */
  .welcome-banner { flex-direction: column; text-align: center; padding: 24px 20px; }
  .welcome-stats { gap: 24px; }

  /* 表单紧凑 */
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 20px 16px; }
  .form-btns { flex-direction: column-reverse; }
  .form-btns .btn { width: 100%; }

  .ai-classify-card { padding: 14px 16px; margin-bottom: 16px; }
}

/* ---- Small mobile (≤480px): tighter spacing ---- */
@media (max-width: 480px) {
  .welcome-stats { flex-direction: column; gap: 12px; }
  .w-stat { flex-direction: row; gap: 8px; }
}

/* ===== 我的提交 ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
}

.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); margin-bottom: 20px; }

.submission-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.submission-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(255, 122, 155, 0.08), rgba(255, 179, 71, 0.08));
  border-bottom: 1px solid var(--border-light);
}

.submission-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.status-text { font-weight: 600; }
.status-text.status-pending { color: #FFB347; }
.status-text.status-approved { color: var(--success); }
.status-text.status-rejected { color: var(--danger); }
.status-text.status-withdrawn { color: var(--text-light); }

.submission-time { color: var(--text-light); font-size: 12px; display: flex; align-items: center; gap: 4px; }

.submission-info {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.info-row {
  display: flex;
  gap: 8px;
  font-size: 13px;
}

.info-label { color: var(--text-light); min-width: 70px; }
.info-value { color: var(--text); font-weight: 500; }

.submission-section {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
}

.submission-section h4 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.submission-section p { color: var(--text-secondary); line-height: 1.7; white-space: pre-wrap; font-size: 13px; }

.submission-actions {
  padding: 20px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  border-top: 1px solid var(--border-light);
}

/* 撤回选项 */
.withdraw-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.withdraw-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.withdraw-option:hover {
  border-color: var(--primary);
  background: rgba(255, 122, 155, 0.04);
  transform: translateY(-1px);
}

.option-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.option-content strong { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.option-content span { font-size: 12px; color: var(--text-secondary); }

@media (max-width: 768px) {
  .submission-info { grid-template-columns: 1fr; }
  .submission-actions { flex-direction: column-reverse; }
  .submission-actions .btn { width: 100%; }
}

/* ============ VRChat 认证相关样式 ============ */

.vrc-auth-status {
  cursor: pointer;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
}

.vrc-logo-icon {
  width: 28px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.vrc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}

.vrc-badge:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.vrc-badge.vrc-unverified {
  background: rgba(255, 181, 197, 0.12);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.vrc-badge.vrc-unverified:hover {
  background: rgba(255, 181, 197, 0.20);
  color: var(--text);
}

.vrc-badge.vrc-verified {
  background: linear-gradient(135deg, rgba(127, 200, 169, 0.2), rgba(126, 184, 255, 0.2));
  color: var(--success);
  border: 1px solid rgba(127, 200, 169, 0.4);
}

.vrc-badge.vrc-verified .vrc-logo-icon {
  color: var(--success);
}

/* 社区广场 VRChat 已验证标签 */
.vrc-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: linear-gradient(135deg, #7FC8A9, #7EB8FF);
  color: white;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(127, 200, 169, 0.3);
  animation: vrcVerifiedPulse 2s ease-in-out infinite;
}

.vrc-verified-tag .vrc-logo-icon {
  width: 22px;
  height: 12px;
}

@keyframes vrcVerifiedPulse {
  0%, 100% {
    box-shadow: 0 2px 6px rgba(127, 200, 169, 0.3);
  }
  50% {
    box-shadow: 0 2px 12px rgba(127, 200, 169, 0.5);
  }
}

/* VRChat 头像图片 - 在卡片中用小圆形头像 */
.vrc-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--success);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .vrc-auth-status {
    margin-left: 4px;
  }
  .vrc-badge {
    padding: 3px 8px;
    font-size: 10px;
  }
  .vrc-verified-tag {
    font-size: 10px;
    padding: 2px 8px;
  }
}

/* ============ Cookie 同意横幅 ============ */
#cookieConsentBar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2147483645;
  background: rgba(29, 27, 32, 0.96);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  font-size: 13px;
}
#cookieConsentBar .cc-text {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}
#cookieConsentBar .cc-text i { color: #FFB8CC; font-size: 18px; flex-shrink: 0; }
#cookieConsentBar .cc-text a { color: #FFB8CC; text-decoration: underline; }
#cookieConsentBar .cc-actions { display: flex; gap: 8px; flex-shrink: 0; }
#cookieConsentBar .cc-btn {
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
#cookieConsentBar .cc-accept { background: linear-gradient(135deg,#FF7A9B,#F25F82); color: #fff; }
#cookieConsentBar .cc-decline { background: rgba(255,255,255,0.15); color: #fff; }
#cookieConsentBar .cc-manage { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
#cookieConsentBar .cc-btn:hover { opacity: .9; }
@media (max-width: 640px) {
  #cookieConsentBar { flex-direction: column; align-items: stretch; gap: 10px; }
  #cookieConsentBar .cc-actions { justify-content: flex-end; }
}

/* 平板/手机：底部 Tab 导航固定在 bottom:0，Cookie 横幅需上移到 Tab 之上，避免遮挡导航 */
@media (max-width: 1024px) {
  #cookieConsentBar { bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
}

/* ============ 图片查看器（灯箱） ============ */
.img-viewer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.img-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}
.img-viewer-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 90vh;
}
.img-viewer-img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.img-viewer-close,
.img-viewer-nav {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.img-viewer-close:hover,
.img-viewer-nav:hover { background: rgba(255, 255, 255, 0.3); }
.img-viewer-close {
  top: -46px;
  right: -6px;
  width: 40px;
  height: 40px;
  font-size: 18px;
}
.img-viewer-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  font-size: 18px;
}
.img-viewer-prev { left: -56px; }
.img-viewer-next { right: -56px; }
.img-viewer-counter {
  position: absolute;
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13px;
  opacity: 0.85;
}
@media (max-width: 640px) {
  .img-viewer-prev { left: 8px; }
  .img-viewer-next { right: 8px; }
  .img-viewer-close { top: 10px; right: 10px; }
  .img-viewer-img { max-width: 96vw; }
}