:root {
  --sidebar: rgba(15, 23, 42, 0.9);
  --sidebar-active: rgba(255, 255, 255, 0.14);
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --accent: #06b6d4;
  --hot: #f97316;
  --text: #172033;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.22);
  --page-bg: #eef4ff;
  --soft-bg: rgba(255, 255, 255, 0.72);
  --success: #10b981;
  --card-shadow: 0 20px 60px rgba(30, 41, 59, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(124, 58, 237, 0.18), transparent 28%),
    radial-gradient(circle at 85% 8%, rgba(6, 182, 212, 0.2), transparent 30%),
    linear-gradient(135deg, #eef4ff 0%, #f8fbff 42%, #fff7ed 100%);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  min-height: 100vh;
}

.app-shell.locked {
  pointer-events: none;
  filter: blur(1px);
}

.hidden {
  display: none !important;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  background: var(--sidebar);
  border-right: 1px solid #dbeafe;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 78px;
  padding: 0 24px;
  color: #111827;
  text-decoration: none;
}

.logo-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, #25c6da, #2563eb);
}

.brand strong {
  font-size: 18px;
}

.side-nav {
  display: grid;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 50px;
  padding: 0 28px;
  border: 0;
  border-right: 3px solid transparent;
  color: #4b5563;
  background: transparent;
  text-align: left;
  font-size: 15px;
}

.nav-item.active {
  border-right-color: var(--primary);
  color: var(--primary-dark);
  background: var(--sidebar-active);
  font-weight: 700;
}

.main-area {
  min-width: 0;
}

.page-panel {
  display: none;
  min-height: 100vh;
}

.page-panel.active {
  display: block;
}

#homePage.active {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
}

.category-rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 0;
  border-right: 1px solid #f1f5f9;
}

.category-button {
  display: block;
  width: 100%;
  height: 42px;
  border: 0;
  color: #374151;
  background: transparent;
  font-size: 15px;
}

.category-button.active {
  color: var(--primary-dark);
  font-weight: 700;
}

.article-board {
  position: relative;
  min-width: 0;
  padding: 24px 20px 84px;
}

.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.board-header h1,
.profile-header h1 {
  margin: 0;
  font-size: 20px;
}

.board-header p,
.profile-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.article-list {
  display: grid;
  gap: 14px;
}

.article-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 18px;
  min-height: 84px;
  padding: 16px 18px;
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
}

.article-item:hover .article-title {
  color: var(--primary-dark);
}

.article-title {
  margin: 0 0 12px;
  color: #111827;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  color: #6b7280;
  font-size: 12px;
}

.article-meta b {
  color: #1687d9;
  font-weight: 500;
}

.article-check {
  position: relative;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
}

.article-check input {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
}

.article-check span {
  width: 18px;
  height: 18px;
  border: 2px solid #5b9ad8;
  border-radius: 50%;
  background: #ffffff;
}

.article-check input:checked + span {
  border-color: var(--primary);
  background:
    radial-gradient(circle at center, var(--primary) 0 42%, transparent 45%),
    #ffffff;
}

.selection-bar {
  position: fixed;
  bottom: 18px;
  left: calc(188px + 76px);
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  pointer-events: none;
}

.selection-bar span,
.selection-bar button {
  pointer-events: auto;
}

.selection-bar span {
  color: var(--muted);
  font-size: 13px;
}

.back-top-button {
  position: fixed;
  right: 26px;
  bottom: 112px;
  z-index: 8;
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 122, 26, 0.28);
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #f04438, #ff7a1a);
  box-shadow: 0 16px 34px rgba(240, 68, 56, 0.22);
  font-size: 22px;
  font-weight: 800;
}

#homePage.active .back-top-button {
  display: grid;
  place-items: center;
}

.back-top-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(240, 68, 56, 0.28);
}

.primary-button,
.ghost-button {
  min-height: 36px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.primary-button {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.22);
}

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

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.ghost-button {
  color: #374151;
  background: #ffffff;
  border-color: var(--line);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 128px 112px;
  gap: 14px;
  align-items: center;
  padding: 24px 20px;
}

.search-box {
  position: relative;
}

.search-box input,
.toolbar select,
.auth-card input,
.gift-card input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #ffffff;
  outline: none;
}

.search-box input {
  padding: 0 42px 0 18px;
}

.search-box span {
  position: absolute;
  right: 14px;
  top: 50%;
  color: #6b7280;
  transform: translateY(-50%);
}

.toolbar select {
  padding: 0 10px;
}

