/* ============================================================
   大陶匠 · 全局核心样式库 (Global CSS)
   版本: 1.0
   策略: 移动优先 (Mobile First)
   说明: 通用组件样式 + 响应式增强
   ============================================================ */

/* ===== 1. CSS 变量 (设计令牌) ===== */
:root {
  --color-primary: #8B4513;
  --color-primary-dark: #6d360f;
  --color-primary-light: #A0522D;
  --color-bg: #f5f0e8;
  --color-text: #3d3d3d;
  --color-text-light: #666;
  --color-text-muted: #999;
  --color-white: #fff;
  --color-border: #ddd;
  --color-border-light: #f0f0f0;
  --color-success: #2e7d32;
  --color-success-bg: #e8f5e9;
  --color-warning: #e65100;
  --color-warning-bg: #fff3e0;
  --color-danger: #c62828;
  --color-danger-bg: #ffebee;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-xl: 0 8px 30px rgba(0,0,0,0.10);
  --shadow-2xl: 0 20px 60px rgba(0,0,0,0.20);
  --breakpoint-sm: 480px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1200px;
}

/* ===== 2. 基础重置 ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html { font-size: 16px; -webkit-text-size-adjust: 100%; width: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
input, textarea, select {
  user-select: auto;
  font-family: inherit;
}

/* ===== 3. 图片与媒体 ===== */
img, video, canvas { max-width: 100%; height: auto; display: block; }

/* ===== 4. 触控优化 ===== */
button, .btn, a[role="button"], .clickable,
input[type="button"], input[type="submit"],
input[type="file"]::file-selector-button, [onclick] {
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  touch-action: manipulation;
}

/* ===== 5. 通用工具 ===== */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-16 { margin-top: var(--space-md); }
.mb-16 { margin-bottom: var(--space-md); }
.flex { display: flex; }

/* ============================================================
   6. 导航栏
   ============================================================ */
.nav {
  background: var(--color-white);
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nav-left .brand {
  font-size: var(--font-size-md);
  font-weight: 500;
  color: #5d4037;
  letter-spacing: 2px;
}
.nav-left a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  padding: 6px 10px;
  border-radius: var(--radius-full);
  transition: all 0.3s;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.nav-left a:hover,
.nav-left a.active {
  background: var(--color-primary);
  color: var(--color-white);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-sm);
  flex-wrap: wrap;
}
.nav-right .user-name { color: #5d4037; font-weight: 500; }
.nav-right .tier-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  background: var(--color-warning-bg);
  color: var(--color-warning);
}
.nav-right .logout-btn {
  padding: 4px 14px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--font-size-xs);
  transition: all 0.3s;
  min-height: 32px;
}
.nav-right .logout-btn:hover { background: var(--color-bg); }
.nav-right .auth-btn {
  padding: 6px 14px;
  border: 1px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: var(--font-size-sm);
  transition: all 0.3s;
  min-height: 36px;
}
.nav-right .auth-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
.nav-right .auth-btn.primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.nav-right .auth-btn.primary:hover { background: var(--color-primary-dark); }
.nav-right a[href="/user.html"] {
  color: var(--color-primary);
  text-decoration: none;
  font-size: var(--font-size-sm);
}

@media (min-width: 768px) {
  .nav { padding: 12px 20px; }
  .nav-left .brand { font-size: var(--font-size-lg); }
  .nav-right .auth-btn { padding: 6px 18px; font-size: var(--font-size-sm); }
}
@media (max-width: 767px) {
  .nav { padding: 10px 12px; gap: 6px; }
  .nav-left { gap: 6px; }
  .nav-left .brand { font-size: 17px; letter-spacing: 1px; }
  .nav-left a { font-size: 14px; padding: 4px 10px; min-height: 36px; }
  .nav-right { font-size: 13px; gap: 6px; }
  .nav-right .user-name { font-size: 13px; }
  .nav-right .auth-btn { font-size: 13px; padding: 4px 12px; min-height: 36px; }
  .nav-right .tier-badge { display: none; }
}

