/* ============================================================
   小辰园区 · Minecraft 主题样式 v3
   设计语言：MC GUI 深色面板 / 像素斜面边框 / 棋盘格材质
   像素字体：Press Start 2P（拉丁/数字，中文回退雅黑）
   ============================================================ */

:root {
    /* MC 调色板 */
    --mc-grass:        #5EBD3E;
    --mc-grass-dark:   #3E8E2A;
    --mc-grass-light:  #7ED957;
    --mc-dirt:         #8B5A2B;
    --mc-dirt-dark:    #6B4423;
    --mc-stone:        #8F8F8F;
    --mc-stone-dark:   #565656;
    --mc-stone-light:  #ABABAB;
    --mc-deepslate:    #2B2B30;
    --mc-deepslate-2:  #35353B;
    --mc-bedrock:      #1D1D21;
    --mc-panel:        #333338;
    --mc-gold:         #FFAA00;
    --mc-emerald:      #17DD62;
    --mc-redstone:     #FF5555;
    --mc-diamond:      #4AEDD9;
    --mc-lapis:        #4A66D9;
    --mc-text:         #E8E8E8;
    --mc-text-dim:     #9A9A9A;
    --font-pixel:      'Press Start 2P', 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
    /* 泥土棋盘格纹理 */
    background-color: var(--mc-dirt-dark);
    background-image:
        conic-gradient(rgba(0,0,0,.22) 25%, transparent 0 50%, rgba(0,0,0,.22) 0 75%, transparent 0);
    background-size: 28px 28px;
    color: var(--mc-text);
    font-size: 14px;
    line-height: 1.65;
    image-rendering: pixelated;
}

a { color: var(--mc-grass-light); text-decoration: none; transition: color .15s; }
a:hover { color: var(--mc-gold); }

.mc-link { color: var(--mc-grass-light); font-weight: 600; }
.mc-link:hover { color: var(--mc-gold); }
.mc-text-dim  { color: var(--mc-text-dim); }
.mc-text-gold { color: var(--mc-gold); font-weight: 700; }
.mc-text-red  { color: var(--mc-redstone); font-weight: 700; }
.mc-icon-green { color: var(--mc-emerald); }
.mc-icon-gold  { color: var(--mc-gold); }

/* ============ 像素斜面（MC 物品槽质感） ============ */
.mc-bevel {
    border: 3px solid #000;
    box-shadow: inset 3px 3px 0 rgba(255,255,255,.18), inset -3px -3px 0 rgba(0,0,0,.5);
}

/* ============ 通用按钮：MC 草绿方块按钮 ============ */
.btn-xc-primary {
    background: var(--mc-grass);
    color: #fff;
    border: 3px solid #000;
    border-radius: 0;
    padding: 10px 26px;
    font-weight: 700;
    font-size: 0.92rem;
    text-shadow: 2px 2px 0 rgba(0,0,0,.55);
    box-shadow: inset 2px 2px 0 var(--mc-grass-light), inset -2px -2px 0 var(--mc-grass-dark);
    transition: all .12s;
    display: inline-block;
    cursor: pointer;
}
.btn-xc-primary:hover, .btn-xc-primary:focus {
    background: var(--mc-grass-light);
    color: #fff;
    box-shadow: inset 2px 2px 0 #A8F080, inset -2px -2px 0 var(--mc-grass-dark);
    transform: translateY(-1px);
}
.btn-xc-primary:active { transform: translateY(1px); box-shadow: inset -2px -2px 0 var(--mc-grass-light), inset 2px 2px 0 var(--mc-grass-dark); }

