@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Merriweather:wght@300;400;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #090a0f;
  --bg-2: #12141d;
  --ink: #e2e8f0;
  --muted: #8b949e;
  --accent: #00f2fe;
  --accent-2: #f093fb;
  --card: rgba(22, 25, 37, 0.6);
  --card-2: rgba(35, 40, 55, 0.5);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-hover: rgba(0, 242, 254, 0.4);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --glow: 0 0 20px rgba(0, 242, 254, 0.25);
  --glow-strong: 0 0 30px rgba(240, 147, 251, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* 定制滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--card-2);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  min-height: 100vh;
  /* 科技感网格与发光渐变背景 */
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 15% 0%, rgba(0, 242, 254, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 100%, rgba(240, 147, 251, 0.12) 0%, transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  background-attachment: fixed;
  overflow-x: hidden;
}

#app {
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

/* 毛玻璃顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 10, 15, 0.7);
  border-bottom: 1px solid var(--stroke);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 16px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 渐变标题 */
.brand h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.brand span {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 8px 16px;
  transition: all 0.3s ease;
}

.search:focus-within {
  border-color: var(--accent);
  box-shadow: var(--glow);
  background: rgba(22, 25, 37, 0.8);
}

.search input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  outline: none;
}

.search input::placeholder {
  color: var(--muted);
}

.search select {
  border: 1px solid var(--stroke);
  background: var(--bg-2);
  color: var(--ink);
  border-radius: 12px;
  padding: 4px 8px;
  font-size: 12px;
  outline: none;
  transition: all 0.2s ease;
}

.search,
.mobile-search-row input,
.search-inline input,
#panelSearch {
  background: #000 !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.search input {
  color: #fff !important;
}

.search input::placeholder,
.mobile-search-row input::placeholder,
.search-inline input::placeholder,
#panelSearch::placeholder {
  color: rgba(255, 255, 255, 0.62) !important;
}

.mobile-mine-btn {
  background: #000 !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  box-shadow: none !important;
}

.mobile-mine-btn:hover {
  background: #111 !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.56) !important;
  box-shadow: none !important;
}

.search select:disabled {
  opacity: 0.5;
}

.two-column {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}

/* 卡片通用玻璃态 */
.left-panel, .paper-item, .hero-card, .feed-card, .paper-card, .sticky-summary, .sentence-card, .wordbook-card, .learn-card, .auth-card, .settings-card, .paper-abstract {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.left-panel {
  position: sticky;
  top: 90px;
  align-self: start;
  padding: 20px;
  display: grid;
  gap: 12px;
}

.panel-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.category-btn {
  border: 1px solid transparent;
  background: var(--card-2);
  color: var(--muted);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
}

.category-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  transform: translateX(4px);
}

.category-btn.active {
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent);
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: inset 0 0 10px rgba(0, 242, 254, 0.1);
}

.right-panel {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.sync-panel {
  border: 1px solid var(--sync-color);
  background: linear-gradient(135deg, rgba(12, 15, 24, 0.9), rgba(18, 22, 34, 0.88));
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 0 24px rgba(0, 242, 254, 0.12);
}

.sync-panel-title {
  font-size: 11px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--sync-color);
  margin-bottom: 8px;
}

.sync-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sync-panel-head h3 {
  margin: 0;
  font-size: 18px;
  color: var(--ink);
}

.sync-panel-head span {
  color: var(--sync-color);
  font-weight: 700;
}

.sync-panel p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.sync-progress-row {
  display: flex;
  justify-content: space-between;
  color: var(--ink);
  font-size: 12px;
  margin-bottom: 8px;
}

.sync-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.sync-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sync-color), #00f2fe);
  box-shadow: 0 0 12px var(--sync-color);
  transition: width 0.45s ease;
}

.sync-progress-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--sync-color);
}