/* ============================================================
   7. 按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  min-height: 44px;
  font-family: inherit;
  line-height: 1.2;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--color-primary); color: var(--color-white); }
.btn-primary:hover:not(:disabled) { background: var(--color-primary-dark); }
.btn-danger { background: var(--color-danger); color: var(--color-white); }
.btn-danger:hover:not(:disabled) { background: #b71c1c; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover:not(:disabled) {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover:not(:disabled) { background: var(--color-bg); }
.btn-sm {
  padding: 6px 12px;
  font-size: var(--font-size-xs);
  min-height: 36px;
}
@media (min-width: 768px) {
  .btn-sm { min-height: 32px; padding: 6px 14px; }
}

/* ============================================================
   8. 卡片
   ============================================================ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-md);
}
.card-title {
  font-size: var(--font-size-md);
  color: #5d4037;
  margin-bottom: var(--space-md);
  font-weight: 500;
}
@media (min-width: 768px) {
  .card { padding: 24px; border-radius: var(--radius-lg); }
}

/* ============================================================
   9. 表格
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 0 4px;
}
.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
  white-space: nowrap;
}
.table-wrapper th,
.table-wrapper td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: middle;
}
.table-wrapper th {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: var(--font-size-xs);
  letter-spacing: 0.3px;
}
.table-wrapper tr:hover { background: #fafafa; }
.table-wrapper tr.clickable { cursor: pointer; }
@media (min-width: 768px) {
  .table-wrapper th,
  .table-wrapper td { padding: 12px; }
}

/* ============================================================
   10. 标签
   ============================================================ */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  white-space: nowrap;
}
.tag-public { background: var(--color-success-bg); color: var(--color-success); }
.tag-private { background: var(--color-danger-bg); color: var(--color-danger); }
.tag-system { background: var(--color-warning-bg); color: var(--color-warning); }
.tag-user { background: var(--color-success-bg); color: var(--color-success); }
.tag-admin { background: var(--color-danger-bg); color: var(--color-danger); }

/* ============================================================
   11. 模态框
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 16px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
  position: relative;
}
.modal .close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal .close:hover { color: var(--color-text); }
.modal h3 {
  font-size: var(--font-size-xl);
  color: #5d4037;
  margin-bottom: var(--space-md);
  font-weight: 400;
}
.modal .form-group { margin-bottom: var(--space-md); }
.modal .form-group label {
  display: block;
  margin-bottom: 4px;
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}
.modal .form-group input,
.modal .form-group select,
.modal .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  background: #fafafa;
  outline: none;
  transition: border-color 0.3s;
  font-family: inherit;
  min-height: 44px;
}
.modal .form-group input:focus,
.modal .form-group select:focus,
.modal .form-group textarea:focus {
  border-color: var(--color-primary);
  background: var(--color-white);
}
.modal .form-group textarea { min-height: 60px; resize: vertical; }
.modal .form-row { display: flex; gap: 12px; }
.modal .form-row .form-group { flex: 1; }
.modal .btn-submit {
  width: 100%;
  min-height: 44px;
  padding: 12px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-md);
  cursor: pointer;
  transition: background 0.3s;
  font-family: inherit;
}
.modal .btn-submit:hover:not(:disabled) { background: var(--color-primary-dark); }
.modal .btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.modal .btn-secondary {
  width: 100%;
  min-height: 44px;
  padding: 12px;
  background: transparent;
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-md);
  cursor: pointer;
  transition: all 0.3s;
  margin-top: var(--space-sm);
  font-family: inherit;
}
.modal .btn-secondary:hover { background: #f5f5f5; }
.modal .error-msg {
  color: var(--color-danger);
  font-size: var(--font-size-sm);
  margin-top: -4px;
  margin-bottom: var(--space-sm);
  display: none;
}
.modal .error-msg.visible { display: block; }
@media (min-width: 768px) { .modal { padding: 32px; } }
@media (max-width: 480px) {
  .modal { padding: 20px 16px; }
  .modal h3 { font-size: var(--font-size-lg); }
  .modal .form-row { flex-direction: column; gap: 0; }
}
body.modal-open { overflow: hidden; }


/* ============================================================
   13. Toast 提示
   ============================================================ */