#batchManage {
  min-width: 112px;
  white-space: nowrap;
}

.works-list {
  padding: 0 20px 40px;
}

.create-header {
  height: 54px;
  display: grid;
  place-items: center;
  color: #111827;
  font-size: 17px;
  font-weight: 700;
}

.create-layout {
  display: grid;
  grid-template-columns: 220px minmax(520px, 760px);
  gap: 70px;
  justify-content: center;
  padding: 24px 44px 40px;
}

.template-cards {
  display: grid;
  gap: 48px;
  align-content: start;
  padding-top: 32px;
}

.template-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 126px;
  padding: 20px 16px;
  border: 0;
  border-radius: 12px;
  color: #111827;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.template-card.active {
  color: #ffffff;
  background: linear-gradient(135deg, #69cdeb, #e6b7b7);
}

.template-card span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #111827;
  background: rgba(255, 255, 255, 0.72);
}

.template-card strong {
  font-size: 15px;
}

.template-card small {
  color: inherit;
  opacity: 0.78;
}

.generator-panel {
  position: relative;
  max-height: calc(100vh - 110px);
  min-height: 540px;
  overflow-y: auto;
  padding: 28px 28px 0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.generator-panel::-webkit-scrollbar {
  width: 8px;
}

.generator-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}

.field-group label {
  display: block;
  margin-bottom: 12px;
  color: #111827;
  font-weight: 700;
}

.reference-box {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}

.reference-box.content-mode {
  display: block;
}

.reference-box.content-mode .reference-tab {
  display: none;
}

.reference-tab {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #ffffff;
  background: linear-gradient(180deg, #60a5fa, #3b82f6);
  cursor: pointer;
  font-size: 13px;
}

.reference-tab:hover {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.reference-tab span {
  font-size: 24px;
}

#referenceInput {
  width: 100%;
  min-height: 104px;
  padding: 16px;
  border: 0;
  color: var(--text);
  outline: none;
  resize: vertical;
  line-height: 1.7;
}

.reference-box.content-mode #referenceInput {
  min-height: 128px;
}

.select-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  height: 42px;
  margin-top: 18px;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #111827;
  background: #ffffff;
  text-align: left;
}

.select-row span {
  font-weight: 700;
}

.select-row strong {
  font-size: 14px;
  font-weight: 500;
}

.select-row b {
  color: #111827;
  font-size: 22px;
  font-weight: 300;
}

.select-row.expanded {
  border-bottom-color: transparent;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.copy-type-options {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  padding: 0 18px 18px;
  border: 1px solid var(--line);
  border-top: 0;
  border-bottom-right-radius: 12px;
  border-bottom-left-radius: 12px;
}

.copy-type-options.collapsed {
  display: none;
}

.language-style-section {
  margin-top: 18px;
}

.language-style-section.hidden {
  display: none;
}

.copy-type-option {
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  color: #111827;
  background: #f8fafc;
}

.copy-type-option.active {
  color: #ffffff;
  background: var(--primary);
}

.selected-summary {
  margin-top: 12px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}

.generate-button {
  position: sticky;
  bottom: 0;
  width: 100%;
  height: 40px;
  margin-top: 54px;
  margin-bottom: 28px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(90deg, #9aa5df, #2f80ed);
  font-weight: 700;
}

.generate-button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.empty-state {
  display: grid;
  min-height: 360px;
  place-items: center;
  color: #9ca3af;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
}

.work-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: 0.18s ease;
}

.work-item:hover {
  padding-right: 12px;
  padding-left: 12px;
  border-radius: 12px;
  background: #f8fbff;
}

.work-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.work-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.work-date {
  color: #94a3b8;
  font-size: 12px;
}

.work-detail-wrap {
  max-width: 920px;
  padding: 28px 24px 60px;
}

.detail-back {
  width: auto;
  min-width: 118px;
  margin-bottom: 18px;
}

.work-detail-card {
  padding: 32px;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.work-detail-card h1 {
  margin: 10px 0 14px;
  color: #0f172a;
  font-size: 28px;
  line-height: 1.35;
}

.detail-meta {
  color: #94a3b8;
  font-size: 13px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.detail-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  color: #2563eb;
  background: #eff6ff;
  font-size: 13px;
  font-weight: 700;
}

.work-detail-content {
  color: #1f2937;
  font-size: 16px;
  line-height: 2;
  white-space: normal;
}

.profile-wrap {
  max-width: 860px;
  padding: 54px 0 0 120px;
}

.profile-header {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #93c5fd, #2563eb);
}

.vip-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 20px 26px;
  border-radius: 10px;
  color: #7c3f13;
  background: linear-gradient(90deg, #fee7b0, #f6c365);
}

.vip-card strong {
  font-size: 22px;
}

.vip-card span {
  grid-column: 1;
  font-size: 13px;
}

.vip-card button {
  grid-row: 1 / span 2;
  grid-column: 2;
  height: 34px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  color: #9a5b18;
  background: rgba(255, 255, 255, 0.82);
}

.profile-menu {
  overflow: hidden;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.profile-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 48px;
  padding: 0 24px;
  border: 0;
  color: #374151;
  background: #dbeafe;
  text-decoration: none;
  text-align: left;
}

.profile-menu span {
  color: var(--primary);
}

.membership-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px 44px;
}

.membership-hero {
  position: relative;
  height: 178px;
  margin-top: 2px;
  padding: 26px 34px;
  overflow: hidden;
  border-radius: 14px;
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(59, 180, 230, 0.94), rgba(255, 209, 130, 0.72)),
    radial-gradient(circle at right, rgba(255, 255, 255, 0.36), transparent 32%);
}

