/* xin99 前台公共样式 */
@import url("/static/css/webfonts.css");
@import url("/static/css/article_tags.css");
body.app-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f7fb;
    color: #333;
    padding-bottom: 76px;
}
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}
.role-badge-user { background: #e8f3ff; color: #1890ff; }
.role-badge-author { background: #fff7e6; color: #fa8c16; }
.hub-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px 16px 0;
    padding: 8px 14px;
    background: #fff;
    border-radius: 20px;
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.user-header, .author-header {
    background: #fff;
    margin: 16px 16px 0;
    padding: 20px;
    border-radius: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    position: relative;
}
.section-title {
    padding: 16px 16px 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1f2f3d;
}
.grid-menu {
    background: #fff;
    margin: 0 16px 12px;
    border-radius: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.grid-item {
    text-align: center;
    padding: 12px 0;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border-radius: 16px;
    color: inherit;
}
.grid-item:active { background: #f5f7fb; }
.grid-icon { font-size: 26px; color: #5f6c80; }
.grid-text { font-size: 12px; color: #5f6c80; }
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    display: flex;
    padding: 8px 0 12px;
    border-top: 0.5px solid #e8e9ec;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.02);
    z-index: 100;
}
.bottom-nav .nav-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #8a929f;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.bottom-nav .nav-icon { font-size: 22px; }
.bottom-nav .nav-item.active { color: #f53f3f; }
.page-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 20px 16px;
    border-radius: 0 0 24px 24px;
    margin-bottom: 16px;
    text-align: center;
    position: relative;
}
.page-header h1 { font-size: 20px; font-weight: 600; }
.page-back {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}
