.theme-dark .vivia-hero {
  background: rgba(18, 23, 35, 0.0);
  box-shadow: 0 25px 60px rgba(5, 8, 18, 0.0);
  color: rgba(230, 235, 255, 0.95);
}


@media (min-width: 992px) {
  .vivia-header .vivia-theme-toggle.mobile {
    display: none !important;
  }
}
.theme-dark .vivia-profile-card .profile-body {
  background: linear-gradient(180deg, rgba(24, 30, 46, 0.92) 0%, rgba(18, 23, 35, 0.9) 100%);
}

.theme-dark .vivia-member-content,
.theme-dark .vivia-member-panel,
.theme-dark .vivia-member-aside .member-aside-card,
.theme-dark .vivia-profile-sidebar {
  background: rgba(18, 23, 35, 0.88);
  border-color: rgba(84, 102, 180, 0.22);
  color: rgba(230, 235, 255, 0.9);
}

.theme-dark .vivia-member-tabs {
  background: rgba(94, 114, 201, 0.2);
}

.theme-dark .vivia-member-tabs .member-tab {
  color: rgba(203, 213, 255, 0.8);
}

.theme-dark .vivia-member-tabs .member-tab.active {
  background: rgba(94, 114, 201, 0.9);
  color: #fff;
  box-shadow: 0 12px 30px rgba(5, 8, 25, 0.45);
}

.theme-dark .vivia-profile-card .profile-btn.primary {
  background: rgba(94, 114, 201, 0.9);
}

.theme-dark .vivia-profile-card .profile-btn.ghost {
  background: rgba(94, 114, 201, 0.12);
  border-color: rgba(94, 114, 201, 0.35);
  color: rgba(230, 235, 255, 0.92);
}

.theme-dark .member-aside-card .aside-post-title,
.theme-dark .vivia-profile-sidebar .sidebar-link {
  color: rgba(230, 235, 255, 0.9);
}

.theme-dark .vivia-profile-sidebar .sidebar-link:hover,
.theme-dark .vivia-profile-sidebar .sidebar-link.active {
  background: rgba(94, 114, 201, 0.18);
  color: #fff;
}

.sidebar-card.sidebar-tags {
  display: grid;
  gap: 0.8rem;
  padding: 1.2rem 1.4rem;
}

.sidebar-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sidebar-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 999px;
  background: rgba(122, 101, 255, 0.1);
  color: var(--primary);
  border: 1px solid rgba(122, 101, 255, 0.15);
}

.sidebar-tag:hover {
  background: rgba(122, 101, 255, 0.16);
  color: var(--primary);
}

.sidebar-tag.active {
  background: var(--primary);
  color: #fff;
  border-color: rgba(122, 101, 255, 0.3);
}
:root {
  --hue: 250;
  --page-width: min(1200px, 92vw);
  --radius-large: 18px;
  --radius-card: 20px;
  --primary: oklch(0.68 0.12 var(--hue));
  --primary-soft: oklch(0.82 0.07 var(--hue));
  --page-bg: linear-gradient(160deg, oklch(0.96 0.03 var(--hue)) 0%, oklch(0.88 0.05 calc(var(--hue) + 30)) 50%, #ffffff 100%);
  --card-bg: rgba(255, 255, 255, 0.82);
  --card-bg-strong: rgba(255, 255, 255, 0.92);
  --card-border: rgba(113, 97, 255, 0.08);
  --text-strong: rgba(5, 15, 35, 0.92);
  --text-muted: rgba(5, 15, 35, 0.55);
  --text-soft: rgba(5, 15, 35, 0.35);
  --shadow-soft: 0 30px 60px rgba(93, 65, 255, 0.12);
  --shadow-card: 0 18px 40px rgba(20, 22, 55, 0.08);
  --blur-bg: rgba(255, 255, 255, 0.4);
  color-scheme: light;
  font-family: "Inter", "HarmonyOS Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.theme-dark {
  --primary: oklch(0.7 0.12 280);
  --page-bg: radial-gradient(circle at 10% 20%, rgba(26, 35, 70, 0.9), rgba(10, 17, 32, 0.96));
  --card-bg: rgba(18, 23, 35, 0.85);
  --card-bg-strong: rgba(24, 30, 46, 0.92);
  --card-border: rgba(84, 102, 180, 0.24);
  --text-strong: rgba(230, 235, 255, 0.92);
  --text-muted: rgba(203, 213, 255, 0.7);
  --text-soft: rgba(203, 213, 255, 0.5);
  --shadow-soft: 0 30px 60px rgba(5, 8, 25, 0.5);
  --shadow-card: 0 18px 40px rgba(6, 11, 28, 0.45);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.vivia-body {
  margin: 0;
  background: var(--page-bg);
  min-height: 100vh;
  color: var(--text-strong);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  display: block;
}

.btn-primary,
.btn-plain,
.btn-flat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.5rem 1.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 12px 24px rgba(122, 101, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px rgba(122, 101, 255, 0.35);
  transform: translateY(-1px);
  color: #fff;
}

.theme-dark .btn-primary {
  background: rgba(94, 116, 215, 0.85);
  border-color: rgba(94, 116, 215, 0.6);
}

.theme-dark .btn-primary:hover {
  box-shadow: 0 16px 32px rgba(5, 10, 25, 0.5);
}

.btn-plain {
  background: rgba(255, 255, 255, 0.65);
  color: var(--primary);
  border: 1px solid rgba(122, 101, 255, 0.25);
}

.btn-plain:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
}

.theme-dark .btn-plain {
  background: rgba(18, 23, 35, 0.85);
  color: rgba(230, 235, 255, 0.9);
  border-color: rgba(84, 102, 180, 0.32);
}

.theme-dark .btn-plain:hover {
  background: rgba(18, 23, 35, 0.95);
}

.btn-flat {
  background: rgba(122, 101, 255, 0.08);
  color: var(--primary);
  border: 1px solid rgba(122, 101, 255, 0.2);
}

.btn-flat:hover {
  background: rgba(122, 101, 255, 0.16);
  border-color: rgba(122, 101, 255, 0.3);
}

.theme-dark .btn-flat {
  background: rgba(84, 102, 180, 0.18);
  color: rgba(230, 235, 255, 0.9);
  border-color: rgba(84, 102, 180, 0.32);
}

.theme-dark .btn-flat:hover {
  background: rgba(84, 102, 180, 0.28);
  border-color: rgba(84, 102, 180, 0.45);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(122, 101, 255, 0.12);
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-soft {
  background: rgba(255, 163, 120, 0.15);
  color: oklch(0.72 0.15 50);
  margin-right: 0.35rem;
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem;
}

.theme-dark .badge-soft {
  background: rgba(255, 163, 120, 0.18);
  color: rgba(255, 214, 180, 0.9);
}

.theme-dark .badge {
  background: rgba(84, 102, 180, 0.18);
  color: rgba(203, 213, 255, 0.9);
}

.vivia-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--card-border);
}

.theme-dark .vivia-header {
  background: rgba(10, 17, 32, 0.85);
  border-bottom-color: rgba(84, 102, 180, 0.25);
}

.vivia-header-inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 1.1rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.vivia-logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.vivia-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}

.vivia-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(130deg, var(--primary), rgba(122, 101, 255, 0.75));
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 12px 22px rgba(122, 101, 255, 0.35);
}

.theme-dark .vivia-logo-icon {
  background: linear-gradient(130deg, rgba(94, 116, 215, 0.9), rgba(84, 102, 180, 0.7));
  box-shadow: 0 12px 22px rgba(5, 10, 25, 0.4);
}

.vivia-menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 38px;
  height: 38px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.vivia-menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-strong);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.vivia-nav {
  flex: 2;
}

.vivia-menu-root {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vivia-menu-root > li > a {
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  color: var(--text-muted);
}

.theme-dark .vivia-menu-root > li > a {
  color: rgba(230, 235, 255, 0.9);
  background: rgba(26, 32, 54, 0.85);
}

.vivia-menu-root > li > a:hover,
.vivia-menu-root > li > a.active {
  color: var(--primary);
  background: rgba(122, 101, 255, 0.12);
}

.theme-dark .vivia-menu-root > li > a:hover,
.theme-dark .vivia-menu-root > li > a.active {
  color: #fff;
  background: rgba(94, 114, 201, 0.28);
}

.vivia-nav li {
  position: relative;
}

.vivia-submenu {
  list-style: none;
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 200px;
  margin: 0;
  padding: 0.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  background: rgba(255, 255, 255, 0.95);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.theme-dark .vivia-submenu {
  background: rgba(18, 23, 35, 0.95);
  box-shadow: 0 14px 28px rgba(5, 10, 25, 0.45);
  border: 1px solid rgba(84, 102, 180, 0.3);
}

.vivia-submenu .has-children > .vivia-submenu {
  top: 0;
  left: 100%;
}

.has-children:hover > .vivia-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.vivia-submenu > li {
  margin: 0;
}

.vivia-submenu > li > a {
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.vivia-submenu > li > a:hover {
  background: rgba(122, 101, 255, 0.12);
  color: var(--primary);
}

.theme-dark .vivia-submenu > li > a {
  color: rgba(203, 213, 255, 0.75);
}

.theme-dark .vivia-submenu > li > a:hover {
  background: rgba(84, 102, 180, 0.25);
  color: rgba(230, 235, 255, 0.95);
}

.vivia-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.vivia-nav-extra {
  display: none;
}

@media (max-width: 768px) {
  .vivia-header-inner {
    flex-wrap: wrap;
    padding: 0.8rem 1rem 1.2rem;
    justify-content: space-between;
  }
  .vivia-nav {
    order: 3;
    width: 100%;
    background: rgba(6, 11, 27, 0.55);
    border-radius: 16px;
    padding: 0.6rem 1rem 1rem;
    box-shadow: var(--shadow-card);
    box-sizing: border-box;
  }
  .vivia-actions {
    width: 100%;
    justify-content: flex-end;
    display: none;
  }
  .vivia-search {
    flex: 1;
    min-width: 0;
    width: 100%;
  }
  .vivia-search input {
    width: 100%;
    min-width: 0;
  }
  .vivia-user-actions,
  .vivia-user {
    margin-left: auto;
    width: 100%;
  }
  .vivia-nav-extra {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 0 0.5rem;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 12px;
    border: 1px solid rgba(122, 101, 255, 0.14);
  }
  .vivia-nav-extra .vivia-search {
    width: 100%;
  }
  .vivia-nav-extra .vivia-theme-toggle.mobile {
    display: inline-flex;
    margin: 0 auto;
  }
  .theme-dark .vivia-nav-extra {
    background: rgba(12, 18, 35, 0.9);
    border-color: rgba(84, 102, 180, 0.3);
  }
  .nav-auth-mobile {
    display: flex;
    gap: 0.6rem;
  }
  .nav-auth-mobile .btn-flat,
  .nav-auth-mobile .btn-primary {
    flex: 1;
    text-align: center;
  }
  .nav-user-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-card);
    padding: 0.85rem;
    border: 1px solid rgba(122, 101, 255, 0.12);
  }
  .theme-dark .nav-user-mobile {
    background: rgba(18, 23, 35, 0.85);
    border-color: rgba(84, 102, 180, 0.25);
  }
  .nav-user-mobile .nav-user-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
  }
  .nav-user-mobile .nav-user-info img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
  }
  .nav-user-mobile ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }
  .nav-user-mobile ul a {
    color: var(--text-strong);
  }
  .theme-dark .nav-user-mobile ul a {
    color: rgba(230, 235, 255, 0.92);
  }

  .vivia-menu-root {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: rgba(247, 243, 255, 0.75);
    padding: 0.6rem;
    border-radius: 14px;
    border: 1px solid rgba(122, 101, 255, 0.12);
    box-sizing: border-box;
  }

  .theme-dark .vivia-menu-root {
    background: rgba(12, 18, 35, 0.9);
    border-color: rgba(84, 102, 180, 0.25);
  }

  .vivia-menu-root > li > a {
    display: block;
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    color: var(--text-strong);
    background: rgba(247, 243, 255, 0.8);
  }

  .theme-dark .vivia-menu-root > li > a {
    color: rgba(230, 235, 255, 0.92);
    background: rgba(26, 32, 54, 0.8);
  }

  .vivia-menu-root > li > a.active,
  .vivia-menu-root > li > a:hover {
    background: rgba(122, 101, 255, 0.12);
  }

  .theme-dark .vivia-menu-root > li > a.active,
  .theme-dark .vivia-menu-root > li > a:hover {
    background: rgba(94, 114, 201, 0.25);
  }

  .vivia-submenu {
    padding-left: 1rem;
  }

  .vivia-submenu > li > a {
    padding: 0.35rem 0.4rem;
    color: var(--text-muted);
  }

  .theme-dark .vivia-submenu > li > a {
    color: rgba(203, 213, 255, 0.7);
  }

  .theme-dark .vivia-nav {
    background: rgba(6, 11, 27, 0.95);
    box-shadow: 0 12px 30px rgba(3, 6, 15, 0.6);
  }
}

