/**
 * 基础样式（重置、通用）
 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    box-shadow: none !important; /* 移除页面左右发光 */
    outline: none !important; /* 移除轮廓 */
}

html::before,
html::after {
    box-shadow: none !important; /* 移除伪元素阴影 */
    display: none !important; /* 隐藏伪元素 */
}

body {
    font-family: var(--md-sys-typescale-body-large-font);
    font-size: var(--md-sys-typescale-body-large-size);
    font-weight: var(--md-sys-typescale-body-large-weight);
    line-height: var(--md-sys-typescale-body-large-line-height);
    color: var(--md-sys-color-on-surface);
    background-color: var(--md-sys-color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-shadow: none !important; /* 移除页面左右阴影 */
    outline: none !important; /* 移除轮廓 */
    border-left: none !important; /* 移除左边框 */
    border-right: none !important; /* 移除右边框 */
}

body::before,
body::after {
    box-shadow: none !important; /* 移除伪元素阴影 */
    display: none !important; /* 隐藏伪元素 */
}

/* 移除页面容器的左右阴影和发光 */
.m,
.m0,
.m0 .m {
    box-shadow: none !important;
    outline: none !important;
    border-left: none !important;
    border-right: none !important;
}

.m::before,
.m::after,
.m0::before,
.m0::after,
.m0 .m::before,
.m0 .m::after {
    box-shadow: none !important;
    display: none !important;
}

/* 链接样式 */
a {
    color: var(--md-sys-color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--md-sys-color-primary);
    opacity: 0.8;
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 列表样式 */
ul, ol {
    list-style: none;
}

/* 表单元素 */
input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
}

/* Material Symbols 字体设置（默认大小，具体元素可以覆盖） */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined', sans-serif !important;
    font-weight: normal !important;
    font-style: normal !important;
    font-size: 20px !important; /* 默认大小，可被具体元素覆盖 */
    line-height: 1 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    display: inline-block !important;
    white-space: nowrap !important;
    word-wrap: normal !important;
    direction: ltr !important;
    -webkit-font-feature-settings: 'liga' !important;
    -webkit-font-smoothing: antialiased !important;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20 !important;
}

/* 顶部栏图标特殊处理 - 覆盖默认的 inline-block，使用 inline-flex */
.material-symbols-outlined.mdc-top-bar__icon {
    display: inline-flex !important;
}

/* 移除所有图标的阴影效果 */
.material-symbols-outlined,
.material-symbols-outlined *,
.mdc-settings-item-icon,
.mdc-settings-section-icon,
.mdc-settings-card-header-icon,
.mdc-drawer__title-icon,
.mdc-button__icon,
.mdc-icon-button .material-symbols-outlined,
.mdc-top-bar__icon,
.user-avatar-fallback {
    text-shadow: none !important;
    box-shadow: none !important;
    filter: drop-shadow(none) !important; /* 移除滤镜阴影 */
}

/* 移动端优化 */
@media (max-width: 900px) {
    html {
        font-size: 14px;
    }
    
    body {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* 增大触摸目标 */
    a, button, input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}