.membership-hero::after {
  position: absolute;
  inset: -40px 80px auto auto;
  width: 360px;
  height: 260px;
  content: "";
  transform: rotate(-18deg);
  border: 18px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
}

.membership-hero h1 {
  margin: 0;
  text-align: center;
  font-size: 20px;
}

.membership-user {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 38px;
}

.membership-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #93c5fd, #2563eb);
  font-size: 26px;
  font-weight: 800;
}

.membership-user strong {
  display: block;
  font-size: 18px;
}

.membership-user p {
  margin: 6px 0 0;
  opacity: 0.88;
}

.membership-status {
  position: absolute;
  right: 34px;
  bottom: 28px;
  z-index: 1;
  max-width: 360px;
  padding: 10px 18px;
  border: 1px solid rgba(124, 45, 18, 0.12);
  border-radius: 999px;
  color: #7c2d12;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.12);
  font-weight: 800;
  white-space: nowrap;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.plan-card {
  position: relative;
  min-height: 136px;
  padding: 28px 18px 16px;
  border: 1px solid #f3d8a4;
  border-radius: 10px;
  color: #5b3417;
  background: linear-gradient(135deg, #fff3cb, #fffdf7);
  text-align: center;
}

.plan-card.active {
  box-shadow: 0 0 0 2px #f59e0b inset;
}

.plan-card::before {
  position: absolute;
  top: -1px;
  left: -1px;
  padding: 7px 26px;
  border-top-left-radius: 10px;
  border-bottom-right-radius: 10px;
  color: #ffffff;
  background: #f97316;
  content: "特惠";
  font-weight: 700;
}

.plan-card h3 {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 500;
}

.plan-card strong {
  display: block;
  color: #3f2d20;
  font-size: 28px;
}

.plan-card small {
  display: block;
  margin-top: 8px;
  color: #8b735e;
  text-decoration: line-through;
}

.benefit-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 28px auto 22px;
  color: #c98b22;
  font-size: 18px;
  font-weight: 700;
}

.benefit-title::before,
.benefit-title::after {
  width: 240px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, #f5c56c);
}

.benefit-title::after {
  background: linear-gradient(90deg, #f5c56c, transparent);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 22px;
}

.benefit-grid div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 2px 12px;
  align-items: center;
  color: #c78a25;
}

.benefit-grid span {
  grid-row: span 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #fff0c4;
}

.benefit-grid small {
  color: #d2a15a;
}

.other-service h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.other-service button {
  min-width: 170px;
  height: 46px;
  border: 0;
  border-radius: 10px;
  color: #7a4c1e;
  background: #ffe6a8;
  font-weight: 700;
}

.membership-pay-button {
  display: block;
  width: min(820px, 100%);
  height: 48px;
  margin: 58px auto 12px;
  border: 0;
  border-radius: 999px;
  color: #7a3b14;
  background: linear-gradient(90deg, #ffd069, #ffefb6);
  font-size: 18px;
  font-weight: 800;
}

.pay-note {
  margin: 0;
  color: #9ca3af;
  text-align: center;
}

@media (max-width: 1080px) {
  .toolbar {
    grid-template-columns: minmax(220px, 1fr) 126px 112px;
    gap: 10px;
  }
}

.auth-modal,
.gift-modal,
.notice-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.28);
}

.auth-modal.show,
.gift-modal.show,
.notice-modal.show {
  display: grid;
}