.vivia-search {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.2rem 0.25rem;
  gap: 0.35rem;
}

.vivia-search input {
  border: none;
  background: transparent;
  padding: 0.35rem 0.8rem;
  outline: none;
  font-size: 0.9rem;
  min-width: 160px;
}

.theme-dark .vivia-search input {
  color: rgba(230, 235, 255, 0.92);
}

.theme-dark .vivia-search {
  background: rgba(18, 23, 35, 0.85);
  border-color: rgba(84, 102, 180, 0.3);
}

.theme-dark .vivia-search button {
  background: rgba(94, 114, 201, 0.9);
  color: #fff;
}

/* ===========================
 * Member Profile
 * =========================== */
body.vivia-member-body {
  background: var(--page-bg);
  min-height: 100vh;
  padding-bottom: 80px;
}

.vivia-member-page {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 2.5rem 0 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.vivia-member-hero {
  background: var(--card-bg);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--card-border);
  overflow: hidden;
}

.vivia-profile-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vivia-profile-card .profile-cover {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: center;
  filter: saturate(120%);
}

.vivia-profile-card .cover-edit-btn {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.8rem;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

.vivia-profile-card .profile-body {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding: 0 2.4rem 2.4rem;
  margin-top: -80px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  border-radius: 0 0 var(--radius-large) var(--radius-large);
}

.vivia-profile-card .profile-avatar {
  position: relative;
  width: 160px;
  height: 160px;
  margin-top: -40px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(20, 22, 55, 0.2);
}

.vivia-profile-card .profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vivia-profile-card .avatar-edit-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: none;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(122, 101, 255, 0.35);
}

.vivia-profile-card .profile-info {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.vivia-profile-card .profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.vivia-profile-card .profile-name {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-strong);
}

.vivia-profile-card .profile-badge {
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(122, 101, 255, 0.12);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
}

.vivia-profile-card .profile-desc {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.vivia-profile-card .profile-stats {
  display: inline-flex;
  gap: 2.4rem;
}

.vivia-profile-card .stats-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.vivia-profile-card .stats-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-strong);
}

.vivia-profile-card .stats-label {
  font-size: 0.85rem;
  color: var(--text-soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vivia-profile-card .profile-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  align-self: flex-start;
}

.vivia-profile-card .profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 1.3rem;
  min-width: 110px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.vivia-profile-card .profile-btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 26px rgba(122, 101, 255, 0.3);
}

.vivia-profile-card .profile-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(122, 101, 255, 0.35);
}

.vivia-profile-card .profile-btn.ghost {
  background: rgba(122, 101, 255, 0.08);
  color: var(--primary);
  border-color: rgba(122, 101, 255, 0.25);
}

.vivia-profile-card .profile-btn.ghost:hover {
  background: rgba(122, 101, 255, 0.16);
  border-color: rgba(122, 101, 255, 0.35);
}

.theme-dark .vivia-profile-card {
  background: rgba(18, 23, 35, 0.8);
  color: rgba(230, 235, 255, 0.9);
}

.theme-dark .vivia-profile-card .profile-cover {
  filter: brightness(0.7);
}

.theme-dark .vivia-profile-card .profile-name {
  color: rgba(230, 235, 255, 0.95);
}

.theme-dark .vivia-profile-card .profile-desc {
  color: rgba(203, 213, 255, 0.75);
}

.theme-dark .vivia-profile-card .stats-label {
  color: rgba(203, 213, 255, 0.5);
}


.vivia-member-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
  gap: 2.2rem;
}

.vivia-member-tabs {
  display: inline-flex;
  gap: 0.6rem;
  background: rgba(122, 101, 255, 0.08);
  padding: 0.35rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

.vivia-member-tabs .member-tab {
  padding: 0.45rem 1.4rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.vivia-member-tabs .member-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 18px rgba(122, 101, 255, 0.18);
}

.vivia-member-content {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  padding: 1.8rem;
}

.vivia-member-panel {
  min-height: 220px;
}

.vivia-member-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.vivia-comment-list,
.vivia-follow-list,
.vivia-favorite-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vivia-comment-item,
.vivia-follow-item,
.vivia-favorite-item {
  border-radius: 18px;
  border: 1px solid rgba(122, 101, 255, 0.12);
  background: rgba(255, 255, 255, 0.75);
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.vivia-comment-item .comment-meta,
.vivia-follow-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.vivia-comment-item .comment-author,
.vivia-follow-item .follow-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.vivia-comment-item .author-avatar,
.vivia-follow-item .follow-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(20, 22, 55, 0.12);
}

.vivia-comment-item .author-info,
.vivia-follow-item .follow-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.vivia-comment-item .author-name,
.vivia-follow-item .follow-name,
.vivia-favorite-item .favorite-title {
  font-weight: 600;
  color: var(--text-strong);
}

.vivia-comment-item .comment-time,
.vivia-favorite-item .favorite-date {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.vivia-comment-item .comment-content {
  padding-left: 4.5rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.vivia-comment-item .comment-action {
  border: none;
  background: rgba(255, 99, 99, 0.1);
  color: rgb(210, 69, 69);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.vivia-follow-item .follow-action {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.vivia-follow-item .profile-btn {
  padding: 0.35rem 1.2rem;
}

.vivia-favorite-item {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.vivia-favorite-item .favorite-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.vivia-favorite-item .favorite-meta {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.theme-dark .vivia-message-item {
  background: rgba(18, 23, 35, 0.88);
  border-color: rgba(84, 102, 180, 0.24);
  color: rgba(230, 235, 255, 0.9);
}

.theme-dark .message-info time {
  color: rgba(203, 213, 255, 0.65);
}

.theme-dark .message-action {
  background: rgba(255, 99, 99, 0.15);
  color: rgba(255, 163, 163, 0.95);
}

.theme-dark .vivia-follow-item,
.theme-dark .vivia-favorite-item,
.theme-dark .vivia-comment-item {
  background: rgba(18, 23, 35, 0.88);
  border-color: rgba(84, 102, 180, 0.22);
  color: rgba(230, 235, 255, 0.9);
}

.theme-dark .vivia-follow-item .follow-action .profile-btn {
  background: rgba(94, 114, 201, 0.2);
  color: rgba(230, 235, 255, 0.92);
  border-color: rgba(94, 114, 201, 0.32);
}

.theme-dark .vivia-favorite-item .favorite-meta {
  color: rgba(203, 213, 255, 0.65);
}
.vivia-empty {
  border-radius: 16px;
  padding: 2.8rem 1rem;
  text-align: center;
  background: rgba(122, 101, 255, 0.08);
  color: var(--text-soft);
  font-size: 0.98rem;
}

.vivia-comment-list .comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.vivia-comment-list .comment-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.vivia-comment-list .author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(20, 22, 55, 0.15);
}

.vivia-comment-list .comment-content {
  padding-left: 4rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.vivia-comment-list .comment-reference {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}

.comment-action.ghost {
  border: 1px solid rgba(255, 99, 99, 0.3);
  background: rgba(255, 99, 99, 0.12);
  color: rgb(210, 69, 69);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

@media (max-width: 640px) {
  body,
  html {
    overflow-x: hidden;
  }
  .layui-layer {
    width: 92vw !important;
    left: 4vw !important;
  }
  .comment-action.ghost {
    width: auto;
    min-width: 90px;
    justify-content: center;
  }
}

.vivia-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.vivia-pagination .page-buttons {
  display: inline-flex;
  gap: 0.4rem;
}

.vivia-pagination .page-btn {
  border: none;
  border-radius: 10px;
  padding: 0.4rem 0.85rem;
  background: rgba(122, 101, 255, 0.1);
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
}

.vivia-pagination .page-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 20px rgba(122, 101, 255, 0.25);
}

.vivia-member-aside {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.member-aside-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  padding: 1.6rem;
}

.member-aside-card .aside-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.aside-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.aside-post-item {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.aside-post-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.aside-post-title {
  margin: 0;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.5;
}

.aside-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.aside-tag {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(122, 101, 255, 0.1);
  color: var(--primary);
  font-size: 0.85rem;
}

/* message dialog */
.vivia-dialog#send_message_dialog {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 1.6rem;
  min-width: 420px;
}

.vivia-dialog#send_message_dialog .dialog-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.vivia-dialog#send_message_dialog .dialog-label {
  font-weight: 600;
  color: var(--text-muted);
}

.vivia-dialog#send_message_dialog textarea {
  border: 1px solid rgba(122, 101, 255, 0.2);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.9);
}

.vivia-dialog#send_message_dialog .dialog-footer {
  margin-top: 1.2rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.vivia-dialog#send_message_dialog .dialog-btn {
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vivia-dialog#send_message_dialog .dialog-btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(122, 101, 255, 0.25);
}

.vivia-dialog#send_message_dialog .dialog-btn.primary:hover {
  transform: translateY(-1px);
}

.vivia-dialog#send_message_dialog .dialog-btn.ghost {
  background: rgba(122, 101, 255, 0.08);
  color: var(--primary);
  border: 1px solid rgba(122, 101, 255, 0.2);
}

.vivia-dialog#send_message_dialog .dialog-btn.ghost:hover {
  background: rgba(122, 101, 255, 0.14);
}

.theme-dark .vivia-dialog#send_message_dialog {
  background: rgba(18, 23, 35, 0.95);
  color: rgba(230, 235, 255, 0.9);
}

