/* 基础样式重置 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* 桌面端左侧二维码面板 */
.qr-panel {
    display: none; /* 默认隐藏，仅在宽屏显示 */
    position: sticky;
    top: 50px;
    margin-right: 40px;
    width: 200px;
    text-align: center;
    padding: 24px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.qr-panel h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    line-height: 1.4;
}

.qr-image {
    width: 140px;
    height: 140px;
    margin-bottom: 16px;
}

.store-icons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.store-icons img {
    height: 24px;
}

/* 模拟手机容器的主体 */
.app-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
    padding-bottom: 70px;
}

.container {
    padding: 0 16px;
}

/* 头部样式 */
.header {
    background-color: #fff;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eee;
}

.logo {
    height: 28px;
    display: block;
}

/* 横幅样式 */
.banner-section {
    width: 100%;
    overflow: hidden;
}

.banner-container img {
    width: 100%;
    display: block;
}

/* 菜单网格样式 */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 20px 16px;
    background-color: #fff;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    text-align: center;
    color: #444;
    text-decoration: none;
}

.menu-item img, .icon-placeholder {
    width: 44px;
    height: 44px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 14px;
    font-size: 22px;
}

/* 内容区块样式 */
.content-section {
    margin-top: 8px;
    background-color: #fff;
    padding: 20px 16px;
}

.content-section h2 {
    font-size: 17px;
    margin: 0 0 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-all {
    font-size: 13px;
    color: #999;
    font-weight: normal;
}

.post-list .post-item {
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}

.post-list .post-item:last-child {
    border-bottom: none;
}

/* 考试准备网格 */
.exam-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.exam-item {
    background-color: #f8f9fa;
    padding: 14px 4px;
    border-radius: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
}

/* 技能准备列表 */
.skill-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
}

.skill-info h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
}

.skill-info p {
    margin: 0;
    font-size: 12px;
    color: #888;
}

.skill-arrow {
    color: #ccc;
    font-size: 18px;
}

/* 页脚样式 */
.footer {
    padding: 30px 16px;
    background-color: #fafafa;
    font-size: 11px;
    color: #999;
    line-height: 1.6;
}

.footer h3 {
    font-size: 13px;
    margin-bottom: 10px;
    color: #666;
}

/* 底部导航样式 */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #eee;
    z-index: 1000;
}

@media (min-width: 481px) {
    .bottom-nav {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        width: 480px;
    }
}

/* 响应式：显示二维码面板 */
@media (min-width: 800px) {
    .qr-panel {
        display: block;
    }
    .bottom-nav {
        /* 保持在手机容器中间 */
        left: calc(50% + 120px); 
    }
}

/* 调整大屏下的居中对齐，考虑 QR 面板 */
@media (min-width: 800px) {
    body {
        padding-top: 50px;
    }
}

.bottom-nav a {
    text-decoration: none;
    color: #aaa;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.bottom-nav a.active {
    color: #000;
    font-weight: bold;
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
}