.auth-card,
.gift-card,
.notice-card {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(420px, 100%);
  padding: 30px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.2);
}

.auth-card h2,
.auth-card p,
.gift-card h2,
.gift-card p,
.notice-card h2,
.notice-card p {
  margin: 0;
}

.auth-card p,
.gift-card p,
.notice-card p {
  color: var(--muted);
  line-height: 1.7;
}

.auth-card input,
.gift-card input {
  padding: 0 14px;
}

.wechat-login-button {
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 14px 28px rgba(22, 163, 74, 0.18);
  font-weight: 800;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  flex: 1;
  height: 1px;
  content: "";
  background: var(--line);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translateY(-50%);
  font-size: 17px;
}

.password-toggle:hover {
  background: #fff0e7;
}

.badge {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: #eff6ff;
  font-weight: 700;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #64748b;
  background: #f8fafc;
  font-size: 22px;
}

.auth-submit {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.notice-card {
  width: min(680px, 100%);
}

.notice-card p {
  padding: 18px 20px;
  border: 1px solid rgba(240, 68, 56, 0.14);
  border-radius: 14px;
  color: #6f5144;
  background: #fff7ed;
  font-size: 17px;
  font-weight: 700;
}

.notice-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.generating-modal {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(3px);
}

.generating-modal.show {
  display: grid;
}

.generating-card {
  display: grid;
  justify-items: center;
  width: min(380px, 100%);
  padding: 34px 30px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.24);
  text-align: center;
}

.generating-card h2 {
  margin: 18px 0 8px;
  color: #0f172a;
  font-size: 22px;
}

.generating-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.8;
}

.generating-spinner {
  width: 54px;
  height: 54px;
  border: 5px solid #dbeafe;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.toast {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 40;
  max-width: min(420px, calc(100vw - 44px));
  padding: 16px 18px;
  border: 1px solid rgba(59, 130, 246, 0.16);
  border-radius: 16px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
  font-weight: 700;
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px) scale(0.98);
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast.error {
  border-color: rgba(248, 113, 113, 0.28);
  background: linear-gradient(135deg, #fff7f7, #ffffff);
}

.toast.warning {
  border-color: rgba(245, 158, 11, 0.32);
  background: linear-gradient(135deg, #fffbeb, #ffffff);
}

/* 视觉升级：蓝紫创作工作台风格 */
.sidebar {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 0%, rgba(6, 182, 212, 0.28), transparent 32%),
    linear-gradient(180deg, #111827 0%, #1e1b4b 54%, #312e81 100%);
  border-right: 0;
  box-shadow: 18px 0 46px rgba(30, 41, 59, 0.16);
}

.sidebar::after {
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 180px;
  height: 180px;
  content: "";
  background: rgba(124, 58, 237, 0.28);
  border-radius: 50%;
  filter: blur(4px);
}

.brand {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.logo-mark {
  background: linear-gradient(135deg, #22d3ee, #8b5cf6 58%, #f97316);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.38);
}

.nav-item {
  position: relative;
  z-index: 1;
  margin: 0 12px;
  width: calc(100% - 24px);
  border-right: 0;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.72);
  transition: 0.2s ease;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.34), rgba(124, 58, 237, 0.5)),
    rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
}

.main-area {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.3)),
    transparent;
}

.category-rail {
  background: rgba(255, 255, 255, 0.72);
  border-right: 1px solid rgba(124, 58, 237, 0.1);
  backdrop-filter: blur(18px);
}

.category-button {
  margin: 2px 8px;
  width: calc(100% - 16px);
  border-radius: 999px;
  transition: 0.18s ease;
}

.category-button:hover,
.category-button.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.22);
}

.board-header,
.toolbar,
.generator-panel,
.profile-wrap,
.work-detail-card,
.auth-card,
.gift-card,
.generating-card {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(18px);
}

.board-header {
  padding: 16px 18px;
  border-radius: 18px;
}

.article-item,
.work-item {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 243, 255, 0.76)),
    #ffffff;
  box-shadow: 0 14px 36px rgba(30, 41, 59, 0.08);
  transition: 0.2s ease;
}

.article-item:hover,
.work-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(79, 70, 229, 0.14);
}

.article-title,
.work-item h3,
.board-header h1,
.profile-header h1 {
  color: #111827;
}

.article-meta b {
  color: var(--primary);
  font-weight: 800;
}

.article-check span {
  border-color: #a78bfa;
  box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.08);
}

.article-check input:checked + span {
  border-color: var(--primary);
  background:
    radial-gradient(circle at center, var(--primary) 0 42%, transparent 45%),
    #ffffff;
}