.theme-dark .vivia-dialog#send_message_dialog textarea {
  background: rgba(24, 30, 46, 0.9);
  border-color: rgba(94, 114, 201, 0.35);
  color: rgba(230, 235, 255, 0.92);
}

.theme-dark .vivia-dialog#send_message_dialog .dialog-btn.primary {
  background: rgba(94, 114, 201, 0.9);
}

.theme-dark .vivia-dialog#send_message_dialog .dialog-btn.ghost {
  border-color: rgba(94, 114, 201, 0.4);
  color: rgba(230, 235, 255, 0.92);
}

.vivia-comment-box {
  margin-top: 1.5rem;
  border-radius: 28px;
  border: 1px solid rgba(122, 101, 255, 0.12);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 30px 60px rgba(20, 22, 55, 0.08);
  padding: 1.4rem;
}

.vivia-comment-box .comment-box-empty {
  text-align: center;
  color: var(--text-muted);
}

.comment-editor {
  min-height: 140px;
  border-radius: 20px;
  border: 1px solid rgba(122, 101, 255, 0.2);
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  color: var(--text-strong);
  background: rgba(250, 249, 255, 0.8);
  line-height: 1.7;
}

.comment-editor:focus {
  border-color: rgba(122, 101, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(122, 101, 255, 0.12);
  outline: none;
}

.comment-editor:empty:before {
  content: attr(data-placeholder);
  color: var(--text-soft);
  pointer-events: none;
}

.comment-toolbar {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.comment-face-btn {
  border: none;
  border-radius: 18px;
  padding: 0 1.3rem;
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-weight: 600;
  background: rgba(122, 101, 255, 0.08);
  color: var(--primary);
  border: 1px solid rgba(122, 101, 255, 0.16);
}

.comments-title{
  margin-top: 2rem;
}

.comment-toolbar .auth-btn {
  height: 44px;
  padding: 0 1.4rem;
  display: inline-flex;
  align-items: center;
}

.comment-face-btn:hover {
  background: rgba(122, 101, 255, 0.16);
}

.comment-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  height: 44px;
}

.comment-counter {
  font-size: 0.85rem;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.comment-face-panel {
  margin-top: 0.8rem;
  padding: 0.8rem;
  border-radius: 18px;
  border: 1px solid rgba(122, 101, 255, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(20, 22, 55, 0.08);
}

.comment-face-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.comment-face-panel li {
  cursor: pointer;
}

.comment-face-panel img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(122, 101, 255, 0.12);
}

.theme-dark .vivia-comment-box {
  background: rgba(18, 23, 35, 0.85);
  border-color: rgba(84, 102, 180, 0.25);
}

.theme-dark .comment-editor {
  background: rgba(24, 30, 46, 0.85);
  border-color: rgba(94, 114, 201, 0.35);
  color: rgba(230, 235, 255, 0.92);
}

.theme-dark .comment-editor:empty:before {
  color: rgba(203, 213, 255, 0.5);
}

.theme-dark .comment-face-btn {
  background: rgba(94, 114, 201, 0.2);
  border-color: rgba(94, 114, 201, 0.32);
  color: rgba(230, 235, 255, 0.92);
}

.theme-dark .comment-face-panel {
  background: rgba(24, 30, 46, 0.95);
  border-color: rgba(94, 114, 201, 0.32);
}

.theme-dark .vivia-comments .comment-card {
  background: rgba(18, 23, 35, 0.85);
  border-color: rgba(84, 102, 180, 0.22);
  color: rgba(230, 235, 255, 0.92);
}

.theme-dark .comment-reply-card {
  background: rgba(24, 30, 46, 0.82);
  color: rgba(230, 235, 255, 0.88);
}

.theme-dark .comment-actions .comment-action {
  background: rgba(94, 114, 201, 0.2);
  color: rgba(230, 235, 255, 0.92);
}

.theme-dark .comment-actions .comment-action.ghost {
  background: rgba(255, 99, 99, 0.12);
  color: rgba(255, 163, 163, 0.92);
}

.theme-dark .comment-reply-card .reply-actions button {
  background: rgba(94, 114, 201, 0.2);
  color: rgba(230, 235, 255, 0.92);
}

.theme-dark .comment-reply-card .reply-actions button.ghost {
  background: rgba(255, 99, 99, 0.12);
  color: rgba(255, 163, 163, 0.92);
}

.vivia-notify-panel {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.notify-filters {
  display: inline-flex;
  gap: 0.5rem;
}

.notify-filter {
  border: none;
  border-radius: 999px;
  padding: 0.35rem 1.1rem;
  cursor: pointer;
  font-weight: 600;
  background: rgba(122, 101, 255, 0.08);
  color: var(--primary);
}

.notify-filter.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(122, 101, 255, 0.25);
}

.vivia-notify-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vivia-notify-item {
  display: flex;
  gap: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(122, 101, 255, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 36px rgba(20, 22, 55, 0.08);
  padding: 1.2rem 1.4rem;
}

.notify-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(122, 101, 255, 0.12);
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notify-content {
  flex: 1;
}

.notify-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.notify-meta h3 {
  margin: 0;
  font-size: 1.05rem;
}

.notify-meta time {
  display: block;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.notify-preview {
  margin-top: 0.6rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.notify-btn {
  border: none;
  border-radius: 12px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  font-weight: 600;
  background: rgba(122, 101, 255, 0.1);
  color: var(--primary);
}

.notify-btn.ghost {
  border: 1px solid rgba(122, 101, 255, 0.2);
  background: rgba(122, 101, 255, 0.04);
}

body.theme-dark .layui-layer-page {
  background: rgba(18, 23, 35, 0.96);
  color: rgba(230, 235, 255, 0.92);
  border: 1px solid rgba(84, 102, 180, 0.3);
}

body.theme-dark .layui-layer-title {
  background: rgba(24, 30, 46, 0.95);
  color: rgba(230, 235, 255, 0.92);
  border-bottom: 1px solid rgba(84, 102, 180, 0.3);
}

body.theme-dark .layui-layer-setwin .layui-layer-ico {
  filter: invert(1);
}

body.theme-dark .notify-dialog {
  color: rgba(230, 235, 255, 0.88);
}

.theme-dark .notify-filters {
  background: rgba(94, 114, 201, 0.15);
  padding: 0.3rem;
  border-radius: 999px;
}

.theme-dark .notify-filter {
  color: rgba(230, 235, 255, 0.8);
}

.theme-dark .notify-filter.active {
  background: rgba(94, 114, 201, 0.85);
  color: #fff;
  box-shadow: 0 12px 30px rgba(5, 8, 25, 0.45);
}

.theme-dark .vivia-notify-item {
  background: rgba(18, 23, 35, 0.88);
  border-color: rgba(84, 102, 180, 0.24);
  color: rgba(230, 235, 255, 0.9);
}

.theme-dark .notify-icon span {
  color: rgba(230, 235, 255, 0.92);
}

.theme-dark .notify-preview {
  color: rgba(203, 213, 255, 0.75);
}

.theme-dark .notify-btn {
  background: rgba(94, 114, 201, 0.2);
  color: rgba(230, 235, 255, 0.9);
}

.theme-dark .notify-btn.ghost {
  border-color: rgba(94, 114, 201, 0.35);
  color: rgba(230, 235, 255, 0.9);
}

.vivia-comments {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.comment-card {
  border-radius: 22px;
  border: 1px solid rgba(122, 101, 255, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 40px rgba(20, 22, 55, 0.08);
  padding: 1.3rem 1.5rem;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.comment-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(20, 22, 55, 0.15);
}

.comment-author-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.comment-name {
  font-weight: 600;
  color: var(--text-strong);
}

.comment-author-meta time {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.comment-body {
  margin-top: 0.8rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.comment-actions {
  margin-top: 0px;
  display: flex;
  gap: 0.8rem;
}

.comment-actions .comment-action {
  border: none;
  background: rgba(122, 101, 255, 0.1);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.comment-actions .comment-action.ghost {
  border: 1px solid rgba(255, 99, 99, 0.3);
  background: rgba(255, 99, 99, 0.12);
  color: rgb(210, 69, 69);
}

.comment-children {
  margin-top: 1rem;
  padding-left: 1.4rem;
  border-left: 2px solid rgba(122, 101, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.comment-reply-card {
  border-radius: 18px;
  background: rgba(247, 245, 255, 0.9);
  padding: 0.9rem 1.1rem;
}

.comment-reply-card .reply-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.comment-reply-card .reply-author img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
}

.comment-reply-card .reply-body {
  margin-top: 0.4rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.comment-reply-card .reply-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.comment-reply-card .reply-actions button {
  border: none;
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  cursor: pointer;
  background: rgba(122, 101, 255, 0.1);
  color: var(--primary);
}

.comment-reply-card .reply-actions button.ghost {
  background: rgba(255, 99, 99, 0.1);
  color: rgb(210, 69, 69);
}

.vivia-message-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.vivia-message-tab {
  display: none;
}

.vivia-message-tab.active {
  display: block;
}

.vivia-message-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vivia-message-item {
  border-radius: 22px;
  border: 1px solid rgba(122, 101, 255, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 40px rgba(20, 22, 55, 0.08);
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.vivia-message-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 50px rgba(20, 22, 55, 0.12);
}

.message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.message-user {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.message-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(20, 22, 55, 0.18);
}

.message-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.message-name {
  font-weight: 600;
  color: var(--text-strong);
}

.message-info time {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.message-action {
  border: none;
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 99, 99, 0.12);
  color: rgb(210, 69, 69);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

@media (max-width: 640px) {
  .message-action {
    width: auto;
    min-width: 90px;
    justify-content: center;
  }
}

.message-action:hover {
  background: rgba(255, 99, 99, 0.2);
}

.message-content {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  padding-left: 3.7rem;
}

.vivia-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.vivia-pagination-bar .page-buttons {
  display: flex;
  gap: 0.4rem;
}

.vivia-pagination-bar .page-btn {
  border: none;
  border-radius: 10px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  background: rgba(122, 101, 255, 0.12);
  color: var(--primary);
  font-weight: 600;
}

.vivia-pagination-bar .page-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 20px rgba(122, 101, 255, 0.25);
}

/* profile settings */
.vivia-profile-settings {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.vivia-profile-settings .settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vivia-profile-settings h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
}

.vivia-profile-settings p {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(122, 101, 255, 0.12);
  background: rgba(255, 255, 255, 0.75);
}

.settings-label {
  font-weight: 600;
  color: var(--text-muted);
}

.settings-text {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.settings-text .text-muted {
  color: var(--text-soft);
}

.settings-link {
  color: var(--primary);
  font-weight: 600;
}

.settings-link.danger {
  color: rgba(236, 85, 108, 0.95);
}

.settings-tip {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.settings-input,
.settings-textarea {
  width: 100%;
  border: 1px solid rgba(122, 101, 255, 0.18);
  border-radius: 14px;
  padding: 0.6rem 0.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-strong);
}

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

.theme-dark .settings-field {
  background: rgba(18, 23, 35, 0.88);
  border-color: rgba(84, 102, 180, 0.24);
  color: rgba(230, 235, 255, 0.9);
}

.theme-dark .settings-label,
.theme-dark .settings-tip {
  color: rgba(203, 213, 255, 0.7);
}

.theme-dark .settings-input,
.theme-dark .settings-textarea {
  background: rgba(24, 30, 46, 0.9);
  border-color: rgba(94, 114, 201, 0.35);
  color: rgba(230, 235, 255, 0.92);
}

.theme-dark .settings-link {
  color: rgba(124, 154, 255, 0.95);
}

.settings-password {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.settings-input:focus,
.settings-textarea:focus {
  outline: none;
  border-color: rgba(122, 101, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(122, 101, 255, 0.12);
}

.settings-footer {
  display: flex;
  justify-content: flex-end;
}

.aside-safe-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.aside-safe-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}

.aside-safe-list a {
  color: var(--primary);
  font-weight: 600;
}

.vivia-profile-sidebar {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.6rem;
}

.vivia-profile-sidebar .sidebar-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.vivia-profile-sidebar .sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.vivia-profile-sidebar .sidebar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.vivia-profile-sidebar .sidebar-link:hover,
.vivia-profile-sidebar .sidebar-link.active {
  background: rgba(122, 101, 255, 0.12);
  color: var(--primary);
}

@media (max-width: 960px) {
  .vivia-profile-card {
    border-radius: var(--radius-large);
  }

  .vivia-profile-card .profile-body {
    grid-template-columns: 1fr;
    padding: 0 1.4rem 2rem;
    margin-top: -60px;
  }

  .vivia-profile-card .profile-avatar {
    margin: -60px auto 0;
  }

  .vivia-profile-card .profile-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .vivia-member-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .vivia-profile-card .profile-body {
    grid-template-columns: 1fr;
    padding: 0 1.4rem 1.8rem;
    margin-top: -60px;
  }
  .vivia-profile-card .profile-avatar {
    width: 120px;
    height: 120px;
    margin: -50px auto 0;
  }
  .vivia-profile-card .profile-info {
    align-items: center;
    text-align: center;
  }
  .vivia-profile-card .profile-stats {
    justify-content: center;
    flex-wrap: wrap;
  }
  .vivia-profile-card .profile-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .vivia-dialog#send_message_dialog {
    min-width: 0;
    width: 92vw;
    padding: 1rem;
  }
  .vivia-dialog#send_message_dialog .dialog-footer {
    flex-direction: column;
  }
  .vivia-dialog#send_message_dialog .dialog-btn {
    width: 100%;
  }
}

.vivia-search button {
  border: none;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-size: 0.85rem;
  padding: 0.35rem 0.95rem;
  cursor: pointer;
  min-width: 80px;
}

.theme-dark .vivia-search button {
  background: rgba(84, 102, 180, 0.65);
}

.vivia-theme-toggle {
  border: none;
  background: rgba(122, 101, 255, 0.12);
  color: var(--text-strong);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease;
}

.vivia-theme-toggle:hover {
  transform: translateY(-1px);
  background: rgba(122, 101, 255, 0.18);
}

.vivia-theme-toggle.is-dark {
  background: rgba(12, 22, 38, 0.7);
  color: #ffd166;
}

.theme-icon {
  position: absolute;
  font-size: 1.1rem;
  transition: opacity 0.2s ease;
}

.theme-icon-sun {
  opacity: 1;
}

.theme-icon-moon {
  opacity: 0;
}

.vivia-theme-toggle.is-dark .theme-icon-sun {
  opacity: 0;
}

.vivia-theme-toggle.is-dark .theme-icon-moon {
  opacity: 1;
}

.vivia-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.vivia-avatar {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(32, 40, 62, 0.12);
}

.vivia-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vivia-user-menu {
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.vivia-user-menu ul {
  position: absolute;
  top: 125%;
  right: 0;
  min-width: 180px;
  border-radius: 14px;
  list-style: none;
  padding: 0.5rem;
  margin: 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all 0.2s ease;
}

.vivia-user:hover .vivia-user-menu ul {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.vivia-user-menu ul li {
  padding: 0.35rem 0.45rem;
  border-radius: 0.75rem;
}

.vivia-user-menu ul li:hover {
  background: rgba(122, 101, 255, 0.12);
  color: var(--primary);
}

.vivia-page {
  max-width: var(--page-width);
  margin: 0 auto;
  padding-bottom: 5rem;
}

.vivia-hero {
  padding: 3.5rem 0 2.75rem;
}

.vivia-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr);
  gap: 2rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  border-radius: 32px;
  padding: 2.5rem;
  border: 1px solid rgba(122, 101, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.theme-dark .vivia-hero-grid {
  background: rgba(12, 17, 32, 0.85);
  border-color: rgba(84, 102, 180, 0.24);
  box-shadow: 0 28px 48px rgba(5, 10, 25, 0.45);
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.6);
  min-height: 18rem;
}

.theme-dark .hero-slider {
  background: rgba(12, 17, 32, 0.65);
}

.hero-slider-track {
  display: flex;
  transition: transform 0.6s ease;
  width: 100%;
  height: 100%;
}

.hero-slide {
  flex: 0 0 100%;
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  min-height: 18rem;
}

.hero-slide-image,
.hero-slide-image img {
  width: 100%;
  height: 100%;
}

.hero-slide-image {
  position: relative;
  overflow: hidden;
}

.hero-slide-image img {
  object-fit: cover;
  transition: transform 6s ease;
}

.hero-slide.active .hero-slide-image img {
  transform: scale(1.08);
}

.hero-slide-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.75rem 2rem;
  background: linear-gradient(180deg, rgba(6, 18, 43, 0) 0%, rgba(6, 18, 43, 0.78) 100%);
  color: #fff;
  display: grid;
  gap: 0.5rem;
}

.theme-dark .hero-slide-overlay {
  background: linear-gradient(180deg, rgba(6, 14, 28, 0) 0%, rgba(6, 14, 28, 0.9) 100%);
}

.hero-slide-overlay h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
}

.hero-slide-overlay p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

.hero-slide-meta {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.75);
}

.hero-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: none;
  background: rgba(12, 22, 38, 0.6);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 2;
}

.hero-slider-btn:hover {
  background: rgba(12, 22, 38, 0.85);
}

.theme-dark .hero-slider-btn {
  background: rgba(203, 213, 255, 0.16);
  color: rgba(230, 235, 255, 0.9);
}

.theme-dark .hero-slider-btn:hover {
  background: rgba(203, 213, 255, 0.28);
}

.hero-slider-btn.prev {
  left: 1.25rem;
}

.hero-slider-btn.next {
  right: 1.25rem;
}

.hero-slider-dots {
  position: absolute;
  bottom: 1.2rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 2;
}

.hero-slider-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-slider-dot.active {
  transform: scale(1.2);
  background: #fff;
}

.theme-dark .hero-slider-dot {
  background: rgba(203, 213, 255, 0.35);
}

.theme-dark .hero-slider-dot.active {
  background: rgba(230, 235, 255, 0.92);
}

.hero-feature {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.theme-dark .hero-feature {
  background: rgba(18, 23, 35, 0.9);
  border: 1px solid rgba(84, 102, 180, 0.24);
  box-shadow: 0 16px 36px rgba(5, 10, 25, 0.45);
}

.hero-feature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-feature-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.hero-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.hero-feature-list li a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  background: rgba(122, 101, 255, 0.08);
  color: var(--text-strong);
  transition: background 0.2s ease, transform 0.2s ease;
}

.theme-dark .hero-feature-list li a {
  background: rgba(84, 102, 180, 0.15);
  color: rgba(230, 235, 255, 0.9);
}

.theme-dark .hero-feature-list li a:hover {
  background: rgba(84, 102, 180, 0.25);
}

.hero-feature-list li a:hover {
  background: rgba(122, 101, 255, 0.14);
  transform: translateX(4px);
}

.hero-feature-list li a.has-thumb img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-feature-list span {
  font-weight: 600;
  flex: 1;
  line-height: 1.4;
}

.vivia-article {
  padding: 3rem 0 4rem;
}

.vivia-article-shell {
  max-width: var(--page-width);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  border: 1px solid rgba(122, 101, 255, 0.08);
  box-shadow: var(--shadow-card);
  padding: 2.75rem 3rem;
}

.theme-dark .vivia-article-shell {
  background: rgba(18, 23, 35, 0.9);
  border-color: rgba(84, 102, 180, 0.25);
  box-shadow: 0 28px 48px rgba(5, 10, 25, 0.5);
}

.vivia-article-breadcrumb {
  display: flex;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.vivia-article-breadcrumb span {
  color: var(--text-soft);
}

.vivia-article-breadcrumb a:hover {
  color: var(--primary);
}

.vivia-article-header {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 2rem;
}

.vivia-article-title {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  margin: 0;
  color: var(--text-strong);
}

.vivia-article-category a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(122, 101, 255, 0.12);
  color: var(--primary);
  font-weight: 600;
}

.theme-dark .vivia-article-category a {
  background: rgba(84, 102, 180, 0.2);
  color: rgba(203, 213, 255, 0.92);
}

.vivia-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.vivia-article-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.vivia-article-meta .meta-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.vivia-article-meta .meta-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vivia-article-meta .meta-icon {
  width: 1.1rem;
  text-align: center;
  color: var(--primary);
}

.vivia-article-cover {
  margin: 0 0 2.5rem;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(20, 22, 55, 0.18);
}

.vivia-article-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.vivia-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.75rem;
  width: 100%;
  justify-items: center;
}

.vivia-article-layout.with-side {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  justify-items: stretch;
}

.vivia-article-main {
  display: grid;
  gap: 2rem;
}

.vivia-article-summary {
  width: var(--summary-width, 95%);
  box-sizing: border-box;
  background: rgba(122, 101, 255, 0.08);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  border-radius: 20px;
  color: var(--text-muted);
  margin: 0 auto;
}

.theme-dark .vivia-article-summary {
  background: rgba(84, 102, 180, 0.16);
  color: rgba(203, 213, 255, 0.78);
}

.vivia-article-content {
  font-size: 1rem;
  color: var(--text-strong);
  line-height: 1.85;
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}

.vivia-article-content .content-container {
  width: var(--content-width, 95%);
  box-sizing: border-box;
  margin: 0 auto;
}

.vivia-article-content .content-container,
.vivia-article-content .content-container p,
.vivia-article-content .content-container span,
.vivia-article-content .content-container li,
.vivia-article-content .content-container blockquote,
.vivia-article-content .content-container strong,
.vivia-article-content .content-container em {
  color: var(--text-strong);
}

.vivia-article-content .content-container a {
  color: var(--primary);
}

.vivia-article-content .content-container a:hover {
  text-decoration: underline;
}

.theme-dark .vivia-article-content .content-container,
.theme-dark .vivia-article-content .content-container p,
.theme-dark .vivia-article-content .content-container span,
.theme-dark .vivia-article-content .content-container li,
.theme-dark .vivia-article-content .content-container blockquote,
.theme-dark .vivia-article-content .content-container strong,
.theme-dark .vivia-article-content .content-container em {
  color: rgba(230, 235, 255, 0.92);
}

.theme-dark .vivia-article-content .content-container a {
  color: rgba(203, 213, 255, 0.92);
}

.vivia-article-content .content-container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(20, 22, 55, 0.12);
}

.theme-dark .vivia-article-content .content-container img {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .vivia-article-content .content-container img {
    margin: 1rem auto;
    border-radius: 8px;
  }
}

.vivia-article-content .content-container span[md-inline="image"] {
  display: block !important;
  text-align: center;
  max-width: 100%;
  margin: 1.2rem auto;
}

.vivia-article-content .content-container span[md-inline="image"] img {
  max-width: 100% !important;
  height: auto !important;
  display: inline-block;
  margin: 0 auto;
}

.theme-dark .vivia-article-content .content-container span[md-inline="image"] img {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.vivia-article-author {
  width: var(--author-width, 95%);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 1.5rem;
  border-radius: 22px;
  background: rgba(122, 101, 255, 0.08);
  border: 1px solid rgba(122, 101, 255, 0.12);
  margin: 0 auto;
}

.theme-dark .vivia-article-author {
  background: rgba(84, 102, 180, 0.2);
  border-color: rgba(84, 102, 180, 0.28);
}

.vivia-article-author .author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.vivia-article-author .author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vivia-article-author .author-info {
  display: grid;
  gap: 0.35rem;
  color: var(--text-muted);
}

.vivia-article-author .author-info strong {
  font-size: 1rem;
  color: var(--text-strong);
}

.vivia-article-author .author-link {
  font-size: 0.85rem;
  color: var(--primary);
}

.vivia-article-author .author-link:hover {
  text-decoration: underline;
}

.vivia-article-content h2,
.vivia-article-content h3,
.vivia-article-content h4,
.vivia-article-content h5,
.vivia-article-content h6 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-strong);
}

.vivia-article-content pre {
  position: relative;
  margin: 1.5rem 0;
  padding: 1.4rem 1.75rem 1.6rem;
  border-radius: 12px;
  background: #292d36;
  color: #f8f8f2;
  overflow-x: auto;
  box-shadow: 0 24px 45px rgba(13, 17, 23, 0.35);
  border: 1px solid rgba(122, 101, 255, 0.18);
}

.theme-dark .vivia-article-content pre {
  background: rgba(15, 18, 28, 0.95);
  color: rgba(230, 235, 255, 0.92);
  border-color: rgba(84, 102, 180, 0.32);
}

.vivia-article-content pre code {
  font-family: 'JetBrains Mono', Consolas, Monaco, 'Courier New', monospace;
  font-size: 0.92rem;
  display: block;
  line-height: 1.6;
}

.vivia-article-content pre code span {
  color: inherit;
}

.vivia-article-content pre::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  left: 1.45rem;
  width: 10rem;
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 109, 109, 0.8), rgba(255, 205, 85, 0.8), rgba(85, 255, 187, 0.8));
  filter: blur(0.25px);
  opacity: 0.75;
}

.code-copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.18);
  color: #1b1f3b;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
  z-index: 2;
}

.vivia-article-content pre .code-copy-btn,
.vivia-article-content .md-fences .code-copy-btn {
  position: absolute;
}

.code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.code-copy-btn.success {
  color: #1f7a54;
  border-color: rgba(63, 201, 140, 0.6);
  background: rgba(63, 201, 140, 0.18);
}

.theme-dark .code-copy-btn {
  border-color: rgba(203, 213, 255, 0.3);
  background: rgba(18, 23, 35, 0.65);
  color: rgba(230, 235, 255, 0.9);
}

.theme-dark .code-copy-btn:hover {
  background: rgba(84, 102, 180, 0.35);
  color: rgba(230, 235, 255, 0.95);
}

.theme-dark .code-copy-btn.success {
  background: rgba(63, 201, 140, 0.25);
  border-color: rgba(63, 201, 140, 0.6);
  color: rgba(230, 235, 255, 0.95);
}

/* GitLab-style code blocks for .md-fences */
.vivia-article-content .md-fences,
.vivia-article-content pre.md-fences {
  position: relative !important;
  margin: 1.5rem 0 !important;
  padding: 1.4rem 1.75rem 1.6rem !important;
  border-radius: 12px !important;
  background: #2d2d2d !important;
  color: #d4d4d4 !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  font-family: 'JetBrains Mono', 'SF Mono', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace !important;
  font-size: 0.92rem !important;
  line-height: 1.6 !important;
  white-space: pre !important;
  word-wrap: normal !important;
  word-break: normal !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  break-inside: avoid !important;
  /* Reset Tailwind CSS variables that might interfere */
  --tw-border-spacing-x: 0 !important;
  --tw-border-spacing-y: 0 !important;
  --tw-translate-x: 0 !important;
  --tw-translate-y: 0 !important;
  --tw-rotate: 0 !important;
  --tw-skew-x: 0 !important;
  --tw-skew-y: 0 !important;
  --tw-scale-x: 1 !important;
  --tw-scale-y: 1 !important;
}

.theme-dark .vivia-article-content .md-fences,
.theme-dark .vivia-article-content pre.md-fences {
  background: #1e1e1e !important;
  color: #d4d4d4 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

/* Style for spans inside .md-fences */
.vivia-article-content .md-fences span[role="presentation"],
.vivia-article-content pre.md-fences span[role="presentation"] {
  display: inline !important;
  color: inherit !important;
  background: transparent !important;
  padding: 0 !important;
  padding-right: 0.1px !important;
  margin: 0 !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  white-space: pre !important;
  word-wrap: normal !important;
  word-break: normal !important;
  box-sizing: border-box !important;
  border: none !important;
  box-shadow: none !important;
  /* Reset Tailwind CSS variables */
  --tw-border-spacing-x: 0 !important;
  --tw-border-spacing-y: 0 !important;
  --tw-translate-x: 0 !important;
  --tw-translate-y: 0 !important;
  --tw-rotate: 0 !important;
  --tw-skew-x: 0 !important;
  --tw-skew-y: 0 !important;
  --tw-scale-x: 1 !important;
  --tw-scale-y: 1 !important;
  /* Ensure no transforms */
  transform: none !important;
}

/* Ensure br tags don't cause issues */
.vivia-article-content .md-fences br,
.vivia-article-content pre.md-fences br {
  display: block !important;
  content: "" !important;
  margin: 0 !important;
}

/* Syntax highlighting colors for common tokens (GitLab style) */
.vivia-article-content .md-fences span[role="presentation"],
.vivia-article-content pre.md-fences span[role="presentation"] {
  color: #d4d4d4 !important;
}

.theme-dark .vivia-article-content .md-fences span[role="presentation"],
.theme-dark .vivia-article-content pre.md-fences span[role="presentation"] {
  color: #d4d4d4 !important;
}

/* Scrollbar styling for code blocks */
.vivia-article-content .md-fences::-webkit-scrollbar,
.vivia-article-content pre.md-fences::-webkit-scrollbar {
  height: 8px;
}

.vivia-article-content .md-fences::-webkit-scrollbar-track,
.vivia-article-content pre.md-fences::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.vivia-article-content .md-fences::-webkit-scrollbar-thumb,
.vivia-article-content pre.md-fences::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.vivia-article-content .md-fences::-webkit-scrollbar-thumb:hover,
.vivia-article-content pre.md-fences::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.theme-dark .vivia-article-content .md-fences::-webkit-scrollbar-track,
.theme-dark .vivia-article-content pre.md-fences::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.theme-dark .vivia-article-content .md-fences::-webkit-scrollbar-thumb,
.theme-dark .vivia-article-content pre.md-fences::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}

.theme-dark .vivia-article-content .md-fences::-webkit-scrollbar-thumb:hover,
.theme-dark .vivia-article-content pre.md-fences::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.vivia-article-content blockquote {
  margin: 1.5rem 0;
  padding: 1.2rem 1.6rem;
  border-left: 4px solid var(--primary);
  background: rgba(122, 101, 255, 0.08);
  border-radius: 18px;
  color: var(--text-muted);
}

.theme-dark .vivia-article-content blockquote {
  background: rgba(84, 102, 180, 0.16);
  color: rgba(203, 213, 255, 0.78);
}

.vivia-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.vivia-article-content table th,
.vivia-article-content table td {
  border: 1px solid rgba(122, 101, 255, 0.15);
  padding: 0.75rem 1rem;
}

.vivia-modules-data {
  width: var(--content-width, 95%);
  margin: 2.5rem auto 0;
  padding: 2.1rem 2.4rem;
  border-radius: 26px;
  background: rgba(122, 101, 255, 0.06);
  border: 1px solid rgba(122, 101, 255, 0.12);
  box-shadow: 0 18px 38px rgba(20, 22, 55, 0.14);
  display: grid;
  gap: 1.8rem;
  box-sizing: border-box;
}

.vivia-modules-data {
  width: var(--content-width, 95%);
  margin: 2.5rem auto 0;
  padding: 2.1rem 2.4rem;
  border-radius: 26px;
  background: rgba(122, 101, 255, 0.06);
  border: 1px solid rgba(122, 101, 255, 0.12);
  box-shadow: 0 18px 38px rgba(20, 22, 55, 0.14);
  display: grid;
  gap: 1.8rem;
  box-sizing: border-box;
}

.theme-dark .vivia-modules-data {
  background: rgba(18, 23, 35, 0.78);
  border-color: rgba(84, 102, 180, 0.22);
  box-shadow: 0 22px 46px rgba(5, 10, 25, 0.45);
}

.modules-data-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modules-data-title-group {
  display: grid;
  gap: 0.35rem;
}

.modules-data-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-strong);
}