.btn-xc-outline {
    background: transparent;
    color: var(--mc-grass-light);
    border: 2px solid var(--mc-grass);
    border-radius: 0;
    padding: 8px 22px;
    font-weight: 700;
    text-shadow: 1px 1px 0 rgba(0,0,0,.6);
    transition: all .12s;
}
.btn-xc-outline:hover { background: var(--mc-grass); color: #fff; }

/* 下载按钮：MC 绿宝石 */
.btn-download {
    background: var(--mc-emerald);
    color: #fff !important;
    border: 3px solid #000;
    border-radius: 0;
    padding: 14px 40px;
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 2px 2px 0 rgba(0,0,0,.55);
    box-shadow: inset 2px 2px 0 #6BFF9E, inset -2px -2px 0 #0FA048;
    transition: all .12s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.btn-download:hover { background: #3BEB7C; transform: translateY(-2px); }

/* ============ 顶部导航：深板岩 + 草方块顶边 ============ */
.navbar-xc {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--mc-bedrock);
    border-bottom: 4px solid var(--mc-grass);
    box-shadow: 0 4px 0 rgba(0,0,0,.35);
    padding: 8px 0;
}
.navbar-xc .site-logo {
    height: 40px; margin-right: 10px;
    border: 2px solid #000;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.3), inset -2px -2px 0 rgba(0,0,0,.5);
    image-rendering: pixelated;
}
.navbar-xc .site-brand {
    font-family: var(--font-pixel);
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 3px 3px 0 var(--mc-grass-dark);
    letter-spacing: 1px;
}
.navbar-xc .navbar-toggler { border: 2px solid var(--mc-stone); border-radius: 0; }
.navbar-xc .navbar-toggler-icon { filter: invert(1); }
.navbar-xc .nav-link {
    color: var(--mc-text) !important;
    font-weight: 700;
    padding: 8px 14px !important;
    margin: 0 2px;
    border: 2px solid transparent;
    text-shadow: 1px 1px 0 rgba(0,0,0,.7);
    transition: all .12s;
}
.navbar-xc .nav-link:hover {
    color: var(--mc-gold) !important;
    background: rgba(255,170,0,.12);
    border-color: var(--mc-gold);
}
.navbar-xc .nav-link.active {
    color: #fff !important;
    background: var(--mc-grass-dark);
    border-color: var(--mc-grass);
}
.navbar-xc .dropdown-menu {
    background: var(--mc-deepslate);
    border: 3px solid #000;
    border-radius: 0;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.15), inset -2px -2px 0 rgba(0,0,0,.5), 0 8px 16px rgba(0,0,0,.5);
}
.navbar-xc .dropdown-item { color: var(--mc-text); border-radius: 0; }
.navbar-xc .dropdown-item:hover { background: var(--mc-grass-dark); color: #fff; }
.dropdown-divider { border-color: #000; opacity: .6; }

/* 搜索框：MC 搜索栏 */
.navbar-xc .search-form { position: relative; min-width: 220px; max-width: 360px; }
.navbar-xc .search-form .search-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--mc-gold); z-index: 3;
}
.navbar-xc .search-form input {
    background: var(--mc-deepslate) !important;
    color: #fff !important;
    border: 2px solid #000 !important;
    border-radius: 0 !important;
    padding: 9px 14px 9px 36px !important;
    box-shadow: inset 2px 2px 0 rgba(0,0,0,.6);
    font-size: 14px;
}
.navbar-xc .search-form input::placeholder { color: var(--mc-text-dim); }
.navbar-xc .search-form input:focus { border-color: var(--mc-grass) !important; outline: none; }

/* 用户头像方块（MC 头颅格） */
.navbar-xc .user-avatar {
    width: 34px; height: 34px;
    border-radius: 0;
    background: var(--mc-lapis);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.9rem;
    border: 2px solid #000;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.35), inset -2px -2px 0 rgba(0,0,0,.45);
    text-shadow: 1px 1px 0 rgba(0,0,0,.6);
}
.mc-user-btn {
    background: var(--mc-deepslate);
    border: 2px solid #000;
    border-radius: 0;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.15), inset -2px -2px 0 rgba(0,0,0,.5);
    color: var(--mc-text);
    padding: 4px 12px;
}
.mc-user-btn:hover { background: var(--mc-deepslate-2); }
.mc-user-name { font-weight: 700; text-shadow: 1px 1px 0 rgba(0,0,0,.7); }
.mc-shield { color: var(--mc-gold); }
.mc-btn-login {
    background: var(--mc-stone);
    color: #fff;
    border: 2px solid #000;
    border-radius: 0;
    box-shadow: inset 2px 2px 0 var(--mc-stone-light), inset -2px -2px 0 var(--mc-stone-dark);
    text-shadow: 1px 1px 0 rgba(0,0,0,.7);
    padding: 6px 16px;
    font-weight: 700;
}
.mc-btn-login:hover { background: #9C9CC8; color: #FFFFA0; }
.mc-admin-link { color: var(--mc-gold) !important; font-weight: 700; }
.mc-logout-link { color: var(--mc-redstone) !important; }

/* Flash 提示：MC 风格 */
.alert-flash {
    border: 3px solid #000;
    border-radius: 0;
    color: #fff;
    font-weight: 700;
    text-shadow: 1px 1px 0 rgba(0,0,0,.5);
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.2), inset -2px -2px 0 rgba(0,0,0,.4);
}
.alert-flash.alert-success { background: var(--mc-grass-dark); }
.alert-flash.alert-danger  { background: #A03030; }
.alert-flash .btn-close { filter: invert(1); }

/* ============ Bootstrap 深色覆盖 ============ */
.form-control, .form-select {
    background: var(--mc-bedrock);
    color: #fff;
    border: 2px solid #000;
    border-radius: 0;
    box-shadow: inset 2px 2px 0 rgba(0,0,0,.6), inset -1px -1px 0 rgba(255,255,255,.1);
    font-size: 0.92rem;
}
.form-control:focus, .form-select:focus {
    background: var(--mc-deepslate);
    color: #fff;
    border-color: var(--mc-grass);
    box-shadow: none;
}
.form-control::placeholder { color: var(--mc-text-dim); }
.form-control:disabled, .form-control[readonly] {
    background: #3A3A40 !important;
    color: var(--mc-gold) !important;
    border-color: #000;
    opacity: 1;
}
.form-label { color: #fff; font-weight: 700; text-shadow: 1px 1px 0 rgba(0,0,0,.6); }
.form-text { color: var(--mc-text-dim); }
.form-check-input { border-radius: 0; }
.text-muted { color: var(--mc-text-dim) !important; }

/* ============ 分类区块：MC 物品栏格子 ============ */
.category-block {
    background: var(--mc-deepslate);
    border: 3px solid #000;
    border-radius: 0;
    padding: 22px 24px 18px;
    box-shadow: inset 3px 3px 0 rgba(255,255,255,.15), inset -3px -3px 0 rgba(0,0,0,.5);
}
.category-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.category-nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 16px 10px;
    background: var(--mc-stone-dark);
    color: var(--mc-text);
    border: 2px solid #000;
    border-radius: 0;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.22), inset -2px -2px 0 rgba(0,0,0,.55);
    transition: all .12s;
    text-align: center;
}
.category-nav-item:hover {
    background: var(--mc-stone);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.3), inset -2px -2px 0 rgba(0,0,0,.55), 0 6px 0 rgba(0,0,0,.35);
}
.category-nav-item .icon-wrap {
    width: 48px; height: 48px;
    border-radius: 0;
    background: var(--mc-grass);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 10px;
    border: 2px solid #000;
    box-shadow: inset 2px 2px 0 var(--mc-grass-light), inset -2px -2px 0 var(--mc-grass-dark);
}
.category-nav-item span { font-weight: 700; font-size: 0.92rem; text-shadow: 1px 1px 0 rgba(0,0,0,.6); }