.sync-rule-note {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.antibody-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.antibody-bar-fill {
  height: 100%;
  border-radius: inherit;
  transition: width 0.45s ease;
}

.antibody-bar.strong .antibody-bar-fill {
  background: linear-gradient(90deg, #00ff9c, #52ffdc);
  box-shadow: 0 0 12px rgba(0, 255, 156, 0.7);
  animation: antibodyBreatheStrong 2.2s ease-in-out infinite;
}

.antibody-bar.waning .antibody-bar-fill {
  background: linear-gradient(90deg, #ffe066, #ffb347);
  box-shadow: 0 0 11px rgba(255, 196, 66, 0.65);
  animation: antibodyBreatheWaning 1.9s ease-in-out infinite;
}

.antibody-bar.collapse .antibody-bar-fill {
  background: linear-gradient(90deg, #ff5f6d, #ff2a45);
  box-shadow: 0 0 12px rgba(255, 60, 88, 0.85);
  animation: antibodyCollapseAlert 0.95s steps(2, end) infinite;
}

.word-antibody {
  margin-top: 10px;
}

.word-antibody-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 6px;
}

.word-antibody-warning {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

@keyframes antibodyBreatheStrong {
  0%,
  100% {
    filter: brightness(1);
    opacity: 0.88;
  }
  50% {
    filter: brightness(1.2);
    opacity: 1;
  }
}

@keyframes antibodyBreatheWaning {
  0%,
  100% {
    filter: brightness(0.95);
    opacity: 0.75;
  }
  50% {
    filter: brightness(1.16);
    opacity: 1;
  }
}

@keyframes antibodyCollapseAlert {
  0%,
  35% {
    opacity: 1;
    filter: brightness(1.1);
  }
  36%,
  70% {
    opacity: 0.45;
    filter: brightness(0.75);
  }
  71%,
  100% {
    opacity: 1;
    filter: brightness(1.2);
  }
}

.panel-toolbar {
  display: grid;
  gap: 12px;
}

.panel-toolbar select,
.panel-toolbar input {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.3s ease;
}

.panel-toolbar select:focus,
.panel-toolbar input:focus {
  border-color: var(--accent);
}

.current-filter {
  font-size: 12px;
  color: var(--accent);
  margin-right: 8px;
}

.toolbar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.filter-item {
  display: grid;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.filter-item label {
  font-size: 12px;
  color: var(--muted);
}

.filter-item select,
.filter-item input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.search-inline {
  width: 100%;
}

.search-inline input {
  width: 100%;
}

.search-with-icon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.search-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #000;
  color: #fff;
  font-size: 17px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-icon-btn:hover {
  border-color: rgba(183, 148, 244, 0.6);
  box-shadow: 0 0 10px rgba(183, 148, 244, 0.2);
}

.paper-list {
  display: grid;
  gap: 16px;
}

/* 文章列表项悬浮发光 */
.paper-item {
  padding: 20px;
  cursor: pointer;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.paper-item:hover, .paper-card:hover, .wordbook-card:hover {
  transform: translateY(-4px);
  border-color: var(--stroke-hover);
  box-shadow: var(--glow);
  background: rgba(30, 35, 50, 0.8);
}

.paper-item h3 {
  margin-top: 0;
  font-size: 18px;
  line-height: 1.4;
  transition: color 0.3s ease;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.paper-item:hover h3 {
  color: var(--accent);
}

.paper-item.favorite-paper-item {
  position: relative;
  padding-bottom: 66px;
}

.paper-item.favorite-paper-item .favorite-card-actions {
  position: absolute;
  right: 20px;
  bottom: 18px;
  top: auto;
  left: auto;
  transform: none;
  margin-top: 0;
  z-index: 2;
  display: flex;
}

.favorites-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.page-marker {
  margin: 2px 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(183, 148, 244, 0.28);
  background: rgba(183, 148, 244, 0.08);
  display: grid;
  gap: 4px;
}

.page-marker strong {
  font-size: 13px;
  color: #f3ebff;
}

.page-marker span {
  font-size: 12px;
  color: #9d8fb9;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

.pagination .btn {
  background: var(--card-2);
  color: var(--ink);
  border: 1px solid var(--stroke);
}

.pagination .btn:hover:not([disabled]) {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.pagination .btn[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.favorite-btn {
  border: 1px solid var(--stroke);
  background: var(--card-2);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.favorite-btn:hover {
  background: rgba(240, 147, 251, 0.2);
  border-color: var(--accent-2);
  color: var(--accent-2);
  box-shadow: 0 0 10px rgba(240, 147, 251, 0.3);
}

.paper-source {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  min-width: 0;
}

.paper-source a {
  color: var(--accent);
  text-decoration: none;
  transition: text-shadow 0.3s ease;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.paper-source a:hover {
  text-shadow: 0 0 8px var(--accent);
}

.paper-disclaimer {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

.user-chip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 6px 6px 6px 16px;
  font-size: 13px;
  backdrop-filter: blur(8px);
}

.user-identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: 2px;
}

.user-name {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.15;
}

.user-membership {
  font-size: 11px;
  line-height: 1.1;
}

.user-membership.active {
  color: #9dffc8;
}

.user-membership.expired {
  color: #ffd3a9;
}

.user-level-sync {
  margin-top: 4px;
  display: grid;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}

.user-level-line {
  font-size: 11px;
  line-height: 1.15;
  color: #d9c4ff;
  overflow-wrap: anywhere;
}

.user-level-next {
  font-size: 10px;
  line-height: 1.1;
  color: rgba(216, 194, 255, 0.78);
  overflow-wrap: anywhere;
}

.user-level-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.user-level-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b794f4, #805ad5);
  box-shadow: 0 0 8px rgba(183, 148, 244, 0.45);
}

.sync-status {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid var(--sync-color);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.04);
  min-width: 220px;
}

.sync-headline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sync-title {
  font-size: 12px;
  color: var(--sync-color);
  line-height: 1.2;
  font-weight: 600;
}

.sync-meta {
  font-size: 11px;
  color: var(--ink);
  opacity: 0.85;
  line-height: 1.2;
}

.user-chip button {
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.user-chip button:hover {
  background: #ff4757;
  color: white;
  box-shadow: 0 0 15px rgba(255, 71, 87, 0.4);
}

.user-chip button.is-active {
  background: #ff4757;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 71, 87, 0.45);
}

.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  width: 100%;
  overflow-x: hidden;
}

.paper-item p,
.paper-meta,
.paper-title-zh {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
}

.hero-card {
  padding: 32px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

/* 英雄卡片背景光晕 */
.hero-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(0, 242, 254, 0.05) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-card h2 {
  margin-top: 0;
  font-size: 32px;
  background: linear-gradient(135deg, var(--ink), var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.hero-meta div {
  background: rgba(0, 0, 0, 0.3);
  padding: 16px 12px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  text-align: center;
  font-size: 14px;
  color: var(--ink);
  transition: all 0.3s ease;
}

.hero-meta div:hover {
  border-color: var(--accent);
  background: rgba(0, 242, 254, 0.05);
  transform: translateY(-2px);
}

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

.feed-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.tab-btn {
  border: 1px solid var(--stroke);
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.tab-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--accent), #00c6ff);
  color: #000;
  border-color: transparent;
  box-shadow: var(--glow);
}

.feed {
  display: grid;
  gap: 24px;
}

.feed-card {
  min-height: 70vh;
  border-radius: 24px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.feed-left h2 {
  margin-top: 0;
  font-size: 28px;
  line-height: 1.3;
}

.feed-abstract {
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
}

.feed-right {
  display: grid;
  gap: 16px;
  align-content: start;
  max-height: 70vh;
  overflow: auto;
  padding-right: 12px;
}

.feed-badges {
  margin-bottom: 16px;
}

/* 炫酷的 Toast 提示 */
.toast {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(15, 230, 210, 0.1);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 12px 24px;
  border-radius: 999px;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 99;
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.3);
  backdrop-filter: blur(10px);
  font-weight: 500;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.practice {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.practice-meta {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 500;
}

.paper-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
}

.paper-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.badge {
  align-self: flex-start;
  background: rgba(240, 147, 251, 0.15);
  color: var(--accent-2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(240, 147, 251, 0.4);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.paper-actions {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.detail {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
}

.detail-titlebar-mobile {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  display: none;
}

.detail-titlebar-mobile h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
}

.detail-titlebar-mobile a {
  font-size: 13px;
  color: var(--accent-2);
  text-decoration: none;
  white-space: nowrap;
}

.detail-titlebar-mobile a:hover {
  text-decoration: underline;
}

.sticky-summary {
  position: sticky;
  top: 100px;
  padding: 24px;
  height: fit-content;
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.summary-header h2 {
  margin: 0;
  font-size: 20px;
  color: var(--accent);
}

.summary-header a {
  font-size: 13px;
  color: var(--accent-2);
  text-decoration: none;
}

.summary-header a:hover {
  text-decoration: underline;
}

.summary-sentence {
  font-family: "Merriweather", serif;
  line-height: 1.8;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.summary-sentence.active {
  background: rgba(0, 242, 254, 0.1);
  border-left: 3px solid var(--accent);
  color: white;
}

.sentence-list {
  display: grid;
  gap: 8px;
}

.sentence-card {
  padding: 10px 12px;
  cursor: pointer;
}

.sentence-card.active {
  border-color: var(--accent-2);
  box-shadow: var(--glow-strong);
  background: rgba(30, 25, 45, 0.8);
}

.sentence-en {
  font-family: "Merriweather", serif;
  font-size: 16px;
  line-height: 1.45;
}

.sentence-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.speak-btn {
  border: 1px solid var(--stroke);
  background: var(--card-2);
  color: var(--ink);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.speak-btn svg {
  width: 18px;
  height: 18px;
}

.speak-btn:hover {
  background: rgba(0, 242, 254, 0.2);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
  transform: scale(1.1);
}

/* 赛博高亮词汇 */
.word {
  padding: 1px 3px;
  border-radius: 3px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.word.term-known {
  background: rgba(0, 242, 254, 0.15);
  border-bottom: 2px solid var(--accent);
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
}

.word.term-med {
  background: rgba(240, 147, 251, 0.15);
  border-bottom: 2px solid var(--accent-2);
  color: #fff;
  text-shadow: 0 0 8px rgba(240, 147, 251, 0.6);
}

.word:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* 赛博词汇手术台 */
.medical-word {
  display: inline-flex;
  gap: 0;
  cursor: pointer;
  padding: 4px 8px;
  border: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
}

.medical-word:hover {
  background: rgba(0, 242, 254, 0.05);
  border-color: rgba(0, 242, 254, 0.3);
  border-radius: 8px;
}

.medical-word.active {
  gap: 12px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
  border-radius: 12px;
}

.word-part {
  position: relative;
  transition: all 0.4s ease;
  padding: 2px 4px;
}

.medical-word.active .word-part {
  text-shadow: 0 0 8px var(--accent);
}

.word-part::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.medical-word.active .word-part::after {
  width: 100%;
}

.part-tooltip {
  position: absolute;
  top: -52px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: var(--accent);
  color: #000;
  font-size: 10px;
  line-height: 1.35;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: normal;
  word-break: break-word;
  text-align: center;
  max-width: 180px;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: 800;
  z-index: 3;
}

.medical-word.active .word-part:hover .part-tooltip {
  transform: translateX(-50%) scale(1);
}

.part-prefix {
  color: var(--accent-2);
}

.part-root {
  color: #fff;
}

.part-suffix {
  color: var(--accent);
}

.part-connector {
  color: #b7b4ff;
}

.word-surgery-panel {
  margin-top: 10px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.25);
}

.word-surgery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.word-surgery-head .btn {
  padding: 6px 12px;
  font-size: 12px;
}

#surgeryResult {
  margin-top: 8px;
}

.sentence-zh {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  border-top: 1px dashed var(--stroke);
  padding-top: 6px;
}

.toolbar {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.detail-actions-top {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.detail-actions-bottom {
  display: flex;
  margin-left: auto;
}

.detail-mark-top {
  margin-left: auto;
}

.detail-footer {
  margin-top: 14px;
  display: none;
}

/* 主按钮 - 渐变发光 */
.btn {
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #00c6ff);
  color: #000;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.5);
}

.btn.secondary {
  background: var(--card-2);
  color: var(--ink);
  border: 1px solid var(--stroke);
  box-shadow: none;
}

.btn.secondary:hover {
  border-color: var(--accent);
  background: rgba(0, 242, 254, 0.05);
  color: var(--accent);
}

.back-link-btn {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: #caa2ff !important;
  padding: 4px 0 !important;
  min-height: auto !important;
  width: auto;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.back-link-btn:hover {
  color: #e0c6ff !important;
  transform: none !important;
  text-shadow: 0 0 8px rgba(183, 148, 244, 0.35);
}

.home-icon-btn {
  margin-left: auto;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #e8dcff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}

.home-icon-btn svg {
  width: 16px;
  height: 16px;
}

.home-icon-btn:hover {
  color: #fff !important;
  text-shadow: 0 0 10px rgba(183, 148, 244, 0.5);
}

/* 已完成页专属紫色风格 */
.completed-page .paper-item {
  border-color: rgba(183, 148, 244, 0.24);
  background: rgba(28, 20, 45, 0.48);
}

.completed-page .paper-item:hover {
  border-color: rgba(183, 148, 244, 0.55);
  box-shadow: 0 0 26px rgba(183, 148, 244, 0.3);
  background: rgba(40, 28, 64, 0.64);
}

.completed-page .paper-item h3 {
  color: #f2ebff;
}

.completed-page .paper-item:hover h3 {
  color: #dcb7ff;
}

.completed-page .paper-source a {
  color: #caa2ff;
}

.completed-page .paper-source a:hover {
  text-shadow: 0 0 8px rgba(183, 148, 244, 0.55);
}

.completed-page .toolbar .btn,
.completed-page .uncomplete-btn {
  border: 1px solid rgba(183, 148, 244, 0.38);
  background: linear-gradient(135deg, rgba(53, 36, 78, 0.82), rgba(27, 20, 42, 0.88));
  color: #f3edff;
  box-shadow: 0 8px 20px rgba(109, 62, 177, 0.25);
}

.completed-page .toolbar .btn:hover,
.completed-page .uncomplete-btn:hover {
  border-color: rgba(183, 148, 244, 0.62);
  background: linear-gradient(135deg, rgba(68, 46, 98, 0.9), rgba(32, 23, 50, 0.92));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(128, 84, 196, 0.35);
}

.completed-page .toolbar .back-link-btn {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* 收藏页专属紫色风格 */
.favorites-page .paper-item {
  border-color: rgba(183, 148, 244, 0.24);
  background: rgba(28, 20, 45, 0.48);
}

.favorites-page .paper-item:hover {
  border-color: rgba(183, 148, 244, 0.55);
  box-shadow: 0 0 26px rgba(183, 148, 244, 0.3);
  background: rgba(40, 28, 64, 0.64);
}

.favorites-page .paper-item h3 {
  color: #f2ebff;
}

.favorites-page .paper-item:hover h3 {
  color: #dcb7ff;
}

.favorites-page .paper-list,
.completed-page .paper-list {
  max-width: 1120px;
  margin: 0 auto;
}

.favorites-page .paper-item,
.completed-page .paper-item {
  width: 100%;
  margin: 0 auto;
  padding: 14px 16px;
  min-height: 0;
}

.favorites-page .paper-item .paper-title-zh,
.completed-page .paper-item .paper-title-zh {
  margin-top: -6px;
  margin-bottom: 8px;
  color: rgba(220, 183, 255, 0.88);
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.favorites-page .paper-source a {
  color: #caa2ff;
}

.favorites-page .paper-source a:hover {
  text-shadow: 0 0 8px rgba(183, 148, 244, 0.55);
}

.favorites-page .toolbar .btn {
  border: 1px solid rgba(183, 148, 244, 0.38);
  background: linear-gradient(135deg, rgba(53, 36, 78, 0.82), rgba(27, 20, 42, 0.88));
  color: #f3edff;
  box-shadow: 0 8px 20px rgba(109, 62, 177, 0.25);
}

.favorites-page .toolbar .btn:hover {
  border-color: rgba(183, 148, 244, 0.62);
  background: linear-gradient(135deg, rgba(68, 46, 98, 0.9), rgba(32, 23, 50, 0.92));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(128, 84, 196, 0.35);
}

.favorites-page .toolbar .back-link-btn {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.favorites-page .category-btn {
  border-color: rgba(183, 148, 244, 0.26);
  background: rgba(40, 28, 64, 0.44);
  color: #dac9f5;
}

.favorites-page .category-btn:hover {
  border-color: rgba(183, 148, 244, 0.52);
  color: #f2e7ff;
}

.favorites-page .category-btn.active {
  background: rgba(183, 148, 244, 0.2);
  border-color: rgba(183, 148, 244, 0.62);
  color: #f7f1ff;
  box-shadow: inset 0 0 10px rgba(183, 148, 244, 0.2);
}

.favorites-page .favorite-btn {
  border-color: rgba(183, 148, 244, 0.4);
  background: linear-gradient(135deg, rgba(53, 36, 78, 0.82), rgba(27, 20, 42, 0.88));
  color: #f3edff;
}

.favorites-page .favorite-btn:hover {
  border-color: rgba(183, 148, 244, 0.62);
  background: linear-gradient(135deg, rgba(68, 46, 98, 0.92), rgba(32, 23, 50, 0.94));
  color: #ffffff;
  box-shadow: 0 0 14px rgba(183, 148, 244, 0.35);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-card {
  width: min(520px, 92vw);
  background: var(--bg-2);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}

.modal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.modal-card h3 {
  margin-top: 0;
  font-size: 22px;
}

.modal-card textarea {
  width: 100%;
  height: 100px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.3);
  color: var(--ink);
  padding: 16px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s ease;
}

.modal-card textarea:focus {
  border-color: var(--accent);
  box-shadow: inset 0 0 10px rgba(0, 242, 254, 0.1);
}

.word-popup-card {
  width: min(420px, 88vw);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(183, 148, 244, 0.3);
  background: rgba(20, 16, 34, 0.9);
  box-shadow: 0 16px 40px rgba(8, 8, 16, 0.7), 0 0 16px rgba(183, 148, 244, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.word-popup-card::before {
  height: 3px;
  background: linear-gradient(90deg, #b794f4, #805ad5);
}

.word-popup-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #f5efff;
}

.word-popup-card p {
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.45;
  color: #c7bddb;
}

.word-popup-card p strong {
  color: #e9dcff;
}

.word-popup-card .muted {
  font-size: 12px;
  color: #9e90bb;
}

.word-popup-card .toolbar {
  gap: 8px;
  margin-top: 12px !important;
}

.word-popup-card .toolbar .btn {
  padding: 8px 12px;
  font-size: 12px;
}

.word-popup-card #save {
  background: linear-gradient(90deg, #b794f4, #805ad5);
  color: #ffffff;
  border: 1px solid rgba(183, 148, 244, 0.65);
  box-shadow: 0 0 14px rgba(183, 148, 244, 0.28);
}

.word-popup-card #save:hover {
  box-shadow: 0 0 18px rgba(183, 148, 244, 0.4);
}

.word-popup-card #speak {
  border: 1px solid rgba(183, 148, 244, 0.38);
  background: rgba(183, 148, 244, 0.08);
  color: #b794f4;
}

.word-popup-card #speakWordbookWord {
  border: 1px solid rgba(183, 148, 244, 0.55) !important;
  background: rgba(183, 148, 244, 0.12) !important;
  color: #b794f4 !important;
}

.word-popup-card .toolbar #speak.btn.secondary {
  border: 1px solid rgba(183, 148, 244, 0.55) !important;
  background: rgba(183, 148, 244, 0.12) !important;
  color: #b794f4 !important;
}

.word-popup-card #speak:hover,
.word-popup-card #speak:focus-visible,
.word-popup-card #speak:active {
  border-color: rgba(183, 148, 244, 0.72);
  background: rgba(183, 148, 244, 0.18);
  color: #f7efff;
  box-shadow: 0 0 12px rgba(183, 148, 244, 0.32);
}

.word-popup-card .toolbar #speak.btn.secondary:hover,
.word-popup-card .toolbar #speak.btn.secondary:focus-visible,
.word-popup-card .toolbar #speak.btn.secondary:active {
  border-color: rgba(183, 148, 244, 0.78) !important;
  background: rgba(183, 148, 244, 0.22) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(183, 148, 244, 0.35) !important;
}

.word-popup-card #speakWordbookWord:hover,
.word-popup-card #speakWordbookWord:focus-visible,
.word-popup-card #speakWordbookWord:active {
  border-color: rgba(183, 148, 244, 0.78) !important;
  background: rgba(183, 148, 244, 0.22) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(183, 148, 244, 0.35) !important;
}

@media (max-width: 768px) {
  .word-popup-card {
    width: min(380px, 90vw);
    padding: 16px;
    border-radius: 14px;
  }
  .word-popup-card h3 {
    font-size: 17px;
  }
  .word-popup-card p {
    font-size: 12px;
  }
}

.wordbook {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed var(--stroke);
}

.wordbook-page {
  display: grid;
  gap: 24px;
}

.wordbook-header h2 {
  margin: 0;
  font-size: 28px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wordbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.wordbook-card {
  padding: 20px;
}

.wordbook-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}

.wordbook-list {
  display: grid;
  gap: 10px;
}

.wordbook-list-head,
.wordbook-row {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr;
  gap: 12px;
  align-items: center;
}

.wordbook-list-head {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 0 10px;
}

.wordbook-row {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px 44px 12px 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.wordbook-row:hover {
  border-color: var(--stroke-hover);
  transform: translateY(-2px);
}

.wordbook-row-word {
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
}

.wordbook-row-wordline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wordbook-row-mastery {
  color: var(--ink);
  font-size: 13px;
}

.wordbook-row-titer {
  display: grid;
  gap: 6px;
}

.wordbook-row-titer span {
  font-size: 12px;
  color: var(--ink);
}

.wordbook-row-actions {
  display: flex;
  justify-content: flex-end;
}

.wordbook-row-actions .btn {
  padding: 6px 12px;
  font-size: 12px;
}

/* 词书页紫色赛博主题 */
.wordbook-theme {
  background-color: #05060a;
  background-image:
    linear-gradient(rgba(183, 148, 244, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 148, 244, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

.wordbook-theme .wordbook-header h2 {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: #ffffff;
}

.wordbook-theme .wordbook-header p {
  color: #6f6785;
}

.wordbook-theme .btn-learn-new {
  background: linear-gradient(90deg, #b794f4, #805ad5);
  color: #ffffff;
  border: none;
  box-shadow: 0 0 20px rgba(183, 148, 244, 0.45);
  font-weight: 700;
}

.wordbook-theme .btn-learn-new:hover {
  box-shadow: 0 0 28px rgba(183, 148, 244, 0.58);
}

.wordbook-theme .btn-review-mastered {
  background: transparent;
  border: 1px solid rgba(183, 148, 244, 0.72);
  color: #b794f4;
  box-shadow: inset 0 0 10px rgba(183, 148, 244, 0.14);
}

.wordbook-theme .btn-review-mastered:hover {
  background: rgba(183, 148, 244, 0.1);
  color: #e5d8ff;
  border-color: rgba(183, 148, 244, 0.9);
}

.wordbook-theme .btn-export-glass {
  background: rgba(110, 88, 148, 0.2);
  border: 1px solid rgba(183, 148, 244, 0.42);
  color: #d7c8f3;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wordbook-theme .btn-export-glass:hover {
  border-color: rgba(183, 148, 244, 0.62);
  background: rgba(128, 90, 213, 0.24);
}

.wordbook-theme .wordbook-list-head {
  color: #8b7da8;
}

.wordbook-theme .wordbook-row {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(183, 148, 244, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wordbook-theme .wordbook-row:hover {
  border-color: rgba(183, 148, 244, 0.5);
  box-shadow: 0 0 16px rgba(183, 148, 244, 0.22);
}

.wordbook-theme .wordbook-row-word {
  color: #ffffff;
  font-weight: 700;
}

.wordbook-theme .wordbook-row-mastery {
  color: #a99bbf;
}

.wordbook-theme .wordbook-row.mastered .wordbook-row-mastery {
  color: #8877a8;
}

.wordbook-theme .wordbook-row-titer span {
  color: #ded3f7;
}

.wordbook-theme .wordbook-row .antibody-bar {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(183, 148, 244, 0.24);
}

.wordbook-theme .wordbook-row .antibody-bar .antibody-bar-fill {
  animation: none;
}

.wordbook-theme .wordbook-row.unmastered .antibody-bar .antibody-bar-fill {
  background: linear-gradient(90deg, #b794f4, #d9c3ff);
  box-shadow: 0 0 10px #b794f4;
}

.wordbook-theme .wordbook-row.mastered .antibody-bar .antibody-bar-fill {
  background: linear-gradient(90deg, #6a4da3, #8e6fcb);
  box-shadow: 0 0 8px rgba(129, 96, 196, 0.8);
}

.wordbook-theme .wordbook-row-actions {
  gap: 8px;
}

.wordbook-theme .icon-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #b794f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wordbook-theme .icon-action-btn svg {
  width: 20px;
  height: 20px;
}

.wordbook-theme .audio-icon-btn {
  width: 28px;
  height: 28px;
  color: #b794f4 !important;
}

.wordbook-theme .delete-icon-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
}

.wordbook-theme .icon-action-btn:hover {
  color: #efe4ff;
  box-shadow: 0 0 12px rgba(183, 148, 244, 0.45);
}

.wordbook-empty {
  padding: 32px;
  background: var(--card);
  border: 1px dashed var(--stroke);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
  font-size: 16px;
}

/* 翻转学习卡片 - 增强 3D 效果 */
.learn-card {
  margin: 20px auto;
  max-width: 520px;
  width: min(520px, 100%);
  height: 350px;
  min-height: 350px;
  border: none;
  background: transparent;
  box-shadow: none;
  perspective: 1500px;
  flex-shrink: 0;
}

.learn-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 350px;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 16px rgba(183, 148, 244, 0.12);
}

.learn-card.revealed .learn-inner {
  transform: rotateY(180deg);
}

.learn-front,
.learn-back {
  position: absolute;
  inset: 0;
  padding: 28px 24px;
  backface-visibility: hidden;
  display: grid;
  align-content: center;
  gap: 14px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(26, 21, 42, 0.86), rgba(18, 16, 30, 0.92));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(183, 148, 244, 0.25);
  text-align: center;
}

.learn-front {
  font-size: 24px;
  font-weight: 600;
  color: #d7c2ff;
}

.learn-back {
  transform: rotateY(180deg);
  background: linear-gradient(145deg, rgba(34, 22, 52, 0.9), rgba(20, 16, 32, 0.95));
  border-color: rgba(183, 148, 244, 0.4);
}

.learn-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.learn-actions #knownBtn,
.learn-actions #unknownBtn {
  border: 1px solid rgba(183, 148, 244, 0.58) !important;
  background: linear-gradient(90deg, #b794f4, #805ad5) !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(183, 148, 244, 0.3) !important;
}

.learn-actions #knownBtn:hover,
.learn-actions #unknownBtn:hover {
  border-color: rgba(183, 148, 244, 0.8) !important;
  box-shadow: 0 0 18px rgba(183, 148, 244, 0.45) !important;
}

.learn-stage {
  min-height: calc(100dvh - 220px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .learn-card {
    height: 320px;
    min-height: 320px;
  }
  .learn-inner {
    min-height: 320px;
  }
}

.hidden {
  display: none !important;
}

.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.auth-card {
  padding: 40px;
  width: min(460px, 92vw);
  position: relative;
  background:
    linear-gradient(140deg, rgba(183, 148, 244, 0.2), rgba(122, 75, 190, 0.14) 45%, rgba(20, 20, 30, 0.78) 100%),
    rgba(22, 16, 38, 0.62);
  border: 1px solid rgba(183, 148, 244, 0.34);
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(183, 148, 244, 0.18);
}

.auth-card h2 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 28px;
  text-align: center;
  color: #efe9ff;
  text-shadow: 0 0 18px rgba(183, 148, 244, 0.35);
}

.auth-card p {
  color: rgba(216, 196, 255, 0.84);
  text-align: center;
  margin: 0 0 16px;
}

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-card input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  margin-bottom: 16px;
  background: rgba(20, 16, 30, 0.58);
  color: white;
  font-size: 15px;
  transition: all 0.3s ease;
}

.auth-card input:focus {
  outline: none;
  border-color: #b794f4;
  box-shadow: 0 0 0 1px rgba(183, 148, 244, 0.45), 0 0 18px rgba(183, 148, 244, 0.22);
}

.auth-status {
  min-height: 20px;
  margin-top: 8px;
  color: rgba(183, 148, 244, 0.95);
  font-size: 13px;
  text-align: center;
}

.auth .auth-switch .btn {
  border: 1px solid rgba(183, 148, 244, 0.42);
  background: linear-gradient(90deg, #b794f4, #805ad5);
  color: #fff;
  box-shadow: 0 8px 22px rgba(183, 148, 244, 0.32);
}

.auth .auth-switch .btn:hover {
  box-shadow: 0 10px 28px rgba(183, 148, 244, 0.45);
}

.auth .auth-switch .btn.secondary {
  background: rgba(38, 28, 58, 0.55);
  color: #d8c6ff;
  border: 1px solid rgba(183, 148, 244, 0.35);
  box-shadow: inset 0 0 0 1px rgba(183, 148, 244, 0.1);
}

.auth .auth-switch .btn.secondary:hover {
  background: rgba(56, 40, 84, 0.65);
  color: #f1e8ff;
  border-color: rgba(183, 148, 244, 0.6);
}

.auth-card #login,
.auth-card #register {
  width: 100%;
  background: linear-gradient(90deg, #b794f4, #805ad5);
  color: #fff;
  border: 1px solid rgba(183, 148, 244, 0.45);
  box-shadow: 0 10px 28px rgba(183, 148, 244, 0.35);
}

.auth-card #login:hover,
.auth-card #register:hover {
  box-shadow: 0 12px 34px rgba(183, 148, 244, 0.5);
}

.auth-card #login:disabled,
.auth-card #register:disabled {
  opacity: 0.8;
  box-shadow: 0 6px 16px rgba(183, 148, 244, 0.25);
}

.settings-card {
  padding: 32px;
}

.settings-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.settings-form input {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.2);
  color: white;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.settings-form select {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.2);
  color: white;
  font-family: inherit;
}

.settings-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.membership-badge {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.mobile-only {
  display: none;
}

.desktop-only {
  display: inline-flex;
}

.membership-badge.active {
  color: #9dffc8;
  background: rgba(89, 215, 149, 0.16);
  border-color: rgba(89, 215, 149, 0.35);
}

.membership-badge.expired {
  color: #ffd3a9;
  background: rgba(255, 156, 70, 0.12);
  border-color: rgba(255, 156, 70, 0.35);
}

.membership-warning {
  color: #ffcc97;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 16px 0 24px;
}

.admin-page-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
}

.admin-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-overview-card {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-overview-title {
  font-size: 12px;
  color: var(--muted);
}

.admin-overview-value {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 700;
}

.admin-table-wrap {
  margin-top: 20px;
  overflow-x: auto;
}

.admin-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-toolbar input {
  flex: 1;
  min-width: 220px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.2);
  color: white;
}

.admin-toolbar select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.2);
  color: white;
}

.settings-form label {
  font-size: 12px;
  color: var(--muted);
}

.settings-sync-panel {
  margin: 14px 0 16px;
}

.settings-theme .settings-card {
  background: rgba(28, 20, 45, 0.64);
  border: 1px solid rgba(183, 148, 244, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(26, 12, 44, 0.45), 0 0 18px rgba(183, 148, 244, 0.12);
}

.settings-theme .settings-card h2 {
  color: #f3ebff;
}

.settings-theme .settings-card p {
  color: #a99bc3;
}

.settings-theme .settings-form input,
.settings-theme .settings-form select {
  background: rgba(183, 148, 244, 0.08);
  border: 1px solid rgba(183, 148, 244, 0.35);
  color: #efe5ff;
}

.settings-theme .settings-form input:focus,
.settings-theme .settings-form select:focus {
  border-color: rgba(183, 148, 244, 0.78);
  box-shadow: 0 0 0 1px rgba(183, 148, 244, 0.25), 0 0 14px rgba(183, 148, 244, 0.28);
}

.settings-theme #activateCdk,
.settings-theme #changePassword {
  background: linear-gradient(90deg, #b794f4, #805ad5);
  color: #ffffff;
  border: 1px solid rgba(183, 148, 244, 0.68);
  box-shadow: 0 6px 16px rgba(183, 148, 244, 0.34);
}

.settings-theme #activateCdk:hover,
.settings-theme #changePassword:hover {
  box-shadow: 0 10px 24px rgba(183, 148, 244, 0.44);
}

.settings-theme .settings-sync-panel {
  border-color: rgba(183, 148, 244, 0.45) !important;
  background: linear-gradient(135deg, rgba(38, 25, 58, 0.88), rgba(22, 16, 34, 0.92));
  box-shadow: 0 0 22px rgba(183, 148, 244, 0.16);
}

.settings-theme .settings-sync-panel .sync-panel-title,
.settings-theme .settings-sync-panel .sync-panel-head span,
.settings-theme .settings-sync-panel .sync-progress-note {
  color: #c9a8ff !important;
}

.settings-theme .settings-sync-panel .sync-progress-fill {
  background: linear-gradient(90deg, #b794f4, #805ad5) !important;
  box-shadow: 0 0 12px rgba(183, 148, 244, 0.5) !important;
}

.settings-theme #logout {
  border: 1px solid rgba(183, 148, 244, 0.5) !important;
  background: rgba(183, 148, 244, 0.15) !important;
  color: #efdeff !important;
}

.settings-theme #logout:hover {
  border-color: rgba(183, 148, 244, 0.75) !important;
  background: rgba(183, 148, 244, 0.25) !important;
  color: #ffffff !important;
}

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

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--stroke);
  text-align: left;
  padding: 10px 8px;
  font-size: 13px;
  white-space: nowrap;
}

.admin-table th {
  color: var(--muted);
  font-weight: 600;
}

.admin-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-inline input {
  width: 92px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.2);
  color: white;
}

.muted {
  color: var(--muted);
  font-size: 13px;
  margin-top: 0;
}

.fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

@media (max-width: 960px) {
  .hero,
  .detail {
    grid-template-columns: 1fr;
  }
  .sticky-summary {
    position: static;
  }
  .two-column {
    grid-template-columns: 1fr;
  }
  .left-panel {
    position: static;
  }
  .sync-panel-head {
    flex-wrap: wrap;
  }
  .sync-status {
    min-width: 0;
    width: 100%;
  }
  .wordbook-list-head,
  .wordbook-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .wordbook-list-head {
    display: none;
  }
  .wordbook-row-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  html,
  body,
  #app,
  .app-shell,
  .main,
  .mobile-home-shell,
  .mobile-feed-list,
  .mobile-detail-shell,
  .mobile-detail-main {
    max-width: 100%;
    overflow-x: hidden !important;
  }
  .mobile-feed-item,
  .mobile-feed-left,
  .mobile-detail-user-card,
  .paper-item,
  .settings-card,
  .wordbook-list,
  .wordbook-row,
  .toolbar,
  .favorites-toolbar,
  .page-marker {
    max-width: 100%;
    min-width: 0;
  }
  .mobile-home-shell,
  .mobile-feed-list,
  .mobile-feed-item,
  .mobile-feed-left,
  .mobile-detail-shell,
  .mobile-detail-main,
  .main,
  .settings-card,
  .wordbook-page,
  .paper-list,
  .favorites-toolbar,
  .page-marker,
  .sync-panel,
  .modal-card {
    max-width: 100%;
  }
  .mobile-home-shell,
  .mobile-feed-list,
  .mobile-detail-shell,
  .mobile-detail-main,
  .main {
    overflow-x: hidden;
  }
  .mobile-feed-title,
  .mobile-feed-title-zh,
  .mobile-feed-authors,
  .mobile-feed-source,
  .mobile-feed-source span,
  .mobile-feed-source a,
  .mobile-detail-title h1,
  .mobile-detail-en,
  .sentence-en,
  .paper-item h3,
  .paper-source span,
  .paper-source a,
  .settings-card p,
  .wordbook-row-word,
  .word-popup-card p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .mobile-home-shell {
    min-height: 100vh;
    background: radial-gradient(circle at top, rgba(183, 148, 244, 0.1), transparent 52%), #05060a;
  }
  .mobile-home-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 10px 12px;
    background: linear-gradient(to bottom, rgba(5, 6, 10, 0.86), rgba(5, 6, 10, 0.25));
  }
  .mobile-feed-controls {
    position: relative;
    z-index: 40;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    align-items: stretch;
  }
  .mobile-feed-controls > * {
    width: 100%;
    min-width: 0;
  }
  .mobile-feed-controls select {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    font-size: 14px;
    padding: 0 8px;
  }
  .mobile-search-row {
    margin-top: 6px;
  }
  .mobile-pull-refresh-hint {
    position: absolute;
    left: 50%;
    top: 56px;
    transform: translate(-50%, -10px);
    opacity: 0;
    padding: 4px 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.2px;
    background: rgba(10, 10, 14, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    pointer-events: none;
    transition: color 0.2s ease, transform 0.18s ease, opacity 0.18s ease;
  }
  .mobile-pull-refresh-hint.is-pulling {
    opacity: 1;
  }
  .mobile-pull-refresh-hint.is-refreshing {
    color: rgba(183, 148, 244, 0.96);
    opacity: 1;
  }
  .mobile-feed-list.is-refreshing {
    transition: transform 0.22s ease;
    transform: translateY(8px);
  }
  .mobile-search-row input {
    width: 100%;
    min-width: 0;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    padding: 0 10px;
    font-size: 16px;
    outline: none;
  }
  .mobile-search-row input:focus {
    border-color: rgba(183, 148, 244, 0.5);
  }
  .mobile-search-row .search-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .mobile-feed-list {
    height: 100dvh;
    margin-top: 0;
    margin-bottom: 0;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-snap-stop: always;
    scroll-padding-top: 0;
    scroll-padding-bottom: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
    touch-action: pan-y;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .mobile-feed-list::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }
  .mobile-feed-loading-hint {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(226, 232, 240, 0.7);
    font-size: 12px;
    scroll-snap-align: none;
  }
  .mobile-feed-item {
    position: relative;
    height: 100dvh;
    min-height: 100dvh;
    padding: calc(106px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    isolation: isolate;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  .mobile-feed-item::before {
    content: "";
    position: absolute;
    inset: -18% -6%;
    background:
      repeating-linear-gradient(
        90deg,
        rgba(183, 148, 244, 0.04) 0px,
        rgba(183, 148, 244, 0.04) 1px,
        transparent 1px,
        transparent 22px
      ),
      repeating-linear-gradient(
        0deg,
        rgba(236, 201, 75, 0.03) 0px,
        rgba(236, 201, 75, 0.03) 1px,
        transparent 1px,
        transparent 22px
      );
    opacity: 0.045;
    pointer-events: none;
    transform-origin: 50% 50%;
    will-change: transform;
    animation: med-grid-rotate 24s linear infinite;
  }
  .mobile-feed-left {
    position: relative;
    z-index: 1;
    min-width: 0;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(18, 16, 28, 0.82));
    box-shadow: var(--shadow);
    padding: 14px 11px;
    display: grid;
    grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
    overflow: hidden;
  }
  .mobile-feed-journal {
    color: #ecc94b;
    font-family: monospace;
    font-size: 12px;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
  }
  .mobile-feed-title {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .mobile-feed-title-zh {
    margin-top: -4px;
    margin-bottom: 6px;
    color: #8b949e;
    font-size: 13px;
    line-height: 1.45;
  }
  .mobile-feed-time {
    color: rgba(183, 148, 244, 0.92);
    font-family: monospace;
    font-size: 12px;
    margin-bottom: 4px;
  }
  .mobile-feed-abstract {
    margin: 0;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.58;
    min-height: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 72%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 72%, rgba(0, 0, 0, 0) 100%);
  }
  .mobile-feed-tldr {
    margin: 0;
    color: rgba(228, 235, 248, 0.68);
    font-size: 14px;
    line-height: 1.62;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .mobile-feed-bottom {
    margin-top: 8px;
    display: grid;
    gap: 6px;
  }
  .mobile-feed-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .mobile-tag {
    border: 1px solid rgba(183, 148, 244, 0.35);
    background: transparent;
    color: #e2e8f0;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    cursor: pointer;
  }
  .mobile-feed-authors {
    color: #8b949e;
    font-size: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .mobile-feed-source {
    display: grid;
    gap: 4px;
    color: #8b949e;
    font-size: 11px;
    line-height: 1.35;
    min-width: 0;
  }
  .mobile-feed-source span,
  .mobile-feed-source a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-paper-link {
    display: inline;
    color: #b794f4;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    transition: color 0.2s ease, opacity 0.2s ease;
  }
  .mobile-paper-link:hover {
    color: #d6b9ff;
  }
  .mobile-paper-link:active {
    opacity: 0.85;
  }
  .mobile-open-btn {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #00f2fe, #f093fb);
    color: #041218;
    font-weight: 800;
    letter-spacing: 0.2px;
    margin-bottom: calc(40px + env(safe-area-inset-bottom));
    box-shadow: 0 8px 24px rgba(0, 242, 254, 0.28);
  }
  .mobile-feed-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }
  .mobile-action-btn {
    border: 0;
    background: transparent;
    color: var(--ink);
    border-radius: 0;
    min-height: auto;
    padding: 0;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    display: grid;
    justify-items: center;
    gap: 6px;
  }
  .mobile-action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.6));
  }
  .mobile-action-label {
    color: rgba(231, 239, 248, 0.8);
    font-size: 10px;
    white-space: nowrap;
  }
  .mobile-home-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(9, 10, 15, 0.95);
    border-top: 1px solid var(--stroke);
    display: flex;
    justify-content: flex-end;
    padding-left: 10px;
    padding-right: 10px;
  }
.mobile-mine-btn {
  min-height: 40px;
  border-radius: 10px;
  font-size: 12px;
  padding: 0 8px;
  background: rgba(183, 148, 244, 0.18);
  color: #f3eaff;
  border: 1px solid rgba(183, 148, 244, 0.5);
  font-weight: 800;
  box-shadow: 0 0 10px rgba(183, 148, 244, 0.2);
}
.mobile-mine-btn:hover {
  background: rgba(183, 148, 244, 0.26);
  border-color: rgba(183, 148, 244, 0.72);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(183, 148, 244, 0.35);
}
  .mobile-home-shell.ios-lite .mobile-feed-item::before {
    display: none;
    animation: none;
  }
  .mobile-home-shell.ios-lite .mobile-home-top,
  .mobile-home-shell.ios-lite .mobile-search-row,
  .mobile-home-shell.ios-lite .mobile-action-icon {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .mobile-home-shell.ios-lite .mobile-action-icon {
    filter: none;
    box-shadow: 0 0 0 1px rgba(0, 242, 254, 0.35);
  }
  .mobile-home-shell.ios-lite .mobile-open-btn {
    box-shadow: none;
  }
  .topbar-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 12px;
  }
  .brand span {
    font-size: 11px;
    letter-spacing: 0.5px;
  }
  .user-chip {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    gap: 8px;
  }
  .user-chip > .membership-badge {
    order: 3;
    width: 100%;
  }
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: inline-flex !important;
  }
  .sync-headline {
    width: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: visible;
  }
  .sync-headline .membership-badge {
    width: auto;
    max-width: none;
    white-space: nowrap;
  }
  .sync-headline .sync-title {
    white-space: nowrap;
    text-align: left;
  }
  .sync-status {
    order: 4;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
  }
  .sync-meta {
    white-space: nowrap;
    line-height: 1.2;
  }
  .user-chip button {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
  }
  .main {
    padding: 16px 12px 86px;
  }
  .two-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .right-panel {
    order: 1;
    gap: 12px;
  }
  .left-panel {
    order: 2;
  }
  .toolbar {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
  }
  .toolbar .btn {
    width: 100%;
    min-height: 42px;
  }
  .toolbar .back-link-btn {
    width: auto !important;
    min-height: auto !important;
    padding: 2px 0 !important;
    margin-right: auto;
  }
  .toolbar .home-icon-btn {
    width: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    margin-left: auto;
  }
  .panel-toolbar {
    gap: 10px;
  }
  .sync-panel {
    padding: 12px;
    border-radius: 12px;
  }
  .sync-panel-title {
    font-size: 10px;
    margin-bottom: 6px;
  }
  .sync-panel-head h3 {
    font-size: 15px;
  }
  .sync-panel p {
    font-size: 12px;
    line-height: 1.45;
    margin: 6px 0 8px;
  }
  .sync-progress-note,
  .sync-rule-note {
    font-size: 11px;
  }
  .left-panel {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    border-radius: 12px;
  }
  .left-panel .panel-title {
    display: none;
  }
  .left-panel .category-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 999px;
    scroll-snap-align: start;
    font-size: 12px;
  }
  .left-panel .category-btn:hover {
    transform: none;
  }
  .toolbar-meta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .current-filter {
    margin-right: 0;
    white-space: nowrap;
    font-size: 12px;
  }
  .toolbar-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .filter-item label {
    font-size: 11px;
  }
  .panel-toolbar input,
  .panel-toolbar select {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    font-size: 12px;
  }
  .search-inline {
    width: 100%;
  }
  .search-inline input {
    width: 100%;
    min-height: 40px;
    font-size: 14px;
  }
  .paper-item {
    padding: 14px;
    border-radius: 14px;
  }
  .paper-item h3 {
    font-size: 16px;
    line-height: 1.35;
  }
  .paper-item.favorite-paper-item {
    padding-bottom: 14px;
  }
  .paper-item.favorite-paper-item .favorite-card-actions {
    position: static;
    margin-top: 12px;
    justify-content: flex-start;
  }
  .home-paper-item .paper-meta {
    font-size: 12px;
  }
  .pagination {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
  }
  .pagination .btn {
    min-height: 40px;
  }
  .detail {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .sticky-summary {
    display: none;
  }
  .detail-titlebar-mobile {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
  }
  .detail-titlebar-mobile h2 {
    font-size: 18px;
  }
  .detail-main {
    padding-bottom: 120px;
  }
  .detail-actions {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
  }
  .detail-actions-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .detail-actions-top .btn {
    width: 100%;
    min-height: 40px;
  }
  .detail-actions-bottom {
    display: block;
    margin-left: 0;
  }
  .detail-actions-bottom .btn {
    width: 100%;
    min-height: 42px;
  }
  .detail-mark-top {
    display: none;
  }
  .detail-footer {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(9, 10, 15, 0.9);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--stroke);
    z-index: 30;
  }
  .detail-footer .btn {
    width: 100%;
    min-height: 44px;
  }
  .sentence-top {
    gap: 10px;
  }
  .sentence-en {
    font-size: 15px;
  }
  .sentence-zh {
    font-size: 14px;
  }
  .modal-card {
    width: calc(100vw - 20px);
    padding: 16px;
    border-radius: 14px;
  }
  .auth {
    padding: 16px 10px;
  }
  .auth-card {
    width: 100%;
    padding: 18px 14px;
    border-radius: 14px;
  }
  .auth-card h2 {
    font-size: 22px;
    margin-bottom: 14px;
  }
  .auth-card input {
    margin-bottom: 10px;
    font-size: 16px;
  }
  .settings-card {
    padding: 16px 12px;
    border-radius: 14px;
  }
  .settings-form {
    gap: 10px;
    margin-top: 12px;
  }
  .settings-form input,
  .settings-form select {
    min-height: 42px;
    font-size: 16px;
  }
  .admin-page-nav .btn {
    flex: 1 1 100%;
  }
  .admin-toolbar {
    flex-direction: column;
  }
  .admin-toolbar input,
  .admin-toolbar select,
  .admin-toolbar .btn {
    width: 100%;
  }
  .admin-inline {
    flex-wrap: wrap;
  }
}

@keyframes med-grid-rotate {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(360deg) scale(1.02);
  }
}

@media (max-width: 480px) {
  .mobile-feed-item {
    padding: calc(102px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom));
  }
  .mobile-feed-controls {
    padding: 0;
    gap: 5px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .mobile-feed-controls select {
    min-height: 34px;
    font-size: 13px;
    padding: 0 6px;
  }
  .mobile-search-row {
    margin-top: 5px;
  }
  .mobile-search-row input {
    height: 34px;
    font-size: 16px;
    padding: 0 8px;
  }
  .mobile-search-row .search-icon-btn {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
  .mobile-feed-title {
    font-size: 21px;
  }
  .mobile-feed-title-zh {
    font-size: 12px;
  }
  .mobile-feed-time {
    font-size: 11px;
  }
  .mobile-feed-abstract {
    font-size: 13px;
    -webkit-line-clamp: 6;
  }
  .mobile-feed-tldr {
    font-size: 13px;
    -webkit-line-clamp: 7;
  }
  .mobile-action-btn {
    gap: 5px;
    font-size: 10px;
  }
  .mobile-action-icon {
    width: 46px;
    height: 46px;
    font-size: 16px;
  }
  .mobile-home-top input {
    font-size: 16px;
  }
  .mobile-mine-btn {
    min-height: 38px;
    font-size: 11px;
    padding: 0 6px;
  }
  .topbar {
    position: static;
  }
  .main {
    padding: 12px 10px 76px;
  }
  .toolbar-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .current-filter {
    font-size: 11px;
  }
  .sync-panel {
    padding: 10px;
  }
  .sync-panel-head h3 {
    font-size: 14px;
  }
  .sync-panel p {
    font-size: 11px;
  }
  .brand span {
    font-size: 10px;
  }
  .paper-source {
    gap: 6px;
  }
  .learn-front,
  .learn-back {
    padding: 18px 12px;
  }
  .learn-front {
    font-size: 22px;
  }
  .wordbook-empty {
    padding: 20px 12px;
    font-size: 14px;
  }
}

.feed-shell {
  height: 100vh;
}

.feed-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  background: rgba(9, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
}

.feed-viewport {
  height: calc(100vh - 80px);
  overflow: hidden;
}

.feed-track {
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.paper-screen {
  height: 100vh;
  padding: 32px;
  display: grid;
  align-items: center;
}

.paper-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

.paper-left h1 {
  font-size: 40px;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff, var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.paper-meta {
  color: var(--muted);
  margin-bottom: 16px;
  font-family: monospace;
  font-size: 14px;
}

.home-paper-item .paper-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.home-paper-item .paper-meta .meta-authors {
  color: var(--muted);
  text-shadow: none;
}

.home-paper-item .paper-meta .meta-journal,
.home-paper-item .paper-meta .meta-time {
  color: #ffd166;
  text-shadow: 0 0 8px rgba(255, 209, 102, 0.35);
  font-weight: 600;
}

.home-paper-item .paper-title-zh {
  margin-top: -8px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.45;
}

.paper-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.paper-tldr {
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--accent-2);
  font-size: 18px;
}

.paper-abstract {
  padding: 20px;
  max-height: 160px;
  overflow: hidden;
  position: relative;
}

.paper-abstract::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--card));
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.paper-abstract.expanded {
  max-height: 50vh;
  overflow: auto;
}

.paper-abstract.expanded::after {
  opacity: 0;
}

.abstract-text {
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
}

.paper-right {
  max-height: 75vh;
  overflow: auto;
  padding-right: 16px;
}

.paper-sentences {
  display: grid;
  gap: 16px;
}

.paper-actions {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 16px;
  z-index: 50;
}

.action-btn {
  border: 1px solid var(--stroke);
  background: var(--card);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.action-btn:hover {
  transform: translateX(-4px);
  border-color: var(--accent);
  color: var(--ink);
}

.action-btn.active {
  background: linear-gradient(135deg, var(--accent), #00c6ff);
  color: #000;
  border-color: transparent;
  box-shadow: var(--glow);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .mobile-detail-shell {
    min-height: 100dvh;
    height: 100dvh;
    background: #05060a;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
  }
  .mobile-detail-brand {
    padding: calc(12px + env(safe-area-inset-top)) 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .mobile-detail-logo {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #eef2ff;
  }
  .mobile-detail-divider {
    color: #8b949e;
    margin: 0 8px;
  }
  .mobile-detail-slogan {
    font-weight: 400;
    font-size: 12px;
    color: #8b949e;
  }
  .mobile-detail-main {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px 10px calc(120px + env(safe-area-inset-bottom));
    display: grid;
    gap: 12px;
    overflow-x: hidden;
  }
  .mobile-detail-user-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
  }
  .mobile-detail-user-left {
    min-width: 0;
    padding-left: 15px;
  }
  .mobile-detail-role {
    font-size: 10px;
    color: #8b949e;
    letter-spacing: 1px;
  }
  .mobile-detail-user-id {
    margin-top: 2px;
    font-size: 18px;
    font-weight: 700;
    color: #f7fafc;
  }
  .mobile-detail-user-expiry {
    margin-top: 4px;
    font-size: 11px;
    color: #8b949e;
    overflow-wrap: anywhere;
  }
  .mobile-detail-user-left .user-level-sync {
    margin-top: 6px;
  }
  .mobile-detail-user-left .user-level-line {
    font-size: 11px;
  }
  .mobile-detail-user-left .user-level-next {
    font-size: 10px;
  }
  .mobile-detail-user-right {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 10px;
    align-items: center;
    min-width: 0;
    width: min(42vw, 180px);
  }
  .mobile-detail-user-metrics {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    min-width: 0;
    min-height: 72px;
    align-content: center;
    padding-top: 20px;
  }
  .mobile-detail-stat-btn {
    border: 0;
    background: transparent;
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    justify-content: flex-start;
    white-space: nowrap;
    line-height: 1;
  }
  .md-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 10px;
  }
  .md-dot.gold {
    background: #ecc94b;
  }
  .md-dot.purple {
    background: #b794f4;
  }
  .md-dot.green {
    background: #48bb78;
  }
  .mobile-detail-settings-col {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
  }
  .mobile-detail-settings-btn {
    border: 0;
    background: transparent;
    color: #8b949e;
    font-size: 35px;
    padding: 0;
    width: 100%;
    min-height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-25px, 7px);
  }
  .mobile-detail-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
    margin-bottom: 4px;
  }
  .mobile-detail-tool {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    min-height: 40px;
    color: #e2e8f0;
    font-size: 13px;
  }
  .mobile-detail-tool.favorited {
    color: #ff6b88;
    border-color: rgba(255, 107, 136, 0.55);
    background: rgba(255, 107, 136, 0.12);
  }
  .mobile-detail-tool.back-link-btn {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: auto;
    text-align: left;
    justify-self: start;
    width: auto;
    padding: 0;
  }
  .mobile-detail-tool.home-icon-btn {
    width: 30px;
    min-width: 30px;
    min-height: 30px;
    border: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
  }
  .mobile-detail-title {
    margin-top: 2px;
  }
  .mobile-detail-title h1 {
    margin: 0;
    font-family: "Merriweather", serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 20px;
    line-height: 1.25;
    color: #f7fafc;
  }
  .mobile-detail-sub-link {
    margin-top: 8px;
    font-size: 12px;
    color: #b794f4;
  }
  .mobile-detail-sub-link a {
    color: #b794f4;
    text-decoration: none;
  }
  .mobile-detail-reading {
    display: grid;
    gap: 18px;
  }
  .mobile-detail-sentence {
    position: relative;
    padding-right: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
  }
  .mobile-detail-en {
    color: #f7fafc;
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 6px;
  }
  .mobile-detail-en .term-med {
    color: inherit;
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-color: rgba(183, 148, 244, 0.95);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    text-decoration-skip-ink: none;
    -webkit-text-decoration-skip: none;
  }
  .mobile-detail-en .word {
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    border-bottom: 0 !important;
    text-shadow: none !important;
    transform: none !important;
  }
  .mobile-detail-en .word.term-med,
  .mobile-detail-en .word.term-known {
    color: inherit;
    background: transparent !important;
    border-bottom: 0 !important;
    text-shadow: none !important;
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-color: rgba(183, 148, 244, 0.95);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    text-decoration-skip-ink: none;
    -webkit-text-decoration-skip: none;
  }
  .mobile-detail-en .word:hover {
    background: transparent !important;
    transform: none !important;
  }
  .mobile-detail-speak {
    position: absolute;
    right: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(183, 148, 244, 0.22);
    color: #efe9ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-detail-speak svg {
    width: 17px;
    height: 17px;
  }
  .mobile-detail-zh {
    color: #6b637d;
    font-size: 13px;
    line-height: 1.4;
  }
  .mobile-detail-vocab {
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 14px;
  }
  .mobile-detail-vocab-title {
    font-size: 12px;
    color: #b794f4;
    margin-bottom: 10px;
  }
  .mobile-detail-vocab-list {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: #8b949e;
    font-size: 14px;
  }
  .md-vocab-line {
    margin: 0 0 6px;
  }
  .sticky-action-container {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(5, 6, 10, 0.95), transparent);
    pointer-events: none;
    z-index: 9999;
  }
  .sticky-action-container.dual-actions {
    gap: 10px;
  }
  .sticky-action-container.dual-actions .complete-btn {
    width: calc(50% - 5px);
    max-width: none;
    min-width: 0;
    padding: 12px 12px;
    gap: 10px;
  }
  .sticky-action-container.dual-actions .btn-text {
    justify-content: center;
  }
  .sticky-action-container.dual-actions .btn-text .zh {
    margin-top: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.3px;
    opacity: 1;
  }
  .complete-btn {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 85%;
    max-width: 360px;
    min-height: 56px;
    padding: 12px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(30, 20, 40, 0.7), rgba(15, 15, 20, 0.8));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.5),
      0 0 18px rgba(183, 148, 244, 0.25);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
  }
  .complete-btn:active {
    transform: scale(0.96);
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.55),
      0 0 24px rgba(183, 148, 244, 0.45);
  }
  .complete-btn.is-complete {
    border-color: rgba(120, 239, 173, 0.45);
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.5),
      0 0 22px rgba(120, 239, 173, 0.26);
  }
  .complete-btn.is-favorited {
    border-color: rgba(255, 107, 136, 0.48);
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.5),
      0 0 22px rgba(255, 107, 136, 0.28);
  }
  .complete-btn:disabled {
    opacity: 0.9;
    cursor: default;
  }
  .icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .icon-circle svg {
    width: 18px;
    height: 18px;
    color: #b794f4;
    filter: drop-shadow(0 0 5px #b794f4);
  }
  .btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
  }
  .btn-text .en {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
  }
  .btn-text .zh {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.75;
  }
}

.mobile-mine-card {
  max-width: 380px;
}

.mobile-mine-card .btn {
  border: 1px solid rgba(183, 148, 244, 0.45) !important;
  background: rgba(183, 148, 244, 0.14) !important;
  color: #eddfff !important;
  box-shadow: 0 0 12px rgba(183, 148, 244, 0.2) !important;
}

.mobile-mine-card .btn:hover {
  border-color: rgba(183, 148, 244, 0.75) !important;
  background: rgba(183, 148, 244, 0.24) !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(183, 148, 244, 0.35) !important;
}

.mobile-mine-actions {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
    color: #f7fafc;
