/* ============================================================
   桌面端适配（白天 / 夜间双主题）
   暗色由 <html data-theme="dark"> 启用（与 iniche_style_full.css 一致）
   颜色统一引用主样式表的 CSS 变量；标签激活底等专属色在下方声明。
   ============================================================ */

/* 桌面端「蓝调」标签激活底色（主样式表未定义，这里自包含声明） */
:root {
  --tab-active-bg: #f5f9ff;
}
[data-theme="dark"] {
  --tab-active-bg: rgba(74, 158, 255, 0.12);
}

@media screen and (min-width: 769px) {

  /* ============================================================
     Header 桌面端
     ============================================================ */
  #header {
    padding: 12px 32px;
    gap: 20px;
    position: sticky;
    top: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  }
  #header .hdr-search { height: 42px; }
  #header .hdr-ico svg { width: 28px; height: 28px; }


  /* ============================================================
     底部导航
     ============================================================ */
  #bottom-nav {
    display: flex;
    gap: 24px;
    margin-left: auto;
  }
  #bottom-nav a {
    font-size: 14px;
    padding: 6px 4px;
    position: relative;
  }
  #bottom-nav a.router-link-active::after {
    content: '';
    position: absolute;
    left: 20%; right: 20%; bottom: -2px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
  }


  /* ============================================================
     主内容
     ============================================================ */
  #main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px 40px;
  }


  /* ============================================================
     首页：未登录横幅
     ============================================================ */
  .hero {
    margin: 20px 0 32px;
    border-radius: 24px;
    padding: 48px 32px 40px;
  }
  .hero-title { font-size: 28px; }
  .hero-desc  { font-size: 16px; }
  .btn-login  { padding: 12px 48px; font-size: 16px; }


  /* ============================================================
     首页：精选资源
     ============================================================ */
  .systems-header { padding: 0 4px; margin: 16px 0 8px; }
  .systems-title  { font-size: 20px; }
  .systems-scroll { margin: 0 0 16px; padding: 4px 0 8px; }
  .system {
    padding: 7px 18px;
    font-size: 14px;
  }
  .system:hover {
    background: var(--bg-mute);
    cursor: pointer;
  }


  /* ============================================================
     首页：Tab 栏
     ============================================================ */
  .tabs {
    margin: 16px 0 20px;
    padding: 0;
    justify-content: flex-start;
    gap: 8px;
  }
  .tab {
    flex: none;
    padding: 12px 24px;
    font-size: 15px;
    border-radius: 8px 8px 0 0;
  }
  .tab:hover { color: #4a9eff; }
  .tab.active { background: var(--tab-active-bg); }


  /* ============================================================
     应用网格：3 列
     ============================================================ */
  .app-grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    row-gap: 26px;
    padding: 0 0 24px;
  }
  .app-card {
    padding: 10px;
    border-radius: 12px;
    transition: background 0.2s, transform 0.15s;
  }
  .app-card:hover {
    background: var(--bg-input);
    transform: translateY(-2px);
  }
  .app-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
  .app-card-title { font-size: 15px; }


  /* ============================================================
     筛选栏
     ============================================================ */
  .filter-bar {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
  }
  .filter-row { gap: 12px; }
  .filter-item select {
    height: 38px;
    font-size: 14px;
  }
  .btn-filter {
    height: 38px;
    font-size: 14px;
  }


  /* ============================================================
     分页
     ============================================================ */
  .pagination {
    padding: 28px 0 40px;
  }
  .page-btn {
    min-width: 38px;
    height: 38px;
    font-size: 14px;
  }
  .page-jump input { width: 70px; height: 38px; }
  .page-jump button { height: 38px; padding: 0 22px; }


  /* ============================================================
     AppDetail（新版）
     ============================================================ */
  .app-header {
    padding: 32px 0 24px;
    gap: 24px;
  }
  .app-header-left {
    gap: 20px;
  }
  .app-icon {
    width: 108px;
    height: 108px;
    border-radius: 24px;
  }
  .app-title {
    font-size: 24px;
  }
  .app-platform {
    font-size: 13px;
    padding: 4px 12px;
  }

  .app-header-actions {
    width: 240px;
    gap: 8px;
  }
  .app-action-btn {
    height: 38px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 19px;
  }

  .app-attrs {
    padding: 16px 0;
    gap: 32px;
  }
  .attr-label { font-size: 12px; }
  .attr-value { font-size: 14px; }

  .detail-tab {
    flex: none;
    padding: 14px 28px;
    font-size: 15px;
  }
  .detail-tab-content {
    padding: 20px 0;
  }
  .intro-text {
    font-size: 15px;
    line-height: 1.8;
  }


  /* ============================================================
     登录页（桌面微调）
     ============================================================ */
  .box { padding: 32px 0; max-width: 480px; margin: 0 auto; }
  .box h2 { font-size: 15px; margin-bottom: 22px; }
  .box button { height: 46px; font-size: 15px; margin-bottom: 14px; }


  /* ============================================================
     发布弹窗（桌面居中）
     ============================================================ */
  .publish-modal { align-items: center; }
  .publish-sheet {
    border-radius: 20px;
    max-width: 480px;
    padding: 24px;
  }

  .my-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 0 60px;
  }
  .my-menu-item:hover {
    background: var(--bg-input);
  }


  /* ============================================================
     以下原文件排在媒体查询外、实为桌面端规则，已收回本媒体查询内
     （修正：原 .edit-page / .reset-* / .banner-* / .home-subpage
      等漏在 769px 媒体查询之外，会全局生效，现统一限定为桌面端）
     ============================================================ */
  .edit-page {
    padding: 32px 0 60px;
  }

  .edit-field input[type="text"],
  .edit-field textarea,
  .edit-field select {
    padding: 12px 16px;
    font-size: 15px;
  }

  .edit-icon-preview {
    width: 96px;
    height: 96px;
    border-radius: 20px;
  }

  .edit-ss-item,
  .edit-ss-add {
    width: 110px;
    height: 145px;
  }

  .edit-btn {
    height: 50px;
    border-radius: 25px;
    font-size: 16px;
  }

  .reset-page {
    padding: 60px 0;
  }
  .reset-box {
    padding: 32px 24px;
  }
  .reset-title {
    font-size: 24px;
  }
  .reset-field input {
    height: 50px;
    font-size: 15px;
  }
  .reset-code-btn {
    height: 50px;
    font-size: 14px;
  }
  .reset-submit {
    height: 50px;
    font-size: 16px;
  }

  .users-list {
    gap: 20px;
  }
  .user-card {
    width: 76px;
  }
  .user-avatar {
    width: 64px;
    height: 64px;
  }
  .user-nickname {
    font-size: 13px;
    max-width: 76px;
  }

  .banner-scroll {
    margin: 0;
  }
  .banner-item {
    width: 70%;
    border-radius: 20px;
  }
  .banner-title {
    font-size: 16px;
    padding: 30px 20px 14px;
  }
  .banner-dot {
    width: 8px;
    height: 8px;
  }
  .banner-dot.active {
    width: 24px;
  }

  .home-subpage .users-list {
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
  }
  .home-subpage .user-avatar {
    width: 72px;
    height: 72px;
  }
}

/* ============================================================
   大屏（≥ 1200px）：4 列
   ============================================================ */
@media screen and (min-width: 1200px) {
  .app-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