/* ============================================================
   14. 分页
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: var(--space-lg);
  flex-wrap: wrap;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-light);
  user-select: none;
}
.pagination button {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all 0.3s;
  color: var(--color-text-light);
  font-family: inherit;
  min-width: 36px;
  min-height: 36px;
}
.pagination button:hover:not(:disabled) {
  background: var(--color-bg);
  border-color: #bbb;
}
.pagination button.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination .info {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0 8px;
}
@media (min-width: 768px) {
  .pagination { gap: 6px; user-select: none; }
  .pagination button { padding: 8px 16px; min-width: 40px; min-height: 40px; }
}

/* ============================================================
   15. 状态栏
   ============================================================ */
.status-bar {
  background: var(--color-white);
  padding: 12px 16px;
  margin: var(--space-md) auto var(--space-lg);
  max-width: 800px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  font-size: var(--font-size-sm);
}
.status-bar .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}
.status-bar .dot.online { background: #4caf50; }
.status-bar .dot.offline { background: var(--color-danger); }
.status-bar .status-item {
  display: inline-block;
  margin: 0 8px;
  color: var(--color-text-light);
}
.status-bar .status-item .label { color: var(--color-text-muted); }
.status-bar .status-item .value.online {
  color: #4caf50;
  font-weight: 500;
}
.status-bar .status-item .value.offline {
  color: var(--color-danger);
  font-weight: 500;
}
.status-bar .divider { color: #e0e0e0; }
@media (max-width: 480px) {
  .status-bar { font-size: var(--font-size-xs); padding: 10px 12px; }
  .status-bar .status-item { margin: 0 4px; }
}

/* ============================================================
   16. 页面头部
   ============================================================ */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: 10px;
}
.page-header h1 {
  font-size: var(--font-size-xl);
  color: #5d4037;
  font-weight: 400;
}
@media (min-width: 768px) {
  .page-header h1 { font-size: var(--font-size-2xl); }
}

/* ============================================================
   17. 空状态
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-muted);
}
.empty-state .icon {
  font-size: 48px;
  display: block;
  margin-bottom: var(--space-sm);
}
.empty-state p { font-size: var(--font-size-sm); }

/* ============================================================
   18. 操作按钮组
   ============================================================ */
.actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.actions .btn-sm {
  min-height: 32px;
  padding: 4px 10px;
  font-size: var(--font-size-xs);
}
@media (min-width: 768px) {
  .actions .btn-sm {
    min-height: 36px;
    padding: 6px 14px;
    font-size: var(--font-size-sm);
  }
}

/* ============================================================
   19. 缩略图
   ============================================================ */
.thumb-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #f5f5f5;
}
.thumb-placeholder {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  flex-shrink: 0;
}

/* ============================================================
   20. 预览图片
   ============================================================ */
.preview-img {
  max-width: 120px;
  margin-top: var(--space-sm);
  border-radius: var(--radius-sm);
}

/* ============================================================
   21. 筛选栏
   ============================================================ */
