/* ============================================================
   苇舟AI — 全局样式表
   基于 mxstudy.top 设计系统，品牌色适配
   ============================================================ */

/* ----- CSS Reset ----- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ----- Design Tokens ----- */
:root {
  --primary-color: #7BA87B;
  --primary-hover: #5C8A5C;
  --primary-soft: #eef5ee;
  --primary-light: #e3f0e3;
  --secondary-color: #7BA87B;
  --accent-color: #7BA87B;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --background-light: #f6f7f9;
  --surface: #ffffff;
  --border-color: #e5e7eb;
  --white: #ffffff;
  --shadow-light: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-medium: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-heavy: 0 8px 24px rgba(15, 23, 42, 0.1);
  --border-radius: 8px;
  --transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  --nav-row-height: 60px;
  --max-width: 1200px;
}

/* ----- Base ----- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  color: var(--text-dark);
}

h1 { font-size: clamp(1.5rem, 2.8vw, 1.875rem); font-weight: 600; }
h2 { font-size: 1.5rem; font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--white);
  box-shadow: var(--shadow-medium);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dark);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--primary-soft);
  color: var(--primary-color);
}

.btn-sm {
  padding: 0.4rem 0.875rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

/* ----- Navigation ----- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-light);
  z-index: 1000;
  height: var(--nav-row-height);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  user-select: none;
  flex-shrink: 0;
}

.nav-brand i {
  font-size: 1.4rem;
}

.nav-brand:hover {
  color: var(--primary-hover);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background: var(--primary-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Desktop: auth buttons in top-right corner */
.nav-actions-desktop {
  margin-left: auto;
}

/* Mobile: auth buttons inside hamburger menu — hidden on desktop */
.nav-actions-mobile {
  display: none;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
  background: none;
  border: none;
  padding: 0.5rem;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--nav-row-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.5rem;
    overflow-y: auto;
    display: none;
    z-index: 999;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
  }

  /* Hide desktop auth buttons on mobile */
  .nav-actions-desktop {
    display: none;
  }

  /* Show auth buttons inside hamburger menu */
  .nav-actions-mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
  }

  .nav-actions-mobile .btn {
    width: 100%;
    justify-content: center;
  }

  .mobile-menu-btn {
    display: block;
  }
}

/* ----- Main Content ----- */
.main-content {
  margin-top: var(--nav-row-height);
  min-height: calc(100vh - var(--nav-row-height));
}

/* ----- Hero / Home Banner ----- */
.home-banner {
  background: var(--primary-color);
  padding: 48px 0 44px;
  color: var(--white);
}

.home-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.home-banner-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: center;
}

.home-banner-copy h1 {
  font-size: clamp(1.5rem, 2.8vw, 1.875rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.home-banner-kicker {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}

.home-banner-lead {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 520px;
}

.home-banner-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-banner-btns .btn {
  padding: 10px 22px;
  font-size: 14px;
}

.home-banner-btns .btn-primary {
  background: #fff;
  color: var(--primary-color);
  border-color: #fff;
}

.home-banner-btns .btn-primary:hover {
  background: #eef5ee;
  color: var(--primary-hover);
  border-color: #eef5ee;
}

.home-banner-btns .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

.home-banner-btns .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

/* Stats Bar */
.home-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.home-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 72px;
}

.home-stat strong {
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.home-stat span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

/* Quick Nav Cards */
.home-nav-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.home-nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.home-nav-card i {
  font-size: 20px;
  opacity: 0.95;
}

.home-nav-card:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
  color: #fff;
}

.home-nav-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.42);
  font-size: 14px;
}

.home-nav-card--featured i {
  font-size: 22px;
}

/* ----- Home Sections ----- */
.home-section {
  padding: 40px 0;
}

