* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    font-size: 16px;
}

/* 响应式字体 */
html {
    font-size: 16px;
}
@media (max-width: 375px) {
    html { font-size: 15px; }
}
@media (max-width: 320px) {
    html { font-size: 14px; }
}
a{
    text-decoration: none;
    color: inherit;
    outline: none;
}
/* 顶部渐变背景 */
.header-bg {
    background: linear-gradient(180deg, #40a9ff 0%, #e6f7ff 100%);
    padding: 2rem 1rem 1.5rem;
}

/* 用户信息区 */
.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}
.avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    background-color: #fff;
}
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}
.user-id {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* 学习数据卡片 */
.study-card {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.study-item {
    text-align: center;
}
.study-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}
.study-label {
    font-size: 1rem;
    color: #666;
}

/* 功能菜单区 */
.menu-section {
    margin: 1rem;
}
.menu-card {
    background-color: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    font-size: 1.125rem;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.menu-left {
    display: flex;
    align-items: center;
    font-size: 1rem;
}
.menu-icon {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.75rem;
    color: #666;
}
.menu-arrow {
    color: #ccc;
    font-size: 1.25rem;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 0.5rem 0;
}
.bottom-nav-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #666;
    font-size: 0.75rem;
}
.bottom-nav-item.active {
    color: #128cff;
}
.nav-icon {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0 auto 0.25rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


/* 移除点击高亮 */
* {
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}