.filter-bar {
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-bar label {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-bar select,
.filter-bar input[type="text"],
.filter-bar input[type="search"] {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #faf8f5;
  outline: none;
  font-family: inherit;
  color: var(--color-text);
}
.filter-bar select:focus,
.filter-bar input[type="text"]:focus { border-color: var(--color-primary); }
.filter-bar input[type="text"] { width: 200px; max-width: 100%; }
.filter-bar .result-count {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-left: auto;
}
/* 每页条数选择器：与搜索框同高 38px，右侧自带下拉箭头 */
.per-page-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: 38px;
  box-sizing: border-box;
  padding: 0 28px 0 10px;
  font-size: 13px;
  border: 1px solid #e0d5c5;
  border-radius: 8px;
  background-color: #fff;
  color: #3d2c1e;
  flex: 0 0 auto;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238B7355' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  outline: none;
}
.per-page-select:focus {
  border-color: #8B4513;
}
@media (max-width: 767px) {
  .filter-bar { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  .filter-bar .search-wrap { flex: 1 1 auto; min-width: 0; order: 1; }
  .filter-bar .per-page-select { order: 2; }
  .filter-bar .result-count { flex: 1 1 100%; order: 3; margin-left: 0; text-align: center; }
}

/* ============================================================
   22-23. 容器
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}
@media (min-width: 768px) { .container { padding: 30px 20px; } }
@media (min-width: 480px) { .container { padding: 20px 16px; } }
@media (min-width: 1024px) { .container { padding: 40px 20px; } }
@media (min-width: 1200px) { .container { padding: 40px 30px; } }

/* ============================================================
   24. 工具按钮行
   ============================================================ */
.input-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-light);
  margin-top: 4px;
}
.input-actions .btn {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  font-size: var(--font-size-sm);
  font-weight: 500;
}
.input-actions .btn-sm {
  padding: 6px 12px;
  font-size: var(--font-size-xs);
  min-height: 32px;
}

/* ============================================================
   25. 原料配比行
   ============================================================ */
.ingredient-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  background: #f5f5f5;
  border-radius: 6px;
  margin-bottom: 6px;
}
.ingredient-row .del {
  color: var(--color-danger);
  cursor: pointer;
  font-size: 18px;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   26. 分页 - 移动端优化
   ============================================================ */
@media (max-width: 480px) {
  .pagination .page-first,
  .pagination .page-last { display: none !important; }
  .pagination .info { margin: 0 4px; font-size: 12px; }
  .pagination button {
    padding: 4px 8px;
    font-size: 12px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 6px;
  }
  .pagination { gap: 3px; padding-top: 12px; user-select: none; }
}

/* ============================================================
   27. 滚动条美化
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f5f0e8; border-radius: 3px; }
::-webkit-scrollbar-thumb { background: #c9b99a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #8B4513; }

/* ============================================================
   28. 键盘导航焦点样式
   ============================================================ */
:focus-visible {
  outline: 2px solid #8B4513;
  outline-offset: 2px;
}

/* ============================================================
   30. 汉堡菜单与移动端侧边导航（全局）
   ============================================================ */
.hamburger-wrap {
  display: none;
  align-items: center;
  flex-shrink: 0;
}
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  min-height: 40px;
  min-width: 40px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #5d4037;
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 240;
  opacity: 0;
  transition: opacity .3s;
}
.menu-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 340px;
  max-width: 70vw;
  background: #3e2723;
  color: rgba(255, 255, 255, 0.8);
  z-index: 300;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .menu-header {
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.mobile-menu .menu-header .logo {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 4px;
  color: #fff;
}
.mobile-menu .menu-header .close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 24px;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu .menu-header .close-btn:hover { color: #fff; }
.mobile-menu .menu-item {
  padding: 14px 24px;
  cursor: pointer;
  transition: all .2s;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  border-left: 3px solid transparent;
  text-decoration: none;
}
.mobile-menu .menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.mobile-menu .menu-item.active {
  color: #fff;
  background: #8B4513;
  border-left-color: #fff;
}

@media (max-width: 767px) {
  .hamburger-wrap { display: flex; }
  .nav .nav-links { display: none !important; }
  .nav-left .brand { font-size: 18px; }
  .nav-right .user-avatar { width: 32px; height: 32px; }
  .nav-right .user-name {
    font-size: 13px;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-right .logout-btn {
    font-size: 12px;
    padding: 4px 12px;
    min-height: 32px;
  }
  .nav-right .auth-btn {
    font-size: 13px;
    padding: 4px 10px;
    min-height: 36px;
  }
  .nav-right .tier-badge { display: none; }
}
@media (min-width: 768px) {
  .hamburger-wrap { display: none !important; }
  .menu-overlay { display: none !important; }
  .mobile-menu { display: none !important; }
  .nav .nav-links { display: flex !important; }
}

/* ============================================================
   31. 评论区样式修复（精简合并）
   ============================================================ */

/* 作者标签（统一橙色） */
.author-badge,
.comment-item .comment-user-row .user-info .name .author-badge,
.comment-item .user-row .info .author-badge {
  display: inline-block;
  padding: 0 8px;
  background: #fff3e0 !important;
  color: #e65100 !important;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
}

/* 用户名和被回复昵称颜色（黑灰色） */
.comment-item .user-row .info .name,
.comment-item .comment-user-row .user-info .name {
  color: #555 !important;
}
.comment-item .user-row .reply-prefix .target-name {
  color: #555 !important;
}

/* ============================================================
   大陶匠 V2 导航系统 (顶部+底部Tab+汉堡菜单)
   ============================================================ */

/* 页面内容区底部留白（给底部Tab） */
.tj-page-wrap {
  padding-bottom: 70px;
  min-height: 100vh;
  box-sizing: border-box;
}

/* ===== 顶部导航 ===== */
.tj-top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  width: 100%;
  max-width: 100%;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid #f0ede8;
  box-sizing: border-box;
  overflow: hidden;
}
.tj-top-nav .tj-hamburger-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #5d4037;
  cursor: pointer;
  flex-shrink: 0;
  border: none;
  background: none;
  padding: 0;
}


.tj-top-nav .tj-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #5d4037;
    font-weight: 600;
    font-size: 17px;
    line-height: 1;
}