.modules-data-subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.modules-data-tip {
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(122, 101, 255, 0.14);
  color: var(--primary);
  border: 1px solid rgba(122, 101, 255, 0.18);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.theme-dark .modules-data-tip {
  background: rgba(84, 102, 180, 0.2);
  border-color: rgba(84, 102, 180, 0.28);
  color: rgba(203, 213, 255, 0.85);
}

.modules-data-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.modules-data-item {
  position: relative;
  padding: 1.4rem 1.6rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(122, 101, 255, 0.14);
  box-shadow: 0 12px 24px rgba(20, 22, 55, 0.12);
  display: grid;
  gap: 1.1rem;
  overflow: hidden;
}

.modules-data-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(122, 101, 255, 0.16);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.modules-data-item:hover::after {
  opacity: 1;
}

.theme-dark .modules-data-item {
  background: rgba(24, 30, 46, 0.85);
  border-color: rgba(84, 102, 180, 0.24);
  box-shadow: 0 16px 32px rgba(5, 10, 25, 0.4);
}

.modules-data-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modules-data-label {
  font-weight: 600;
  color: var(--text-strong);
  font-size: 1rem;
}

.modules-data-type {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(122, 101, 255, 0.12);
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.theme-dark .modules-data-type {
  background: rgba(84, 102, 180, 0.22);
  color: rgba(203, 213, 255, 0.85);
}

.modules-data-body {
  display: grid;
  gap: 0.85rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.modules-data-text {
  color: var(--text-strong);
  line-height: 1.7;
  word-break: break-word;
}

.modules-data-files {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.modules-data-files a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  border-radius: 12px;
  background: rgba(122, 101, 255, 0.1);
  color: var(--primary);
  font-weight: 600;
}

.modules-data-files a:hover {
  background: rgba(122, 101, 255, 0.18);
}

.theme-dark .modules-data-files a {
  background: rgba(84, 102, 180, 0.18);
  color: rgba(230, 235, 255, 0.92);
}

.theme-dark .modules-data-files a:hover {
  background: rgba(84, 102, 180, 0.28);
}

.modules-data-images {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.modules-data-image {
  margin: 0;
  display: grid;
  gap: 0.45rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.modules-data-image-mask {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 22px rgba(20, 22, 55, 0.18);
  border: 1px solid rgba(122, 101, 255, 0.12);
}

.modules-data-image-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.theme-dark .modules-data-image-mask {
  border-color: rgba(84, 102, 180, 0.24);
  box-shadow: 0 16px 28px rgba(5, 10, 25, 0.38);
}

.modules-data-empty {
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  background: rgba(122, 101, 255, 0.08);
  color: var(--text-soft);
  font-size: 0.88rem;
}

.theme-dark .modules-data-empty {
  background: rgba(84, 102, 180, 0.18);
  color: rgba(203, 213, 255, 0.6);
}

.modules-data-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modules-data-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(122, 101, 255, 0.12);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.theme-dark .modules-data-tag {
  background: rgba(84, 102, 180, 0.25);
  color: rgba(203, 213, 255, 0.88);
}

.vivia-channel {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 3rem 0 4rem;
  display: grid;
  gap: 2.5rem;
}

.channel-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.channel-breadcrumb a {
  color: var(--text-strong);
}

.channel-breadcrumb a:hover {
  color: var(--primary);
}

.channel-breadcrumb .current {
  color: var(--text-soft);
}

.channel-hero {
  position: relative;
  border-radius: 32px;
  padding: 2.6rem 3rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(122, 101, 255, 0.12);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.channel-hero.with-cover {
  background: rgba(255, 255, 255, 0.85);
}

.channel-hero.with-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(10, 14, 32, 0.82) 0%, rgba(10, 14, 32, 0.48) 45%, rgba(10, 14, 32, 0.35) 100%), var(--channel-hero, rgba(12, 15, 30, 0.85));
  background-size: cover;
  background-position: center;
  filter: contrast(1.05);
  opacity: 0.85;
}

.channel-hero-inner {
  position: relative;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: center;
}

.channel-hero-meta {
  display: grid;
  gap: 0.8rem;
  color: var(--text-strong);
}

.channel-hero.with-cover .channel-hero-meta {
  color: rgba(255, 255, 255, 0.95);
}

.channel-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(122, 101, 255, 0.18);
  color: var(--primary);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.channel-hero.with-cover .channel-hero-badge {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.95);
}

.channel-hero-meta h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

.channel-hero-meta p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.channel-hero.with-cover .channel-hero-meta p {
  color: rgba(230, 235, 255, 0.88);
}

.channel-hero-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  background: rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  padding: 1.6rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 32px rgba(20, 22, 55, 0.15);
}
.theme-dark .channel-hero-stats {
  background: rgba(12, 18, 35, 0.85);
  border-color: rgba(84, 102, 180, 0.35);
  box-shadow: 0 18px 32px rgba(3, 4, 10, 0.45);
}

.channel-hero.with-cover .channel-hero-stats {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}
.theme-dark .channel-hero.with-cover .channel-hero-stats {
  background: rgba(10, 15, 26, 0.7);
  border-color: rgba(84, 102, 180, 0.45);
}

.hero-stat {
  display: grid;
  gap: 0.45rem;
  text-align: center;
}

.hero-stat strong {
  font-size: 1.8rem;
  color: var(--text-strong);
}

.channel-hero.with-cover .hero-stat strong {
  color: rgba(255, 255, 255, 0.95);
}

.hero-stat .stat-label {
  font-size: 0.85rem;
  color: var(--text-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.channel-hero.with-cover .hero-stat .stat-label {
  color: rgba(230, 235, 255, 0.7);
}

.vivia-list {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 0 4rem;
}

.vivia-list .vivia-article-breadcrumb {
  margin-bottom: 0;
}

.list-hero {
  margin: 0;
}

.vivia-list-grid {
  --sidebar-width: 18rem;
}

.category-overview-body {
  display: grid;
  gap: 0.85rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.category-overview-body p {
  margin: 0;
  line-height: 1.65;
}

.category-overview-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.category-overview-stats li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
  border-radius: 14px;
  background: rgba(122, 101, 255, 0.08);
  border: 1px solid rgba(122, 101, 255, 0.12);
}

.category-overview-stats span {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.category-overview-stats strong {
  font-size: 0.95rem;
  color: var(--text-strong);
}

.theme-dark .category-overview-stats li {
  background: rgba(84, 102, 180, 0.2);
  border-color: rgba(84, 102, 180, 0.28);
}

.vivia-empty {
  margin: 0;
  padding: 1.6rem 1.4rem;
  border-radius: 20px;
  background: rgba(122, 101, 255, 0.08);
  color: var(--text-soft);
  text-align: center;
  font-size: 0.95rem;
}

.theme-dark .vivia-empty {
  background: rgba(84, 102, 180, 0.2);
  color: rgba(203, 213, 255, 0.75);
}

.vivia-page-single {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 0 4rem;
}

.vivia-page-grid {
  --sidebar-width: 18rem;
}

.page-hero {
  margin: 0;
}

.page-outline {
  display: grid;
  gap: 0.8rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.page-outline p {
  margin: 0;
  line-height: 1.7;
}

.page-outline-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.page-outline-meta li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
  border-radius: 14px;
  background: rgba(122, 101, 255, 0.08);
  border: 1px solid rgba(122, 101, 255, 0.1);
}

.page-outline-meta span {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.page-outline-meta strong {
  font-size: 0.95rem;
  color: var(--text-strong);
}

.theme-dark .page-outline-meta li {
  background: rgba(84, 102, 180, 0.18);
  border-color: rgba(84, 102, 180, 0.28);
}

.vivia-page-section {
  padding: 2.4rem 2.6rem;
}

.page-section-head {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.8rem;
}

.page-section-head h2 {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 700;
}

.page-section-head p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.vivia-page-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-strong);
  display: grid;
  gap: 1.2rem;
}

.vivia-page-content a {
  color: var(--primary);
  text-decoration: underline;
}

.vivia-page-content blockquote {
  margin: 0;
  padding: 1.2rem 1.6rem;
  border-left: 4px solid var(--primary);
  background: rgba(122, 101, 255, 0.08);
  border-radius: 18px;
  color: var(--text-strong);
}

.theme-dark .vivia-page-content blockquote {
  background: rgba(84, 102, 180, 0.2);
  color: rgba(230, 235, 255, 0.9);
}

.vivia-page-content .page-img {
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(20, 22, 55, 0.12);
  border: 1px solid rgba(122, 101, 255, 0.08);
}

.page-table-wrapper {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(122, 101, 255, 0.12);
  background: rgba(255, 255, 255, 0.85);
}

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

.page-table-wrapper th,
.page-table-wrapper td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(122, 101, 255, 0.12);
}

.theme-dark .page-table-wrapper {
  background: rgba(18, 23, 35, 0.9);
  border-color: rgba(84, 102, 180, 0.24);
}

.theme-dark .page-table-wrapper th,
.theme-dark .page-table-wrapper td {
  border-color: rgba(84, 102, 180, 0.18);
}

.vivia-auth-body {
  background: var(--page-bg);
  min-height: 100vh;
}

.vivia-auth-page {
  position: relative;
  min-height: calc(100vh - 5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.vivia-auth-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(122, 101, 255, 0.18), transparent 55%),
    radial-gradient(circle at bottom, rgba(255, 200, 150, 0.18), transparent 45%);
  filter: blur(20px);
  opacity: 0.8;
}

.vivia-auth-wrap {
  position: relative;
  max-width: min(560px, 92vw);
  width: 100%;
  z-index: 1;
}

.vivia-auth-shell {
  backdrop-filter: blur(26px);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 36px;
  padding: 3rem;
  box-shadow: 0 40px 70px rgba(20, 22, 55, 0.22);
  border: 1px solid rgba(122, 101, 255, 0.14);
}

.theme-dark .vivia-auth-shell {
  background: rgba(18, 23, 35, 0.88);
  border-color: rgba(84, 102, 180, 0.28);
  box-shadow: 0 40px 70px rgba(5, 10, 25, 0.6);
}

.vivia-auth-card {
  display: grid;
  gap: 2.2rem;
}

.auth-head {
  text-align: center;
  display: grid;
  gap: 0.75rem;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-strong);
}

.auth-logo .logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 18px 35px rgba(122, 101, 255, 0.35);
}

.auth-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: rgba(122, 101, 255, 0.1);
  padding: 0.35rem;
  border-radius: 999px;
}

