* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Source Han Sans CN", "Roboto", sans-serif;
    background: #f5f7fa;
    color: #1f2937;
}

a {
    text-decoration: none;
    color: inherit;
}

.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-inner {
    width: 1280px;
    max-width: 95%;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
    padding: 9px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.btn-secondary {
    background: #e5e7eb;
    color: #111827;
    padding: 9px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.main-content {
    width: 1280px;
    max-width: 95%;
    margin: 24px auto;
    min-height: calc(100vh - 160px);
}

.hero {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 18px;
    padding: 90px 20px;
    text-align: center;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 12px;
}

.hero p {
    color: #4b5563;
    margin-bottom: 28px;
    font-size: 18px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.info-boxes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.info-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.info-card h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.info-card p {
    color: #6b7280;
}

.flash-box {
    margin-bottom: 16px;
}

.flash-item {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.flash-success {
    background: #dcfce7;
    color: #166534;
}

.flash-warning {
    background: #fef9c3;
    color: #854d0e;
}

.flash-error {
    background: #fee2e2;
    color: #991b1b;
}

.footer {
    text-align: center;
    padding: 26px 0;
    color: #6b7280;
}

@media (max-width: 900px) {
    .info-boxes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .info-boxes {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 36px;
    }
}
/* ===== 认证页面 ===== */
.auth-card {
    max-width: 460px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 18px;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.auth-tab {
    flex: 1;
    padding: 8px 0;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}

.auth-tab.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.auth-form label {
    display: block;
    margin: 10px 0 6px;
    color: #374151;
    font-size: 14px;
}

.auth-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
    margin-top: 18px;
}

.code-row {
    display: flex;
    gap: 8px;
}

.auth-tip {
    margin-top: 16px;
    text-align: center;
    color: #6b7280;
}

.auth-tip a {
    color: #2563eb;
}

.nav-username {
    font-weight: 600;
}
/* ===== 后台布局 ===== */
.dash-wrap {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.dash-menu {
    width: 220px;
    flex: 0 0 220px;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    position: sticky;
    top: 80px;
}

.dash-menu-item {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #374151;
    margin-bottom: 4px;
    font-size: 14px;
}

.dash-menu-item.active {
    background: #2563eb;
    color: #ffffff;
}

.dash-menu-item:hover:not(.active) {
    background: #f3f4f6;
}

.dash-content {
    flex: 1;
    min-width: 0;
}

.dash-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 18px;
}

.dash-card h3 {
    margin-bottom: 14px;
}

.ban-banner {
    background: #fee2e2;
    color: #991b1b;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

table.zebra {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table.zebra th,
table.zebra td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

table.zebra tbody tr:nth-child(even) {
    background: #f9fafb;
}

.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: #ffffff;
}

.tag-gray { background: #9ca3af; }
.tag-blue { background: #2563eb; }
.tag-orange { background: #f97316; }
.tag-red { background: #ef4444; }

.form-row {
    margin-bottom: 12px;
}

.form-row label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-size: 14px;
}

.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.form-actions {
    display: flex;
    gap: 10px;
}

.btn-danger {
    background: #ef4444;
    color: #ffffff;
    padding: 9px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}
/* ===== 导航栏用户入口 ===== */
.nav-user-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.nav-user-link:hover .nav-username {
    color: #2563eb;
}
/* ===== 首页轮播 ===== */
.hero-carousel {
    position: relative;
    height: 420px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 24px;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform .6s ease;
}

.carousel-slide {
    min-width: 100%;
    background-size: cover;
    background-position: center;
}

.carousel-empty {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
}

.carousel-overlay h1 {
    font-size: 56px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    margin-bottom: 18px;
}

.info-card .big {
    font-size: 22px;
    font-weight: 700;
}

.info-card .muted {
    color: #6b7280;
    font-size: 13px;
}

.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== 筛选栏 ===== */
.filter-bar {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
}

.filter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-form select,
.filter-form input {
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

/* ===== 瀑布流 ===== */
.waterfall {
    columns: 4 240px;
    column-gap: 16px;
}

.wf-card {
    display: block;
    break-inside: avoid;
    margin-bottom: 16px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.wf-card img {
    width: 100%;
    display: block;
}

.wf-meta {
    padding: 10px 12px;
}

.wf-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #111827;
}

.wf-sub {
    display: flex;
    justify-content: space-between;
    color: #6b7280;
    font-size: 12px;
    gap: 8px;
}

.load-tip {
    text-align: center;
    color: #9ca3af;
    padding: 14px;
}

/* ===== 详情页 ===== */
.photo-wrap {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.photo-left {
    flex: 1.4;
    min-width: 0;
}

.photo-big {
    width: 100%;
    border-radius: 12px;
}

.photo-right {
    flex: 1;
    min-width: 320px;
}

.photo-info-list p {
    margin: 6px 0;
    color: #374151;
}

.photo-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

/* ===== 返回顶部 ===== */
.back-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: none;
    cursor: pointer;
    z-index: 900;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ===== 评分弹窗 ===== */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px;
    width: 360px;
    text-align: center;
}

.stars button {
    font-size: 28px;
    color: #f59e0b;
    background: none;
    border: none;
    cursor: pointer;
}
/* ===== 上传流程 ===== */
.progress-wrap {
    width: 100%;
    height: 10px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin: 12px 0 6px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #2563eb;
    transition: width .2s;
}

.wm-stage {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin: 14px 0;
}

.wm-stage img {
    max-width: 100%;
    border-radius: 10px;
    display: block;
}

.wm-tag {
    position: absolute;
    left: 50%;
    top: 50%;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    cursor: move;
    user-select: none;
    font-size: 24px;
}

.wm-controls {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    margin: 12px 0;
}

.wm-controls label {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #374151;
    font-size: 14px;
}

.wm-controls select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 6px 8px;
}
.badge-pending {
    background: #fef9c3;
    color: #854d0e;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
}

/* ===== 工单 ===== */
.ticket-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.ticket-cards .info-card {
    display: block;
}

.uid-prefix {
    padding: 9px 12px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #374151;
}

.uid-prefix + input {
    border-radius: 0 8px 8px 0;
}

.att-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.att-grid img,
.att-grid video {
    width: 220px;
    border-radius: 10px;
}
/* ===== 导航图标+红点 ===== */
.nav-icon {
    position: relative;
    font-size: 18px;
    margin-right: 6px;
}

.red-dot {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #ef4444;
    color: #ffffff;
    border-radius: 999px;
    font-size: 11px;
    padding: 1px 6px;
}

.nav-dot {
    top: -8px;
    right: -12px;
}

/* ===== 好友 ===== */
.friend-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* ===== 聊天 ===== */
.chat-wrap {
    display: flex;
    gap: 16px;
    height: 620px;
}

.chat-side {
    width: 280px;
    background: #ffffff;
    border-radius: 12px;
    overflow-y: auto;
}

.chat-item {
    display: flex;
    gap: 10px;
    padding: 12px;
    cursor: pointer;
    position: relative;
    border-bottom: 1px solid #f3f4f6;
    align-items: center;
}

.chat-item.active {
    background: #eff6ff;
}

.chat-item .latest {
    color: #9ca3af;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}

.chat-main {
    flex: 1;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-head {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msg-bubble {
    max-width: 70%;
    padding: 8px 12px;
    border-radius: 12px;
    background: #f3f4f6;
    align-self: flex-start;
    white-space: pre-wrap;
}

.msg-bubble.mine {
    background: #2563eb;
    color: #ffffff;
    align-self: flex-end;
}

.emoji-bar {
    display: flex;
    gap: 6px;
    padding: 6px 12px;
    border-top: 1px solid #f3f4f6;
    flex-wrap: wrap;
}

.emoji-bar button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.chat-foot {
    padding: 12px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
}

.chat-foot input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.notice-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
}.toast-container{position:fixed;top:20px;right:20px;z-index:9999;display:flex;flex-direction:column;gap:10px}
.toast{background:#fff;border-left:4px solid #2563eb;box-shadow:0 4px 12px rgba(0,0,0,.15);padding:12px 20px;border-radius:6px;display:flex;align-items:center;justify-content:space-between;min-width:250px;animation:slideIn .3s ease-out}
.toast.success{border-left-color:#10b981}.toast.error{border-left-color:#ef4444}
.toast-close{cursor:pointer;margin-left:15px;color:#9ca3af;font-weight:bold}
@keyframes slideIn{from{transform:translateX(100%);opacity:0}to{transform:translateX(0);opacity:1}}
.modal-mask{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:10000;display:flex;align-items:center;justify-content:center}
.modal-card{background:#fff;padding:24px;border-radius:12px;max-width:500px;width:90%;position:relative}
.modal-close{position:absolute;top:10px;right:15px;font-size:20px;cursor:pointer;color:#9ca3af}
.rating-stars{display:flex;flex-direction:row-reverse;justify-content:flex-end}
.rating-stars input{display:none}
.rating-stars label{font-size:24px;color:#d1d5db;cursor:pointer;transition:color .2s}
.rating-stars input:checked ~ label,.rating-stars label:hover,.rating-stars label:hover ~ label{color:#fbbf24}
.ann-fab{position:fixed;right:24px;bottom:24px;z-index:9998;background:#2563eb;color:#fff;border:none;border-radius:999px;padding:10px 18px;font-size:14px;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.25);}

/* ============ 响应式：平板 ============ */
@media (max-width: 900px) {
  .dash-wrap { flex-direction: column; }
  .dash-menu { width: 100%; flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 10px; border-right: none; border-bottom: 1px solid #e5e7eb; }
  .dash-menu-item { flex: 1 1 auto; text-align: center; padding: 8px 10px; }
  .dash-content { padding: 14px; }
}

/* ============ 响应式：手机 ============ */
@media (max-width: 720px) {
  /* 顶部导航 */
  header, .navbar, .site-header { padding: 8px 12px; flex-wrap: wrap; }
  .logo, .brand, header h1, .navbar a:first-child { font-size: 17px; }
  .nav-menu { display: none; position: absolute; top: 56px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 8px 12px; box-shadow: 0 6px 16px rgba(0,0,0,.12); z-index: 900; gap: 4px; }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 10px 6px; border-bottom: 1px solid #f1f3f5; }
  .nav-menu a.btn-primary { text-align: center; margin-top: 6px; }
  .nav-toggle { display: inline-flex !important; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; cursor: pointer; font-size: 18px; order: 99; }
  .nav-right, .nav-actions, .user-area { gap: 6px; }
  .nav-icon { width: 34px; height: 34px; font-size: 15px; }
  .user-chip .uname, .user-name { display: none; }
  .tag { font-size: 10px; padding: 1px 5px; }

  /* 通用容器与卡片 */
  .container, main, .page { padding-left: 12px !important; padding-right: 12px !important; }
  .dash-card, .card { padding: 14px !important; }
  h1 { font-size: 22px; } h2 { font-size: 19px; } h3 { font-size: 17px; }

  /* 图库网格自适应 */
  .photo-grid, .gallery-grid, .grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .att-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* 表单 */
  input, select, textarea, .form-row input, .form-row select { font-size: 16px !important; }
  .form-row { flex-direction: column; }
  button, .btn-primary, .btn-secondary, .btn-danger { min-height: 40px; }

  /* 表格横向滚动 */
  table, .zebra { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  thead, tbody, tr, th, td { white-space: normal; }

  /* 模态框 / Toast / 悬浮按钮 */
  .modal-card { width: 92% !important; max-width: 92% !important; padding: 18px !important; }
  .toast-container { left: 12px; right: 12px; top: 12px; }
  .toast { min-width: 0; width: 100%; }
  .ann-fab { right: 14px; bottom: 14px; padding: 9px 15px; font-size: 13px; }

  /* 首页 hero / 统计卡 */
  .hero, .banner { height: auto !important; min-height: 200px; }
  .stats, .stat-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 380px) {
  .photo-grid, .gallery-grid, .grid { grid-template-columns: 1fr !important; }
}

/* ============ 导航栏右侧精准修复 ============ */
@media (max-width: 720px) {
  /* 1. 强制 header 不换行，保持单行高度 */
  header, .navbar, .site-header { 
    flex-wrap: nowrap !important; 
    align-items: center !important;
    height: 56px;
    position: relative;
  }
  
  /* 2. 右侧区域压缩间距，隐藏文字标签 */
  .nav-right, .nav-actions, .user-area, header > div:last-child {
    gap: 4px !important;
    margin-left: auto; /* 推到最右 */
  }
  
  /* 3. 用户信息芯片：只显示头像，隐藏名字和角色标签 */
  .user-chip, .user-info, header .flex.items-center {
    gap: 0 !important;
  }
  .user-chip .uname, .user-name, .user-chip span:not(.avatar):not(img) {
    display: none !important;
  }
  .tag, .role-tag, .badge {
    display: none !important; /* 手机上隐藏"创始人/审核员"标签 */
  }
  
  /* 4. 退出登录按钮：变成图标或极小文字 */
  a[href*="logout"], .btn-logout, button:contains("退出") {
    font-size: 0 !important; /* 隐藏文字 */
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
  }
  a[href*="logout"]::after, .btn-logout::after {
    content: "退出"; font-size: 12px; /* 电源图标代表退出 */
    font-size: 18px !important;
    color: #ef4444 !important;
  }
  
  /* 5. 汉堡菜单按钮位置修正 */
  .nav-toggle {
    position: absolute !important;
    left: 12px !important;
    top: 9px !important;
    z-index: 901 !important;
    order: 0 !important;
  }
  
  /* 6. Logo 左移给汉堡菜单留位置 */
  .logo, .brand, header h1, .navbar > a:first-child {
    margin-left: 44px !important;
  }
  
  /* 7. 下拉菜单从顶部全宽弹出 */
  .nav-menu {
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
  }
}

/* ============ 极简手机导航栏 ============ */
@media (max-width: 720px) {
  /* 1. 隐藏所有右侧图标和文字 */
  .nav-icon, 
  .user-chip .uname, 
  .user-name, 
  .tag, 
  .role-tag,
  a[href="/social/friends"],
  a[href="/social/messages"],
  a[href="/social/notices"],
  a[href*="logout"],
  .btn-logout {
    display: none !important;
  }
  
  /* 2. 只显示头像（作为个人中心入口） */
  .user-chip img, 
  .user-chip .avatar,
  .user-avatar {
    display: block !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    margin-left: 8px !important;
  }
  
  /* 3. 强制单行布局 */
  header, .navbar, .site-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 12px !important;
    height: 50px !important;
    flex-wrap: nowrap !important;
  }
  
  /* 4. Logo 居中或靠左 */
  .logo, .brand, header h1, .navbar > a:first-child {
    font-size: 18px !important;
    margin: 0 !important;
    flex: 1 !important;
    text-align: center !important;
  }
  
  /* 5. 汉堡菜单固定在左 */
  .nav-toggle {
    position: static !important;
    order: -1 !important;
    margin-right: 8px !important;
  }
  
  /* 6. 头像固定在右 */
  .user-chip, .user-info {
    order: 99 !important;
    margin-left: auto !important;
  }
}

/* ============ 修复后台菜单遮挡 + 桌面端隐藏汉堡 ============ */

/* 1. 桌面端强制隐藏汉堡按钮 (防止图19的情况) */
@media (min-width: 721px) {
  .nav-toggle { display: none !important; }
}

/* 2. 手机端后台菜单修复 (防止图18的遮挡) */
@media (max-width: 720px) {
  .dash-wrap {
    flex-direction: column !important;
  }
  
  .dash-menu {
    position: static !important; /* 取消绝对定位，回归文档流 */
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important; /* 横向排列 */
    flex-wrap: nowrap !important; /* 不换行 */
    overflow-x: auto !important; /* 横向滚动 */
    padding: 10px !important;
    gap: 8px !important;
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 4px rgba(0,0,0,.05) !important;
    z-index: 10 !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  .dash-menu-item {
    flex: 0 0 auto !important; /* 不压缩，保持自然宽度 */
    white-space: nowrap !important; /* 文字不换行 */
    padding: 8px 12px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
    background: #f3f4f6 !important;
    text-align: center !important;
  }
  
  .dash-menu-item.active {
    background: #2563eb !important;
    color: #fff !important;
  }
  
  .dash-content {
    width: 100% !important;
    padding: 12px !important;
    margin-top: 0 !important;
  }
}

/* ============ 移动端后台：下拉框导航 ============ */
@media (max-width: 720px) {
  .dash-menu { display: none !important; }
  .dash-select {
    display: block !important;
    width: 100% !important;
    margin: 0 0 14px 0 !important;
    padding: 11px 12px !important;
    font-size: 15px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #111827 !important;
  }
}
@media (min-width: 721px) {
  .dash-select { display: none !important; }
}

/* ============ 照片详情页移动端适配 ============ */
@media (max-width: 720px) {
  .photo-wrap { flex-direction: column !important; gap: 12px !important; }
  .photo-left { width: 100% !important; }
  .photo-big { width: 100% !important; height: auto !important; max-height: 70vh; object-fit: contain; border-radius: 8px; }
  .photo-right { width: 100% !important; }
  .photo-info-list { font-size: 14px !important; }
  .photo-actions { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
  .photo-actions button, .photo-actions a { flex: 1 1 46% !important; margin: 0 !important; }
  .photo-actions form { display: contents; }
  .photo-actions form button { flex: 1 1 46%; }
}

/* ============ 修复图库页汉堡菜单 + 筛选区适配 ============ */
@media (max-width: 720px) {
  /* 1. 强制汉堡菜单显示 (防止被挤没) */
  .nav-toggle {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 9999 !important;
  }
  
  /* 2. 筛选区容器：单列堆叠 */
  .filter-bar, .gallery-filter, .search-bar, form[action*="gallery"] {
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }
  
  /* 3. 筛选下拉框/输入框：全宽 */
  .filter-bar select, 
  .filter-bar input, 
  .gallery-filter select, 
  .gallery-filter input,
  .search-bar select,
  .search-bar input {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
  }
  
  /* 4. 筛选按钮：全宽 */
  .filter-bar button, 
  .gallery-filter button,
  .search-bar button {
    width: 100% !important;
  }
  
  /* 5. 确保 header 不被下面的内容遮挡 */
  header, .navbar, .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: #fff !important;
  }
}
.maint-banner{position:sticky;top:0;z-index:99999;background:#b91c1c;color:#fff;text-align:center;padding:9px 12px;font-size:13px;font-weight:600;}