.home-section--alt {
  background: var(--surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.home-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.home-sec-head h2 {
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.home-sec-icon {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.home-sec-more {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.home-sec-more:hover {
  color: var(--primary-color);
}

.home-sec-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Home State (loading/empty) */
.home-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ----- Article Card (Home / Category) ----- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition), transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-medium);
  transform: translateY(-3px);
}

.article-card-body {
  padding: 18px 20px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
  width: fit-content;
}

.article-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-title a {
  color: var(--text-dark);
  text-decoration: none;
}

.article-card-title a:hover {
  color: var(--primary-color);
}

.article-card-desc {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.article-card-meta i {
  margin-right: 4px;
}

.article-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.article-card-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--background-light);
  color: var(--text-light);
  border-radius: 100px;
}

/* ----- Article Detail ----- */
.article-page {
  padding: 40px 0 60px;
}

.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-header {
  margin-bottom: 32px;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-breadcrumb a {
  color: var(--text-muted);
}

.article-breadcrumb a:hover {
  color: var(--primary-color);
}

.article-breadcrumb .sep {
  color: var(--border-color);
}

.article-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.article-meta i {
  margin-right: 4px;
}

.article-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.article-cat-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--primary-soft);
  color: var(--primary-color);
  text-decoration: none;
}

.article-cat-badge:hover {
  background: var(--primary-light);
}

/* Article Content */
.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.article-content h2 {
  font-size: 1.35rem;
  margin: 2em 0 0.8em;
  padding-bottom: 0.4em;
  border-bottom: 2px solid var(--border-color);
}

.article-content h3 {
  font-size: 1.15rem;
  margin: 1.5em 0 0.6em;
}

.article-content p {
  margin-bottom: 1.2em;
}

.article-content ul, .article-content ol {
  margin: 0 0 1.2em 1.5em;
}

.article-content li {
  margin-bottom: 0.4em;
}

.article-content blockquote {
  border-left: 4px solid var(--primary-color);
  background: var(--primary-soft);
  padding: 12px 20px;
  margin: 1.2em 0;
  border-radius: 0 8px 8px 0;
  color: var(--text-light);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 0.95rem;
}

.article-content th, .article-content td {
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  text-align: left;
}

.article-content th {
  background: var(--background-light);
  font-weight: 600;
}

.article-content img {
  border-radius: 8px;
  margin: 1.2em 0;
}

.article-content .related-posts {
  background: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 2em 0;
}

.article-content .related-posts h3 {
  margin-top: 0;
}

.article-content .related-posts ul {
  margin-bottom: 0;
}

/* Article Tags */
.article-tags-section {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.article-tags-section .tag-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-right: 8px;
}

.article-tag {
  display: inline-block;
  font-size: 12px;
  padding: 4px 12px;
  margin: 0 6px 6px 0;
  background: var(--background-light);
  color: var(--text-light);
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.article-tag:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: var(--primary-soft);
}

/* Article Share */
.article-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.article-share span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-share .share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--surface);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.article-share .share-btn:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* Related Articles */
.related-articles {
  margin-top: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--border-color);
}

.related-articles h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ----- Category Page ----- */
.category-page {
  padding: 32px 0 60px;
}

.category-header {
  margin-bottom: 28px;
}

.category-header h1 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.category-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 20px;
}

.filter-bar .filter-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  margin-right: 4px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 3px;
  background: var(--background-light);
  border-radius: 8px;
}

.filter-tab {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-light);
  transition: var(--transition);
  font-family: inherit;
}

.filter-tab:hover {
  color: var(--primary-color);
}

.filter-tab.active {
  background: var(--surface);
  color: var(--primary-color);
  font-weight: 600;
  box-shadow: var(--shadow-light);
}

.filter-search {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.filter-search input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
}

.filter-search input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(123, 168, 123, 0.1);
}

.filter-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
}

.pagination button {
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-dark);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.pagination button:hover:not(:disabled) {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.pagination button.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ----- Search Page ----- */
.search-page {
  padding: 32px 0 60px;
}

.search-header {
  margin-bottom: 28px;
}

.search-input-group {
  display: flex;
  gap: 10px;
  max-width: 600px;
}

.search-input-group input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.search-input-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(123, 168, 123, 0.1);
}

.search-highlight {
  background: #fef08a;
  padding: 1px 2px;
  border-radius: 2px;
}