.auth-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 10px 26px rgba(122, 101, 255, 0.25);
}

.theme-dark .auth-tab.active {
  background: rgba(84, 102, 180, 0.25);
  color: rgba(230, 235, 255, 0.95);
  box-shadow: 0 10px 26px rgba(5, 10, 25, 0.55);
}

.auth-form-body {
  display: grid;
  gap: 1.1rem;
}

.auth-field {
  position: relative;
  display: grid;
}

.auth-label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  border: 1px solid rgba(122, 101, 255, 0.16);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.theme-dark .auth-label {
  background: rgba(24, 30, 46, 0.85);
  border-color: rgba(84, 102, 180, 0.28);
}

.auth-label:focus-within {
  border-color: var(--primary);
  box-shadow: 0 12px 26px rgba(122, 101, 255, 0.25);
}

.auth-icon {
  font-size: 1.1rem;
  color: var(--primary);
}

.auth-input {
  border: none;
  background: transparent;
  font-size: 0.98rem;
  color: var(--text-strong);
  width: 100%;
}

.auth-input:focus {
  outline: none;
}

.auth-toggle {
  border: none;
  background: rgba(122, 101, 255, 0.12);
  color: var(--primary);
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.theme-dark .auth-toggle {
  background: rgba(84, 102, 180, 0.24);
  color: rgba(230, 235, 255, 0.9);
}

.auth-toggle:hover {
  transform: translateY(-1px);
  background: rgba(122, 101, 255, 0.2);
}

.theme-dark .auth-toggle:hover {
  background: rgba(84, 102, 180, 0.32);
}

.auth-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.auth-toggle .iconfont {
  font-size: 1rem;
  line-height: 1;
}

.auth-double {
  display: grid;
  gap: 1rem;
}

.captcha-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
}