.primary-button,
.generate-button {
  color: #ffffff;
  background: linear-gradient(135deg, #7c3aed, #2563eb 55%, #06b6d4);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.26);
}

.primary-button:hover,
.generate-button:hover {
  background: linear-gradient(135deg, #6d28d9, #1d4ed8 55%, #0891b2);
  transform: translateY(-1px);
}

.ghost-button {
  color: #4f46e5;
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(124, 58, 237, 0.18);
}

.search-box input,
.toolbar select,
.auth-card input,
.gift-card input,
#referenceInput {
  border-color: rgba(124, 58, 237, 0.16);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.create-header {
  margin: 18px auto 0;
  width: fit-content;
  min-width: 360px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #4338ca 55%, #06b6d4);
  box-shadow: 0 16px 42px rgba(67, 56, 202, 0.24);
}

.template-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--card-shadow);
  transition: 0.2s ease;
}

.template-card:hover {
  transform: translateY(-3px);
}

.template-card.active {
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.88), rgba(124, 58, 237, 0.88)),
    #7c3aed;
  box-shadow: 0 22px 48px rgba(124, 58, 237, 0.28);
}

.template-card span {
  color: var(--primary);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.18);
}

.reference-box,
.select-row,
.copy-type-options {
  border-color: rgba(124, 58, 237, 0.14);
  background: rgba(255, 255, 255, 0.8);
}

.reference-tab {
  background: linear-gradient(180deg, #8b5cf6, #2563eb);
}

.reference-tab:hover {
  background: linear-gradient(180deg, #7c3aed, #1d4ed8);
}

.copy-type-option {
  color: #334155;
  background: rgba(248, 250, 252, 0.88);
}

.copy-type-option.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.22);
}

.profile-header,
.vip-card,
.profile-menu,
.membership-hero,
.plan-card,
.benefit-grid div,
.other-service button {
  box-shadow: var(--card-shadow);
}

.profile-header {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(238, 242, 255, 0.84));
}

.avatar,
.membership-avatar {
  background: linear-gradient(135deg, #22d3ee, #6366f1 56%, #f97316);
  box-shadow: 0 18px 38px rgba(99, 102, 241, 0.28);
}

.vip-card,
.membership-hero {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.32), transparent 22%),
    linear-gradient(135deg, #0f172a, #4f46e5 55%, #06b6d4);
}

.plan-card {
  overflow: hidden;
  border-color: rgba(249, 115, 22, 0.22);
  background: linear-gradient(135deg, #fff7ed, #ffffff 46%, #eef2ff);
}

.plan-card.active {
  box-shadow:
    0 0 0 2px #f97316 inset,
    0 22px 46px rgba(249, 115, 22, 0.16);
}

.plan-card::before {
  background: linear-gradient(135deg, #f97316, #ec4899);
}

.membership-pay-button,
.other-service button {
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ec4899 48%, #7c3aed);
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.2);
}

.benefit-title {
  color: #7c3aed;
}

.benefit-grid span {
  background: linear-gradient(135deg, #e0f2fe, #ede9fe);
}

.toast {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

@media (max-width: 800px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    height: auto;
    overflow-y: visible;
  }

  .brand {
    height: 60px;
  }

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

  .nav-item {
    justify-content: center;
    padding: 0 8px;
    border-right: 0;
    border-bottom: 3px solid transparent;
  }

  .nav-item.active {
    border-bottom-color: var(--primary);
  }

  #homePage.active {
    grid-template-columns: 1fr;
  }

  .category-rail {
    position: static;
    height: auto;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .category-button {
    min-width: 58px;
  }

  .selection-bar {
    left: 18px;
  }

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

  .create-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 18px;
  }

  .template-cards {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 0;
  }

  .generator-panel {
    min-height: 460px;
  }

  .profile-wrap {
    padding: 24px 18px;
  }

  .plan-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }
}

/* 全新主题：暖色内容中台风，替换蓝紫科技感 */
:root {
  --sidebar: rgba(255, 255, 255, 0.92);
  --sidebar-active: #fff0e7;
  --primary: #f04438;
  --primary-dark: #d92d20;
  --accent: #ff7a1a;
  --hot: #f59e0b;
  --text: #211a16;
  --muted: #8a6f61;
  --line: rgba(146, 104, 80, 0.16);
  --page-bg: #fff8f1;
  --soft-bg: #fff3e8;
  --success: #16a34a;
  --card-shadow: 0 18px 48px rgba(99, 45, 23, 0.1);
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 8% 6%, rgba(255, 122, 26, 0.2), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(240, 68, 56, 0.14), transparent 30%),
    linear-gradient(135deg, #fff8f1 0%, #fffdf8 45%, #fff2e2 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(129, 77, 44, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 77, 44, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.58), transparent 72%);
}

