/**
 * MOC 官网首页样式
 * 布局：纵向 flex 全页滚动；区块与 main.html 结构一一对应
 */

/* Vue 编译完成前隐藏模板，避免 {{ }} 闪烁 */
[v-cloak] {
    display: none;
}

/* 页面根容器：纵向 flex，自身作为滚动区域 */
#app {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    background-color: #F7FBFF;
}

/* ========== 顶部导航：黄到浅蓝渐变背景 ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    box-sizing: border-box;
    width: 100%;
    padding: 45px 70px 44px 48px;
    background: linear-gradient(180deg, #FDDC03 0%, #F7FBFF 100%);
}

.header-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
}

/* Logo 与主导航左对齐底部 */
.header-left {
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
}

.logo-link {
    display: block;
    flex-shrink: 0;
    line-height: 0;
}

.logo {
    display: block;
    width: 191px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: flex-end;
    margin-left: 60px;
}

.nav-item {
    position: relative;
    margin-right: 56px;
    color: #111;
    font-size: 22px;
    font-weight: 500;
    line-height: 22px;
    cursor: pointer;
}

.nav-item:last-child {
    margin-right: 0;
}

.nav-text {
    white-space: nowrap;
}

/* 选中导航项下方的装饰下划线 */
.nav-underline {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 64px;
    height: 3.5px;
    margin-top: 2px;
    transform: translateX(-50%);
}

.header-right {
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
    margin-left: 24px;
    margin-top: 16px;
}

.header-toolbar {
    display: flex;
    align-items: center;
}

/* 搜索框：切图背景 + 透明输入框 */
.search-box {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 303px;
    height: 50px;
    padding: 0 18px 0 5px;
    background: url('../../images/main/搜索框背景@2x.png') no-repeat center / 100% 100%;
}

.search-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}

.search-input {
    flex: 1;
    min-width: 0;
    margin-left: 6px;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #333;
    font-size: 14px;
    line-height: 20px;
}

.search-input::placeholder {
    color: #c8c8c8;
}

/* 购物车 / 用户：与搜索框略微重叠的切图背景 */
.header-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 111px;
    height: 50px;
    margin-left: -25px;
    padding: 0 7px;
    background: url('../../images/main/购物车和用户的背景@2x.png') no-repeat center / 100% 100%;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.action-icon {
    display: block;
    width: 36px;
    height: 36px;
}

/* ========== 用户菜单：悬停用户图标展开，覆盖顶栏下方 ========== */
.user-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 201;
    box-sizing: border-box;
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.user-menu-top {
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
    padding: 28px 70px 32px 48px;
    gap: 0;
}

.user-menu-column {
    flex: 1;
    min-width: 0;
    padding-right: 48px;
}

.user-menu-column.has-divider {
    border-right: 1px solid #f0f0f0;
    margin-right: 48px;
}

.user-menu-title {
    margin: 0 0 20px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.user-menu-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.user-menu-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    box-sizing: border-box;
    min-width: 120px;
    padding: 8px 16px;
    border-radius: 8px;
    color: #888;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.user-menu-link:hover {
    color: #111;
}

.user-menu-link.active {
    color: #111;
    background-color: #FDDC03;
}

.user-menu-user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    min-width: 240px;
    padding-left: 24px;
}

.user-menu-greeting {
    margin: 0;
    color: #111;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    text-align: right;
    white-space: nowrap;
}

.user-menu-greeting.is-login-link {
    cursor: pointer;
}

.user-menu-logout {
    margin-top: 16px;
    padding: 10px 28px;
    border: none;
    border-radius: 999px;
    background-color: #FDDC03;
    color: #111;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

.user-menu-points {
    margin: 20px 0 0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    width: 100%;
}

.user-menu-shortcuts {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    margin-top: 24px;
    gap: 44px;
}

.user-menu-shortcut {
    display: block;
    flex-shrink: 0;
    line-height: 0;
    cursor: pointer;
}

.user-menu-shortcut-img {
    display: block;
    width: 88px;
    height: auto;
    object-fit: contain;
}

/* ========== 购物车菜单：悬停购物车图标展开，覆盖顶栏下方 ========== */
.cart-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 201;
    box-sizing: border-box;
    padding: 28px 48px 32px;
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.cart-menu-inner {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    gap: 24px;
}

.cart-menu-list {
    flex: 1;
    min-width: 0;
    min-height: 320px;
    max-height: 420px;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 20px 24px;
    border-radius: 24px;
    background-color: #f5f5f5;
}

.cart-menu-list::-webkit-scrollbar {
    width: 6px;
}

.cart-menu-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background-color: #FDDC03;
}

.cart-menu-list::-webkit-scrollbar-track {
    background-color: transparent;
}

.cart-menu-group + .cart-menu-group {
    margin-top: 28px;
}

