/* 响应式布局优化 */
@media (max-width: 768px) {
  .top-header { height: 56px; padding: 0 16px; }
  .top-menu { display: none !important; }
  .mobile-menu-btn { display: flex !important; }
  .header-left { gap: 16px; }
  .logo-text { font-size: 16px; }
  .logo-icon { width: 32px; height: 32px; }
  .user-name { display: none; }
  
  .main-content { padding: 12px; }
  .el-form-item { margin-bottom: 12px; }
  .el-button--primary { width: 100%; margin-bottom: 8px; }
  
  body { font-size: 14px; }
  .el-dialog { width: 95% !important; margin: 10px auto !important; }
}

@media (max-width: 768px) {
  .el-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .el-table__body-wrapper { min-width: 600px; }
}

img { max-width: 100%; height: auto; display: block; }
.responsive-img { width: 100%; height: auto; object-fit: cover; border-radius: 8px; }

@media (max-width: 576px) { .responsive-img { max-height: 200px; } }
@media (min-width: 577px) and (max-width: 992px) { .responsive-img { max-height: 300px; } }
@media (min-width: 993px) { .responsive-img { max-height: 400px; } }

.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }
}

/* ===== 移动端菜单完整样式 ===== */
.mobile-menu-btn {
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 8px;
    color: #374151;
    transition: all 0.3s;
  }
  
  .mobile-menu-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
  }
  
  .mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  }
  
  .mobile-menu-drawer.active {
    left: 0;
  }
  
  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 18px;
    font-weight: 600;
    color: #d4af37;
  }
  
  .mobile-menu-header span:last-child {
    cursor: pointer;
    padding: 8px;
    font-size: 20px;
  }
  
  .mobile-menu-content .el-menu-item,
  .mobile-menu-content .el-sub-menu__title {
    height: 50px;
    line-height: 50px;
    font-size: 15px;
    padding: 0 20px !important;
  }
  
  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .mobile-menu-overlay.active {
    display: block;
    opacity: 1;
  }
  
  /* 表格横向滚动提示 */
  .el-table::before {
    content: "← 左右滑动查看更多 →";
    display: block;
    text-align: center;
    padding: 8px;
    font-size: 12px;
    color: #999;
    background: #f9f9f9;
  }
  
  /* 触摸优化 */
  .el-button, 
  .el-menu-item,
  .el-dropdown-menu__item,
  .el-table__row {
    min-height: 44px;
  }
  
  /* 输入框不缩放 */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px !important;
  }
}