.sidebar {
  color: #211a16;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.92)),
    #ffffff;
  border-right: 1px solid rgba(185, 120, 72, 0.16);
  box-shadow: 14px 0 40px rgba(99, 45, 23, 0.08);
}

.sidebar::after {
  right: -90px;
  bottom: -90px;
  background: rgba(255, 122, 26, 0.18);
}

.brand {
  color: #211a16;
}

.logo-mark {
  color: #ffffff;
  background: linear-gradient(135deg, #f04438, #ff7a1a);
  box-shadow: 0 12px 28px rgba(240, 68, 56, 0.28);
}

.nav-item {
  color: #7c5f52;
  background: transparent;
}

.nav-item:hover {
  color: #f04438;
  background: rgba(255, 122, 26, 0.08);
}

.nav-item.active {
  color: #b42318;
  background: linear-gradient(135deg, #fff0e7, #ffe6d5);
  box-shadow: 0 12px 28px rgba(240, 68, 56, 0.14);
}

.main-area {
  background: transparent;
}

.category-rail {
  background: rgba(255, 253, 248, 0.82);
  border-right: 1px solid rgba(185, 120, 72, 0.12);
  backdrop-filter: blur(18px);
}

.category-button {
  color: #7c5f52;
}

.category-button:hover,
.category-button.active {
  color: #ffffff;
  background: linear-gradient(135deg, #f04438, #ff7a1a);
  box-shadow: 0 10px 24px rgba(240, 68, 56, 0.2);
}

.board-header,
.toolbar,
.generator-panel,
.profile-wrap,
.work-detail-card,
.auth-card,
.gift-card,
.generating-card {
  border: 1px solid rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 244, 0.82)),
    #ffffff;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(16px);
}

.article-item,
.work-item {
  border: 1px solid rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 244, 232, 0.86)),
    #ffffff;
  box-shadow: 0 12px 30px rgba(99, 45, 23, 0.08);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.article-item:hover,
.work-item:hover {
  box-shadow: 0 22px 46px rgba(240, 68, 56, 0.14);
}

.article-list .article-item:hover {
  border-color: rgba(255, 122, 26, 0.28);
  background:
    linear-gradient(90deg, rgba(255, 239, 214, 0.96), rgba(255, 246, 237, 0.98)),
    #fff4e6;
}

.article-title,
.work-item h3,
.board-header h1,
.profile-header h1,
.work-detail-card h1 {
  color: #1c1917;
}

.article-meta,
.work-date,
.board-header p,
.profile-header p {
  color: #8a6f61;
}

.article-meta b {
  color: #f04438;
}

.article-check span {
  border-color: #ff9f66;
  box-shadow: 0 0 0 5px rgba(255, 122, 26, 0.08);
}