/* ============ 区块标题：MC 界面标题 ============ */
.section-title {
    display: flex; align-items: center; justify-content: space-between;
    margin: 28px 0 18px; padding-bottom: 10px;
    border-bottom: 4px solid var(--mc-stone-dark);
}
.section-title h3 {
    font-family: var(--font-pixel);
    font-size: 0.88rem;
    margin: 0; display: flex; align-items: center; gap: 10px;
    color: #fff;
    text-shadow: 3px 3px 0 rgba(0,0,0,.75);
}
.section-title h3 i { color: var(--mc-gold); }
.section-title .more-link { color: var(--mc-text-dim); font-weight: 600; font-size: 0.88rem; }
.section-title .more-link:hover { color: var(--mc-gold); }

/* ============ 资源卡片：MC 物品槽 ============ */
.res-card {
    background: var(--mc-deepslate);
    border: 3px solid #000;
    border-radius: 0;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.15), inset -2px -2px 0 rgba(0,0,0,.5);
    transition: all .15s;
    display: flex; flex-direction: column;
    height: 100%;
}
.res-card:hover {
    transform: translateY(-4px);
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.15), inset -2px -2px 0 rgba(0,0,0,.5), 0 8px 0 rgba(0,0,0,.4);
}
.res-card .res-thumb { position: relative; aspect-ratio: 3/2; background: var(--mc-bedrock); overflow: hidden; }
.res-card .res-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    image-rendering: pixelated;
    filter: saturate(1.05);
    transition: transform .25s;
}
.res-card:hover .res-thumb img { transform: scale(1.05); }
.res-card .res-badge, .price-badge {
    position: absolute;
    padding: 3px 10px;
    border: 2px solid #000;
    border-radius: 0;
    font-size: 0.72rem;
    font-weight: 800;
    background: var(--mc-emerald);
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0,0,0,.6);
    box-shadow: inset 1px 1px 0 rgba(255,255,255,.4), inset -1px -1px 0 rgba(0,0,0,.4);
}
.price-badge { top: 10px; left: 10px; }
.price-badge.free { background: var(--mc-emerald); }
.res-card .res-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.res-card .res-title {
    font-weight: 700; font-size: 0.95rem; line-height: 1.45; color: #fff;
    margin: 0 0 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.7em;
    text-shadow: 1px 1px 0 rgba(0,0,0,.6);
}
.res-card .res-title:hover { color: var(--mc-gold); }
.res-card .res-meta {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.8rem; color: var(--mc-text-dim);
    margin-top: auto; padding-top: 10px;
    border-top: 2px solid var(--mc-stone-dark);
}
.res-card .res-meta .meta-left { display: flex; gap: 10px; }
.res-card .res-meta i { color: var(--mc-gold); margin-right: 3px; }
.res-card .res-cat {
    position: absolute; bottom: 8px; right: 8px;
    background: rgba(0,0,0,.75); color: #fff;
    padding: 2px 8px; border: 1px solid #000; border-radius: 0; font-size: 0.7rem;
}

