/* ========== 全局样式重置 ========== */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  :root {
    --primary-pink: #ff9ec7;
    --primary-purple: #c084fc;
    --primary-gradient: linear-gradient(135deg, #ff9ec7 0%, #c084fc 100%);
    --bg-gradient: linear-gradient(135deg, #fdf2f8 0%, #f5f3ff 50%, #fce7f3 100%);
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(192, 132, 252, 0.3);
    --text-primary: #4a2c5a;
    --text-secondary: #7c5a8f;
    --text-light: #a78bba;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --gray: #9ca3af;
    --shadow-sm: 0 2px 8px rgba(192, 132, 252, 0.15);
    --shadow-md: 0 4px 16px rgba(192, 132, 252, 0.2);
    --shadow-lg: 0 8px 32px rgba(192, 132, 252, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
  }

  body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "微软雅黑", sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
  }

  /* 装饰性背景图案 */
  body::before {
    content: '';
    position: fixed;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 158, 199, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
  }

  body::after {
    content: '';
    position: fixed;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
  }

  /* ========== 顶部导航栏 ========== */
  .navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--card-border);
    box-shadow: var(--shadow-sm);
  }

  .navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
  }

  .logo-icon {
    font-size: 32px;
  }

  .logo-text {
    font-size: 20px;
    font-weight: bold;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .nav-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }

  .server-select {
    padding: 8px 16px;
    border: 2px solid var(--card-border);
    border-radius: var(--radius-md);
    background: white;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
    font-weight: 500;
  }

  .server-select:hover,
  .server-select:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.2);
  }

  .nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .nav-btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-md);
    background: white;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid var(--card-border);
    font-weight: 500;
  }

  .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-purple);
  }

  .cart-btn {
    position: relative;
  }

  .cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    background: var(--danger);
    color: white;
    border-radius: 10px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    padding: 0 6px;
  }

  /* ========== 主内容区 ========== */
  .main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }

  .view {
    display: none;
  }

  .view.active {
    display: block;
  }

  /* ========== 公告滚动条 ========== */
  .announcement-bar {
    background: linear-gradient(90deg, rgba(255, 158, 199, 0.2), rgba(192, 132, 252, 0.2));
    border-radius: var(--radius-lg);
    padding: 12px 20px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--card-border);
  }

  .announcement-scroll {
    display: flex;
    animation: scroll-left 30s linear infinite;
    white-space: nowrap;
  }

  .announcement-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-right: 80px;
    color: var(--text-secondary);
    font-size: 14px;
  }

  .announcement-item .icon {
    color: var(--primary-purple);
  }

  @keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  /* ========== 营业状态提示 ========== */
  .business-status {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid var(--card-border);
    box-shadow: var(--shadow-sm);
  }

  .business-status.open {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(255, 255, 255, 0.9));
  }

  .business-status.closed {
    border-color: rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(255, 255, 255, 0.9));
  }

  .status-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .status-icon {
    font-size: 28px;
  }

  .status-text {
    font-size: 16px;
    font-weight: 600;
  }

  .status-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
  }

  .status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
  }

  .status-badge.open {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
  }

  .status-badge.closed {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
  }

  /* ========== 区块标题 ========== */
  .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 16px;
    color: var(--text-primary);
  }

  .section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary-gradient);
    border-radius: 2px;
  }

  /* ========== 推荐商品区 ========== */
  .recommended-section {
    margin-bottom: 32px;
  }

  .recommended-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .product-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }

  .product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-purple);
  }

  .product-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .product-card.disabled:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }

  .recommend-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary-gradient);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 1;
  }

  .product-image {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(255, 158, 199, 0.1), rgba(192, 132, 252, 0.1));
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .product-image.emoji {
    font-size: 48px;
  }

  .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .product-price {
    font-size: 18px;
    font-weight: bold;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .product-price del {
    color: var(--text-light);
    -webkit-text-fill-color: var(--text-light);
    font-size: 12px;
    font-weight: 500;
  }

  .sale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
  }

  .product-stock {
    font-size: 12px;
    color: var(--text-secondary);
  }

  .add-cart-btn {
    margin-top: 10px;
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--primary-gradient);
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
  }

  .add-cart-btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
  }

  .add-cart-btn:disabled {
    background: var(--gray);
    cursor: not-allowed;
    opacity: 0.7;
  }

  /* ========== 分类快捷入口 ========== */
  .categories-section {
    margin-bottom: 32px;
  }

  .categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
  }

  .category-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
  }

  .category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-purple);
  }

  .category-icon {
    font-size: 32px;
    margin-bottom: 8px;
  }

  .category-name {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
  }

  /* ========== 商品列表页 ========== */
  .products-layout {
    display: flex;
    gap: 20px;
  }

  .sidebar {
    width: 200px;
    flex-shrink: 0;
  }

  .sidebar-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    position: sticky;
    top: 80px;
  }

  .sidebar-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    color: var(--text-primary);
  }

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

  .category-item {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .category-item:hover {
    background: rgba(192, 132, 252, 0.1);
    color: var(--text-primary);
  }

  .category-item.active {
    background: var(--primary-gradient);
    color: white;
    font-weight: 500;
  }

  .products-content {
    flex: 1;
  }

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

  .products-toolbar .section-title {
    margin-bottom: 0;
  }

  .product-search {
    width: min(280px, 100%);
  }

  .products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
  }

  .empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
  }

  .empty-state-text {
    font-size: 16px;
  }

  /* ========== 购物车抽屉 ========== */
  .cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }

  .cart-overlay.open {
    opacity: 1;
    visibility: visible;
  }

  .cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    z-index: 201;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  }

  .cart-drawer.open {
    right: 0;
  }

  .cart-header {
    padding: 20px;
    border-bottom: 2px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .cart-title {
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .cart-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--card-bg);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
  }

  .cart-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
  }

  .cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
  }

  .cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
  }

  .cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 158, 199, 0.1), rgba(192, 132, 252, 0.1));
    flex-shrink: 0;
    overflow: hidden;
  }

  .cart-item-image.emoji {
    font-size: 28px;
  }

  .cart-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .cart-item-info {
    flex: 1;
    min-width: 0;
  }

  .cart-item-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cart-item-price {
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-purple);
  }

  .cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
  }

  .qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
  }

  .qty-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
  }

  .qty-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
  }

  .cart-item-delete {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: color 0.2s;
  }

  .cart-item-delete:hover {
    color: var(--danger);
  }

  .cart-footer {
    padding: 20px;
    border-top: 2px solid var(--card-border);
    background: white;
  }

  .cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
  }

  .cart-total-label {
    font-size: 16px;
    color: var(--text-secondary);
  }

  .cart-total-price {
    font-size: 24px;
    font-weight: bold;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .checkout-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--primary-gradient);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
  }

  .checkout-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }

  .checkout-btn:disabled {
    background: var(--gray);
    cursor: not-allowed;
    opacity: 0.7;
  }

  /* ========== 弹窗通用样式 ========== */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    padding: 20px;
  }

  .modal-overlay.open {
    opacity: 1;
    visibility: visible;
  }

  .modal {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s;
    box-shadow: var(--shadow-lg);
  }

  .modal-overlay.open .modal {
    transform: scale(1);
  }

  .modal-header {
    padding: 24px 24px 16px;
    border-bottom: 2px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .modal-title {
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--card-bg);
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
  }

  .modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
  }

  .modal-body {
    padding: 24px;
  }

  .modal-footer {
    padding: 16px 24px 24px;
    border-top: 2px solid var(--card-border);
    display: flex;
    gap: 12px;
  }

  /* ========== 表单样式 ========== */
  .form-group {
    margin-bottom: 20px;
  }

  .form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
  }

  .form-label .required {
    color: var(--danger);
    margin-left: 2px;
  }

  .form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--card-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
  }

  .form-input:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.2);
  }

  .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--card-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
  }

  .form-textarea:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.2);
  }

  .form-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
  }

  /* ========== 按钮样式 ========== */
  .btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .btn-primary {
    background: var(--primary-gradient);
    color: white;
  }

  .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }

  .btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--card-border);
  }

  .btn-secondary:hover {
    border-color: var(--primary-purple);
  }

  .btn-block {
    width: 100%;
  }

  /* ========== 订单商品明细 ========== */
  .order-items-list {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 20px;
  }

  .order-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--card-border);
  }

  .order-item-row:last-child {
    border-bottom: none;
  }

  .order-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .order-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 158, 199, 0.1), rgba(192, 132, 252, 0.1));
    font-size: 18px;
    overflow: hidden;
  }

  .order-item-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .order-item-name {
    font-size: 14px;
    font-weight: 500;
  }

  .order-item-qty {
    font-size: 13px;
    color: var(--text-secondary);
  }

  .order-item-subtotal {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-purple);
  }

  .order-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 2px solid var(--card-border);
    margin-top: 8px;
  }

  .order-total-label {
    font-size: 16px;
    font-weight: 600;
  }

  .order-total-value {
    font-size: 22px;
    font-weight: bold;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* ========== 订单成功弹窗 ========== */
  .success-content {
    text-align: center;
    padding: 20px 0;
  }

  .success-icon {
    font-size: 80px;
    margin-bottom: 20px;
  }

  .success-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text-primary);
  }

  .success-subtitle {
    color: var(--text-secondary);
    margin-bottom: 24px;
  }

  .order-no-display {
    background: linear-gradient(135deg, rgba(255, 158, 199, 0.2), rgba(192, 132, 252, 0.2));
    border: 2px dashed var(--primary-purple);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
  }

  .order-no-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
  }

  .order-no-text {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: monospace;
  }

  .success-tip {
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 24px;
    text-align: left;
  }

  /* ========== 订单查询页 ========== */
  .query-container {
    max-width: 600px;
    margin: 40px auto;
  }

  .query-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-md);
  }

  .query-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .query-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
  }

  /* ========== 订单详情 ========== */
  .order-detail-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }

  .order-detail-header {
    padding: 24px;
    border-bottom: 2px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .order-detail-title {
    font-size: 18px;
    font-weight: bold;
  }

  .order-detail-no {
    font-size: 14px;
    color: var(--text-secondary);
    font-family: monospace;
    margin-top: 4px;
  }

  .status-tag {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
  }

  .status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
  }

  .status-confirmed {
    background: rgba(59, 130, 246, 0.2);
    color: var(--info);
  }

  .status-completed {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
  }

  .status-cancelled {
    background: rgba(156, 163, 175, 0.2);
    color: var(--gray);
  }

  .status-rejected {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
  }

  .status-archived {
    background: rgba(156, 163, 175, 0.2);
    color: var(--gray);
  }

  .order-detail-body {
    padding: 24px;
  }

  .info-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dashed var(--card-border);
  }

  .info-row:last-child {
    border-bottom: none;
  }

  .info-label {
    width: 100px;
    color: var(--text-secondary);
    font-size: 14px;
    flex-shrink: 0;
  }

  .info-value {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    word-break: break-all;
  }

  .reject-reason {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-top: 16px;
  }

  .reject-reason-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--danger);
    margin-bottom: 6px;
  }

  .reject-reason-text {
    font-size: 14px;
    color: var(--text-primary);
  }

  .back-btn {
    margin-bottom: 20px;
  }

  /* ========== 重要公告弹窗 ========== */