.search-no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.search-no-results i {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

/* ----- CTA Strip ----- */
.home-cta-strip {
  background: linear-gradient(135deg, #1e3a5f 0%, var(--primary-color) 100%);
  padding: 40px 0;
  color: var(--white);
}

.home-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.home-cta-copy h2 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.home-cta-copy p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.home-cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.home-cta-actions .btn-primary {
  background: #fff;
  color: var(--primary-color);
  border-color: #fff;
}

.home-cta-actions .btn-primary:hover {
  background: #eef5ee;
}

.home-cta-actions .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.home-cta-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* ----- Shared Section Utilities (homepage + membership page) ----- */
.section { padding: 56px 16px; }
@media (min-width: 768px) { .section { padding: 72px 32px; } }
.section-inner { max-width: 1160px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 40px; }
@media (min-width: 768px) { .section-header { margin-bottom: 52px; } }
.section-header h2 { font-size: 1.5rem; font-weight: 600; color: #1f2937; margin-bottom: 12px; }
@media (min-width: 768px) { .section-header h2 { font-size: 1.75rem; } }
.section-header p { font-size: 0.95rem; color: #6b7280; max-width: 520px; margin: 0 auto; }
.bg-white { background: #fff; }
.bg-light { background: #f6f7f9; }

/* ----- Membership Section (replaces search) ----- */
.membership-section {
  padding: 56px 0 48px;
  background: linear-gradient(180deg, #eef5ee 0%, #f6f7f9 100%);
}

.membership-header {
  text-align: center;
  margin-bottom: 36px;
}

.membership-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #7BA87B;
  background: #e3f0e3;
  padding: 5px 14px;
  border-radius: 100px;
  margin: 0 0 14px;
}

.membership-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.membership-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

.membership-desc strong {
  color: #5C8A5C;
}

/* Bean Info Bar */
.membership-bean-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px 24px;
  margin-bottom: 36px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-light);
}

.bean-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: center;
}

.bean-icon {
  font-size: 1.1rem;
}

.bean-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bean-label {
  font-size: 12px;
  color: var(--text-muted);
}

.bean-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.bean-icon-box {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bean-icon-box.blue  { background: var(--primary-soft); color: var(--primary-color); }
.bean-icon-box.amber { background: #fffbeb; color: #f59e0b; }
.bean-icon-box.gray  { background: #f3f4f6; color: #6b7280; }

.bean-divider {
  width: 1px;
  height: 36px;
  background: var(--border-color);
  margin: 0 16px;
}

/* Tier Cards */
.membership-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.tier-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-heavy);
}

.tier-card--featured {
  background: linear-gradient(135deg, #7BA87B, #5C8A5C);
  border-color: #7BA87B;
  border-width: 2px;
  transform: scale(1.03);
  box-shadow: 0 8px 28px rgba(123, 168, 123, 0.3);
}

.tier-card--featured:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 12px 36px rgba(123, 168, 123, 0.4);
}

.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #f59e0b;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.tier-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.tier-card--featured .tier-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.tier-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.tier-card--featured .tier-name {
  color: #fff;
}

.tier-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 6px;
}

.tier-price-symbol {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

.tier-card--featured .tier-price-symbol {
  color: rgba(255, 255, 255, 0.7);
}

.tier-price-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  letter-spacing: -0.03em;
}

.tier-card--featured .tier-price-num {
  color: #fff;
}

.tier-price-unit {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tier-card--featured .tier-price-unit {
  color: rgba(255, 255, 255, 0.7);
}

.tier-card--featured .tier-bean,
.tier-card--featured .tier-beans,
.tier-card--featured .tier-price-month {
  color: rgba(255, 255, 255, 0.8);
}

.tier-card--featured .tier-features li {
  color: rgba(255, 255, 255, 0.85);
}

.tier-card--featured .tier-features li i {
  color: rgba(255, 255, 255, 0.7);
}

.tier-bean,
.tier-beans {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 2px;
  color: var(--text-light);
}

.tier-price-month {
  font-size: 0.8rem;
  margin: 0 0 18px;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tier-features li {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.tier-features li i {
  font-size: 0.75rem;
  flex-shrink: 0;
}

.tier-cta {
  width: 100%;
  padding: 10px 20px;
  border: 2px solid;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  background: transparent;
  transition: var(--transition);
  text-align: center;
}

.tier-cta:hover {
  opacity: 0.85;
}

.tier-cta--featured {
  width: 100%;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  background: #fff;
  color: #7BA87B;
  border: 2px solid #fff;
  transition: var(--transition);
  text-align: center;
}

.tier-cta--featured:hover {
  background: #FAF6F0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

/* Tier CTA variants (for homepage membership section) */
.tier-cta-solid {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}
.tier-cta-solid:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  opacity: 1;
}
.tier-cta-outline {
  background: #fff;
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.tier-cta-outline:hover {
  background: var(--primary-soft);
  opacity: 1;
}
.tier-cta-accent {
  color: #f59e0b;
  border-color: #f59e0b;
  background: #fff;
}
.tier-cta-accent:hover {
  background: #fffbeb;
  opacity: 1;
}

/* Recharge Section */
.membership-recharge {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 28px;
}

.recharge-head {
  text-align: center;
  margin-bottom: 22px;
}

.recharge-head h3 {
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 6px;
}

.recharge-head h3 i {
  color: #f59e0b;
}

.recharge-head p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.recharge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.recharge-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 12px;
  border: 2px solid var(--border-color);
  border-radius: 14px;
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.recharge-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Featured recharge card — green gradient (used on homepage) */
.recharge-card.featured {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  border: none;
  color: #fff;
}
.recharge-card.featured:hover {
  box-shadow: 0 8px 20px rgba(26,86,219,0.3);
}
.recharge-card.featured .recharge-name {
  color: rgba(255,255,255,0.85);
}
.recharge-card.featured .recharge-beans,
.recharge-card.featured .recharge-price {
  color: #fff;
}

.recharge-card--featured {
  border-color: #7BA87B;
  color: #fff;
}

.recharge-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #f59e0b;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

.recharge-name {
  font-size: 0.85rem;
  font-weight: 500;
}

.recharge-beans {
  font-size: 1.1rem;
  font-weight: 700;
}

.recharge-price {
  font-size: 1.4rem;
  font-weight: 800;
}

.recharge-price::before {
  content: '¥';
  font-size: 0.9rem;
  font-weight: 500;
}

/* Trust Badges */
.membership-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding-top: 8px;
}

.trust-item {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-item i {
  color: #7BA87B;
  font-size: 0.85rem;
}

/* Responsive - Membership */
@media (max-width: 960px) {
  .membership-tiers {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .tier-card--featured {
    transform: scale(1);
  }

  .tier-card--featured:hover {
    transform: translateY(-4px);
  }

  .recharge-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .membership-section {
    padding: 40px 0 32px;
  }

  .membership-bean-bar {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .bean-divider {
    width: 80%;
    height: 1px;
    margin: 0;
  }

  .bean-item {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .recharge-grid {
    grid-template-columns: 1fr 1fr;
  }

  .membership-trust {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

/* ----- Referral Banner ----- */
.home-referral-banner {
  background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%);
  padding: 20px 0;
}

.home-referral-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.home-referral-icon {
  font-size: 1.5rem;
  color: #d97706;
  flex-shrink: 0;
}

.home-referral-copy {
  flex: 1;
}

.home-referral-copy strong {
  display: block;
  color: #92400e;
  margin-bottom: 2px;
}

.home-referral-copy span {
  font-size: 0.875rem;
  color: #b45309;
}

/* ----- Footer ----- */
.footer {
  background: var(--text-dark);
  color: #bdc3c7;
  padding: 3rem 0 1rem;
  margin-top: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.footer-section p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-section ul li a {
  color: #bdc3c7;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--white);
}

.footer-section ul li i {
  width: 20px;
  margin-right: 6px;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  text-align: center;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom p {
  margin-bottom: 4px;
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--white);
}

.footer-tagline {
  font-style: italic;
  color: #9ca3af;
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ----- Loading & Empty State ----- */
.loading-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
}

.empty-state h3 {
  color: var(--text-light);
  margin-bottom: 8px;
}

/* ----- Error Page ----- */
.error-page {
  text-align: center;
  padding: 80px 20px;
}

.error-page h1 {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: 0;
}

.error-page h2 {
  margin-bottom: 16px;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ----- Scroll to Top ----- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-medium);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* ----- Toast / Message ----- */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-heavy);
  animation: slideInRight 0.3s ease;
  max-width: 400px;
}

.toast-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.toast-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.toast-info {
  background: #e3f0e3;
  color: #2f6b2f;
  border: 1px solid #cfe6cf;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .home-banner-inner {
    grid-template-columns: 1fr;
  }

  .home-nav-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .article-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* nav-actions are visible inside the hamburger menu (see first @media block) */

  .home-nav-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-banner {
    padding: 32px 0;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 560px) {
  .article-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .home-banner-btns {
    flex-direction: column;
  }

  .home-banner-btns .btn {
    width: 100%;
    justify-content: center;
  }

  .home-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .home-cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .home-referral-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .article-share {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ----- Utility ----- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== 导航栏用户下拉菜单 ===== */
.nav-user { position: relative; }
.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.nav-user-name {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.85rem;
}
/* 会员标识 — 全网统一颜色 */
.nav-membership-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
  flex-shrink: 0;
}
.nav-membership-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 1000;
}
.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 0.88rem;
  color: #4b5563;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s;
}
.dropdown-menu a:hover {
  background: #f0f6f0;
  color: #7BA87B;
}
.dropdown-menu a i {
  width: 18px;
  text-align: center;
  color: #7BA87B;
}
.dropdown-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 4px 0;
}

/* ===== 认证弹窗 ===== */
.auth-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
  padding: 20px;
}
.auth-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 12px;
}
.auth-modal-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}
.auth-modal-close:hover { color: #4b5563; }
.auth-tabs {
  display: flex;
  gap: 4px;
  background: #f3f4f6;
  padding: 4px;
  border-radius: 12px;
  margin: 0 24px 16px;
}
.auth-tab {
  flex: 1;
  padding: 9px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  border-radius: 9px;
  transition: all 0.2s;
}
.auth-tab.active {
  background: #fff;
  color: #7BA87B;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.auth-body { padding: 0 24px 24px; }
.auth-subtitle {
  font-size: 0.82rem;
  color: #9ca3af;
  line-height: 1.6;
  margin: 0 0 16px;
}
.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.auth-field { margin-bottom: 14px; }
.auth-field label {
  display: block;
  font-size: 0.82rem;
  color: #4b5563;
  margin-bottom: 6px;
  font-weight: 500;
}
.auth-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
  background: #fafafa;
}
.auth-field input:focus {
  border-color: #7BA87B;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}
.auth-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #7BA87B, #5C8A5C);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-submit:hover:not(:disabled) {
  box-shadow: 0 4px 12px rgba(26,86,219,0.3);
}
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-switch-tip {
  text-align: center;
  margin-top: 14px;
  font-size: 0.88rem;
  color: #6b7280;
}
.auth-switch-tip a {
  color: #7BA87B;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.auth-divider {
  text-align: center;
  margin: 18px 0 14px;
  position: relative;
  color: #9ca3af;
  font-size: 0.78rem;
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e7eb;
}
.auth-divider span {
  background: #fff;
  padding: 0 12px;
  position: relative;
}
.auth-trust {
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 0;
}

/* ===== 移动端导航适配 ===== */
@media (max-width: 768px) {
  .nav-user-name { display: none; }
  .nav-actions .btn-sm { padding: 6px 10px; font-size: 0.8rem; }
}

/* ============================================================
   用户中心 (user-center.html) — 与首页统一设计体系
   ============================================================ */

/* ---- Hero / Profile ---- */
.uc-hero {
  padding: 40px 16px 20px;
  background: linear-gradient(160deg, var(--primary-soft) 0%, var(--primary-light) 40%, var(--background-light) 100%);
}
@media (min-width: 768px) {
  .uc-hero { padding: 56px 32px 28px; }
}

.uc-profile-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-color);
}

.uc-profile {
  display: flex;
  align-items: center;
  gap: 20px;
}
@media (max-width: 600px) {
  .uc-profile { flex-direction: column; text-align: center; }
}

.uc-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .uc-avatar { width: 88px; height: 88px; font-size: 2rem; }
}

.uc-profile-info { flex: 1; min-width: 0; }
.uc-profile-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 6px;
}
@media (min-width: 768px) {
  .uc-profile-name { font-size: 1.375rem; }
}
.uc-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}
.uc-profile-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.uc-profile-meta i { font-size: 0.75rem; opacity: 0.7; }

