/* 设计系统与基础布局（移动端优先，现代化美观设计） */

:root {
  /* 色板：统一映射到 tokens.css（design/tokens/*） */
  --color-bg: var(--clr-surface-base, #ffffff);
  --color-bg-alt: var(--clr-surface-inactive-fill, #f5f5f5);
  --color-fg: var(--clr-text-promotion-primary, #1c1c1c);
  --color-fg-light: var(--clr-text-catalog, #16110f);
  --color-muted: var(--clr-text-inactive-on-btn, #5c5c5c);
  --color-primary: var(--clr-brand-primary, #5C8A38);
  --color-primary-dark: var(--clr-brand-primary, #5C8A38);
  --color-accent: var(--clr-surface-nav-btn-highlight, #ff8a00);
  --color-accent-light: var(--clr-accent-label-separate-highlight, #ffc938);
  --color-danger: var(--clr-accent-red, #ef4444);
  --color-danger-dark: var(--clr-accent-notifier-stroke, #b73333);
  --color-border: var(--clr-surface-navbar-stroke, #e0e0e0);
  --color-border-light: var(--clr-surface-btn-grey-stroke, #f0f0f0);

  /* 排版与间距 */
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-8: 48px; --space-10: 64px;
  --container-w: 1200px;
  --btn-radius: 16px;
  
  /* 阴影 */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* { box-sizing: border-box; }
/* Chrome 会把偏小的字自动放大，微信不会。锁住后两边按钮比例一致。 */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* 浏览器在页顶会把下拉拿去刷新，头图就放大不了 */
  overscroll-behavior-y: none;
}
body { 
  margin: 0; 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--color-fg);
  line-height: 1.6;
  font-size: 16px;
  --btn-radius: var(--radius);
}

.text-placeholder {
  color: var(--color-muted);
  font-style: normal;
  font-size: 0.9rem;
}

.woocommerce-account .entry-title,
.woocommerce-account .woocommerce > h1 {
  display: none;
}

body[data-btn-style="pill"] {
  --btn-radius: 999px;
}

body[data-btn-style="rounded"] {
  --btn-radius: var(--radius);
}

body[data-btn-style="square"] {
  --btn-radius: 8px;
}

.container { 
  width: 100%; 
  max-width: var(--container-w); 
  margin: 0 auto; 
  padding: 0 var(--space-5);
}

/* 头部导航 - 更精致 */
.site-header { 
  position: sticky; 
  top: 0; 
  z-index: 50; 
  background: var(--clr-surface-base-96, rgba(255, 255, 255, 0.96));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) 0;
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.site-header .logo { 
  font-weight: 700; 
  font-size: 24px;
  letter-spacing: -0.5px;
  color: var(--color-primary) !important;
  text-decoration: none;
}

.nav { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  display: flex; 
  gap: var(--space-5);
  align-items: center;
}

.nav a {
  color: var(--color-fg);
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
}

.lang-flag.is-active {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.lang-switcher img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  object-fit: contain;
  background: #fff;
  padding: 2px;
}

.account-link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  color: var(--color-fg) !important;
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.account-link:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary) !important;
}

.account-link-inner {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.account-link-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.account-link-name {
  font-weight: 600;
}

@media (max-width: 640px) {
  .account-link-name {
    display: none;
  }
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: #fff !important;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.cart-link:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.menu-toggle { 
  display: none;
  align-items: center; 
  gap: 6px; 
  padding: 10px 12px; 
  border: 1px solid var(--color-border); 
  border-radius: var(--radius-sm); 
  background: #fff;
  cursor: pointer;
}

.mobile-nav { display: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav { display: block; }
}

/* Hero 区域 - 更吸引人 */
.hero { 
  padding: var(--space-10) 0; 
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  display: grid; 
  gap: var(--space-8); 
  align-items: center; 
}

.hero h1 { 
  font-size: clamp(32px, 6vw, 56px); 
  margin: 0 0 var(--space-4) 0;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-fg);
  letter-spacing: -1px;
}

.hero p { 
  color: var(--color-fg-light); 
  font-size: 18px; 
  line-height: 1.7;
  margin: 0 0 var(--space-6) 0;
}

.hero .cta { 
  display: flex; 
  gap: var(--space-4); 
  flex-wrap: wrap; 
}

/* 按钮 - 更现代 */
.btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce button,
.woocommerce input[type="submit"],
.woocommerce input[type="button"],
.woocommerce input[type="reset"],
.cart-link {
  padding: 14px 28px;
  border-radius: var(--btn-radius);
  border: none;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-align: center;
  line-height: 1.2;
  transition: all 0.2s;
  cursor: pointer;
  min-height: 48px;
}

.btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce button,
.woocommerce input[type="submit"],
.woocommerce input[type="button"],
.woocommerce input[type="reset"],
.cart-link {
  background: var(--color-primary) !important;
  color: #fff !important;
  box-shadow: var(--shadow);
}

.btn-primary {
  background: var(--color-primary) !important;
  color: #fff !important;
  border: none;
}

.woocommerce-account .woocommerce a.button,
.woocommerce-account .woocommerce button.button,
.woocommerce-account .woocommerce input.button {
  width: auto;
}

.btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn.secondary {
  background: #fff !important;
  color: var(--color-fg) !important;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-danger {
  background: var(--color-danger) !important;
  color: #fff !important;
  border: none;
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent !important;
  color: var(--color-primary) !important;
  border: 1px solid var(--color-primary);
  box-shadow: none;
}

.btn-ghost {
  background: transparent !important;
  color: var(--color-muted) !important;
  border: 1px dashed var(--color-border);
  box-shadow: none;
}

.btn.secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-bg-alt);
}

.btn-danger:hover {
  background: var(--color-danger-dark) !important;
  border-color: var(--color-danger-dark);
}

.btn-outline:hover,
.btn-ghost:hover {
  color: var(--color-primary-dark) !important;
  border-color: var(--color-primary-dark);
}

/* 网格布局 */
.grid { 
  display: grid; 
  gap: var(--space-6); 
  grid-template-columns: repeat(12, 1fr); 
}

.col-12 { grid-column: span 12; }
.col-6 { grid-column: span 6; }
@media (max-width: 900px) { .col-6 { grid-column: span 12; } }

/* 菜单页分类标题 */
.page-menu h2 { 
  margin-top: var(--space-10); 
  margin-bottom: var(--space-6); 
  font-size: 32px; 
  font-weight: 700; 
  color: var(--color-fg);
  padding-bottom: var(--space-3);
  border-bottom: 3px solid var(--color-primary) !important;
  position: relative;
}

.page-menu h2:first-of-type { margin-top: var(--space-8); }

/* WooCommerce 产品列表 - 更美观的网格 */
.woocommerce ul.products { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  display: grid; 
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  align-items: start; /* 确保商品卡片从顶部对齐 */
}

.woocommerce ul.products li.product { 
  margin-bottom: 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  min-height: 0; /* 避免网格项被拉伸，防止空白 */
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.woocommerce ul.products li.product img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: var(--space-4);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--color-fg);
}

.woocommerce ul.products li.product .price {
  padding: 0 var(--space-4) var(--space-4);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 20px;
}

.woocommerce ul.products li.product .button {
  margin: 0 var(--space-4) var(--space-4);
  width: calc(100% - var(--space-8));
  text-align: center;
}

/* 隐藏 "View cart" 链接（添加到购物车后显示的链接） */
.woocommerce ul.products li.product .added_to_cart,
.woocommerce .added_to_cart {
  display: none !important;
}

/* 商品卡片 */
.product-card { 
  border: 1px solid var(--color-border); 
  border-radius: var(--radius); 
  overflow: hidden; 
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.product-card .info { 
  padding: var(--space-4); 
  display: grid; 
  gap: var(--space-2); 
}

.price { 
  color: var(--color-accent); 
  font-weight: 700; 
  font-size: 20px;
}

/* WooCommerce 按钮样式统一（已在 .btn 中定义，这里可删除重复） */

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--color-primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow) !important;
}

/* 页脚 */
.site-footer { 
  padding: var(--space-8) 0; 
  border-top: 1px solid var(--color-border); 
  margin-top: var(--space-10);
  background: var(--color-bg-alt);
  text-align: center;
  color: var(--color-muted);
}

/* 购物车页面样式 */
.woocommerce-cart .cart {
  background: #fff;
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow);
}

/* 区域分隔 */
section {
  margin: var(--space-10) 0;
}

h1, h2, h3 {
  color: var(--color-fg);
  font-weight: 700;
  line-height: 1.3;
}

h2 {
  font-size: 32px;
  margin-bottom: var(--space-5);
}

p {
  color: var(--color-fg-light);
  line-height: 1.7;
}

/* 用户中心增强样式，统一商业级体验 */
.woocommerce-account .account-nav {
  display: none;
}

/* 独立退出按钮的旧样式移除，转由底部 card 呈现 */

.account-settings,
.woocommerce-account .account-dashboard,
.woocommerce-account .woocommerce-MyAccount-content {
  gap: var(--space-5);
}

.account-dashboard {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.account-welcome {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow);
}

.account-welcome-text {
  flex: 1;
  min-width: 220px;
}

.account-welcome-text h2 {
  margin: 0 0 var(--space-2);
  font-size: clamp(24px, 4vw, 32px);
  color: var(--color-primary);
}

.account-welcome-text p {
  margin: 0;
  color: var(--color-muted);
}

.account-welcome-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: var(--shadow);
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.stat-card {
  background: #fff;
  padding: var(--space-5);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-primary);
}

.stat-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-card-title {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

.stat-card-value-alt {
  font-size: 1.5rem;
  word-break: break-word;
}

.stat-card-subtitle {
  margin: var(--space-2) 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.recent-orders,
.no-orders {
  background: #fff;
  padding: var(--space-5);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.recent-orders h3 {
  margin-top: 0;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-3);
}

.recent-order-item {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: center;
  flex-wrap: wrap;
  padding: var(--space-3);
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
}

.recent-order-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.recent-order-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.recent-order-meta {
  text-align: right;
  min-width: 140px;
}

.recent-order-total {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-fg);
}

.recent-order-status,
.recent-order-date {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.account-actions-center {
  text-align: center;
  margin-top: var(--space-4);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-4);
}

.quick-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: var(--space-6) var(--space-5);
  min-height: 220px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: var(--radius);
  text-align: center;
  text-decoration: none;
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  gap: var(--space-3);
}

.quick-action-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  pointer-events: none;
}

.quick-action-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.order-action-section,
.account-action-section,
.savings-detail {
  margin-top: var(--space-5);
}

.order-action-section h3,
.account-action-section h3,
.savings-detail-header h3 {
  margin-bottom: var(--space-3);
}

.quick-action-icon {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.quick-action-title {
  font-weight: 600;
  color: inherit;
  font-size: 1.1rem;
  margin: 0;
}

.quick-action-desc {
  margin: var(--space-2) 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.coupon-center .list-toggle,
.savings-detail .list-toggle {
  margin-top: var(--space-4);
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  margin-right: var(--space-2);
  font-size: 1rem;
}

.account-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.account-action-card {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-4);
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-fg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.account-action-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.account-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.account-action-title {
  font-weight: 600;
  margin: 0 0 4px 0;
}

.account-action-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.coupon-center {
  background: #fff;
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow);
  margin-top: var(--space-5);
}

.coupon-center-header h3 {
  margin: 0;
}

.coupon-center-header p {
  margin-top: var(--space-2);
  color: var(--color-muted);
}

.coupon-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.coupon-list-hidden {
  display: none;
}

.coupon-list-hidden.is-visible {
  display: flex;
}

.coupon-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.coupon-card.active {
  border-color: var(--color-primary);
}

.coupon-card.inactive {
  opacity: 0.7;
}

.coupon-card-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.coupon-code {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.coupon-type {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.coupon-amount {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
}

.coupon-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 0.9rem;
  color: var(--color-muted);
}

.coupon-status {
  font-weight: 600;
  color: var(--color-primary);
}

.coupon-card.inactive .coupon-status {
  color: var(--color-muted);
}

.coupon-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--color-accent);
  color: #fff;
}

.coupon-badge.warning {
  background: #f97316;
}

.coupon-empty {
  text-align: center;
  padding: var(--space-4);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  margin-top: var(--space-4);
}

.coupon-empty .btn {
  margin-top: var(--space-3);
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}

.savings-detail {
  background: #fff;
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow);
}

.savings-detail-header p {
  margin-top: var(--space-2);
  color: var(--color-muted);
}

.savings-detail-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.savings-detail-list-hidden {
  display: none;
}

.savings-detail-list-hidden.is-visible {
  display: flex;
}

.savings-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-fg);
  border: 1px solid var(--color-border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.savings-detail-item:hover {
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.savings-detail-order {
  font-weight: 600;
}

.savings-detail-date {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.savings-detail-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.savings-empty {
  text-align: center;
  padding: var(--space-3);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  margin-top: var(--space-3);
  color: var(--color-muted);
}

/* 账户设置页隐藏概览卡片 */
.woocommerce-account .account-settings .account-profile-card {
  display: none;
}

/* 用户中心 - 底部退出按钮 */
.account-logout-inline {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-start;
}

.account-logout-inline .btn-logout {
  box-shadow: none;
  min-height: 44px;
}

.account-logout-inline .btn-logout:hover {
  transform: translateY(-2px);
}

.account-logout-note {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* 主题切换器 */
#theme-switcher {
  /* 临时隐藏：新 UI 施工期先保持界面干净（需要时再恢复） */
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: #fff;
  padding: var(--space-4);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.theme-switcher-title {
  font-weight: 600;
  margin-bottom: var(--space-3);
  font-size: 14px;
  color: var(--color-fg);
}

.theme-switcher-subtitle {
  font-size: 13px;
  color: var(--color-muted);
  margin: var(--space-4) 0 var(--space-2);
  font-weight: 600;
}

.theme-switcher-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
}

.theme-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.theme-btn.is-active {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button-style-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.button-style-btn {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: var(--color-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  transition: all 0.2s ease;
}

.button-style-btn span {
  font-size: 11px;
  color: var(--color-muted);
}

.button-style-btn.is-active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.account-profile-card {
  background: #fff;
  padding: var(--space-5);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.account-profile-info {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.account-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.account-profile-label {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
}

.account-profile-name {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-fg);
}

.account-profile-mail {
  margin: 4px 0 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

.account-profile-meta {
  font-size: 14px;
  color: var(--color-muted);
}

.account-form-section {
  background: #fff;
  padding: var(--space-5);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: var(--space-4);
}

.account-form-section h3 {
  margin-top: 0;
  font-size: 20px;
  margin-bottom: var(--space-4);
}

.account-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.account-form input {
  width: 100%;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: 15px;
}

.account-form label {
  font-weight: 600;
  display: block;
  margin-bottom: var(--space-2);
}

.account-form small {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
}

.account-submit {
  margin-top: var(--space-4);
}

@media (max-width: 600px) {
  .account-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .account-nav-list {
    flex-direction: column;
  }
  .account-profile-info {
    flex-direction: column;
    align-items: flex-start;
  }
}
