* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

html {
    scroll-behavior: smooth;
}

html {
    overflow-x: clip;
}

html,
body {
    background: #06070B;
    color: #fff;
}

body {
    width: 100%;
    max-width: 1920px;
    min-width: 0;
    margin: 0 auto;
    padding-right: 8px;
    padding-bottom: 8px;
    box-sizing: border-box;
    overflow-x: clip;
}

.app {
    width: 100%;
    max-width: 1920px;
    min-width: 0;
    min-height: 100vh;
    background: #06070b;
    justify-content: flex-start;
    align-items: stretch;
    display: flex;
    padding-bottom: 8px;
    box-sizing: border-box;
}

/* 语义化标签：保持与原 div 布局一致 */
h1, h2, h3, h4, p {
    margin: 0;
    font-weight: inherit;
}

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

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

img.tool-icon {
    display: block;
    flex-shrink: 0;
    object-fit: cover;
    background: none;
}

button {
    font: inherit;
    color: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.filter-tags {
    display: flex;
}

.filter-tags > li {
    display: contents;
}

.filter-tags .filter-tag {
    display: flex;
}

.carousel-dots__item,
.carousel-dots__item--active {
    padding: 0;
    flex-shrink: 0;
}

.filter-tags {
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 9px;
    align-self: stretch;
}

.grid-span-full {
    grid-column: 1 / -1;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-self: stretch;
    width: 100%;
}

.banner-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    overflow: auto hidden;
    padding-top: 2px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    box-sizing: border-box;
}
.banner-row a {
    flex: none;
}

.banner-row img,
.banner-row .banner-img {
    flex-shrink: 0;
    scroll-snap-align: start;
}

.article-carousel {
    align-self: stretch;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    align-self: stretch;
}

/* WebKit（Chrome / Safari / Edge）— 仅显示滑块，轨道透明 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-track-piece {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    min-height: 32px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb:active {
    background: rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* ==========================================================================
   Breakpoints（全站媒体查询断点，新增样式请复用下列值）
   --------------------------------------------------------------------------
   Mobile   max-width: 767px                    mobile.css / *.mobile.css
   Desktop  min-width: 768px                    layout.desktop.css
   Tablet   min-width: 768px and max-width: 1024px
   Desktop  max-width: 1200px | 1400px | 1600px  主内容区渐进收窄（main 等）
   A11y     prefers-reduced-motion: reduce
   ========================================================================== */