.cart-menu-group-head {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 8px;
}

.cart-menu-group-dot {
    flex-shrink: 0;
    box-sizing: border-box;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 1px solid #333;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.cart-menu-group-dot.is-selected {
    background-color: #FDDC03;
    box-shadow: inset 0 0 0 2px #fff;
}

.cart-menu-group-label {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.cart-menu-group-name {
    color: #ff8a00;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.cart-menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 12px 16px;
}

.cart-menu-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    min-height: 132px;
    padding: 0 6px 10px;
}

.cart-item-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #ff8a00;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.cart-item-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    background-color: #ddd;
}

.cart-item-image {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    gap: 8px;
}

.cart-item-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #FDDC03;
    color: #111;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.cart-item-qty-num {
    min-width: 16px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
}

.cart-item-name {
    margin: 6px 0 0;
    width: 100%;
    color: #333;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item-price {
    margin: 4px 0 0;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.cart-menu-sidebar {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    justify-content: center;
    width: 200px;
    gap: 50px;
    background-color: #fff;
}

.cart-enter-btn,
.cart-checkout-btn {
    flex-shrink: 0;
    box-sizing: border-box;
    width: 100%;
    padding: 0 16px;
    border-radius: 999px;
    cursor: pointer;
}

.cart-enter-btn {
    height: 72px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    line-height: 72px;
    transition: border-color 0.2s ease;
}

.cart-enter-btn:hover {
    border-color: #ccc;
}

.cart-checkout-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 72px;
    border: none;
    background-color: #FDDC03;
    color: #111;
    gap: 6px;
    transition: opacity 0.2s ease;
}

.cart-checkout-btn:hover {
    opacity: 0.92;
}

.cart-checkout-count {
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
}

.cart-checkout-total {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
}

.cart-checkout-label {
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
}

/* ========== 分类导航：横向可滚动图标列表 ========== */
.category-bar {
    display: flex;
    align-items: flex-end;
    box-sizing: border-box;
    width: 100%;
    padding: 0px 70px 24px 48px;
    gap: 60px;
}

/* 隐藏滚动条，支持拖拽（grab）与触摸横向滑动 */
.category-scroll {
    display: flex;
    align-items: flex-end;
    flex: 1;
    min-width: 0;
    gap: 60px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    cursor: grab;
    user-select: none;
    scrollbar-width: none;
}

/* 拖拽中：禁用子项点击，避免拖动时误触分类切换 */
.category-scroll.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.category-scroll.is-dragging .category-item {
    pointer-events: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 110px;
    height: 134px;
    line-height: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.category-item:hover {
    transform: translateY(-6px);
}

.category-icon {
    display: block;
    width: 77px;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
    transition: width 0.2s ease;
}

/* 选中分类：图标放大至容器宽度 */
.category-item.active .category-icon {
    width: 110px;
}

.category-bar-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 65px;
}

.category-more,
.category-setting {
    display: block;
    flex-shrink: 0;
    line-height: 0;
    cursor: pointer;
}

.category-more img {
    display: block;
    height: 54px;
    width: auto;
}

.category-setting-inner {
    position: relative;
    display: block;
    width: 74px;
    height: 74px;
}

.category-setting-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-setting-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    color: #111;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
}

/* ========== 主体布局：左侧边栏 + 右侧内容区 ========== */
.page-body {
    display: flex;
    align-items: flex-start;
    flex: 1;
    box-sizing: border-box;
    width: 100%;
    padding: 20px 70px 24px 48px;
    gap: 60px;
}

/* ========== 左侧菜单 ========== */
.side-menu {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    min-width: 110px;
    gap: 12px;
}

.side-menu-item {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-width: 110px;
    height: 40px;
    padding: 0 12px;
    gap: 10px;
    cursor: pointer;
}

/* 选中菜单项：切图高亮背景 */
.side-menu-item.active {
    background: url('../../images/main/侧边栏按钮背景@2x.png') no-repeat center / 100% 100%;
}