.important-announcement {
  border-left: 4px solid var(--danger);
  background: white;
}

.important-title {
  color: var(--danger);
}

.announcement-markdown {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.announcement-markdown > :first-child { margin-top: 0; }
.announcement-markdown > :last-child { margin-bottom: 0; }
.announcement-markdown p,
.announcement-markdown ul,
.announcement-markdown ol,
.announcement-markdown blockquote,
.announcement-markdown pre { margin: 0 0 10px; }
.announcement-markdown ul,
.announcement-markdown ol { padding-left: 22px; }
.announcement-markdown blockquote {
  border-left: 3px solid var(--primary-purple);
  margin-left: 0;
  padding-left: 12px;
  color: var(--text-light);
}
.announcement-markdown code {
  border-radius: 4px;
  background: var(--bg-secondary);
  padding: 2px 5px;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.9em;
}
.announcement-markdown pre {
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  padding: 12px;
}
.announcement-markdown pre code { padding: 0; background: transparent; }
.announcement-markdown a { color: var(--primary-purple); text-decoration: underline; }
.announcement-markdown img { max-width: 100%; height: auto; }
.announcement-markdown table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.announcement-markdown th,
.announcement-markdown td { border: 1px solid var(--border-color); padding: 6px 8px; text-align: left; }

  .dont-show-today {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    cursor: pointer;
    user-select: none;
  }

  .dont-show-today input {
    width: 18px;
    height: 18px;
    cursor: pointer;
  }

  .dont-show-today label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
  }

  /* ========== Toast 提示 ========== */
  .toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .toast {
    background: white;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
    border-left: 4px solid var(--primary-purple);
  }

  .toast.success {
    border-left-color: var(--success);
  }

  .toast.error {
    border-left-color: var(--danger);
  }

  .toast.warning {
    border-left-color: var(--warning);
  }

  .toast.info {
    border-left-color: var(--info);
  }

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

  /* ========== 加载状态 ========== */
  .loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
  }

  .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--card-border);
    border-top-color: var(--primary-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
  }

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

  /* ========== 连接状态指示器 ========== */
  .connection-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 8px 16px;
    background: white;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-md);
    z-index: 50;
  }

  .connection-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
  }

  .connection-dot.polling {
    background: var(--warning);
  }

  .connection-dot.offline {
    background: var(--danger);
  }

  /* ========== 响应式 ========== */
  @media (max-width: 768px) {
    .navbar-inner {
      flex-wrap: wrap;
      gap: 10px;
      padding: 10px 12px;
    }

    .logo-text {
      display: none;
    }

    .logo-icon {
      font-size: 28px;
    }

    .nav-right {
      gap: 4px;
    }

    .nav-btn {
      width: 40px;
      height: 40px;
      padding: 0;
      gap: 0;
      justify-content: center;
      flex: 0 0 40px;
    }

    .nav-btn > span:nth-child(2) {
      display: none;
    }

    .nav-center {
      order: 3;
      width: 100%;
    }

    .recommended-grid {
      grid-template-columns: repeat(2, 1fr);
    }

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

    .products-layout {
      flex-direction: column;
    }

    .sidebar {
      width: 100%;
    }

    .sidebar-card {
      position: static;
    }

    .category-list {
      flex-direction: row;
      flex-wrap: wrap;
    }

    .products-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .products-toolbar {
      align-items: stretch;
      flex-direction: column;
    }

    .product-search {
      width: 100%;
    }

    .cart-drawer {
      width: 100%;
      right: 0;
      display: none;
    }

    .cart-drawer.open {
      display: flex;
    }

    .query-card {
      padding: 20px;
    }
  }