.captcha-field .auth-label {
  grid-template-columns: auto 1fr;
}

.captcha-box {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(122, 101, 255, 0.12);
  border-radius: 18px;
  padding: 0.35rem 0.6rem 0.35rem 0.35rem;
  border: 1px solid rgba(122, 101, 255, 0.2);
}

.theme-dark .captcha-box {
  background: rgba(84, 102, 180, 0.22);
  border-color: rgba(84, 102, 180, 0.28);
}

.captcha-refresh {
  border: none;
  background: rgba(122, 101, 255, 0.18);
  border-radius: 12px;
  padding: 0 0.9rem;
  min-width: 70px;
  height: 42px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: transform 0.2s ease, background 0.2s ease;
}

.captcha-refresh:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.captcha-refresh:hover {
  transform: translateY(-1px);
  background: rgba(122, 101, 255, 0.28);
}

.captcha-box img {
  margin-top: 0.5rem;
  height: 42px;
  width: auto;
  border-radius: 12px;
  display: block;
}

.auth-meta {
  margin: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.auth-link {
  color: var(--primary);
  text-decoration: none;
}

.auth-btn {
  border: none;
  border-radius: 18px;
  padding: 0.85rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.auth-btn.primary {
  margin-top: 0px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 22px 40px rgba(122, 101, 255, 0.35);
}

.auth-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 26px 46px rgba(122, 101, 255, 0.4);
}

.auth-btn.ghost {
  margin-top: 0.5rem;
  background: rgba(122, 101, 255, 0.12);
  color: var(--primary);
  border: 1px solid rgba(122, 101, 255, 0.2);
  padding: 0.65rem 1rem;
}

.auth-btn.ghost:hover {
  background: rgba(122, 101, 255, 0.2);
}

.auth-footer {
  display: grid;
  gap: 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

.auth-social {
  display: grid;
  gap: 0.6rem;
}

.auth-social-list {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.auth-social-item {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(122, 101, 255, 0.12);
  color: var(--primary);
  font-size: 1.2rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.auth-social-item:hover {
  transform: translateY(-2px);
  background: rgba(122, 101, 255, 0.2);
}

.auth-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.auth-switch a {
  color: var(--primary);
}

.auth-home-link {
  color: var(--text-soft);
}

.auth-home-link:hover {
  color: var(--primary);
}

.sms-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
}

.auth-field[hidden] {
  display: none !important;
}

@media (max-width: 620px) {
  .vivia-auth-shell {
    padding: 2.2rem 1.8rem;
    border-radius: 30px;
  }

  .auth-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .sms-field,
  .captcha-field {
    grid-template-columns: minmax(0, 1fr);
  }

  .captcha-box {
    justify-content: center;
  }

  .captcha-refresh,
  .auth-btn.ghost {
    justify-content: center;
  }
}

.vivia-waterfall {
  display: grid;
  gap: 2.6rem;
  padding: 3rem 0 4.5rem;
}

.vivia-waterfall-grid {
  --sidebar-width: 18rem;
}

.vivia-waterfall-main {
  position: relative;
}

.vivia-waterfall-section {
  padding: 2.1rem;
}

.vivia-waterfall-grid-list {
  column-count: 3;
  column-gap: 1.6rem;
}

.waterfall-card {
  break-inside: avoid;
  margin-bottom: 1.6rem;
  display: grid;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  border: 1px solid rgba(122, 101, 255, 0.1);
  box-shadow: 0 18px 40px rgba(20, 22, 55, 0.12);
  overflow: hidden;
}

.theme-dark .waterfall-card {
  background: rgba(18, 23, 35, 0.9);
  border-color: rgba(84, 102, 180, 0.24);
  box-shadow: 0 22px 45px rgba(5, 10, 25, 0.5);
}

.waterfall-cover {
  display: block;
  position: relative;
  overflow: hidden;
}

.waterfall-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.waterfall-card:hover .waterfall-cover img {
  transform: scale(1.05);
}

.waterfall-body {
  display: grid;
  gap: 0.8rem;
  padding: 0 1.4rem 1.4rem;
}

.waterfall-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.5;
}

.waterfall-title a:hover {
  color: var(--primary);
}

.waterfall-summary {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.waterfall-meta {
  display: flex;
  gap: 0.9rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.waterfall-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.waterfall-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.waterfall-author {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.waterfall-author .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
}

.waterfall-author .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.waterfall-footer time {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.waterfall-card--async {
  animation: viviaFadeUp 0.45s ease both;
}

.waterfall-tip p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 1180px) {
  .vivia-waterfall-grid-list {
    column-count: 2;
  }
}

@media (max-width: 780px) {
  .vivia-waterfall-grid-list {
    column-count: 1;
  }

  .vivia-waterfall-section {
    padding: 2rem 1.6rem;
  }
}

.theme-dark .channel-hero {
  background: rgba(18, 23, 35, 0.88);
  border-color: rgba(84, 102, 180, 0.24);
}

.theme-dark .channel-hero:not(.with-cover)::before {
  background: radial-gradient(circle at 20% 20%, rgba(79, 93, 191, 0.45), transparent 55%);
}

.channel-sections {
  display: grid;
  gap: 2.1rem;
}

.channel-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.2rem;
}

.channel-section-head h2 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--text-strong);
}

.channel-section-head p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.channel-section-tip {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(122, 101, 255, 0.12);
  color: var(--primary);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-dark .channel-section-tip {
  background: rgba(84, 102, 180, 0.22);
  color: rgba(203, 213, 255, 0.85);
}

.channel-card-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.channel-card {
  display: grid;
  gap: 1.25rem;
  padding: 1.8rem 1.9rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(122, 101, 255, 0.12);
  box-shadow: 0 22px 40px rgba(20, 22, 55, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  align-content: start;
}

.channel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(20, 22, 55, 0.18);
}

.theme-dark .channel-card {
  background: rgba(18, 23, 35, 0.92);
  border-color: rgba(84, 102, 180, 0.22);
  box-shadow: 0 22px 45px rgba(5, 10, 25, 0.5);
}

.theme-dark .channel-card:hover {
  box-shadow: 0 32px 60px rgba(5, 10, 25, 0.55);
}

.channel-card-header {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 1.4rem;
  height: 180px;
  align-items: center;
  align-self: start;
}

.channel-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 28px rgba(20, 22, 55, 0.18);
  background: rgba(122, 101, 255, 0.12);
}

.channel-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.channel-card-info {
  display: grid;
  gap: 0.6rem;
  align-content: center;
}

.channel-card-info h3 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--text-strong);
}

