.navbar-brand,
.navbar-brand a,
.navbar-brand .navbar-caption,
.navbar-brand .navbar-caption-wrap,
.navbar-brand::after,
.navbar-brand::before {
    text-decoration: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    background-image: none !important;
    background: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.navbar-brand a:hover,
.navbar-brand .navbar-caption:hover,
.navbar-brand .navbar-caption:focus,
.navbar-brand a:focus {
    text-decoration: none !important;
    border-bottom: none !important;
    background-image: none !important;
}

* {
    -webkit-tap-highlight-color: transparent !important;
}

a:focus,
button:focus,
.btn:focus,
.nav-link:focus {
    outline: none !important;
    box-shadow: none !important;
}

.scroll-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,154,158,0.3);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

.scroll-btn.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.scroll-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255,154,158,0.4);
}

.scroll-btn svg {
    width: 15px;
    height: 15px;
    fill: white;
    transition: transform 0.2s;
}

.scroll-btn:hover svg {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .scroll-btn {
        bottom: 20px;
        right: 20px;
        width: 30px;
        height: 30px;
    }
    .scroll-btn svg {
        width: 12px;
        height: 12px;
    }
}

.nav-link:active,
.dropdown-toggle:active,
.dropdown-item:active,
.btn:active,
a:active,
button:active {
    background-color: transparent !important;
    background: transparent !important;
}

.nav-link:focus,
.dropdown-toggle:focus,
.dropdown-item:focus,
.btn:focus {
    background-color: transparent !important;
    outline: none !important;
}

.navbar-buttons .btn:active,
.navbar-buttons .btn:focus,
.navbar-buttons .btn:visited {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%) !important;
    color: white !important;
    outline: none !important;
    box-shadow: none !important;
}

.btn:active,
.btn:focus,
.btn-primary:active,
.btn-primary:focus {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%) !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* toc目录 */
.toc-sidebar::-webkit-scrollbar {
    width: 4px;
  }
  .toc-sidebar::-webkit-scrollbar-track {
    background: #fce4ec;
    border-radius: 4px;
  }
  .toc-sidebar::-webkit-scrollbar-thumb {
    background: #ff9a9e;
    border-radius: 4px;
  }
  
  .toc-title {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ff9a9e;
    padding: 0 12px 10px 12px;
    border-bottom: 1px solid #ffd6d8;
    margin-bottom: 8px;
  }
  
  .toc-item {
    display: block;
    padding: 6px 12px;
    font-size: 0.7rem;
    color: #666;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
    overflow-x: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }
  
  .toc-item:hover {
    background: #ff9a9e22;
    color: #ff9a9e;
  }
  
  .toc-item.active {
    background: #ff9a9e;
    color: white;
  }
  
  .toc-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 140px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid #ffd6d8;
    box-shadow: 0 4px 15px rgba(255,154,158,0.1);
    z-index: 100;
    max-height: 70vh;
    overflow-y: auto;
    padding: 12px 0;
    display: none;
  }
  
  .toc-sidebar.show {
    display: block;
  }
  
  .toc-toggle-btn {
    position: fixed;
    right: 30px;
    bottom: 60px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 101;
    box-shadow: 0 4px 15px rgba(255,154,158,0.3);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    display: none;
  }
  
  .toc-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255,154,158,0.4);
  }
  
  @media (max-width: 768px) {
    .toc-toggle-btn {
      display: flex;
      bottom: 60px;
      right: 20px;
      width: 30px;
      height: 30px;
    }
    .toc-sidebar {
      display: none;
    }
    .toc-sidebar.show {
      display: none;
    }
  }

/* 时间线 */
.timeline-seq {
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    background: #ff9a9e;
    padding: 2px 10px;
    border-radius: 24px;
    margin-right: 12px;
    display: inline-block;
    font-family: monospace;
  }

  @media (max-width: 768px) {
    .timeline-wrapper {
      padding: 1rem;
      margin-left: 10px;
      margin-right: 10px;
    }
    .timeline-wrapper::before {
      left: 12px;
    }
    .timeline-date-block {
      margin-left: 28px;
    }
    .timeline-date-block::before {
      left: -18px;
    }
    .timeline-item {
      padding-left: 1.6rem;
    }
  }

  .timeline-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 20px auto;
  }
  .timeline-btns button {
    padding: 1px 16px;
    border: none;
    background: #ffd6d8;
    color: #555;
    font-weight: 600;
    border-radius: 32px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
  }
  .timeline-btns button.active,
  .timeline-btns button:hover {
    background: #ff9a9e;
    color: white;
  }

  .timeline-loading {
    text-align: center;
    padding: 32px;
    color: #999;
  }

  .timeline-wrapper {
    max-width: 900px;
    margin: 20px auto 40px auto;
    padding: 1.2rem 2rem;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #ffd6d8;
    position: relative;
    box-shadow: 0 8px 20px rgba(255,154,158,0.08);
  }
  .timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 26px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: #ff9a9e;
    border-radius: 2px;
  }

  .timeline-date-block {
    margin-left: 48px;
    margin-bottom: 1.5rem;
    position: relative;
  }
  .timeline-date-block::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 10px;
    width: 12px;
    height: 12px;
    background: #ff9a9e;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #ff9a9e;
  }

  .timeline-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff9a9e;
    margin-bottom: 0px;
    padding-left: 0px;
  }

  .timeline-item {
    background: #fff9fa;
    border-left: 3px solid #ff9a9e;
    border-radius: 12px;
    padding: 0.5rem 1rem 0.5rem 2.2rem;
    margin-bottom: 10px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: 0.1s;
  }
  .timeline-item:hover {
    background: #fff0f2;
  }

  .timeline-hidden-tip {
    text-align: center;
    background: #fff9fa;
    border: 1px solid #ffd6d8;
    border-radius: 20px;
    padding: 15px;
    color: #ff9a9e;
    margin: 20px;
    font-style: italic;
  }