.tj-top-nav .tj-logo .tj-logo-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}
.tj-top-nav .tj-search-box {
  flex: 1;
  height: 34px;
  background: #F5F0E8;
  border-radius: 17px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 6px;
  cursor: pointer;
  min-width: 0;
}
.tj-top-nav .tj-search-box .tj-search-icon {
  font-size: 13px;
  color: #bbb;
  flex-shrink: 0;
}
.tj-top-nav .tj-search-box .tj-search-placeholder {
  font-size: 12px;
  color: #bbb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tj-top-nav .tj-nav-spacer {
  flex: 1;
}
.tj-top-nav .tj-nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.tj-top-nav .tj-icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  position: relative;
  border: none;
  background: none;
  padding: 0;
  border-radius: 50%;
}
.tj-top-nav .tj-icon-btn svg {
  display: block;
}
.tj-top-nav .tj-icon-btn .tj-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 16px;
  height: 16px;
  background: #FF2442;
  color: #fff;
  font-size: 9px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-weight: 600;
  line-height: 1;
  z-index: 10;
}
.tj-top-nav .tj-avatar-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B4513, #A0522D);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  padding: 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.tj-top-nav .tj-avatar-btn:focus {
  outline: none;
}
.tj-top-nav .tj-avatar-btn.tj-logged-out {
  background: none;
  border-radius: 0;
  color: #666;
  width: 36px;
  height: 36px;
}
.tj-top-nav .tj-avatar-btn.tj-logged-out:hover {
  color: #8B4513;
}
.tj-top-nav .tj-avatar-btn .tj-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.tj-top-nav .tj-avatar-btn .tj-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #8B4513, #A0522D);
}
.tj-panel-avatar .tj-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* ===== 底部Tab导航 ===== */
.tj-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  background: #fff;
  border-top: 1px solid #e8e0d6;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-sizing: border-box;
  overflow: hidden;
  padding: 0 8px;
}
.tj-bottom-nav .tj-tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  text-decoration: none;
  color: #999;
  height: 100%;
  position: relative;
}
.tj-bottom-nav .tj-tab-item .tj-tab-icon {
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tj-bottom-nav .tj-tab-item .tj-tab-icon svg {
  display: block;
}
.tj-bottom-nav .tj-tab-item .tj-tab-label {
  font-size: 10px;
  line-height: 1;
}
.tj-bottom-nav .tj-tab-item.active {
  color: #8B4513;
}
.tj-bottom-nav .tj-tab-item.active .tj-tab-label {
  font-weight: 600;
}
.tj-bottom-nav .tj-tab-item .tj-tab-badge {
  position: absolute;
  top: 6px;
  right: 50%;
  transform: translateX(18px);
  min-width: 16px;
  height: 16px;
  background: #FF2442;
  color: #fff;
  font-size: 9px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-weight: 600;
  line-height: 1;
  z-index: 10;
}
.tj-bottom-nav .tj-tab-publish-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.tj-bottom-nav .tj-tab-publish {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #8B4513, #A0522D);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 3px 10px rgba(139,69,19,0.35);
  cursor: pointer;
  border: none;
  padding: 0;
}
.tj-bottom-nav .tj-tab-publish svg {
  display: block;
}

/* ===== 电脑端顶部页面链接 ===== */
.tj-desktop-links {
  display: none;
}
@media (min-width: 768px) {
  .tj-desktop-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 24px;
  }
  .tj-desktop-link {
    font-size: 14px;
    color: #666;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
  }
  .tj-desktop-link:hover {
    background: rgba(139,69,19,0.06);
    color: #8B4513;
  }
  .tj-desktop-link.active {
    color: #8B4513;
    background: rgba(139,69,19,0.08);
    font-weight: 600;
  }
  /* 电脑端隐藏汉堡按钮 */
  .tj-top-nav .tj-hamburger-btn {
    display: none;
  }
  /* 电脑端隐藏底部导航 */
  .tj-bottom-nav {
    display: none;
  }
  .tj-page-wrap {
    padding-bottom: 0 !important;
  }
}

