/* ===== 一标网全站移动端适配 ===== */
/* 适配手机屏幕，最大宽度768px */

@media screen and (max-width: 768px) {
  
  /* === 全局调整 === */
  * {
    -webkit-tap-highlight-color: transparent;
  }
  
  body {
    font-size: 14px;
    padding: 0 !important;
    overflow-x: hidden;
  }
  
  .container, .main-container, .content, .page-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
    margin: 0 !important;
  }
  
  /* === 导航栏适配 === */
  .ds-nav {
    padding: 8px 12px !important;
    height: auto !important;
    min-height: 56px;
    position: relative;
    z-index: 100;
  }
  
  .ds-nav-inner {
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }
  
  .ds-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
  }
  
  .ds-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }
  
  .ds-logo-text strong {
    font-size: 15px;
    color: var(--ink, #1a1a1a);
  }
  
  .ds-logo-text small {
    font-size: 10px;
    color: var(--ink-2, #666);
  }
  
  .ds-logo-mark {
    width: 32px !important;
    height: 32px !important;
  }
  
  .ds-nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    display: flex;
    gap: 4px;
  }
  
  .ds-nav-links::-webkit-scrollbar {
    display: none;
  }
  
  .ds-nav-links > a, .ds-nav-links > .nav-dropdown {
    flex-shrink: 0;
    font-size: 13px;
    padding: 6px 10px !important;
    white-space: nowrap;
  }
  
  .nav-dropdown {
    position: relative;
  }
  
  .nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 140px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    padding: 6px 0;
  }
  
  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown.active .dropdown-menu {
    display: block;
  }
  
  .nav-dropdown .dropdown-menu a {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--ink, #1a1a1a);
    white-space: nowrap;
  }
  
  .ds-nav-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .ds-nav-actions button,
  .ds-btn {
    padding: 6px 14px !important;
    font-size: 13px !important;
    min-height: 36px;
    border-radius: 8px;
  }
  
  .ds-btn-primary {
    background: var(--brand, #0e7c6e);
    color: #fff;
    border: none;
  }
  
  /* === 下拉菜单适配 === */
  .dropdown-menu, .my-dropdown-menu {
    min-width: 160px !important;
    max-width: 90vw;
    right: 0 !important;
    left: auto !important;
  }
  
  /* === 标题适配 === */
  h1 { font-size: 20px !important; }
  h2 { font-size: 18px !important; }
  h3 { font-size: 16px !important; }
  h4 { font-size: 15px !important; }
  
  .page-title, .section-title {
    font-size: 18px !important;
    margin-bottom: 12px !important;
  }
  
  /* === 按钮适配 === */
  .btn, button, input[type="submit"], input[type="button"] {
    min-height: 40px;
    padding: 8px 16px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
  }
  
  .btn-sm {
    min-height: 32px;
    padding: 4px 10px !important;
    font-size: 12px !important;
  }
  
  .btn-lg, .btn-large {
    width: 100%;
    min-height: 48px;
    font-size: 16px !important;
  }
  
  /* === 表单适配 === */
  input, select, textarea {
    font-size: 14px !important;
    padding: 10px 12px !important;
    min-height: 40px;
    border-radius: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    border: 1px solid var(--line, #e0e0e0);
  }
  
  textarea {
    min-height: 80px;
    resize: vertical;
  }
  
  .form-group, .form-item {
    margin-bottom: 14px !important;
  }
  
  .form-group label, .form-item label {
    font-size: 13px !important;
    margin-bottom: 6px !important;
    display: block;
    color: var(--ink-2, #555);
    font-weight: 500;
  }
  
  .form-row {
    flex-direction: column !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
  }
  
  .form-row > .form-group,
  .form-row > .form-item,
  .form-row > div {
    width: 100% !important;
    margin-bottom: 14px !important;
  }
  
  .client-select {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px;
  }
  
  .client-select select {
    width: 100% !important;
  }
  
  .client-select .btn {
    width: 100% !important;
  }
  
  /* === 上传区域适配 === */
  .upload-panel, .upload-section, .file-upload-area {
    margin-bottom: 16px;
  }
  
  .upload-panel h3, .upload-section h3 {
    font-size: 15px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line, #e0e0e0);
  }
  
  .file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
  }
  
  .file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px !important;
    border-radius: 8px !important;
    border: 1px solid var(--line, #e0e0e0);
    background: var(--bg-2, #fafafa);
  }
  
  .file-item .file-icon {
    font-size: 24px;
    flex-shrink: 0;
  }
  
  .file-item .file-info {
    flex: 1;
    min-width: 0;
  }
  
  .file-item .file-name {
    font-size: 13px !important;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
  }
  
  .file-item .file-size {
    font-size: 11px;
    color: var(--ink-3, #999);
  }
  
  .file-item .file-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
  }
  
  .file-item .file-actions .btn {
    padding: 4px 10px !important;
    font-size: 12px !important;
    min-height: 28px;
  }
  
  .upload-btn, .upload-trigger {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px dashed var(--line, #ddd);
    border-radius: 10px;
    background: var(--bg-2, #fafafa);
    color: var(--ink-2, #666);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .upload-btn:hover, .upload-trigger:hover {
    border-color: var(--brand, #0e7c6e);
    color: var(--brand, #0e7c6e);
    background: var(--brand-soft, #e7f3f0);
  }
  
  /* === 搜索栏适配 === */
  .search-bar, .search-row, .filter-bar {
    flex-direction: column !important;
    gap: 10px !important;
    padding: 12px !important;
  }
  
  .search-bar input, .search-row input, .filter-bar input,
  .search-bar select, .search-row select, .filter-bar select {
    width: 100% !important;
  }
  
  .search-bar .btn, .search-row .btn, .filter-bar .btn {
    width: 100% !important;
  }
  
  /* === 页面容器适配 === */
  .page-wrap, .page-container, .main-wrap {
    max-width: 100% !important;
    padding: 10px 12px !important;
    margin: 0 !important;
  }
  
  /* === 表格适配 - 横向滚动 === */
  .table-box, .table-container, .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
  }
  
  .data-table, table {
    font-size: 12px;
    min-width: 700px;
    width: 100%;
  }
  
  .data-table th, .data-table td, th, td {
    padding: 10px 8px !important;
    white-space: nowrap;
    font-size: 12px;
  }
  
  .data-table th {
    position: sticky;
    top: 0;
    background: var(--bg-2, #f5f5f5);
    z-index: 5;
  }
  
  .table-toolbar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px !important;
  }
  
  .table-toolbar .left, .table-toolbar .right {
    width: 100%;
    justify-content: space-between;
  }
  
  .table-toolbar .right {
    display: flex;
    gap: 8px;
  }
  
  .table-toolbar .btn {
    flex: 1;
    min-width: 0;
    font-size: 12px !important;
    padding: 6px 10px !important;
  }
  
  /* 操作列按钮 */
  .action-links a, .action-btns a, td a {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    margin: 2px;
    border-radius: 4px;
  }
  
  /* === 搜索栏适配 === */
  .search-row, .search-bar, .filter-bar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px !important;
  }
  
  .search-row > *, .search-bar > *, .filter-bar > * {
    flex: 1;
    min-width: 120px;
  }
  
  .search-row input, .search-row select,
  .search-bar input, .search-bar select,
  .filter-bar input, .filter-bar select {
    width: 100% !important;
    font-size: 13px !important;
    padding: 8px 10px !important;
    min-height: 38px;
  }
  
  .search-row .btn, .search-bar .btn, .filter-bar .btn {
    flex: 0 0 auto;
    min-width: 80px;
  }
  
  /* === 统计卡片适配 === */
  .stats-grid, .stat-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 16px;
  }
  
  .stat-card {
    padding: 12px !important;
    border-radius: 10px !important;
    text-align: center;
  }
  
  .stat-card .stat-number {
    font-size: 22px !important;
    font-weight: 700;
    color: var(--brand, #0e7c6e);
  }
  
  .stat-card .stat-label {
    font-size: 11px !important;
    color: var(--ink-2, #666);
    margin-top: 4px;
  }
  
  /* === 卡片/网格布局适配 === */
  .card-grid, .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  .card, .stat-card, .info-card {
    padding: 12px !important;
    border-radius: 12px !important;
  }
  
  .stat-card .stat-number {
    font-size: 24px !important;
  }
  
  .stat-card .stat-label {
    font-size: 12px !important;
  }
  
  /* === 弹窗/模态框适配 === */
  .modal-mask, .popup-mask, .dialog-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px !important;
  }
  .modal-mask.show, .popup-mask.show, .dialog-mask.show {
    display: flex;
  }
  
  .modal, .modal-content, .modal-box, .popup, .popup-content, .dialog, .dialog-content {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 85vh !important;
    margin: 0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
  }
  
  .modal-header, .popup-header, .dialog-header {
    padding: 14px 16px !important;
    font-size: 16px !important;
    font-weight: 600;
    border-bottom: 1px solid var(--line, #eee);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
  }
  
  .modal-close, .popup-close, .dialog-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: var(--ink-2, #666);
    background: transparent;
    border: none;
  }
  
  .modal-close:hover, .popup-close:hover {
    background: var(--bg-2, #f5f5f5);
  }
  
  .modal-body, .popup-body, .dialog-body {
    padding: 16px !important;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .modal-footer, .popup-footer, .dialog-footer {
    padding: 12px 16px !important;
    border-top: 1px solid var(--line, #eee);
    display: flex;
    flex-direction: column-reverse !important;
    gap: 8px !important;
    flex-shrink: 0;
  }
  
  .modal-footer .btn, .popup-footer .btn, .dialog-footer .btn {
    width: 100% !important;
    min-height: 44px;
  }
  
  /* === 登录弹窗特殊适配 === */
  .auth-modal {
    max-width: 380px !important;
    margin: 0 auto !important;
  }
  
  .auth-modal .modal-header {
    padding: 0 !important;
    border: none;
    position: relative;
  }
  
  .auth-tabs {
    display: flex;
    width: 100%;
    border-bottom: 1px solid var(--line, #eee);
  }
  
  .auth-tab {
    flex: 1;
    text-align: center;
    padding: 14px 10px !important;
    font-size: 15px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    color: var(--ink-2, #666);
    transition: all 0.2s;
  }
  
  .auth-tab.active {
    border-bottom-color: var(--brand, #0e7c6e);
    color: var(--brand, #0e7c6e);
    font-weight: 600;
  }
  
  .auth-body {
    padding: 20px 16px !important;
  }
  
  .auth-form-group {
    margin-bottom: 16px !important;
  }
  
  .auth-form-group label {
    display: block;
    font-size: 13px;
    color: var(--ink-2, #555);
    margin-bottom: 6px !important;
    font-weight: 500;
  }
  
  .auth-form-group input {
    width: 100% !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    border: 1px solid var(--line, #ddd);
    border-radius: 8px !important;
    box-sizing: border-box;
  }
  
  .auth-form-group input:focus {
    outline: none;
    border-color: var(--brand, #0e7c6e);
    box-shadow: 0 0 0 3px rgba(14,124,110,0.1);
  }
  
  .auth-btn {
    width: 100%;
    min-height: 48px;
    background: var(--brand, #0e7c6e);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
  }
  
  .auth-btn:hover {
    background: var(--brand-strong, #0a665a);
  }
  
  .auth-link {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--ink-2, #666);
  }
  
  .auth-link a {
    color: var(--brand, #0e7c6e);
    cursor: pointer;
    text-decoration: none;
  }
  
  .auth-code-row {
    display: flex;
    gap: 10px;
  }
  
  .auth-code-row input {
    flex: 1;
  }
  
  .auth-code-btn {
    flex-shrink: 0;
    padding: 0 14px;
    min-height: 44px;
    background: var(--brand-soft, #e7f3f0);
    color: var(--brand, #0e7c6e);
    border: 1px solid var(--brand, #0e7c6e);
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
  }
  
  .auth-third-login {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line, #eee);
  }
  
  .auth-third-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--bg-2, #f5f5f5);
    cursor: pointer;
    transition: transform 0.2s;
  }
  
  .auth-third-btn:hover {
    transform: scale(1.1);
  }
  
  /* === 上传区域适配 === */
  .upload-area, .upload-box, .drop-zone {
    padding: 20px !important;
    min-height: 100px !important;
    border-radius: 12px !important;
  }
  
  .upload-area .upload-icon, .upload-box .upload-icon {
    font-size: 32px !important;
  }
  
  .upload-area .upload-text, .upload-box .upload-text {
    font-size: 13px !important;
  }
  
  .file-list, .uploaded-files {
    gap: 8px !important;
  }
  
  .file-item {
    padding: 8px !important;
    border-radius: 8px !important;
  }
  
  .file-item .file-name {
    font-size: 12px !important;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  /* === 标签/徽章适配 === */
  .tag, .badge, .status-tag {
    font-size: 11px !important;
    padding: 2px 8px !important;
    border-radius: 10px !important;
  }
  
  /* === 分页适配 === */
  .pagination, .pager {
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
  }
  
  .pagination a, .pagination span, .pager a, .pager span {
    min-width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 13px;
    padding: 0 8px;
  }
  
  /* === 时间轴适配 === */
  .timeline {
    padding-left: 20px !important;
  }
  
  .timeline-item {
    padding-bottom: 16px !important;
  }
  
  .timeline-item .timeline-content {
    padding: 8px 12px !important;
    border-radius: 8px !important;
  }
  
  .timeline-item .timeline-title {
    font-size: 13px !important;
  }
  
  .timeline-item .timeline-desc {
    font-size: 12px !important;
  }
  
  /* === 商标监控页适配 === */
  .monitor-list, .tm-monitor-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .monitor-item, .tm-monitor-card {
    padding: 14px !important;
    border-radius: 12px !important;
    border: 1px solid var(--line, #e0e0e0);
    background: var(--card, #fff);
  }
  
  .monitor-item.has-alert, .tm-monitor-card.has-alert {
    border-left: 4px solid #f5222d;
    background: #fff5f5;
  }
  
  .monitor-item .tm-header, .tm-monitor-card .tm-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
  }
  
  .monitor-item .tm-name, .tm-monitor-card .tm-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink, #1a1a1a);
  }
  
  .monitor-item .tm-meta, .tm-monitor-card .tm-meta {
    font-size: 12px;
    color: var(--ink-2, #666);
    margin-top: 4px;
  }
  
  .monitor-btns, .monitor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line, #eee);
  }
  
  .monitor-btn {
    flex: 1;
    min-width: 75px;
    padding: 8px 10px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
    text-align: center;
    cursor: pointer;
    border: 1px solid;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }
  
  .monitor-btn.gray {
    background: #f5f5f5;
    color: #999;
    border-color: #e0e0e0;
  }
  
  .monitor-btn.green {
    background: linear-gradient(135deg, #0e7c6e, #2f9e8f);
    color: #fff;
    border-color: #0e7c6e;
    box-shadow: 0 2px 6px rgba(14,124,110,0.25);
  }
  
  .monitor-btn.checking {
    background: #e3f2fd;
    color: #1565c0;
    border-color: #90caf9;
    animation: pulse-blue 1s infinite;
  }
  
  .monitor-btn.red {
    background: #ffebee;
    color: #c62828;
    border-color: #ef9a9a;
    animation: pulse-red 1.5s infinite, bounce-red 0.8s infinite;
  }
  
  .monitor-btn .ack-btn {
    margin-left: 4px;
    padding: 2px 6px;
    background: #fff;
    border: 1px solid #ef9a9a;
    border-radius: 10px;
    font-size: 10px;
    color: #c62828;
    cursor: pointer;
  }
  
  /* === 时间轴适配 === */
  .timeline-wrap, .timeline-container {
    padding-left: 0 !important;
  }
  
  .timeline {
    position: relative;
    padding-left: 24px !important;
    margin: 0;
  }
  
  .timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--line, #e0e0e0);
  }
  
  .timeline-item {
    position: relative;
    padding-bottom: 16px !important;
  }
  
  .timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--line, #e0e0e0);
    z-index: 1;
  }
  
  .timeline-item.done::before {
    background: var(--brand, #0e7c6e);
    border-color: var(--brand, #0e7c6e);
  }
  
  .timeline-item.current::before {
    background: #fff;
    border-color: var(--brand, #0e7c6e);
    box-shadow: 0 0 0 4px rgba(14,124,110,0.2);
  }
  
  .timeline-item .timeline-content {
    padding: 10px 12px !important;
    border-radius: 8px !important;
    background: var(--bg-2, #fafafa);
  }
  
  .timeline-item .timeline-title {
    font-size: 13px !important;
    font-weight: 600;
    color: var(--ink, #1a1a1a);
  }
  
  .timeline-item .timeline-desc {
    font-size: 12px !important;
    color: var(--ink-2, #666);
    margin-top: 4px;
  }
  
  .timeline-item .timeline-date {
    font-size: 11px;
    color: var(--ink-3, #999);
    margin-top: 4px;
  }
  
  /* === 商品小项标签适配 === */
  .goods-tags, .goods-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
  }
  
  .goods-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--brand-soft, #e7f3f0);
    color: var(--brand, #0e7c6e);
    border-radius: 16px;
    font-size: 13px;
  }
  
  .goods-tag .remove-tag {
    cursor: pointer;
    font-size: 14px;
    opacity: 0.7;
  }
  
  .goods-tag .remove-tag:hover {
    opacity: 1;
  }
  
  .goods-tag-input {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  
  .goods-tag-input input {
    width: 150px !important;
    min-height: 32px;
    padding: 4px 10px !important;
    font-size: 13px !important;
    border: 1px solid var(--brand, #0e7c6e);
    border-radius: 14px;
  }
  
  /* === 详情页布局适配 === */
  .detail-layout, .detail-container {
    flex-direction: column !important;
  }
  
  .detail-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  .detail-grid .detail-item {
    padding: 10px 12px;
    background: var(--bg-2, #fafafa);
    border-radius: 8px;
  }
  
  .detail-grid .detail-label {
    font-size: 12px;
    color: var(--ink-2, #666);
    margin-bottom: 4px;
  }
  
  .detail-grid .detail-value {
    font-size: 14px;
    color: var(--ink, #1a1a1a);
    font-weight: 500;
  }
  
  /* === 商标列表卡片适配 === */
  .tm-list-item, .tm-card {
    padding: 12px !important;
    border-radius: 12px !important;
    margin-bottom: 10px !important;
  }
  
  .tm-list-item .tm-name, .tm-card .tm-name {
    font-size: 15px !important;
    font-weight: 600;
  }
  
  .tm-list-item .tm-info, .tm-card .tm-info {
    font-size: 12px !important;
    color: #666;
  }
  
  /* === 底部操作栏 === */
  .bottom-bar, .fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 16px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    display: flex;
    gap: 10px;
  }
  
  .bottom-bar .btn {
    flex: 1;
  }
  
  /* === 隐藏PC端元素 === */
  .pc-only, .desktop-only {
    display: none !important;
  }
  
  /* === 显示移动端元素 === */
  .mobile-only {
    display: block !important;
  }
  
  /* === 提示文字适配 === */
  .hint, .tip, .note, .description {
    font-size: 12px !important;
    line-height: 1.5;
  }
  
  /* === 空状态适配 === */
  .empty-state {
    padding: 40px 20px !important;
  }
  
  .empty-state .icon {
    font-size: 48px !important;
  }
  
  .empty-state .text {
    font-size: 14px !important;
  }
  
  /* === 进度条/步骤条适配 === */
  .steps, .progress-steps {
    flex-wrap: wrap;
    gap: 4px;
  }
  
  .step {
    flex: 1;
    min-width: 60px;
    text-align: center;
    font-size: 11px;
  }
  
  .step .step-number {
    width: 28px;
    height: 28px;
    line-height: 28px;
    font-size: 13px;
  }
  
  /* === 选项卡/Tab适配 === */
  .tabs, .tab-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .tabs::-webkit-scrollbar, .tab-nav::-webkit-scrollbar {
    display: none;
  }
  
  .tab-item, .tab {
    flex-shrink: 0;
    padding: 8px 14px !important;
    font-size: 13px !important;
  }
  
  /* === 开关/Switch适配 === */
  .switch, .toggle {
    width: 44px;
    height: 24px;
  }
  
  /* === 复选框/单选框适配 === */
  input[type="checkbox"], input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 6px;
  }
  
  /* === 图片适配 === */
  img {
    max-width: 100%;
    height: auto;
  }
  
  .logo-img, .brand-logo {
    max-height: 32px;
  }
  
  /* === 侧边栏适配 === */
  .sidebar, .side-menu, .left-panel {
    position: fixed !important;
    left: -100% !important;
    top: 0;
    height: 100vh;
    width: 80% !important;
    max-width: 300px;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
  }
  
  .sidebar.open, .side-menu.open, .left-panel.open {
    left: 0 !important;
  }
  
  .sidebar-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }
  
  .sidebar-mask.show {
    display: block;
  }
  
  /* === 主内容区（有侧边栏时） === */
  .main-content.with-sidebar {
    margin-left: 0 !important;
    width: 100% !important;
  }
  
  /* === Toast提示适配 === */
  .toast, .message, .notification {
    max-width: 90vw !important;
    font-size: 13px !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
  }
  
  /* === 加载动画适配 === */
  .loading, .spinner {
    width: 32px;
    height: 32px;
  }
  
  /* === 分隔线适配 === */
  .divider, hr {
    margin: 12px 0 !important;
  }
  
  /* === 折叠面板适配 === */
  .collapse, .accordion, .collapse-item {
    border-radius: 8px !important;
  }
  
  .collapse-header, .accordion-header {
    padding: 12px !important;
    font-size: 14px !important;
  }
  
  .collapse-body, .accordion-body {
    padding: 12px !important;
  }
  
  /* === 价格/金额展示适配 === */
  .price, .amount, .money {
    font-size: 18px !important;
  }
  
  .price small, .amount small {
    font-size: 12px;
  }
  
  /* === 倒计时适配 === */
  .countdown, .timer {
    font-size: 14px !important;
  }
  
  /* === 二维码适配 === */
  .qrcode, .qr-code {
    width: 120px !important;
    height: 120px !important;
  }
  
  /* === 头像适配 === */
  .avatar, .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
  }
  
  /* === 徽章/角标适配 === */
  .badge-dot, .notification-badge {
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    font-size: 10px;
    padding: 0 4px;
  }
  
  /* === 底部安全区适配（iPhone X+） === */
  @supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-bar, .fixed-bottom {
      padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }
    
    body {
      padding-bottom: env(safe-area-inset-bottom);
    }
  }
  
  /* === 横屏适配 === */
  @media screen and (max-width: 768px) and (orientation: landscape) {
    .modal-content, .modal-box {
      max-height: 80vh !important;
    }
    
    .modal-body, .popup-body {
      max-height: 50vh;
    }
  }
}

/* === 小屏手机适配（<=480px） === */
@media screen and (max-width: 480px) {
  body {
    font-size: 13px;
  }
  
  h1 { font-size: 18px !important; }
  h2 { font-size: 16px !important; }
  h3 { font-size: 15px !important; }
  
  .ds-nav-logo {
    font-size: 14px !important;
  }
  
  .ds-nav-links a, .ds-nav-links .nav-dropdown {
    font-size: 12px;
    padding: 5px 8px !important;
  }
  
  .stat-card .stat-number {
    font-size: 20px !important;
  }
  
  .btn, button {
    min-height: 38px;
    padding: 6px 12px !important;
    font-size: 13px !important;
  }
  
  input, select, textarea {
    font-size: 13px !important;
    padding: 8px 10px !important;
    min-height: 38px;
  }
}