.channel-card-info h3 a:hover {
  color: var(--primary);
}

.channel-card-info p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  line-clamp: 3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.channel-card-body {
  border-top: 1px solid rgba(122, 101, 255, 0.12);
  padding-top: 1.1rem;
}

.theme-dark .channel-card-body {
  border-color: rgba(84, 102, 180, 0.22);
}

.channel-card-empty {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border-radius: 16px;
  background: rgba(122, 101, 255, 0.08);
  color: var(--text-soft);
  font-size: 0.88rem;
}

.channel-card-empty .iconfont {
  font-size: 1rem;
  color: var(--primary);
}

.theme-dark .channel-card-empty {
  background: rgba(84, 102, 180, 0.2);
  color: rgba(203, 213, 255, 0.7);
}

.channel-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.channel-article-list li a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  background: rgba(122, 101, 255, 0.08);
  color: var(--text-muted);
  transition: background 0.2s ease, transform 0.2s ease;
}

.channel-article-list li a:hover {
  background: rgba(122, 101, 255, 0.16);
  transform: translateX(4px);
  color: var(--text-strong);
}

.theme-dark .channel-article-list li a {
  background: rgba(84, 102, 180, 0.18);
  color: rgba(203, 213, 255, 0.78);
}

.theme-dark .channel-article-list li a:hover {
  background: rgba(84, 102, 180, 0.3);
  color: rgba(230, 235, 255, 0.95);
}

.channel-article-list .list-title {
  flex: 1;
  font-weight: 600;
  line-height: 1.4;
}

.channel-article-list time {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.channel-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.channel-card-footer .btn-flat {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.88rem;
  white-space: nowrap;
  align-self: center;
}

.channel-empty {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 26px;
  padding: 3rem 2.5rem;
  text-align: center;
  border: 1px solid rgba(122, 101, 255, 0.12);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 0.65rem;
}

.channel-empty h3 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--text-strong);
}

.channel-empty p {
  margin: 0;
  color: var(--text-muted);
}

.theme-dark .channel-empty {
  background: rgba(18, 23, 35, 0.92);
  border-color: rgba(84, 102, 180, 0.22);
}

@media (max-width: 1180px) {
  .channel-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
  }

  .channel-card-header {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }

  .channel-card-cover {
    height: 220px;
  }
}

@media (max-width: 720px) {
  .vivia-channel {
    padding: 2.2rem 0 3rem;
  }

  .channel-hero {
    padding: 2rem 1.8rem;
  }

  .channel-card {
    padding: 1.6rem;
  }
}

.vivia-article-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px solid rgba(122, 101, 255, 0.12);
  border-bottom: 1px solid rgba(122, 101, 255, 0.12);
}

.theme-dark .vivia-article-actions {
  border-color: rgba(84, 102, 180, 0.2);
}

.vivia-article-actions .article-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(122, 101, 255, 0.08);
  color: var(--primary);
  transition: background 0.2s ease;
}

.vivia-article-actions .article-action:hover {
  background: rgba(122, 101, 255, 0.2);
}

.theme-dark .vivia-article-actions .article-action {
  background: rgba(84, 102, 180, 0.18);
  color: rgba(230, 235, 255, 0.9);
}

.theme-dark .vivia-article-actions .article-action:hover {
  background: rgba(84, 102, 180, 0.3);
}

.vivia-article-prevnext {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 0.95rem;
  justify-content: space-between;
}

.vivia-article-prevnext > div {
  flex: 1 1 0;
  min-width: 0;
}

.vivia-article-prevnext span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.vivia-article-prevnext .next {
  text-align: right;
}

.vivia-article-prevnext a {
  font-weight: 600;
  color: var(--text-strong);
}

.vivia-article-prevnext a:hover {
  color: var(--primary);
}


.vivia-article-comments {
  padding-top: 2rem;
  border-top: 1px solid rgba(122, 101, 255, 0.12);
}

.theme-dark .vivia-article-comments {
  border-color: rgba(84, 102, 180, 0.2);
}

.vivia-article-comments h2 {
  margin: 0 0 1.5rem;
  font-size: 1.4rem;
}

.vivia-article-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.side-card {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(122, 101, 255, 0.12);
  box-shadow: var(--shadow-card);
}

.theme-dark .side-card {
  background: rgba(18, 23, 35, 0.9);
  border-color: rgba(84, 102, 180, 0.22);
  box-shadow: 0 16px 36px rgba(5, 10, 25, 0.45);
}

.side-card h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.side-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.side-card ul span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.side-card strong,
.side-card a {
  color: var(--text-strong);
}

.side-card a:hover {
  color: var(--primary);
}

.side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.side-tags a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(122, 101, 255, 0.12);
  color: var(--primary);
  font-size: 0.8rem;
}

.theme-dark .side-tags a {
  background: rgba(84, 102, 180, 0.24);
  color: rgba(203, 213, 255, 0.92);
}

.side-tags a:hover {
  background: rgba(122, 101, 255, 0.2);
}

.theme-dark .side-tags a:hover {
  background: rgba(84, 102, 180, 0.32);
}
.theme-dark .sidebar-card {
  background: rgba(18, 23, 35, 0.9);
  border-color: rgba(84, 102, 180, 0.18);
}

.theme-dark .sidebar-tag {
  background: rgba(84, 102, 180, 0.15);
  color: rgba(230, 235, 255, 0.85);
  border-color: rgba(84, 102, 180, 0.28);
}

