@media screen and (max-width: 768px) {
  .site-header-inner {
    height: 52px;
    padding: 0 30px;
    gap: 10px;
  }

  .site-nav,
  .site-user {
    display: none;
  }

  .site-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .site-nav-toggle img {
    width: 22px;
    height: 22px;
    display: block;
  }

  .site-logo img {
    height: 32px;
  }

  .site-header-tools {
    flex: 1;
    gap: 8px;
    min-width: 0;
  }

  .site-logo {
    margin-right: 0;
  }

  .site-search {
    width: auto;
    flex: 1;
    min-width: 0;
    height: 34px;
    padding: 2px 2px 2px 10px;
  }

  .site-search-input {
    font-size: 13px;
    padding: 0 6px;
  }

  .site-search-btn {
    height: 28px;
    padding: 0 12px;
    font-size: 13px;
    line-height: 28px;
  }

  .site-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1200;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 0.25s;
  }

  .site-drawer--open {
    visibility: visible;
    pointer-events: auto;
    transition: visibility 0s linear 0s;
  }

  .site-drawer-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .site-drawer--open .site-drawer-mask {
    opacity: 1;
  }

  .site-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 80%;
    background: #fff;
    box-shadow: -2px 0 16px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }

  .site-drawer--open .site-drawer-panel {
    transform: translateX(0);
  }

  .site-drawer-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 28px 20px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: inherit;
    text-decoration: none;
  }

  .site-drawer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
  }

  .site-drawer-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
  }

  .site-drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
  }

  .site-drawer-item {
    display: block;
    padding: 14px 20px;
    color: #333;
    font-size: 16px;
    text-decoration: none;
  }

  .site-drawer-item--active {
    font-weight: 600;
    background: rgba(255, 215, 0, 0.28);
  }

  .site-drawer-shortcuts {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 4px 8px;
    padding: 4px 16px 16px;
    border-top: 1px solid #f0f0f0;
  }

  .site-drawer-shortcut-title {
    flex: 0 0 100%;
    margin: 12px 0 8px;
    color: #888;
    font-size: 12px;
    line-height: 1.4;
  }

  .site-drawer-shortcut {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 72px;
    padding: 6px 0;
    color: #333;
    text-decoration: none;
    box-sizing: border-box;
  }

  .site-drawer-shortcut-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f6f6f6;
    color: #333;
  }

  .site-drawer-shortcut-icon svg {
    display: block;
    width: 22px;
    height: 22px;
  }

  .site-drawer-shortcut--active .site-drawer-shortcut-icon {
    background: #ffd700;
  }

  .site-drawer-shortcut-label {
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
  }

  .site-drawer-shortcut--active .site-drawer-shortcut-label {
    font-weight: 600;
  }

  .site-drawer-logout {
    margin-top: auto;
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-top: 1px solid #f0f0f0;
    background: #fff;
    color: #666;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
  }
}

@media screen and (max-width: 320px) {
  .site-header-inner {
    padding: 0 20px;
  }
}