.article-check input:checked + span {
  border-color: #f04438;
  background:
    radial-gradient(circle at center, #f04438 0 42%, transparent 45%),
    #ffffff;
}

.primary-button,
.generate-button {
  color: #ffffff;
  background: linear-gradient(135deg, #f04438, #ff7a1a);
  box-shadow: 0 14px 30px rgba(240, 68, 56, 0.24);
}

.primary-button:hover,
.generate-button:hover {
  background: linear-gradient(135deg, #d92d20, #ea580c);
}

.ghost-button {
  color: #b42318;
  background: #fffaf5;
  border-color: rgba(240, 68, 56, 0.18);
}

.search-box input,
.toolbar select,
.auth-card input,
.gift-card input,
#referenceInput {
  border-color: rgba(185, 120, 72, 0.18);
  background: rgba(255, 253, 248, 0.92);
}

.create-header {
  color: #8a2c0f;
  background:
    radial-gradient(circle at 12% 50%, rgba(255, 255, 255, 0.9), transparent 18%),
    linear-gradient(135deg, #fff7d6, #ffd89b 48%, #ffb86b);
  border: 1px solid rgba(255, 154, 86, 0.36);
  box-shadow: 0 14px 34px rgba(217, 119, 6, 0.16);
}

.template-card {
  color: #211a16;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 235, 0.86)),
    #ffffff;
}

.template-card.active {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(240, 68, 56, 0.92), rgba(255, 122, 26, 0.88)),
    #f04438;
  box-shadow: 0 22px 48px rgba(240, 68, 56, 0.22);
}

.template-card span {
  color: #f04438;
  background: #fff3e8;
  box-shadow: 0 10px 22px rgba(240, 68, 56, 0.14);
}

.reference-box,
.select-row,
.copy-type-options {
  border-color: rgba(185, 120, 72, 0.16);
  background: rgba(255, 253, 248, 0.86);
}

.reference-tab {
  background: linear-gradient(180deg, #f04438, #ff7a1a);
}

.reference-tab:hover {
  background: linear-gradient(180deg, #d92d20, #ea580c);
}

.copy-type-option {
  color: #6f5144;
  background: #fff7ed;
}

.copy-type-option.active {
  color: #ffffff;
  background: linear-gradient(135deg, #f04438, #ff7a1a);
  box-shadow: 0 10px 22px rgba(240, 68, 56, 0.18);
}

.selected-summary {
  color: #8a6f61;
}

.profile-header {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 239, 220, 0.84)),
    #ffffff;
}

.avatar,
.membership-avatar {
  background: linear-gradient(135deg, #f04438, #ff7a1a);
  box-shadow: 0 18px 38px rgba(240, 68, 56, 0.22);
}

.vip-card,
.membership-hero {
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.24), transparent 25%),
    radial-gradient(circle at 12% 82%, rgba(255, 176, 32, 0.36), transparent 30%),
    linear-gradient(135deg, #7c2d12 0%, #ea580c 52%, #f59e0b 100%);
  color: #ffffff;
  box-shadow: 0 24px 56px rgba(154, 52, 18, 0.2);
}

.membership-hero h1,
.membership-user strong,
.membership-user p {
  color: #ffffff;
  opacity: 1;
  text-shadow: 0 2px 10px rgba(124, 45, 18, 0.28);
}

.plan-card {
  border-color: rgba(245, 158, 11, 0.28);
  background: linear-gradient(135deg, #fff7ed, #fffdf8 45%, #ffedd5);
  box-shadow: 0 14px 34px rgba(146, 64, 14, 0.09);
}

.plan-card.active {
  box-shadow:
    0 0 0 2px #f04438 inset,
    0 22px 46px rgba(240, 68, 56, 0.15);
}

.plan-card::before {
  background: linear-gradient(135deg, #f04438, #f97316);
}

.plan-card strong {
  color: #211a16;
}

.benefit-title {
  color: #b42318;
}

.benefit-title::before,
.benefit-title::after {
  background: linear-gradient(90deg, transparent, rgba(240, 68, 56, 0.42));
}

.benefit-title::after {
  background: linear-gradient(90deg, rgba(240, 68, 56, 0.42), transparent);
}

.benefit-grid div {
  color: #9a3412;
  min-height: 76px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.72);
}

.benefit-grid span {
  background: linear-gradient(135deg, #fff0e7, #fed7aa);
}

.other-service button,
.membership-pay-button {
  color: #ffffff;
  background: linear-gradient(135deg, #f04438 0%, #ff7a1a 54%, #ffb020 100%);
  box-shadow: 0 18px 36px rgba(240, 68, 56, 0.24);
}

.badge {
  color: #b42318;
  background: #fff0e7;
}

.toast {
  color: #211a16;
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 253, 248, 0.94);
}

/* 作品管理列表优化 */
.toolbar {
  margin: 24px 20px 0;
  padding: 12px;
}

.works-list {
  display: grid;
  gap: 14px;
  padding: 14px 20px 40px;
}

.work-item {
  display: block;
  padding: 18px 20px;
  border: 1px solid rgba(185, 120, 72, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.9)),
    #ffffff;
  box-shadow: 0 12px 30px rgba(99, 45, 23, 0.07);
}

.work-item:hover {
  padding: 18px 20px;
  background:
    linear-gradient(135deg, #ffffff, #fff3e8),
    #ffffff;
  box-shadow: 0 18px 42px rgba(240, 68, 56, 0.12);
}

.work-item.batch-mode {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 18px;
  cursor: pointer;
}

.work-item.selected {
  border-color: rgba(240, 68, 56, 0.38);
  background:
    linear-gradient(135deg, #fff7ed, #fff0e7),
    #ffffff;
}

.work-main {
  min-width: 0;
}

.work-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.work-head h3 {
  margin: 0;
  overflow: hidden;
  color: #1c1917;
  font-size: 16px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-head time {
  color: #a08a7b;
  font-size: 12px;
  white-space: nowrap;
}

.work-item p {
  display: -webkit-box;
  margin: 10px 0 14px;
  overflow: hidden;
  color: #6f5144;
  font-size: 14px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.work-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-tags span {
  padding: 4px 10px;
  border-radius: 999px;
  color: #b42318;
  background: #fff0e7;
  font-size: 12px;
  font-weight: 700;
}

.work-view {
  color: #f04438;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.works-selection-bar {
  left: 188px;
  display: none;
}

.works-selection-bar.show {
  display: flex;
}

.works-list.batch-active {
  padding-bottom: 84px;
}

.danger-button {
  min-width: 96px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #fb7185);
  font-weight: 800;
}

.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 6px 20px 42px;
}

.pagination button {
  min-width: 92px;
  height: 38px;
  border: 1px solid rgba(240, 68, 56, 0.18);
  border-radius: 999px;
  color: #b42318;
  background: #fff7ed;
  font-weight: 800;
}

.pagination button:not(:disabled):hover {
  color: #ffffff;
  background: linear-gradient(135deg, #f04438, #ff7a1a);
}

.pagination button:disabled {
  cursor: not-allowed;
  color: #c8a99a;
  opacity: 0.65;
}

.pagination-info {
  color: #8a6f61;
  font-size: 13px;
  font-weight: 700;
}

/* 个人中心布局优化 */
.profile-wrap {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 28px;
}

.profile-title {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  margin-bottom: 2px;
}

.profile-title span {
  color: #b42318;
  font-size: 13px;
  font-weight: 800;
}

.profile-title strong {
  color: #1c1917;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.profile-header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 180px;
  margin: 0;
  padding: 26px;
  border-radius: 22px;
}

.profile-header .ghost-button {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 10px;
}

.profile-header h1 {
  font-size: 24px;
}

.profile-header p {
  margin-top: 8px;
  font-size: 14px;
}

.profile-header .avatar {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  font-size: 28px;
}

.vip-card {
  position: relative;
  min-height: 180px;
  margin: 0;
  padding: 28px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 24%, rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(135deg, #fff7d6 0%, #ffd978 48%, #ffb347 100%);
  color: #6b2a0f;
  box-shadow: 0 24px 56px rgba(217, 119, 6, 0.18);
}

.vip-card::after {
  position: absolute;
  right: -48px;
  bottom: -68px;
  width: 190px;
  height: 190px;
  content: "";
  border: 24px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
}

.vip-card strong {
  position: relative;
  z-index: 1;
  color: #5f2109;
  letter-spacing: 0.08em;
}

.vip-card span {
  position: relative;
  z-index: 1;
  color: #7c2d12;
  font-size: 15px;
  line-height: 1.7;
}

.vip-card button {
  position: relative;
  z-index: 1;
  height: 40px;
  border-radius: 999px;
  color: #5b2b13;
  background: linear-gradient(135deg, #fff7cc, #ffd66b);
  font-weight: 800;
}

.profile-menu {
  grid-column: 1 / -1;
  padding: 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 241, 0.84)),
    #ffffff;
}

.profile-menu-title {
  margin-bottom: 14px;
  color: #1c1917;
  font-size: 18px;
  font-weight: 800;
}

.profile-menu a {
  height: auto;
  min-height: 74px;
  padding: 16px 18px;
  border: 1px solid rgba(240, 68, 56, 0.12);
  border-radius: 16px;
  background: #fff7ed;
}

.profile-menu a:hover {
  background: #fff0e7;
}

.profile-menu a span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f04438, #ff7a1a);
}

.profile-menu a strong {
  display: block;
  color: #211a16;
}

.profile-menu a small {
  display: block;
  margin-top: 4px;
  color: #8a6f61;
}

@media (min-width: 801px) {
  body {
    height: 100vh;
    overflow: hidden;
  }

  .app-shell {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }

  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }

  .main-area {
    height: 100vh;
    min-height: 0;
    overflow-y: auto;
  }

  #homePage.active {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }

  #homePage.active .category-rail {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #homePage.active .article-board {
    height: 100vh;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 800px) {
  .profile-wrap {
    grid-template-columns: 1fr;
  }

  .membership-status {
    position: relative;
    right: auto;
    bottom: auto;
    width: fit-content;
    margin-top: 14px;
    white-space: normal;
  }

  .nav-item.active {
    border-bottom-color: #f04438;
  }

  .sidebar {
    background: rgba(255, 255, 255, 0.95);
  }

  .works-selection-bar {
    left: 0;
  }

  .side-nav {
    background: rgba(255, 248, 241, 0.9);
  }
}