/* ============ 筛选/排序栏 ============ */
.filter-bar {
    background: var(--mc-deepslate); border: 3px solid #000; border-radius: 0;
    padding: 14px 18px; margin-bottom: 20px;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.15), inset -2px -2px 0 rgba(0,0,0,.5);
}
.filter-bar .filter-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; }
.filter-bar .filter-group:not(:last-child) { border-bottom: 2px solid var(--mc-stone-dark); }
.filter-bar .filter-label { font-weight: 700; min-width: 64px; color: var(--mc-text-dim); font-size: 0.9rem; }
.filter-bar .filter-item {
    padding: 4px 14px; border: 2px solid #000; border-radius: 0;
    background: var(--mc-stone-dark); color: var(--mc-text);
    font-size: 0.88rem; font-weight: 600;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,.2), inset -1px -1px 0 rgba(0,0,0,.5);
    transition: all .12s;
}
.filter-bar .filter-item:hover { background: var(--mc-stone); color: #fff; }
.filter-bar .filter-item.active { background: var(--mc-grass); color: #fff; text-shadow: 1px 1px 0 rgba(0,0,0,.5); }
.sort-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; background: var(--mc-deepslate);
    border: 2px solid #000; border-radius: 0; margin-bottom: 16px;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.12), inset -2px -2px 0 rgba(0,0,0,.5);
}
.sort-bar .sort-options { display: flex; gap: 4px; }
.sort-bar .sort-options a {
    padding: 5px 14px; border-radius: 0; color: var(--mc-text-dim);
    font-size: 0.88rem; font-weight: 600; border: 2px solid transparent;
}
.sort-bar .sort-options a.active { background: var(--mc-grass-dark); color: #fff; border-color: var(--mc-grass); }
.sort-bar .sort-options a:hover { color: var(--mc-gold); }

/* ============ 侧边栏：MC 附魔台面板 ============ */
.sidebar-box {
    background: var(--mc-deepslate); border: 3px solid #000; border-radius: 0;
    padding: 18px; margin-bottom: 18px;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.15), inset -2px -2px 0 rgba(0,0,0,.5);
}
.sidebar-box h5 {
    font-family: var(--font-pixel);
    font-weight: 700; margin: 0 0 14px; padding-bottom: 10px;
    border-bottom: 3px solid var(--mc-stone-dark);
    font-size: 0.72rem; display: flex; align-items: center; gap: 8px;
    color: #fff; text-shadow: 2px 2px 0 rgba(0,0,0,.75);
}
.hot-list .hot-item {
    display: flex; align-items: center; gap: 10px; padding: 7px 0;
    border-bottom: 1px solid var(--mc-stone-dark);
}
.hot-list .hot-item:last-child { border-bottom: none; }
.hot-rank {
    width: 24px; height: 24px; border-radius: 0;
    background: var(--mc-stone-dark); color: var(--mc-text-dim);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-pixel);
    font-size: 0.62rem; flex-shrink: 0;
    border: 1px solid #000;
}
.hot-item:nth-child(1) .hot-rank { background: var(--mc-gold); color: #000; }
.hot-item:nth-child(2) .hot-rank { background: #C0C0C0; color: #000; }
.hot-item:nth-child(3) .hot-rank { background: #CD7F32; color: #000; }
.hot-title { color: var(--mc-text); font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.hot-title:hover { color: var(--mc-gold); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a {
    padding: 4px 12px; border-radius: 0;
    background: var(--mc-lapis); color: #fff;
    border: 2px solid #000;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,.35), inset -1px -1px 0 rgba(0,0,0,.4);
    font-size: 0.8rem; font-weight: 600;
    text-shadow: 1px 1px 0 rgba(0,0,0,.5);
}
.tag-cloud a:hover { background: var(--mc-gold); color: #000; text-shadow: none; }
.tag-cloud a sup { color: rgba(255,255,255,.7); }

/* ============ 面包屑 ============ */
.xc-breadcrumb {
    padding: 10px 16px; background: var(--mc-deepslate);
    border: 2px solid #000; border-radius: 0; margin-bottom: 20px;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.12), inset -2px -2px 0 rgba(0,0,0,.5);
}
.xc-breadcrumb .breadcrumb { margin: 0; padding: 0; background: transparent; font-size: 0.9rem; }
.xc-breadcrumb .breadcrumb-item a { color: var(--mc-text-dim); }
.xc-breadcrumb .breadcrumb-item a:hover { color: var(--mc-gold); }
.xc-breadcrumb .breadcrumb-item.active { color: #fff; }

/* ============ 资源详情页 ============ */
.xc-card {
    background: var(--mc-deepslate); border: 3px solid #000; border-radius: 0;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.15), inset -2px -2px 0 rgba(0,0,0,.5);
}
.detail-header {
    background: var(--mc-deepslate);
    border: 3px solid #000; border-radius: 0;
    padding: 22px;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.15), inset -2px -2px 0 rgba(0,0,0,.5);
}
.detail-header img { image-rendering: pixelated; }
.detail-title {
    font-size: 1.5rem; font-weight: 800; margin: 0 0 10px; line-height: 1.35;
    color: #fff; text-shadow: 2px 2px 0 rgba(0,0,0,.7);
}
.detail-info-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px; margin-top: 8px; padding: 14px;
    background: var(--mc-bedrock);
    border: 2px solid #000; border-radius: 0;
    box-shadow: inset 2px 2px 0 rgba(0,0,0,.55);
}
.detail-info-item { display: flex; flex-direction: column; gap: 2px; }
.detail-info-item .label { font-size: 0.76rem; color: var(--mc-text-dim); }
.detail-info-item .value { font-weight: 700; color: #fff; font-size: 0.95rem; }
.download-area {
    background: var(--mc-grass-dark);
    border: 3px solid #000; border-radius: 0;
    padding: 22px 26px; margin-bottom: 20px;
    box-shadow: inset 3px 3px 0 rgba(255,255,255,.2), inset -3px -3px 0 rgba(0,0,0,.5);
}
.price-info {
    font-family: var(--font-pixel);
    font-size: 1.1rem; font-weight: 700;
    color: var(--mc-emerald);
    text-shadow: 2px 2px 0 rgba(0,0,0,.7);
    margin: 4px 0;
}
.article-content { color: var(--mc-text); }
.article-content img { image-rendering: pixelated; }
.nav-tabs { border-bottom: 3px solid var(--mc-stone-dark); }
.nav-tabs .nav-link {
    color: var(--mc-text-dim); border-radius: 0; border: none; font-weight: 700;
    border-top: 3px solid transparent;
}
.nav-tabs .nav-link.active {
    color: #fff; background: var(--mc-deepslate);
    border-top-color: var(--mc-grass);
}

/* ============ 分页 ============ */
.xc-pagination { display: flex; justify-content: center; gap: 6px; margin: 30px 0; flex-wrap: wrap; }
.xc-pagination a, .xc-pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 12px;
    background: var(--mc-stone-dark); color: #fff;
    border: 2px solid #000; border-radius: 0;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.2), inset -2px -2px 0 rgba(0,0,0,.5);
    font-size: 0.9rem; font-weight: 700;
    text-shadow: 1px 1px 0 rgba(0,0,0,.6);
}
.xc-pagination a:hover { background: var(--mc-stone); color: var(--mc-gold); }
.xc-pagination .current { background: var(--mc-grass); }
.xc-pagination .disabled { opacity: .45; pointer-events: none; }

/* ============ 底部：基岩层 ============ */
.xc-footer {
    background: var(--mc-bedrock);
    background-image: conic-gradient(rgba(255,255,255,.05) 25%, transparent 0 50%, rgba(255,255,255,.05) 0 75%, transparent 0);
    background-size: 24px 24px;
    color: var(--mc-text-dim); padding: 46px 0 24px; margin-top: 60px;
    border-top: 4px solid var(--mc-grass);
}
.xc-footer h6 {
    font-family: var(--font-pixel);
    color: #fff; margin-bottom: 16px; font-size: 0.7rem;
    text-shadow: 2px 2px 0 rgba(0,0,0,.8);
}
.xc-footer a { color: var(--mc-text-dim); font-size: 0.88rem; line-height: 2; }
.xc-footer a:hover { color: var(--mc-gold); }
.xc-footer .copy { border-top: 2px solid var(--mc-stone-dark); margin-top: 30px; padding-top: 20px; text-align: center; color: var(--mc-text-dim); font-size: 0.85rem; }

/* ============ 登录/注册页：MC 标题屏 ============ */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex; align-items: center; justify-content: center;
    padding: 60px 20px;
}
.auth-card {
    width: 100%; max-width: 440px;
    background: var(--mc-deepslate);
    padding: 36px 32px;
    border: 3px solid #000; border-radius: 0;
    box-shadow: inset 3px 3px 0 rgba(255,255,255,.15), inset -3px -3px 0 rgba(0,0,0,.5), 0 12px 0 rgba(0,0,0,.4);
}
.auth-title {
    margin: 0 0 4px;
    font-family: var(--font-pixel);
    font-size: 1.05rem; font-weight: 700;
    color: #fff; text-shadow: 3px 3px 0 var(--mc-grass-dark);
    letter-spacing: 1px;
}
.auth-subtitle { color: var(--mc-text-dim); font-size: 0.9rem; margin: 0 0 22px; }
.auth-card .input-group-text {
    background: var(--mc-stone-dark); color: var(--mc-gold);
    border: 2px solid #000; border-right: none; border-radius: 0;
}
.auth-card .btn-xc-primary { border-radius: 0; padding: 12px; font-size: 0.95rem; width: 100%; }
.auth-card .btn-outline-secondary {
    background: var(--mc-stone-dark); color: #fff;
    border: 2px solid #000; border-left: none; border-radius: 0;
}
.auth-card .btn-outline-secondary:hover { background: var(--mc-stone); color: var(--mc-gold); }

/* ============ 用户中心 ============ */
.user-center { padding: 20px 0 40px; }
.user-card {
    background: var(--mc-lapis);
    background-image: conic-gradient(rgba(0,0,0,.15) 25%, transparent 0 50%, rgba(0,0,0,.15) 0 75%, transparent 0);
    background-size: 22px 22px;
    color: #fff; border: 3px solid #000; border-radius: 0;
    padding: 26px;
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    box-shadow: inset 3px 3px 0 rgba(255,255,255,.25), inset -3px -3px 0 rgba(0,0,0,.5);
    margin-bottom: 24px;
}
.user-card .uc-avatar {
    width: 78px; height: 78px; border-radius: 0;
    background: var(--mc-bedrock); color: var(--mc-gold);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-pixel);
    font-size: 1.6rem; font-weight: 700;
    border: 3px solid #000;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.25), inset -2px -2px 0 rgba(0,0,0,.5);
}
.user-card .uc-meta h3 { margin: 0 0 4px; font-size: 1.35rem; font-weight: 800; text-shadow: 2px 2px 0 rgba(0,0,0,.6); }
.user-card .uc-meta p { margin: 0; opacity: .85; font-size: 0.88rem; }
.user-card .uc-badges { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.uc-badge {
    padding: 5px 14px; border-radius: 0;
    background: var(--mc-bedrock); color: #fff;
    border: 2px solid #000;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,.3), inset -1px -1px 0 rgba(0,0,0,.4);
    font-size: 0.8rem; font-weight: 700;
    text-shadow: 1px 1px 0 rgba(0,0,0,.6);
}
.uc-badge.badge-admin { background: var(--mc-gold); color: #000; text-shadow: none; }
.uc-badge.badge-normal { background: var(--mc-stone-dark); color: #fff; }
.uc-badge.badge-super  { background: var(--mc-redstone); color: #fff; }
.uc-nav-list {
    background: var(--mc-deepslate); border: 3px solid #000; border-radius: 0;
    padding: 10px;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.15), inset -2px -2px 0 rgba(0,0,0,.5);
    display: flex; flex-direction: column; gap: 4px;
}
.uc-nav-list a {
    padding: 10px 14px; border-radius: 0;
    color: var(--mc-text); font-weight: 700;
    border: 2px solid transparent;
    display: flex; align-items: center; gap: 10px;
    text-shadow: 1px 1px 0 rgba(0,0,0,.6);
}
.uc-nav-list a:hover { background: var(--mc-deepslate-2); color: var(--mc-gold); border-color: var(--mc-stone-dark); }
.uc-nav-list a.active { background: var(--mc-grass-dark); color: #fff; border-color: var(--mc-grass); }
.uc-admin-link { background: var(--mc-gold) !important; color: #000 !important; text-shadow: none !important; border-color: #000 !important; }
.uc-admin-link:hover { background: #FFC24D !important; color: #000 !important; }
.uc-logout-link { color: var(--mc-redstone) !important; margin-top: 8px; }
.uc-panel {
    background: var(--mc-deepslate); border: 3px solid #000; border-radius: 0;
    padding: 24px;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.15), inset -2px -2px 0 rgba(0,0,0,.5);
}
.uc-panel h5 {
    font-family: var(--font-pixel);
    font-weight: 700; margin: 0 0 16px; padding-bottom: 10px;
    border-bottom: 3px solid var(--mc-stone-dark);
    font-size: 0.75rem; display: flex; align-items: center; gap: 8px;
    color: #fff; text-shadow: 2px 2px 0 rgba(0,0,0,.75);
}
.dl-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.dl-table th, .dl-table td { padding: 10px 12px; text-align: left; border-bottom: 2px solid var(--mc-stone-dark); }
.dl-table th {
    background: var(--mc-bedrock); color: var(--mc-gold);
    font-weight: 700; font-size: 0.8rem;
    text-shadow: 1px 1px 0 rgba(0,0,0,.6);
}
.dl-table tr:hover td { background: var(--mc-deepslate-2); }

/* ============ 我的发布：审核状态徽章 ============ */
.sub-status {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border: 2px solid #000; border-radius: 0;
    font-size: 0.76rem; font-weight: 700; color: #fff;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,.3), inset -1px -1px 0 rgba(0,0,0,.4);
}
.sub-status.pending  { background: var(--mc-gold); color: #3a2c00; }
.sub-status.approved { background: var(--mc-grass); }
.sub-status.rejected { background: var(--mc-redstone); }
.sub-status.offline  { background: var(--mc-stone-dark); }

/* ============ 响应式 ============ */
@media (max-width: 992px) {
    .navbar-xc .site-brand { font-size: 0.78rem; }
    .detail-title { font-size: 1.2rem; }
    .res-card .res-title { font-size: 0.9rem; }
    .category-nav { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
    .price-info { font-size: 0.95rem; }
    .section-title h3 { font-size: 0.78rem; }
}
@media (max-width: 768px) {
    body { background-size: 22px 22px; }
    .navbar-xc .site-brand { font-size: 0.7rem; }
    .section-title h3 { font-size: 0.7rem; }
    .download-area { padding: 16px; }
    .user-card { padding: 18px; }
    .user-card .uc-avatar { width: 58px; height: 58px; font-size: 1.2rem; }
    .auth-card { padding: 26px 20px; }
    .auth-title { font-size: 0.9rem; }
    .btn-download { padding: 12px 26px; font-size: 0.9rem; }
    .avatar-form { flex-direction: column; }
    .avatar-preview { margin: 0 auto; }
}

/* ============================================================
   v14 新增：用户头像（个人中心 / 导航栏）
   ============================================================ */
.user-card .uc-avatar img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    image-rendering: auto;
}
.navbar-xc .user-avatar-img img {
    width: 34px; height: 34px; object-fit: cover; display: block;
    border: 2px solid #000;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.35), inset -2px -2px 0 rgba(0,0,0,.45);
}

/* 头像表单（基本资料） */
.avatar-form {
    display: flex; gap: 16px; align-items: flex-start;
    background: rgba(0, 0, 0, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 0; padding: 14px;
}
.avatar-preview {
    width: 84px; height: 84px; flex: 0 0 84px;
    background: var(--mc-bedrock, #1d1d21); color: var(--mc-gold, #FFAA00);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-pixel, monospace); font-size: 1.7rem; font-weight: 700;
    border: 3px solid #000; overflow: hidden;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.25), inset -2px -2px 0 rgba(0,0,0,.5);
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-form .form-text { color: rgba(255, 255, 255, 0.55); }

/* ============================================================
   v14 新增：友情链接独立页面卡片
   ============================================================ */
.link-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    background: var(--xc-light, #f6f8fa);
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    text-decoration: none;
    transition: transform .12s, box-shadow .12s, border-color .12s;
    height: 100%;
}
.link-card:hover {
    transform: translateY(-2px);
    border-color: var(--mc-grass, #5EBD3E);
    box-shadow: 0 8px 20px rgba(94, 189, 62, 0.18);
    text-decoration: none;
}
.link-card-logo {
    width: 48px; height: 48px; flex: 0 0 48px;
    border-radius: 8px; overflow: hidden;
    background: var(--mc-bedrock, #1d1d21); color: var(--mc-gold, #FFAA00);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.1rem;
    border: 2px solid #000;
}
.link-card-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.link-card-name { font-weight: 700; color: var(--xc-text, #24292f); font-size: 0.98rem; line-height: 1.3; }
.link-card-url {
    color: var(--xc-text-light, #6b7280); font-size: 0.8rem;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