.theme-dark .sidebar-tag:hover {
  background: rgba(84, 102, 180, 0.25);
}

.theme-dark .sidebar-tag.active {
  background: rgba(94, 114, 201, 0.85);
  color: #fff;
  border-color: rgba(94, 114, 201, 0.45);
}

.vivia-search-page {
  padding: 2.5rem 0 4rem;
}
.search-layout {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.search-results-panel {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-card);
  border: 1px solid rgba(122, 101, 255, 0.12);
  box-shadow: var(--shadow-card);
  padding: 2rem;
}

.theme-dark .search-results-panel {
  background: rgba(18, 23, 35, 0.9);
  border-color: rgba(84, 102, 180, 0.25);
}

.search-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.search-results-head h2 {
  margin: 0 0 0.3rem;
}

.search-results-head p {
  margin: 0;
  color: var(--text-muted);
}

.search-total {
  font-weight: 600;
  color: var(--primary);
  background: rgba(122, 101, 255, 0.12);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
}

.search-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.search-meta-card {
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-card);
  border: 1px solid rgba(122, 101, 255, 0.12);
  box-shadow: var(--shadow-card);
  padding: 1.4rem;
}

.search-meta-card header h3 {
  margin: 0 0 0.8rem;
}

.theme-dark .search-meta-card {
  background: rgba(18, 23, 35, 0.86);
  border-color: rgba(84, 102, 180, 0.25);
}

.search-hero {
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-card);
  border: 1px solid rgba(122, 101, 255, 0.12);
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
}

.theme-dark .search-hero {
  background: rgba(18, 23, 35, 0.85);
  border-color: rgba(84, 102, 180, 0.25);
}

.search-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.search-hero-meta h1 {
  margin: 0.3rem 0;
  font-size: 2.2rem;
}

.search-hero-meta p {
  margin: 0;
  color: var(--text-muted);
}

.search-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(122, 101, 255, 0.12);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.search-hero-form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 320px;
}

.search-hero-form input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(122, 101, 255, 0.18);
  padding: 0.6rem 1rem;
  font-size: 1rem;
}

.search-hero-form button {
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.vivia-search-grid {
  margin-top: 0;
}

.vivia-search-list .vivia-post-card {
  background: rgba(255, 255, 255, 0.85);
}

.theme-dark .vivia-search-list .vivia-post-card {
  background: rgba(18, 23, 35, 0.9);
}

.search-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.search-empty h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

#search-pagination .pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

#search-pagination .pagination li {
  list-style: none;
}

#search-pagination .pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(122, 101, 255, 0.2);
  color: var(--text-muted);
}

#search-pagination .pagination li.active a {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

@media (max-width: 960px) {
  .search-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .search-hero-form {
    width: 100%;
    flex: unset;
  }
  .search-hero-form button {
    width: 100%;
    justify-content: center;
  }
}

.vivia-quick-nav {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.quick-nav-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.theme-dark .quick-nav-label {
  color: rgba(203, 213, 255, 0.75);
}

.quick-nav-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(122, 101, 255, 0.18);
  padding: 0.15rem 0.85rem;
  box-shadow: 0 10px 18px rgba(20, 22, 55, 0.08);
}

.theme-dark .quick-nav-select {
  background: rgba(18, 23, 35, 0.85);
  border-color: rgba(84, 102, 180, 0.3);
  box-shadow: 0 12px 22px rgba(5, 10, 25, 0.4);
}

.quick-nav-select::after {
  content: "";
  position: absolute;
  right: 1rem;
  width: 0.6rem;
  height: 0.35rem;
  background: conic-gradient(from 135deg, rgba(122, 101, 255, 0.75) 0deg, rgba(122, 101, 255, 0.75) 180deg, transparent 180deg, transparent 360deg);
  transform: rotate(180deg);
  pointer-events: none;
}

.quick-nav-select select {
  border: none;
  background: transparent;
  padding: 0.5rem 2.25rem 0.5rem 0.35rem;
  font-size: 0.92rem;
  line-height: 1.4;
  appearance: none;
  color: var(--text-strong);
}

.theme-dark .quick-nav-select select {
  color: rgba(230, 235, 255, 0.92);
}

.quick-nav-select select:focus {
  outline: none;
}

.vivia-hero-figure {
  position: relative;
}

.vivia-blur-circle {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: radial-gradient(circle at 35% 30%, rgba(122, 101, 255, 0.35), transparent 60%);
  filter: blur(0);
  opacity: 0.8;
}

.vivia-hero-card {
  position: relative;
  background: var(--card-bg-strong);
  border-radius: 26px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 1.5rem;
}

.vivia-hero-card h2 {
  margin: 0;
  font-size: 1.5rem;
}

.vivia-hero-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.vivia-hero-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: rgba(122, 101, 255, 0.08);
}

.vivia-hero-card a {
  font-weight: 600;
  flex: 1;
  color: var(--text-strong);
}

.vivia-hero-card time {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.vivia-grid {
  --sidebar-width: 17.5rem;
  display: grid;
  grid-template-columns: minmax(0, var(--sidebar-width)) minmax(0, 1fr);
  gap: 2.25rem;
  margin-top: 2rem;
  align-items: start;
}

.vivia-section {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  padding: 2.5rem 2.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(122, 101, 255, 0.08);
}

.theme-dark .vivia-section {
  background: rgba(18, 23, 35, 0.88);
  border-color: rgba(84, 102, 180, 0.24);
}

.section-head {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 2rem;
}

.section-head.dual {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.section-head h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.vivia-post-list {
  display: grid;
  gap: 1.75rem;
}

.vivia-post-card {
  position: relative;
  display: grid;
  gap: 1.2rem;
  border-radius: 24px;
  padding: 1.8rem 2rem;
  background: var(--card-bg);
  border: 1px solid rgba(122, 101, 255, 0.08);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.vivia-post-card--async {
  animation: viviaFadeUp 0.45s ease both;
}
.post-load-indicator.done {
  cursor: default;
  color: var(--text-soft);
}

@keyframes viviaFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vivia-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(20, 22, 55, 0.18);
}

.vivia-post-card .post-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.post-category {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(122, 101, 255, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.post-title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.35;
}

.post-title a {
  color: var(--text-strong);
  font-weight: 700;
}

.post-summary {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.post-author {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.post-author .avatar {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(122, 101, 255, 0.15);
}

.post-author .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-stats {
  display: inline-flex;
  gap: 1.5rem;
  font-weight: 500;
}

.post-attr {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.post-load-indicator {
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-soft);
  cursor: pointer;
  transition: color 0.2s ease;
}

.post-load-indicator.loading {
  color: var(--primary);
}

.post-load-indicator.done {
  cursor: default;
  color: var(--text-soft);
}

.post-cover {
  border-radius: 18px;
  overflow: hidden;
  display: block;
  max-height: 220px;
}

.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-cover:hover img {
  transform: scale(1.05);
}

.vivia-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.vivia-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  background: rgba(122, 101, 255, 0.08);
  border-radius: 999px;
  color: var(--primary);
  border: 1px solid rgba(122, 101, 255, 0.15);
}

.vivia-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-self: start;
  position: sticky;
  top: 6.5rem;
}

.sidebar-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 1.05rem 1.15rem;
  border: 1px solid rgba(122, 101, 255, 0.08);
  box-shadow: 0 10px 24px rgba(20, 22, 55, 0.08);
}

.profile-card {
  text-align: center;
  display: grid;
  gap: 0.6rem;
}

.profile-avatar {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info h3 {
  margin: 0;
  font-size: 1.2rem;
}

.profile-info p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.profile-links {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.profile-links a {
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(122, 101, 255, 0.1);
  color: var(--primary);
}

.profile-links-empty {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.sidebar-head {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-head h3 {
  margin: 0;
  font-size: 1rem;
}

.sidebar-card .btn-plain {
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  border-radius: 999px;
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.sidebar-list li {
  display: grid;
  gap: 0.2rem;
}

.sidebar-list li a {
  font-weight: 600;
  line-height: 1.3;
  font-size: 0.92rem;
  color: var(--text-strong);
}

.sidebar-list li span,
.sidebar-list li time {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.comment-author {
  font-weight: 600;
  color: var(--text-muted);
}

.comment-link {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.comment-link:hover {
  color: var(--primary);
}

.sidebar-empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.banner-card img {
  border-radius: 16px;
  width: 100%;
  height: auto;
}

.vivia-footer {
  padding: 3rem 0 4rem;
  margin-top: 3rem;
}

.vivia-footer-inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 2rem 2.5rem;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 30px;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(122, 101, 255, 0.08);
  box-shadow: var(--shadow-card);
}

.vivia-footer-info p {
  margin: 0.35rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.vivia-footer-links h4,
.vivia-footer-meta h4 {
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.vivia-footer-links ul,
.vivia-footer-meta ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.vivia-footer-links a,
.vivia-footer-meta a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.vivia-footer-placeholder {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.compact {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
}

.theme-dark .vivia-footer-inner {
  background: rgba(18, 23, 35, 0.7);
  border-color: rgba(84, 102, 180, 0.25);
}

.theme-dark .vivia-footer-info p,
.theme-dark .vivia-footer-links a,
.theme-dark .vivia-footer-meta a {
  color: rgba(230, 235, 255, 0.8);
}

.theme-dark .vivia-footer-placeholder {
  color: rgba(203, 213, 255, 0.6);
}

.theme-dark .vivia-breadcrumb span,
.theme-dark .vivia-breadcrumb a {
  color: rgba(230, 235, 255, 0.95);
}

.theme-dark .vivia-breadcrumb a:hover {
  color: var(--primary);
}

@media (max-width: 1180px) {
  .vivia-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 2rem;
  }

  .hero-feature {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero-feature-head {
    width: 100%;
  }

  .hero-feature-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .vivia-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .vivia-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .vivia-article-shell {
    padding: 2rem;
  }

  .vivia-article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .vivia-article-side {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .side-card {
    flex: 1 1 min(320px, 100%);
  }

  .vivia-sidebar > .sidebar-card {
    flex: 1 1 min(320px, 100%);
  }
}

@media (max-width: 960px) {
  .vivia-header-inner {
    flex-wrap: wrap;
    padding: 1rem 1.2rem;
  }

  .vivia-nav {
    order: 3;
    width: 100%;
    display: none;
  }

  .vivia-nav.open {
    display: block;
  }

  .vivia-menu-root {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-card);
  }

  .vivia-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .vivia-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 2.2rem;
  }

  .vivia-hero-card {
    margin-top: 1.5rem;
  }

  .vivia-quick-nav {
    width: 100%;
  }

  .quick-nav-select {
    flex: 1;
  }

  .quick-nav-select select {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .vivia-section {
    padding: 2rem 1.8rem;
  }

  .vivia-article-shell {
    padding: 1.6rem;
  }

  .vivia-article-author {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .vivia-article-author .author-avatar {
    margin: 0 auto;
  }

  .vivia-post-card {
    padding: 1.5rem;
  }

  .vivia-post-card .post-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .vivia-footer-inner {
    grid-template-columns: 1fr;
    padding: 2rem 1.8rem;
  }
}

