@media (max-width: 768px) {
  :root {
    --mobile-blue: #2a4cdc;
    --mobile-blue-dark: #1838b8;
    --mobile-blue-soft: #eef4ff;
    --mobile-ink: #15223a;
    --mobile-text: #3a4558;
    --mobile-muted: #7a8598;
    --mobile-bg: #f4f6fb;
    --mobile-line: #e5eaf3;
    --mobile-card: #ffffff;
    --mobile-green: #17a673;
    --mobile-amber: #f4a62a;
    --mobile-shadow: 0 10px 24px rgba(21, 34, 58, 0.08);
  }

  html,
  body {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    background: var(--mobile-bg);
  }

  body {
    color: var(--mobile-text);
    padding-bottom: 72px;
    -webkit-font-smoothing: antialiased;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: 220px;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient(180deg, rgba(42, 76, 220, 0.11), rgba(244, 246, 251, 0));
  }

  img,
  video,
  iframe {
    max-width: 100%;
    height: auto;
  }

  .container {
    width: 100%;
    max-width: none;
    padding-right: 14px;
    padding-left: 14px;
  }

  .header {
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 10px 0 9px !important;
    border-bottom: 1px solid rgba(229, 234, 243, 0.9);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 22px rgba(21, 34, 58, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .header .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    align-items: start;
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  .logo {
    display: flex;
    align-items: center;
    min-height: 28px;
  }

  .logo a,
  .logo img {
    display: block !important;
  }

  .logo img {
    width: auto;
    height: 23px !important;
  }

  .nav {
    width: 100%;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: max-content;
    min-width: 100%;
    margin-top: 0 !important;
    padding: 0 0 2px;
  }

  .nav ul li {
    flex: 0 0 auto;
    margin: 0 !important;
  }

  .nav ul li a {
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid #e2e8f4;
    border-radius: 8px;
    background: #f8faff;
    color: #43506a;
    font-size: 13px;
    font-weight: 600;
    line-height: 32px;
    white-space: nowrap;
  }

  .nav ul li a i {
    margin-right: 6px;
    color: var(--mobile-blue);
    font-size: 13px;
  }

  .search-section {
    margin: 12px 12px 0;
    padding: 34px 0 24px !important;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--mobile-blue);
    background-position: center;
    box-shadow: var(--mobile-shadow);
  }

  .search-section::before {
    background:
      linear-gradient(135deg, rgba(24, 56, 184, 0.92), rgba(42, 76, 220, 0.76)),
      linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.14));
  }

  .search-section > .container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .search-section h2 {
    max-width: 290px;
    margin: 0 auto 18px;
    color: #fff;
    font-size: 24px !important;
    font-weight: 750;
    line-height: 1.32;
    text-shadow: none;
  }

  .search-box {
    display: block;
    width: 100%;
    max-width: none !important;
    margin: 0 auto 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(9, 24, 85, 0.18);
  }

  .search-box form {
    display: flex !important;
    width: 100%;
    flex-direction: row !important;
    align-items: stretch;
  }

  .search-box input {
    min-width: 0;
    height: 48px;
    margin: 0 !important;
    padding: 0 15px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff;
    color: var(--mobile-ink);
    font-size: 15px !important;
  }

  .search-box input::placeholder {
    color: #9aa5b7;
  }

  .search-box button {
    width: 52px;
    min-width: 52px;
    height: 48px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--mobile-blue);
    color: #fff;
  }

  .search-tags {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0 0 2px;
    text-align: left;
  }

  .search-tags span,
  .search-tags a {
    flex: 0 0 auto;
  }

  .search-tags span {
    width: 100%;
    margin: 0 0 2px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
  }

  .search-tags a {
    min-height: 28px;
    margin: 0;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.13);
    color: #fff !important;
    font-size: 13px;
    line-height: 18px;
  }

  .main-content {
    padding: 18px 0 30px !important;
  }

  .main-content .container {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .sidebar {
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .category-group {
    margin: 0 0 12px;
    padding: 14px;
    border: 1px solid var(--mobile-line);
    border-left: 0;
    border-radius: 8px;
    background: var(--mobile-card);
    box-shadow: 0 6px 18px rgba(21, 34, 58, 0.05);
  }

  .category-group:last-child {
    margin-bottom: 0;
    border-left: 0;
    background: var(--mobile-card);
  }

  .category-group h3,
  .sidebar h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--mobile-ink);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.4;
  }

  .category-group h3::before {
    content: "";
    width: 4px;
    height: 16px;
    border-radius: 4px;
    background: var(--mobile-blue);
  }

  .category-group h3::after {
    height: 1px;
    margin-left: 4px;
    background: var(--mobile-line);
  }

  .category-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .category-item {
    margin: 0;
    border-radius: 8px;
    background: transparent;
  }

  .category-item:hover {
    background: transparent;
  }

  .category-item > span,
  .category-item > a {
    min-height: 44px;
    padding: 11px 40px 11px 13px;
    border: 1px solid #e7ecf5;
    border-radius: 8px;
    background: #f9fbff;
    color: #27344c;
    font-size: 14px;
    font-weight: 650;
  }

  .category-item.active > span,
  .category-item.active > a {
    border-color: #cbd7ff;
    background: linear-gradient(180deg, #f5f8ff, #eef4ff);
    color: var(--mobile-blue-dark);
  }

  .category-item i {
    width: 20px;
    margin-right: 9px;
    color: var(--mobile-blue);
  }

  .category-item > span::after,
  .category-item > a::after {
    right: 14px;
    color: #7e8aa0;
  }

  .category-item.active > span::after,
  .category-item.active > a::after {
    color: var(--mobile-blue);
  }

  .sub-category {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    transition: max-height 0.28s ease, padding-top 0.28s ease;
  }

  .category-item.active .sub-category {
    max-height: 620px;
    padding-top: 9px;
  }

  .sub-category li {
    margin: 0;
  }

  .sub-category li a {
    min-height: 32px;
    padding: 7px 10px;
    border: 1px solid #e6ebf4;
    border-radius: 8px;
    background: #fff;
    color: #4d596d;
    font-size: 13px;
    line-height: 18px;
  }

  .content {
    width: 100%;
    min-width: 0;
  }

  .featured-articles,
  .latest-articles,
  .faq-section {
    margin-bottom: 18px;
  }

  .featured-articles h3,
  .latest-articles h3,
  .faq-section h3 {
    gap: 8px;
    margin-bottom: 12px;
    color: var(--mobile-ink);
    font-size: 17px;
    font-weight: 750;
  }

  .featured-articles h3::before,
  .latest-articles h3::before,
  .faq-section h3::before {
    content: "";
    width: 4px;
    height: 16px;
    border-radius: 4px;
    background: var(--mobile-blue);
  }

  .featured-articles h3::after,
  .latest-articles h3::after,
  .faq-section h3::after {
    margin-left: 4px;
    background: var(--mobile-line);
  }

  .articles-grid,
  .article-list {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .article-card {
    position: relative;
    padding: 15px 15px 14px;
    overflow: hidden;
    border: 1px solid #e6ebf4;
    border-radius: 8px;
    background: var(--mobile-card);
    box-shadow: 0 8px 22px rgba(21, 34, 58, 0.06);
  }

  .article-card::before {
    content: "";
    position: absolute;
    top: 15px;
    bottom: 15px;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--mobile-blue);
  }

  .article-card:hover {
    transform: none;
    box-shadow: 0 8px 22px rgba(21, 34, 58, 0.06);
  }

  .article-card h4 {
    margin-bottom: 8px;
    padding-left: 2px;
    color: var(--mobile-ink);
    font-size: 16px;
    line-height: 1.45;
  }

  .article-card h4 a {
    color: var(--mobile-ink) !important;
  }

  .article-card p {
    margin-bottom: 10px;
    color: #697487;
    font-size: 13px;
    line-height: 1.65;
  }

  .read-more {
    min-height: 28px;
    color: var(--mobile-blue);
    font-size: 13px;
    font-weight: 700;
  }

  .latest-articles .article-list {
    gap: 9px;
  }

  .article-list li {
    margin: 0;
  }

  .article-list li a,
  .article-item {
    position: relative;
    width: 100%;
    min-height: 62px;
    padding: 13px 38px 13px 14px;
    border: 1px solid #e6ebf4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(21, 34, 58, 0.05);
  }

  .article-list li a::after,
  .article-item::after {
    content: ">";
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #b0b8c6;
    font-size: 16px;
    font-weight: 700;
  }

  .article-list li a:hover,
  .article-item:hover {
    transform: none;
    border-color: #dbe3f2;
    box-shadow: 0 5px 16px rgba(21, 34, 58, 0.05);
  }

  .article-list li a h4,
  .article-info h3 {
    margin: 0 0 5px;
    color: var(--mobile-ink);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.45;
  }

  .article-list li a p,
  .article-date,
  .article-meta,
  .article-meta span {
    color: var(--mobile-muted);
    font-size: 12px;
    line-height: 1.5;
  }

  .breadcrumb {
    margin: 0 0 10px;
    padding: 9px 11px;
    overflow-x: auto;
    border: 1px solid var(--mobile-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    color: #667085;
    font-size: 12px;
    line-height: 1.7;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(21, 34, 58, 0.04);
    scrollbar-width: none;
  }

  .breadcrumb::-webkit-scrollbar {
    display: none;
  }

  .breadcrumb a {
    color: var(--mobile-blue);
  }

  .list-content,
  .article-content,
  .related-articles,
  .faq-list {
    padding: 16px;
    border: 1px solid var(--mobile-line);
    border-radius: 8px;
    background: var(--mobile-card);
    box-shadow: 0 7px 20px rgba(21, 34, 58, 0.06);
  }

  .list-header {
    margin-bottom: 14px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--mobile-line);
  }

  .list-header h1,
  .article-content h1 {
    margin-bottom: 8px;
    color: var(--mobile-ink);
    font-size: 22px;
    font-weight: 760;
    line-height: 1.35;
  }

  .list-header p {
    color: #697487;
    font-size: 14px;
    line-height: 1.7;
  }

  .article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 11px;
  }

  .article-meta span {
    margin-right: 0;
  }

  .article-meta a {
    min-height: 30px;
    margin-left: 0 !important;
    padding: 5px 8px;
    border: 1px solid #dbe4ff;
    border-radius: 8px;
    background: var(--mobile-blue-soft);
    color: var(--mobile-blue) !important;
    font-size: 12px;
  }

  .article-body {
    padding: 10px 0 0;
    color: #2f3b50;
    font-size: 15px;
    line-height: 1.85;
    word-break: break-word;
  }

  .article-body h2 {
    margin: 24px 0 12px;
    color: var(--mobile-ink);
    font-size: 20px;
    line-height: 1.35;
  }

  .article-body h3 {
    margin: 20px 0 10px;
    color: var(--mobile-ink);
    font-size: 18px;
    line-height: 1.4;
  }

  .article-body p {
    margin-bottom: 14px;
  }

  .article-body ul,
  .article-body ol {
    padding-left: 20px;
  }

  .article-body table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .article-body img {
    border-radius: 8px;
  }

  .article-body div[style*="justify-content: space-between"] {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start !important;
  }

  .related-articles {
    margin-top: 14px;
  }

  .related-articles h3 {
    margin-bottom: 12px;
    color: var(--mobile-ink);
    font-size: 16px;
  }

  .related-articles ul {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .related-articles li {
    margin: 0;
  }

  .related-articles a {
    display: block;
    padding: 10px 12px;
    border: 1px solid #e8edf5;
    border-radius: 8px;
    background: #fafcff;
    color: #37445b;
    font-size: 13px;
    line-height: 1.5;
  }

  .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin-top: 18px;
  }

  .pagination a,
  .pagination span {
    min-width: 32px;
    margin: 0 !important;
    padding: 5px 9px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 20px;
  }

  .support-section {
    margin-top: 16px;
    padding: 26px 0 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
    border-top: 1px solid var(--mobile-line);
  }

  .support-section h3 {
    margin-bottom: 7px;
    color: var(--mobile-ink);
    font-size: 21px;
    line-height: 1.35;
  }

  .support-section p {
    margin-bottom: 16px;
    color: #687386;
    font-size: 14px;
  }

  .support-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .support-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 2px 12px;
    width: 100%;
    max-width: none;
    padding: 15px;
    text-align: left;
    border: 1px solid var(--mobile-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(21, 34, 58, 0.05);
  }

  .support-item:hover {
    transform: none;
  }

  .support-item i {
    grid-row: span 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 8px;
    background: var(--mobile-blue-soft);
    color: var(--mobile-blue);
    font-size: 18px;
  }

  .support-item:nth-child(2) i {
    background: rgba(23, 166, 115, 0.11);
    color: var(--mobile-green);
  }

  .support-item:nth-child(3) i {
    background: rgba(244, 166, 42, 0.13);
    color: var(--mobile-amber);
  }

  .support-item h4 {
    margin: 0 0 2px;
    color: var(--mobile-ink);
    font-size: 15px;
  }

  .support-item p {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
  }

  .footer {
    padding: 23px 0 18px;
    background: #fff;
    border-top: 1px solid var(--mobile-line);
  }

  .footer-content {
    display: block;
    margin-bottom: 16px;
    text-align: left;
  }

  .footer-section {
    width: 100%;
    max-width: none;
  }

  .footer-bottom {
    color: #7b8494;
    text-align: center;
  }

  .footer-links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    margin: 0 0 10px;
    padding: 0 0 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .footer-links::-webkit-scrollbar {
    display: none;
  }

  .footer-links a {
    flex: 0 0 auto;
    padding: 5px 9px;
    border: 1px solid #e8edf5;
    border-radius: 8px;
    background: #fafcff;
    color: #5f6b80;
    font-size: 12px;
  }

  .footer-bottom p,
  .footer-bottom p a {
    color: #838c9b;
    font-size: 12px;
    line-height: 1.8;
  }

  .modal {
    padding: 14px;
  }

  .modal-content {
    width: min(100%, 380px);
    max-height: calc(100vh - 28px);
    padding: 22px 18px;
    overflow-y: auto;
    border-radius: 8px;
  }

  .modal-title {
    font-size: 21px;
  }

  .wechat-modal-content {
    width: min(100%, 320px);
  }

  .wechat-qr {
    width: 190px;
    height: 190px;
    margin: 18px auto;
  }

  .chat-button {
    right: 16px;
    bottom: 18px;
    width: 50px;
    height: 50px;
    z-index: 1001;
    background: var(--mobile-blue);
    box-shadow: 0 10px 22px rgba(42, 76, 220, 0.34);
  }

  .chat-button i {
    font-size: 18px;
  }

  body .hero {
    margin: 12px 12px 0 !important;
    border-radius: 8px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%) !important;
    border: 1px solid var(--mobile-line) !important;
    box-shadow: var(--mobile-shadow) !important;
  }

  body .hero-inner,
  body .layout {
    width: 100% !important;
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  body .hero-inner {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }

  body .hero-grid,
  body .layout,
  body .gallery.cols-3,
  body .gallery.cols-2,
  body .install-methods {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body .hero-main,
  body .aside-card,
  body .toc,
  body .article {
    border-radius: 8px !important;
    border-color: var(--mobile-line) !important;
    box-shadow: 0 7px 20px rgba(21, 34, 58, 0.06) !important;
  }

  body .hero-main {
    padding: 20px 16px !important;
  }

  body .eyebrow {
    min-height: 26px !important;
    margin-bottom: 12px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
  }

  body .hero-main h1 {
    font-size: 26px !important;
    line-height: 1.26 !important;
  }

  body .hero-main p,
  body .article-section p,
  body .aside-card p {
    font-size: 14px !important;
    line-height: 1.75 !important;
  }

  body .meta {
    gap: 7px !important;
  }

  body .meta span {
    min-height: 26px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
  }

  body .aside-card {
    padding: 16px !important;
  }

  body .quick-grid {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  body .quick-grid .btn {
    min-height: 46px !important;
    padding: 0 13px !important;
    justify-content: flex-start !important;
    border-radius: 8px !important;
  }

  body .layout {
    padding-top: 16px !important;
    padding-bottom: 34px !important;
  }

  body .toc {
    position: static !important;
    padding: 13px !important;
  }

  body .toc h3 {
    margin-bottom: 9px !important;
    font-size: 15px !important;
  }

  body .toc a {
    display: inline-flex !important;
    min-height: 32px !important;
    margin: 0 6px 7px 0 !important;
    padding: 6px 9px !important;
    border: 1px solid #e3eaf6 !important;
    border-radius: 8px !important;
    background: #fafcff !important;
    font-size: 13px !important;
  }

  body .article-section {
    padding: 22px 16px !important;
  }

  body .article-section h2 {
    font-size: 22px !important;
    line-height: 1.32 !important;
  }

  body .article-section h3,
  body .scene h3 {
    font-size: 17px !important;
    line-height: 1.42 !important;
  }

  body .note,
  body .scene .prompt,
  body .step,
  body .install-method,
  body .codebox,
  body .scene,
  body .complete-tip {
    border-radius: 8px !important;
  }

  body .codebox {
    padding: 14px !important;
    font-size: 12px !important;
    line-height: 1.7 !important;
  }

  body .codebox code,
  body .article-body code {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  body figure {
    border-radius: 8px !important;
  }

  body figure img {
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  body figure figcaption {
    padding: 9px 10px !important;
    font-size: 12px !important;
  }

  body .preview-overlay {
    z-index: 10000 !important;
    padding: 12px !important;
  }

  body .preview-dialog {
    width: 100% !important;
    max-height: 92vh !important;
    border-radius: 8px !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding-right: 12px;
    padding-left: 12px;
  }

  .header .container {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .nav {
    width: calc(100% + 24px);
    margin-right: -12px;
    margin-left: -12px;
  }

  .nav ul {
    padding-right: 12px;
    padding-left: 12px;
  }

  .nav ul li a {
    min-height: 31px;
    padding: 0 10px;
    font-size: 12px;
    line-height: 31px;
  }

  .search-section {
    margin-right: 10px;
    margin-left: 10px;
    padding-top: 30px !important;
  }

  .search-section h2 {
    font-size: 22px !important;
  }

  .search-box input {
    height: 46px;
    font-size: 14px !important;
  }

  .search-box button {
    width: 48px;
    min-width: 48px;
    height: 46px;
  }

  .category-group,
  .list-content,
  .article-content,
  .related-articles,
  .faq-list {
    padding: 14px;
  }

  .article-card,
  .article-list li a,
  .article-item {
    padding-top: 13px;
    padding-bottom: 13px;
  }

  .list-header h1,
  .article-content h1 {
    font-size: 20px;
  }

  .article-body {
    font-size: 14px;
    line-height: 1.82;
  }

  .support-section h3 {
    font-size: 20px;
  }

  .chat-button {
    right: 14px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 400px) {
  .nav {
    overflow-x: visible;
  }

  .nav ul {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav ul li {
    flex: 1 1 calc(50% - 4px);
  }

  .nav ul li a {
    width: 100%;
    justify-content: center;
    padding: 0 8px;
    font-size: 12px;
  }

  .search-section {
    margin-right: 10px;
    margin-left: 10px;
  }
}