/* 切换大按钮 */
.region-switcher {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px 0 20px;
  }
  .region-switcher button {
    padding: 10px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 40px;
    background: #fce4ec;
    color: #666;
    cursor: pointer;
    transition: 0.2s;
  }
  .region-switcher button.active,
  .region-switcher button:hover {
    background: #ff9a9e;
    color: white;
    box-shadow: 0 4px 12px rgba(255,154,158,0.3);
  }

/* 小按钮 */
.small-type-switcher button {
    padding: 10px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 40px;
    background: #fce4ec;
    color: #666;
    cursor: pointer;
    transition: 0.2s;
  }
  .small-type-switcher button.active,
  .small-type-switcher button:hover {
    background: #ff9a9e;
    color: white;
    box-shadow: 0 4px 12px rgba(255,154,158,0.3);
  }


/* 大搜索框 */
.search-container {
    max-width: 500px;
    margin: 0 auto 25px auto;
    padding: 0 20px;
  }
  .search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ffd1d6;
    border-radius: 50px;
    padding: 8px 20px;
    transition: all 0.3s ease;
  }
  .search-box:focus-within {
    border-color: #ff9a9e;
    box-shadow: 0 0 0 2px rgba(255,154,158,0.2);
  }
  .search-box .search-icon {
    color: #ff9a9e;
    font-size: 1.2rem;
    margin-right: 12px;
  }
  .search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: #444;
    font-size: 1rem;
    padding: 10px 0;
    outline: none;
  }
  .search-box input::placeholder {
    color: #aaa;
  }
  .search-box .clear-btn {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px 8px;
    border-radius: 50%;
    transition: all 0.2s;
  }
  .search-box .clear-btn:hover {
    color: #ff9a9e;
  }
  .search-stats {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 8px;
  }
  .search-stats span {
    color: #ff9a9e;
    font-weight: bold;
  }

/* json更新时间 */
#update-time {
    color: #555 !important;
    display: inline-flex;
    gap: 16px;
    padding: 6px 20px;
    border-radius: 40px;
    margin-top: 0px;
    margin-bottom: 0;
    background: rgba(255,154,158,0.08);
    border: 1px solid rgba(255,154,158,0.2);
}

/* 顶部大标题 */
.toptitle-header {
    text-align: center;
    margin: 100px 0 20px 0;
    padding: 20px;
  }
  .toptitle-header h1 {
    font-size: 2.5rem;
    color: #ff9a9e !important;
    margin-bottom: 12px;
    font-weight: 700;
  }
  .toptitle-header p {
    font-size: 1.1rem;
    color: #666 !important;
  }
  @media (max-width: 768px) {
    .toptitle-header h1 {
      font-size: 1.8rem;
    }
  }
  
/* 表格 */
.tutorial-table{width:100%;border-collapse:separate;border-spacing:0;margin:16px 0;background:#fff;border-radius:12px;overflow:hidden;border:1px solid #ffd6d8}
.tutorial-table th,.tutorial-table td{padding:12px 16px;text-align:left;border-bottom:1px solid #ffd6d8}
.tutorial-table th{background:#ffe0e6;color:#ff7b80;font-weight:600}
.tutorial-table th:not(:last-child),
.tutorial-table td:not(:last-child){border-right:1px solid #ffd6d8}
.tutorial-table tbody tr:nth-child(odd){background:#ffffff}
.tutorial-table tbody tr:nth-child(even){background:#fff9fa}
.tutorial-table tbody tr:hover{background:#ffeef1}
.tutorial-table tbody tr:last-child td{border-bottom:none}
@media (max-width: 768px) {
    .tutorial-table {
      display: block;
      overflow-x: auto;
      white-space: nowrap;
    }
  }