/* ===== 汉堡菜单侧滑面板 ===== */
.tj-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.tj-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}
.tj-hamburger-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  z-index: 10000;
  max-width: 80vw;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 20px rgba(0,0,0,0.1);
}
.tj-hamburger-panel.open {
  transform: translateX(0);
}
.tj-hamburger-panel .tj-panel-header {
  padding: 20px 16px 16px;
  background: linear-gradient(135deg, #8B4513, #A0522D);
  color: #fff;
}
.tj-hamburger-panel .tj-panel-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tj-hamburger-panel .tj-panel-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  flex-shrink: 0;
}
.tj-hamburger-panel .tj-panel-user-info {
  flex: 1;
  min-width: 0;
}
.tj-hamburger-panel .tj-panel-username {
  font-size: 15px;
  font-weight: 600;
}
.tj-hamburger-panel .tj-panel-user-desc {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 2px;
}
.tj-hamburger-panel .tj-panel-login-btn {
  height: 30px;
  padding: 0 16px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 15px;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}
.tj-hamburger-panel .tj-panel-menu {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.tj-hamburger-panel .tj-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  font-size: 14px;
  color: #3d2c1e;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.tj-hamburger-panel .tj-menu-item:active {
  background: #F5F0E8;
}
.tj-hamburger-panel .tj-menu-item.active {
  color: #8B4513;
  font-weight: 600;
  background: #F5F0E8;
}
.tj-hamburger-panel .tj-menu-item.active .tj-menu-icon {
  color: #8B4513;
}
.tj-hamburger-panel .tj-menu-item .tj-menu-icon {
  font-size: 18px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #8B4513;
}
.tj-hamburger-panel .tj-menu-item .tj-menu-icon svg {
  display: block;
}
.tj-hamburger-panel .tj-menu-item .tj-menu-arrow {
  margin-left: auto;
  font-size: 14px;
  color: #ccc;
}
.tj-hamburger-panel .tj-menu-divider {
  height: 1px;
  background: #f5f0e8;
  margin: 6px 16px;
}
.tj-hamburger-panel .tj-panel-footer {
  padding: 12px 16px;
  border-top: 1px solid #f5f0e8;
  font-size: 11px;
  color: #bbb;
  text-align: center;
}

/* ===== 电脑端适配 ===== */
@media (min-width: 768px) {
  .tj-top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    padding: 0 24px 0 30px;
    gap: 16px;
  }
  body { padding-top: 60px !important; }
  .tj-top-nav .tj-logo {
    font-size: 20px;
  }
  .tj-top-nav .tj-search-box {
    height: 38px;
    max-width: 480px;
  }
  .tj-bottom-nav {
    display: none;
  }
  .tj-page-wrap {
    padding-bottom: 0;
  }
  .tj-hamburger-panel {
    width: 300px;
  }
}