.side-menu-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.side-menu-text {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* ========== 内容流 Tab：居中 Tab + 右侧排序下拉 ========== */
.feed-tabs {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    min-height: 36px;
    margin-bottom: 24px;
}

/* Tab 组水平居中 */
.feed-tabs-main {
    position: absolute;
    top: 0;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 40px;
    transform: translateX(-50%);
}

.feed-tabs-right {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
}

.feed-tab-item {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    line-height: 28px;
    margin-right: 60px;
}

.feed-tab-text {
    color: #666;
    font-size: 22px;
    font-weight: 500;
    white-space: nowrap;
}

.feed-tab-item.active .feed-tab-text {
    color: #111;
}

.feed-tab-underline {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 72px;
    height: 3.5px;
    margin-top: 4px;
    transform: translateX(-50%);
}

.feed-tab-sort {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 6px;
    cursor: pointer;
    line-height: 22px;
}

.feed-sort-text {
    color: #111;
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
}

.feed-tab-arrow {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.feed-tab-sort.open .feed-tab-arrow {
    transform: rotate(180deg);
}

/* 排序下拉：切图背景，展开时箭头旋转 180° */
.feed-sort-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    left: auto;
    z-index: 20;
    box-sizing: border-box;
    min-width: 88px;
    padding: 10px 0;
    transform: none;
    background: url('../../images/main/帖子筛选框@2x.png') no-repeat center / 100% 100%;
}

.feed-sort-option {
    padding: 6px 16px;
    color: #111;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    cursor: pointer;
}

/* 当前选中的排序项高亮 */
.feed-sort-option.active {
    color: #E5A800;
}

.feed-sort-option + .feed-sort-option {
    margin-top: 8px;
}

/* ========== 帖子列表：CSS 多列瀑布流 ========== */
.post-status {
    padding: 48px 0;
    color: #999;
    font-size: 14px;
    text-align: center;
}

.post-status-more {
    padding: 24px 0 48px;
}

.post-list {
    column-width: 260px;
    column-gap: 16px;
}

/* break-inside: avoid 防止卡片被列布局截断 */
.post-card {
    break-inside: avoid;
    box-sizing: border-box;
    width: 260px;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.post-card:hover {
    transform: translateY(-6px);
}

.post-card-cover {
    position: relative;
    line-height: 0;
}

.post-card-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px 12px 0 0;
    object-fit: cover;
}

.post-card-drawing-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 24px;
    padding: 0 8px;
    gap: 4px;
    border-radius: 999px;
    background: url('../../images/main/图纸半透明背景@2x.png') no-repeat center / 100% 100%;
}