/* ---- Section ---- */
.uc-section { padding: 32px 16px; }
@media (min-width: 768px) { .uc-section { padding: 40px 32px; } }
.uc-section--alt { background: var(--background-light); }

/* ---- Cards ---- */
.uc-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1160px;
  margin: 0 auto;
}
@media (max-width: 700px) {
  .uc-overview-grid { grid-template-columns: 1fr; }
}

.uc-card {
  max-width: 1160px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  overflow: hidden;
}
.uc-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-color);
}
.uc-card-header i { font-size: 1.1rem; color: var(--primary-color); }
.uc-card-header h3 { font-size: 1rem; font-weight: 600; color: var(--text-dark); margin: 0; }
.uc-card-subtitle { font-size: 0.8rem; color: var(--text-muted); margin-left: auto; }
.uc-card-body { padding: 20px 24px; }
.uc-card-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ---- Empty State ---- */
.uc-empty-state {
  text-align: center;
  padding: 28px 16px;
}
.uc-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.uc-empty-state h4 { font-size: 1rem; color: var(--text-light); margin: 0 0 6px; font-weight: 600; }
.uc-empty-state p  { font-size: 0.875rem; color: var(--text-muted); margin: 0 0 4px; }

/* ---- Badges / Status ---- */
.uc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.uc-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.uc-status {
  font-size: 0.875rem;
  font-weight: 500;
}
.uc-status--active   { color: #16a34a; }
.uc-status--expired  { color: #dc2626; }
.uc-status--inactive { color: var(--text-muted); }
.uc-text-danger  { color: #dc2626 !important; }
.uc-text-warning { color: #d97706 !important; }
.uc-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 4px;
}
.uc-tag-danger  { background: #fef2f2; color: #dc2626; }
.uc-tag-warning { background: #fffbeb; color: #d97706; }
.uc-tag-info    { background: var(--primary-soft); color: var(--primary-color); }

/* ---- Membership Detail ---- */
.uc-membership-detail { display: flex; gap: 24px; flex-wrap: wrap; }
.uc-membership-main { min-width: 160px; }
.uc-membership-level { margin-bottom: 8px; }
.uc-membership-plan {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.uc-membership-status-line { margin-bottom: 8px; }

.uc-membership-meta {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
@media (max-width: 500px) {
  .uc-membership-meta { grid-template-columns: 1fr; }
}
.uc-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.uc-meta-label { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.02em; }
.uc-meta-value { font-size: 0.875rem; color: var(--text-dark); font-weight: 500; }

/* ---- Bean Card ---- */
.uc-bean-balance {
  text-align: center;
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}
.uc-bean-total {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.uc-bean-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.1;
}
.uc-bean-unit {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-color);
}
.uc-bean-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 4px 0 0;
}

.uc-bean-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.uc-bean-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.uc-bean-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.uc-bean-item-label { display: block; font-size: 0.8125rem; color: var(--text-light); }
.uc-bean-item-val   { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text-dark); }

/* ---- Usage Stats ---- */
.uc-usage-summary {
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: var(--text-light);
}
.uc-usage-summary strong { color: var(--text-dark); }

.uc-usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.uc-usage-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: var(--transition);
}
.uc-usage-card:hover {
  box-shadow: var(--shadow-light);
  border-color: var(--primary-light);
  background: var(--primary-soft);
}

.uc-usage-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.uc-usage-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.uc-usage-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
}
.uc-usage-stat {
  font-size: 0.8125rem;
  color: var(--text-light);
}
.uc-usage-stat strong { color: var(--text-dark); }
.uc-usage-last {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---- Recharge Table ---- */
.uc-recharge-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.uc-recharge-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.uc-recharge-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--background-light);
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}
.uc-recharge-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-light);
  white-space: nowrap;
}
.uc-recharge-table tbody tr:hover { background: var(--primary-soft); }

/* ---- Quick App Grid ---- */
.uc-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}
.uc-app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
.uc-app-item:hover {
  background: var(--primary-soft);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-light);
}
.uc-logout-btn {
  background: var(--surface);
  border: 1px solid #fecaca;
}
.uc-logout-btn:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}
.uc-app-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.uc-app-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-light);
  text-align: center;
}

/* ---- Profile Loading State ---- */
.uc-profile-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ============================================================
   Print */
@media print {
  .navbar, .footer, .scroll-top, .site-dock,
  .article-share, .home-cta-strip, .home-referral-banner {
    display: none !important;
  }

  .main-content {
    margin-top: 0;
  }

  .article-container {
    max-width: 100%;
  }
}