/* ============================================================
   社区页面样式
   ============================================================ */



/* ===== 共享组件样式 ===== */
/* 社区帖子图片网格 */
.community-post-images {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
}
.community-post-images.count-1 { grid-template-columns: 1fr; }
.community-post-images.count-1 .community-post-image { height: 180px; }
.community-post-images.count-2 { grid-template-columns: 1fr 1fr; }
.community-post-images.count-2 .community-post-image { height: 120px; }
.community-post-images.count-3 { grid-template-columns: 1fr 1fr 1fr; }
.community-post-images.count-3 .community-post-image { height: 100px; }
.community-post-images.count-4 { grid-template-columns: 1fr 1fr; }
.community-post-images.count-4 .community-post-image { height: 100px; }
.community-post-image {
  background: #f0ede8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  cursor: pointer;
  overflow: hidden;
}
.community-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 关联釉方标签 */
.post-recipe-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFF3E0;
  color: #D96A1F;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 8px;
  margin-top: 6px;
  cursor: pointer;
}
.post-recipe-tag:hover {
  background: #FFE0B2;
}









/* ===== 全站统一发布菜单（底部导航+按钮弹出） ===== */
.publish-menu-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(61,44,30,0.45); z-index: 9998; display: none; backdrop-filter: blur(2px); }
.publish-menu-overlay.show { display: block; }
.publish-menu { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-radius: 20px 20px 0 0; z-index: 9999; padding: 12px 16px 20px; transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.32,0.72,0,1); box-shadow: 0 -4px 24px rgba(0,0,0,0.1); }
.publish-menu.show { transform: translateY(0); }
.publish-menu-handle { width: 40px; height: 4px; background: #e8ddd0; border-radius: 2px; margin: 0 auto 12px; }
.publish-menu-title { text-align: center; font-size: 14px; font-weight: 600; color: #3d2c1e; margin-bottom: 18px; }
.publish-menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.publish-menu-item { text-align: center; cursor: pointer; transition: transform 0.15s; }
.publish-menu-item:active { transform: scale(0.92); }
.publish-menu-icon { width: 52px; height: 52px; margin: 0 auto; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.publish-menu-label { font-size: 11px; color: #5c4a3a; margin-top: 8px; }
.publish-menu-cancel { height: 46px; background: #F5F0E8; border-radius: 23px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #8B7355; cursor: pointer; transition: background 0.2s; }
.publish-menu-cancel:active { background: #ebe3d6; }
.publish-icon-recipe { background: linear-gradient(135deg, #8B4513, #A0522D); }
.publish-icon-material { background: linear-gradient(135deg, #5D8A6B, #7EC8A0); }
.publish-icon-firing { background: linear-gradient(135deg, #D96A1F, #F4A460); }
.publish-icon-post { background: linear-gradient(135deg, #4A90D9, #87CEEB); }
.publish-menu-icon svg { width: 26px; height: 26px; color: #fff; }


/* ============================================================
   全站统一关注按钮
   ============================================================ */
.follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  line-height: 1.4;
  background: linear-gradient(135deg, #8B4513, #A0522D);
  color: #fff;
  white-space: nowrap;
}

.follow-btn:hover {
  opacity: 0.9;
}

.follow-btn:active {
  opacity: 0.8;
  transform: scale(0.97);
}

.follow-btn.followed {
  background: #fff;
  color: #8B4513;
  border-color: #8B4513;
}

.follow-btn.followed:hover {
  background: #f5f0e8;
}

/* 小尺寸（列表用） */
.follow-btn.small {
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 12px;
}

/* 大尺寸（用户主页用） */
.follow-btn.large {
  padding: 8px 24px;
  font-size: 14px;
  border-radius: 20px;
}

/* 禁用状态 */
.follow-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== 关注按钮多种样式 ===== */
/* 文字大按钮（与profile-btn一致，用于个人主页头部） */

/* 文字小按钮（用于关注/粉丝列表） */
.follow-btn.text-small {
  height: 32px;
  padding: 0 16px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8B4513, #A0522D);
  color: #fff;
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.follow-btn.text-small.followed {
  background: #F5F0E8;
  color: #8B7355;
  border: 1px solid #8B7355;
}
.follow-btn.text-small.followed::before,
.follow-btn.text-small.followed::after {
  content: none !important;
  display: none !important;
}
.follow-btn.text-small.followed svg {
  display: none !important;
}
.follow-btn.text-small:active {
  opacity: 0.8;
  transform: scale(0.97);
}

/* 图标按钮（默认，用于详情页作者关注） */


/* ===== 全站统一SVG互动图标尺寸 ===== */
.masonry-stat-icon svg,
.stat-icon svg,
.comment-like-icon svg,
.recipe-stat-item .icon svg,
.community-content-actions .icon svg,
.profile-card-meta svg,
.profile-list-meta svg,
.likes svg {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    display: inline-block;
}

/* 已激活状态图标颜色 */
.meta-action-btn.active svg,
.recipe-stat-item.active .icon svg,
.community-content-actions .active svg {
    color: #8B4513;
}


/* ===== 分享模态框 ===== */
.share-modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #3d2c1e;
    margin: 0;
}
.share-modal-title svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.share-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.share-copy-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* 通用工具类 */
.w-full { width: 100%; }
.mt-10 { margin-top: 10px; }
.d-none { display: none; }
.d-flex { display: flex; }
.bg-gray { background: #f5f5f5; }
.link-primary { color: #8B4513; text-decoration: none; font-size: 13px; }

/* 404页面样式 */
.error-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; text-align: center; background: #f5f0e8; margin: 0; padding: 20px; }
.error-code { font-size: 72px; color: #8B4513; font-weight: 300; margin-bottom: 10px; }
.error-desc { color: #666; font-size: 16px; margin-bottom: 30px; }
.error-btn { color: #8B4513; text-decoration: none; border: 1px solid #8B4513; padding: 10px 24px; border-radius: 20px; display: inline-block; transition: all 0.3s; min-height: 44px; line-height: 1.4; }

/* 分页选择器 */
.result-count-text { font-size: 12px; color: #999; margin-left: auto; flex-shrink: 0; white-space: nowrap; }
/* SVG图标 */
.svg-icon { margin-right: 8px; flex-shrink: 0; }

/* 搜索栏样式 */
.search-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}
.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #bbb;
  font-size: 14px;
  pointer-events: none;
}
.search-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  padding: 0 12px 0 34px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  background: #faf8f5;
  outline: none;
  font-family: inherit;
  height: 38px;
  box-sizing: border-box;
  line-height: 38px;
  margin: 0;
}

/* 手机端隐藏顶部导航消息按钮（底部导航已有消息入口） */
@media (max-width: 767px) {
  .tj-top-nav .tj-msg-btn { display: none !important; }
}

.tj-desktop-search { display: none; }
@media (min-width: 768px) {
  .tj-desktop-search {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e0d5c5;
    border-radius: 8px;
    width: 340px;
    height: 32px;
    overflow: hidden;
    margin-left: 16px;
    box-sizing: border-box;
  }
  .tj-desktop-search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: #333;
    padding: 0 16px;
    height: 100%;
    box-sizing: border-box;
  }
  .tj-desktop-search input::placeholder { color: #999; }
  .tj-desktop-search .tj-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B4513;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    padding: 0 16px;
    background: transparent;
    border-left: 1px solid #e0d5c5;
    border-radius: 0 7px 7px 0;
    transition: all 0.2s;
    min-height: 0;
    min-width: 0;
    height: 32px;
    box-sizing: border-box;
    line-height: 1;
    gap: 4px;
  }
  .tj-desktop-search .tj-search-btn:hover {
    background: #8B4513;
    color: #fff;
    border-left-color: #8B4513;
  }
  .tj-desktop-search .tj-search-btn svg { width: 14px; height: 14px; display: block; flex-shrink: 0; fill: none; stroke: #8B4513; stroke-width: 2; }
  .tj-desktop-search .tj-search-btn:hover svg { stroke: #fff; }
}