.post-card-drawing-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.post-card-drawing-text {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.post-card-body {
    box-sizing: border-box;
    padding: 10px 12px 12px;
}

.post-card-title {
    margin: 0;
    overflow: hidden;
    color: #222;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    gap: 8px;
}

.post-card-user {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 6px;
}

.post-card-avatar {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.post-card-username {
    overflow: hidden;
    color: #666;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-card-like {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 4px;
    cursor: pointer;
}

.post-card-like-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.post-card-like-count {
    color: #666;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
}

/* ========== 商城页面 ========== */
.mall-page {
    flex: 1;
    box-sizing: border-box;
    width: 100%;
    padding: 0 70px 80px 48px;
}

.mall-hero {
    display: flex;
    justify-content: center;
    padding: 36px 0 40px;
}

.mall-hero-title {
    display: block;
    width: 406px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.mall-categories {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px 24px;
    padding-bottom: 56px;
}

.mall-category-item {
    flex-shrink: 0;
    line-height: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.mall-category-item:hover {
    transform: translateY(-6px);
}

.mall-category-img {
    display: block;
    width: 187px;
    height: auto;
    object-fit: contain;
}

.mall-new-arrivals {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4px;
    overflow: visible;
}

.mall-section-head {
    margin-bottom: 28px;
}

.mall-section-badge {
    display: block;
    width: 181px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.mall-product-scroll {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    overflow-x: auto;
    overflow-y: visible;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    padding-top: 8px;
    padding-bottom: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mall-product-scroll::-webkit-scrollbar {
    display: none;
}

.mall-product-item {
    flex-shrink: 0;
    line-height: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.mall-product-item:hover {
    transform: translateY(-4px);
}

.mall-product-img {
    display: block;
    width: 221px;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
}

/* ========== 科教页面 ========== */
.science-page {
    flex: 1;
    box-sizing: border-box;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px 70px 80px 48px;
}

.science-stages {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 24px;
    margin-bottom: 36px;
}

.science-stage-tab {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 221px;
    min-height: 79px;
    padding: 12px 16px;
    background: url('../../images/科教/阶段-未选中@2x.png') no-repeat center / 100% 100%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.science-stage-tab.active {
    background-image: url('../../images/科教/阶段-选中@2x.png');
}

.science-stage-tab:hover {
    transform: translateY(-2px);
}

.science-stage-label {
    color: #111;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.science-stage-sublabel {
    margin-top: 2px;
    color: #888;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
}

.science-grade-tabs {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    gap: 20px;
    width: 100%;
    margin-bottom: 12px;
}

.science-grade-tab {
    box-sizing: border-box;
    padding: 8px 20px;
    border-radius: 20px;
    background-color: #fff;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.science-grade-tab.active {
    background-color: #fdda00;
    color: #111;
    font-weight: 600;
}

.science-grade-tab:hover:not(.active) {
    color: #111;
}

.science-overview {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 48px;
}

.science-overview-scene {
    position: relative;
    flex-shrink: 0;
    width: 420px;
    max-width: 100%;
    line-height: 0;
}

.science-scene-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
}

.science-scene-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 0 0 20px 20px;
    background: rgba(253, 218, 0, 0.92);
}

.science-scene-title {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.science-scene-subtitle {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.science-overview-info {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    justify-content: flex-start;
    min-width: 0;
    width: 420px;
    max-width: 100%;
    padding: 0;
}

.science-overview-info-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 48px;
    width: 100%;
}

.science-overview-info:has(.science-grade-tabs) .science-overview-info-body {
    justify-content: flex-start;
    gap: 24px;
    padding-top: 28px;
}

.science-info-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
}

.science-info-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.science-info-icon {
    display: block;
    flex-shrink: 0;
    width: 25px;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.science-info-icon--ability {
    width: 25px;
}

.science-info-label {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.science-info-title {
    margin: 0;
    color: #111;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.35;
}

.science-divider {
    height: 1px;
    margin: 40px 0;
    background-color: #e3e3e3;
}

.science-section {
    display: flex;
    flex-direction: column;
}

.science-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.science-section-icon-img {
    display: block;
    width: 23px;
    height: auto;
    object-fit: contain;
}

.science-section-title {
    margin: 0;
    color: #111;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

.science-section-head--inline {
    margin-bottom: 0;
}

.science-hardware-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

.science-hardware-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

.science-hardware-levels {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
}

.science-hardware-level {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.science-hardware-level-card {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 145px;
    min-height: 178px;
    padding: 12px 8px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.science-hardware-level-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.science-hardware-level-label {
    margin: 0;
    color: #111;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.science-hardware-scene {
    display: block;
    flex-shrink: 0;
    width: 330px;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
}

.science-coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 16px;
    background: #555;
    color: #fff;
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
}

.science-hardware-scene.science-coming-soon {
    width: 330px;
    min-height: 330px;
    max-width: 100%;
}

.science-coming-soon--card {
    width: 100%;
    min-height: 130px;
    border-radius: 12px;
    font-size: 16px;
}

.science-coming-soon--media {
    width: 100%;
    max-width: 560px;
    min-height: 280px;
    margin: 0 auto;
}

.science-hardware-desc {
    min-width: 0;
    max-width: 560px;
}

.science-subtitle {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin: 0 0 18px;
}

.science-subtitle-text {
    color: #111;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.science-subtitle-underline {
    display: block;
    width: 88px;
    height: auto;
    object-fit: contain;
}

.science-desc-text {
    margin: 0;
    color: #444;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
}

.science-program-list {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 72px;
    padding: 8px 0;
}

.science-program-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.science-program-item-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 172px;
}

.science-program-item .science-media-img--program {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
}

.science-media-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.science-media-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.science-media-img--program {
    width: 328px;
}

.science-media-img--control {
    width: 366px;
}

.science-media-caption {
    margin: 0;
    color: #111;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
}

.science-terminal-list {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 120px;
    padding: 12px 0 8px;
}

.science-terminal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.science-terminal-icon {
    display: block;
    width: 41px;
    height: auto;
    object-fit: contain;
}

.science-terminal-icon--pc {
    width: 52px;
    height: 66px;
    color: #111;
}

.science-terminal-label {
    margin: 0;
    color: #111;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
}

@media (max-width: 1100px) {
    .science-overview,
    .science-hardware-layout {
        flex-direction: column;
        align-items: center;
    }

    .science-overview-info {
        width: 100%;
        max-width: 420px;
    }

    .science-hardware-content {
        width: 100%;
        max-width: 560px;
    }

    .science-hardware-desc {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .science-page {
        padding: 20px 20px 60px;
    }

    .science-stages {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .science-hardware-levels {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .science-program-list {
        flex-wrap: wrap;
        gap: 32px;
    }

    .science-terminal-list {
        gap: 48px;
        flex-wrap: wrap;
    }

    .science-info-title {
        font-size: 26px;
    }
}

/* ========== 悬浮操作：返回顶部、在线客服（固定于页面右下角） ========== */
.floating-actions {
    position: fixed;
    right: 70px;
    bottom: 120px;
    z-index: 150;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    box-sizing: border-box;
    gap: 12px;
}

.floating-action-btn {
    display: block;
    flex-shrink: 0;
    width: 96px;
    line-height: 0;
    cursor: pointer;
}

.floating-action-btn img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ========== 页脚：品牌 / 关于 / 联系 / 公众号二维码 ========== */
.site-footer {
    flex-shrink: 0;
    box-sizing: border-box;
    width: 100%;
    margin-top: 0;
    padding: 48px 70px 36px 48px;
    background: url('../../images/main/底部栏背景@2x.png') no-repeat center top / 100% 100%;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    gap: 48px;
}

.footer-brand {
    flex-shrink: 0;
    text-align: center;
}

.footer-logo {
    display: block;
    width: 160px;
    height: auto;
    margin: 26px auto;
    object-fit: contain;
}

.footer-slogan {
    margin: 16px 0 0;
    color: #999;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.footer-about,
.footer-contact {
    flex-shrink: 0;
}

.footer-title {
    margin: 0 0 16px;
    color: #111;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
}

.footer-text {
    margin: 0;
    color: #888;
    font-size: 14px;
    font-weight: 400;
    line-height: 26px;
}

.footer-qrcode {
    flex-shrink: 0;
    text-align: center;
}

.footer-qrcode-img {
    display: block;
    width: 110px;
    height: 110px;
    margin: 0 auto;
    object-fit: contain;
}

.footer-qrcode-text {
    margin: 10px 0 0;
    color: #888;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
}

/* ========== TA的合集栏（帖子详情顶部） ========== */
.user-collection-bar {
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
    width: 100%;
    padding: 0 70px 20px 48px;
    gap: 24px;
}

.post-detail-back {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.post-detail-back-icon {
    display: block;
    width: 111px;
    height: auto;
    object-fit: contain;
}

.user-collection-inner {
    display: flex;
    align-items: flex-end;
    flex: 1;
    min-width: 0;
    gap: 20px;
}

.user-collection-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
    align-self: stretch;
}

.user-collection-title {
    flex-shrink: 0;
    margin: 0;
    color: #111;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    padding-bottom: 20px;
    margin-right: 60px;
}

.user-collection-scroll-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 12px;
}

.user-collection-scroll {
    display: flex;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.user-collection-scroll::-webkit-scrollbar {
    display: none;
}

.user-collection-item {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 88px;
    cursor: pointer;
}

.user-collection-item.active .user-collection-cover {
    border: 2px dashed #111;
}

.user-collection-cover {
    display: block;
    box-sizing: border-box;
    width: 88px;
    height: 88px;
    border: 2px solid transparent;
    border-radius: 10px;
    object-fit: cover;
    background-color: #e8e8e8;
}

.user-collection-cover--placeholder {
    display: block;
}

.user-collection-name {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    color: #666;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-collection-more {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.user-collection-more img {
    display: block;
    width: 31px;
    height: auto;
    object-fit: contain;
}

/* ========== 帖子详情主体 ========== */
.post-detail-body {
    display: flex;
    align-items: flex-start;
    flex: 1;
    box-sizing: border-box;
    width: 100%;
    padding: 0 70px 48px 48px;
    gap: 60px;
}

.post-detail-main {
    flex: 1;
    min-width: 0;
}

.post-detail-status {
    padding: 48px 0;
    color: #999;
    font-size: 14px;
    text-align: center;
}

.post-detail-card {
    box-sizing: border-box;
    padding: 24px;
    border-radius: 16px;
    background-color: #fff;
}

.post-detail-top {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.post-detail-media-col {
    flex: 1;
    min-width: 0;
    max-width: 520px;
}

.post-detail-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: #ececec;
    line-height: 0;
}

.post-detail-3d-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 28px;
    padding: 0 10px;
    gap: 4px;
    border-radius: 999px;
    background-color: #FDDC03;
    color: #111;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

.post-detail-3d-badge img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.post-detail-3d-frame,
.post-detail-gallery-image {
    display: block;
    width: 100%;
    height: 360px;
    border: none;
    object-fit: contain;
}

.post-detail-3d-frame{
    padding-bottom: 7px;
    width: calc(100% - 7px);
}

.post-detail-gallery-placeholder {
    width: 100%;
    height: 360px;
    background-color: #ececec;
}

.post-detail-gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.92);
    transform: translateY(-50%);
    cursor: pointer;
}

.post-detail-gallery-nav img {
    display: block;
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.post-detail-gallery-nav.prev {
    left: 12px;
}

.post-detail-gallery-nav.prev img {
    transform: rotate(180deg);
}

.post-detail-gallery-nav.next {
    right: 12px;
}

.post-detail-gallery-indicator {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    box-sizing: border-box;
    padding: 4px 10px;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.post-detail-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    gap: 16px;
}

.post-detail-action-group {
    display: flex;
    align-items: center;
    gap: 50px;
}

.post-detail-action-btn {
    display: inline-flex;
    align-items: center;
    padding: 0;
    gap: 4px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.post-detail-action-btn img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.post-detail-report {
    display: inline-flex;
    align-items: center;
    padding: 0;
    gap: 4px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.post-detail-report img {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.post-detail-info-col {
    flex: 1;
    min-width: 280px;
    max-width: 420px;
}

.post-detail-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.post-detail-user {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.post-detail-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-detail-username {
    overflow: hidden;
    color: #111;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-detail-follow-btn {
    flex-shrink: 0;
    box-sizing: border-box;
    min-width: 72px;
    height: 32px;
    padding: 0 16px;
    border: none;
    border-radius: 999px;
    background-color: #FDDC03;
    color: #111;
    font-size: 14px;
    font-weight: 500;
    line-height: 32px;
    cursor: pointer;
}

.post-detail-title {
    margin: 20px 0 0;
    color: #111;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
}

.post-detail-content {
    margin-top: 16px;
    color: #444;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    word-break: break-word;
}

.post-detail-tags {
    display: flex;
    flex-wrap: wrap;
    margin-top: 12px;
    gap: 8px;
}

.post-detail-tag {
    color: #666;
    font-size: 14px;
    line-height: 1;
}

.post-detail-buy-btn {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 52px;
    margin-top: 24px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background-color: #FDDC03;
    color: #111;
    font-size: 18px;
    font-weight: 600;
    line-height: 52px;
    text-align: center;
    cursor: pointer;
}

.post-detail-meta {
    display: flex;
    flex-wrap: wrap;
    margin-top: 16px;
    gap: 16px;
    color: #999;
    font-size: 12px;
    line-height: 1;
}

.post-detail-comments-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.post-detail-comment-compose {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-detail-comment-input {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    height: 44px;
    padding: 0 16px;
    border: 1px solid #e8e8e8;
    border-radius: 999px;
    outline: none;
    background-color: #fafafa;
    color: #333;
    font-size: 14px;
}

.post-detail-comment-input::placeholder {
    color: #c8c8c8;
}

.post-detail-emoji-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.post-detail-emoji-btn img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.post-detail-send-btn {
    flex-shrink: 0;
    box-sizing: border-box;
    height: 44px;
    padding: 0 24px;
    border: none;
    border-radius: 999px;
    background-color: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 44px;
    cursor: pointer;
}

.post-detail-comments-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    gap: 16px;
}

.post-detail-comments-title {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #111;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.post-detail-comments-title img {
    width: 10px;
    height: 10px;
    object-fit: contain;
    transform: rotate(-90deg);
}

.post-detail-comment-sort {
    display: flex;
    align-items: center;
    gap: 16px;
}

.post-detail-sort-btn {
    display: inline-flex;
    align-items: center;
    padding: 0;
    gap: 4px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.post-detail-sort-btn.active {
    color: #111;
}

.post-detail-sort-btn img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.post-detail-comment-list {
    margin-top: 8px;
}

.post-detail-comment-item {
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
    padding: 20px 0;
    gap: 12px;
    border-bottom: 1px solid #f5f5f5;
}

.post-detail-comment-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.post-detail-comment-body {
    flex: 1;
    min-width: 0;
}

.post-detail-comment-user {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.post-detail-comment-text {
    margin-top: 8px;
    color: #444;
    font-size: 14px;
    line-height: 22px;
    word-break: break-word;
}

.post-detail-comment-footer {
    display: flex;
    margin-top: 8px;
    gap: 12px;
    color: #999;
    font-size: 12px;
    line-height: 1;
}

.post-detail-comment-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 16px;
}

.post-detail-comment-actions button {
    padding: 0;
    border: none;
    background: transparent;
    color: #999;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.post-detail-comment-like {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.post-detail-comment-like img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.post-detail-comments-end {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    gap: 16px;
    color: #ccc;
    font-size: 13px;
    line-height: 1;
}

.post-detail-comments-end-line {
    display: block;
    width: 48px;
    height: 1px;
    background-color: #e8e8e8;
}

/* ========== 我的图纸页 ========== */
.my-parts-page {
    width: 100%;
}

.my-parts-type-list {
    display: flex;
    overflow-x: auto;
    margin-bottom: 24px;
    gap: 20px;
    scrollbar-width: none;
}

.my-parts-type-list::-webkit-scrollbar {
    display: none;
}

.my-parts-type-item {
    flex-shrink: 0;
    padding: 6px 14px;
    color: #111;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
}

.my-parts-type-item.active {
    border-radius: 999px;
    background-color: #d2d2d2;
}

.my-parts-list {
    column-width: 260px;
    column-gap: 16px;
}

.my-parts-item {
    break-inside: avoid;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 260px;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.my-parts-item:hover {
    transform: translateY(-6px);
}

.my-parts-cover {
    display: block;
    width: 100%;
    height: 200px;
    margin: 10px auto 0;
    object-fit: contain;
}

.my-parts-title {
    overflow: hidden;
    margin: 8px 12px 0;
    color: #000;
    font-size: 14px;
    line-height: 24px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-parts-user {
    display: flex;
    align-items: center;
    margin: 12px;
    gap: 6px;
}

.my-parts-user img {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.my-parts-user span {
    overflow: hidden;
    color: #000;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== 我的积木画页 ========== */
.my-blocks-page {
    width: 100%;
}

.my-blocks-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.my-blocks-item {
    position: relative;
    box-sizing: border-box;
    width: 260px;
    border: 1px solid #f5f5f5;
    cursor: pointer;
}

.my-blocks-cover {
    display: block;
    width: 100%;
    height: auto;
}

.my-blocks-setting {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    background-color: rgba(95, 95, 95, 0.9);
}

.my-blocks-setting-btn {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 13px;
    line-height: 30px;
    cursor: pointer;
}

.my-blocks-setting-btn + .my-blocks-setting-btn {
    border-left: 2px solid #fff;
}

/* ========== 草稿箱页（参考 draft.vue） ========== */
.drafts-page {
    width: 100%;
    padding-bottom: 80px;
}

.drafts-toolbar {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding-right: 72px;
}

.drafts-type-list {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scrollbar-width: none;
}

.drafts-type-list::-webkit-scrollbar {
    display: none;
}

.drafts-type-item {
    flex-shrink: 0;
    padding: 6px 14px;
    color: #111;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
}

.drafts-type-item.active {
    border-radius: 999px;
    background-color: #d2d2d2;
}

.drafts-manage-btn {
    position: absolute;
    top: 50%;
    right: 0;
    padding: 6px 16px;
    border: none;
    border-radius: 999px;
    background-color: #919191;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
    transform: translateY(-50%);
}

.drafts-card {
    position: relative;
}

.drafts-select {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 16px;
    height: 16px;
    border: 1px solid #fff;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.drafts-select.selected {
    background-color: #ffd700;
}

.drafts-delete-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 20px;
    border-radius: 16px 16px 0 0;
    background-color: #fff;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}

.drafts-select-all {
    width: 16px;
    height: 16px;
    border: 8px solid #e6e6e6;
    border-radius: 999px;
    box-sizing: border-box;
    background-color: #ffd700;
    cursor: pointer;
}

.drafts-select-all.selected {
    border-width: 3px;
}

.drafts-select-all-text {
    margin-left: 10px;
    color: #111;
    font-size: 12px;
}

.drafts-delete-btn {
    position: absolute;
    right: 20px;
    padding: 6px 18px;
    border: none;
    border-radius: 999px;
    background-color: #ffd700;
    color: #111;
    font-size: 12px;
    cursor: pointer;
}

/* ========== 历史记录页（参考 history.vue） ========== */
.history-page {
    width: 100%;
    padding-bottom: 80px;
}

.history-toolbar {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding-right: 72px;
}

.history-type-list {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scrollbar-width: none;
}

.history-type-list::-webkit-scrollbar {
    display: none;
}

.history-type-item {
    flex-shrink: 0;
    padding: 6px 14px;
    color: #111;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
}

.history-type-item.active {
    border-radius: 999px;
    background-color: #d2d2d2;
}

.history-manage-btn {
    position: absolute;
    top: 50%;
    right: 0;
    padding: 6px 16px;
    border: none;
    border-radius: 999px;
    background-color: #919191;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
    transform: translateY(-50%);
}

.history-card {
    position: relative;
}

.history-select {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 16px;
    height: 16px;
    border: 1px solid #fff;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.history-select.selected {
    background-color: #ffd700;
}

.history-delete-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 20px;
    border-radius: 16px 16px 0 0;
    background-color: #fff;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}

.history-select-all {
    width: 16px;
    height: 16px;
    border: 8px solid #e6e6e6;
    border-radius: 999px;
    box-sizing: border-box;
    background-color: #ffd700;
    cursor: pointer;
}

.history-select-all.selected {
    border-width: 3px;
}

.history-select-all-text {
    margin-left: 10px;
    color: #111;
    font-size: 12px;
}

.history-delete-btn {
    position: absolute;
    right: 20px;
    padding: 6px 18px;
    border: none;
    border-radius: 999px;
    background-color: #ffd700;
    color: #111;
    font-size: 12px;
    cursor: pointer;
}

/* ========== 发布页顶部栏 ========== */
.publish-top-bar {
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
    width: 100%;
    padding: 0 70px 20px 48px;
    gap: 24px;
}

.publish-top-inner {
    display: flex;
    align-items: flex-end;
    flex: 1;
    min-width: 0;
    gap: 20px;
}

.publish-top-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
    align-self: stretch;
}

/* ========== 发布表单 ========== */
.publish-page {
    width: 100%;
}

.publish-card {
    box-sizing: border-box;
    width: 100%;
    padding: 28px 32px 36px;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.publish-title-input {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 4px;
    border: none;
    border-bottom: 1px solid #d6d3d3;
    background: transparent;
    color: #111;
    font-size: 16px;
    outline: none;
}

.publish-title-input::placeholder {
    color: #bbb;
}

.publish-content-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 120px;
    margin-top: 16px;
    padding: 12px 4px;
    border: none;
    background: transparent;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
}

.publish-content-input::placeholder {
    color: #bbb;
}

.publish-images {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 12px;
}

.publish-image-item {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

.publish-image-preview {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.publish-image-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(55, 55, 55, 0.5);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.publish-image-status {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 12px;
}

.publish-image-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    background-color: #f4f5f7;
    color: #666;
    cursor: pointer;
}

.publish-image-add-icon {
    font-size: 28px;
    line-height: 1;
    color: #bbb;
}

.publish-image-add-text {
    margin-top: 6px;
    font-size: 11px;
    text-align: center;
    line-height: 1.3;
}

.publish-hint {
    margin: 8px 0 0;
    color: #666;
    font-size: 13px;
}

.publish-tag-row {
    display: flex;
    align-items: center;
    margin-top: 24px;
    gap: 12px;
}

.publish-tag-input {
    box-sizing: border-box;
    width: 140px;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background-color: #edebeb;
    font-size: 14px;
    font-weight: 600;
    outline: none;
}

.publish-tag-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background-color: #feda00;
    color: #111;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.publish-tag-list {
    display: flex;
    flex-wrap: wrap;
    margin-top: 12px;
    gap: 10px;
}

.publish-tag-item {
    position: relative;
    padding: 6px 28px 6px 16px;
    border-radius: 20px;
    background-color: #f4f5f7;
    color: #111;
    font-size: 14px;
    font-weight: 600;
}

.publish-tag-remove {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #666;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.publish-section-title {
    margin: 28px 0 14px;
    color: #111;
    font-size: 16px;
    font-weight: 600;
}

.publish-toggle-group {
    display: flex;
    gap: 20px;
}

.publish-toggle-group--compact {
    max-width: 420px;
}

.publish-toggle-group + .publish-upload-zone,
.publish-toggle-group + .publish-link-fields {
    margin-top: 16px;
}

.publish-toggle-btn {
    flex: 1;
    max-width: 200px;
    height: 40px;
    padding: 0 24px;
    border: none;
    border-radius: 20px;
    background-color: #f4f5f7;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.publish-toggle-btn.active {
    background-color: #feda00;
}

.publish-3d-preview {
    display: block;
    width: 460px;
    height: 280px;
    margin-bottom: 16px;
    border: none;
    border-radius: 8px;
    background-color: #f4f5f7;
    padding-bottom: 7px;
    padding-right: 7px;
    box-sizing: border-box;
}

.publish-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 120px;
    padding: 24px;
    border-radius: 10px;
    background-color: #f4f5f7;
    cursor: pointer;
}

.publish-upload-main {
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

.publish-upload-tip {
    margin-top: 10px;
    color: #bbb;
    font-size: 13px;
    text-align: center;
}

.publish-tip-red {
    margin: 10px 0 0;
    color: #fe4242;
    font-size: 13px;
}

.publish-link-fields {
    padding: 20px;
    border-radius: 10px;
    background-color: #f4f5f7;
}

.publish-link-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.publish-link-row + .publish-link-row {
    margin-top: 12px;
}

.publish-link-label {
    flex-shrink: 0;
    width: 48px;
    color: #111;
    font-size: 13px;
    font-weight: 600;
}

.publish-link-input {
    flex: 1;
    box-sizing: border-box;
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    background-color: #fff;
    font-size: 14px;
    outline: none;
}

.publish-share-options {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.publish-share-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.publish-share-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.publish-share-radio {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background-color: #f4f5f7;
}

.publish-share-option input:checked + .publish-share-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ffcc00;
    transform: translate(-50%, -50%);
}

.publish-share-label {
    color: #666;
    font-size: 14px;
}

.publish-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 36px;
    gap: 16px;
}

.publish-submit-btn {
    min-width: 160px;
    height: 44px;
    padding: 0 32px;
    border: none;
    border-radius: 22px;
    background-color: #feda00;
    color: #111;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.publish-submit-btn:disabled,
.publish-draft-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.publish-draft-btn {
    min-width: 120px;
    height: 44px;
    padding: 0 28px;
    border: none;
    border-radius: 22px;
    background-color: #333;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

/* ========== 发布确认弹窗 ========== */
.publish-dialog-mask {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
}

.publish-dialog {
    box-sizing: border-box;
    width: min(90vw, 420px);
    padding: 32px 28px 24px;
    border-radius: 12px;
    background: #fff;
}

.publish-dialog-title {
    margin: 0;
    color: #111;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.publish-dialog-actions {
    display: flex;
    justify-content: center;
    margin-top: 28px;
    gap: 20px;
}

.publish-dialog-btn {
    min-width: 120px;
    height: 40px;
    padding: 0 24px;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.publish-dialog-btn--cancel {
    background-color: #e8e8e8;
    color: #333;
}

.publish-dialog-btn--confirm {
    background-color: #fbe56f;
    color: #111;
}
