/* ========== 主页专用样式 ========== */
html { scroll-behavior: smooth; }
:root {
    --section-pad: 70px 0 80px;
}

/* --- Hero 区域（背景铺满全屏，作品直接展示） --- */
.hero {
    background-image: url('/img/icon/wd.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    padding: 100px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,20,0.5) 0%, rgba(10,10,20,0.25) 30%, rgba(10,10,20,0.6) 100%);
    z-index: 0;
}
.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* 像素装饰 */
.hero-pixels {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.pixel {
    position: absolute;
    width: 24px; height: 24px;
    image-rendering: pixelated;
    opacity: 0.08;
    border-radius: 3px;
}
.pixel-grass  { background: #5B8C29; top: 15%; left: 8%; }
.pixel-diamond{ background: #5CFF6D; top: 70%; right: 10%; box-shadow: 0 0 6px rgba(92,255,109,0.2); }
.pixel-stone  { background: #7D7D7D; top: 40%; left: 5%; }
.pixel-gold   { background: #FFD700; top: 55%; right: 6%; }

/* Hero 标题 — 居中 */
.hero h1 {
    font-size: 3rem;
    margin-bottom: 14px;
    text-shadow: 0 0 40px rgba(92, 255, 109, 0.9);
    color: var(--mc-glow);
    font-weight: 800;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}
.hero .subtitle {
    font-size: 0.95rem;
    max-width: 650px;
    margin: 0 auto 35px;
    color: rgba(255,255,255,0.8);
    position: relative;
    z-index: 2;
    line-height: 1.8;
}
.hero .subtitle .highlight {
    color: var(--mc-glow);
    font-weight: 600;
}

/* Hero 作品展示区 — 在背景上直接显示 */
.hero-works {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: 0 auto;
}
.hero-works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.hero-work-card {
    background: rgba(10,10,20,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.35s;
    cursor: pointer;
}
.hero-work-card:hover {
    transform: translateY(-6px);
    border-color: rgba(92,255,109,0.3);
    box-shadow: 0 10px 25px rgba(92,255,109,0.1);
}
.hero-work-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.hero-work-thumb {
    position: relative;
    width: 100%;
    padding-top: 70%;
    background: rgba(0,0,0,0.3);
    overflow: hidden;
}
.hero-work-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.hero-work-card:hover .hero-work-thumb img {
    transform: scale(1.05);
}
/* Hero 卡片 hover 播放按钮 */
.hero-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.25);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
}
.hero-work-card:hover .hero-play-overlay {
    opacity: 1;
}
.hero-play-overlay span {
    background: rgba(92,255,109,0.9);
    color: #0a0a14;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.hero-work-info {
    padding: 10px 12px;
    position: relative;
    z-index: 2;
}
.hero-work-title {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}
.hero-work-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255,255,255,0.5);
    font-size: 0.72rem;
}
.hero-work-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* 向下滚动提示 */
.scroll-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.3);
    font-size: 0.72rem;
    animation: hintFade 2s ease-in-out infinite;
    cursor: pointer;
}
.scroll-arrow {
    width: 14px; height: 14px;
    border-right: 2px solid rgba(255,255,255,0.3);
    border-bottom: 2px solid rgba(255,255,255,0.3);
    transform: rotate(45deg);
    animation: arrowBounce 2s ease-in-out infinite;
}
@keyframes hintFade {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}
@keyframes arrowBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(45deg) translate(4px, 4px); }
}

/* --- 入站必玩横向滚动 --- */
.featured-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 10px 4px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.featured-scroll::-webkit-scrollbar { height: 4px; }
.featured-scroll::-webkit-scrollbar-track { background: transparent; }
.featured-scroll::-webkit-scrollbar-thumb { background: rgba(92,255,109,0.25); border-radius: 4px; }
.featured-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    background: rgba(25,25,40,0.7);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(92,255,109,0.08);
    transition: all 0.4s;
}
.featured-card:hover {
    transform: translateY(-6px);
    border-color: rgba(92,255,109,0.3);
    box-shadow: 0 10px 25px rgba(92,255,109,0.1);
}
.featured-card a { text-decoration: none; color: inherit; display: block; }
.featured-thumb {
    position: relative;
    width: 100%;
    padding-top: 68%;
    background: rgba(10,10,20,0.5);
    overflow: hidden;
}
.featured-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.featured-card:hover .featured-thumb img { transform: scale(1.08); }
.featured-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s;
}
.featured-card:hover .featured-play { opacity: 1; }
.featured-play span {
    background: rgba(92,255,109,0.9);
    color: #0a0a14;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}
.featured-info {
    padding: 12px 14px 14px;
}
.featured-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.featured-author {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    margin-top: 4px;
}

/* --- 作品区域通用 --- */
.works-section {
    padding: var(--section-pad);
    background: linear-gradient(180deg, rgba(20,40,15,0.15) 0%, var(--mc-dark) 100%);
    position: relative;
    z-index: 1;
}
.works-section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}
.works-section-header .section-title {
    font-size: 2.2rem;
    color: var(--mc-glow);
    margin-bottom: 28px;
    font-weight: bold;
    display: block;
    text-shadow: 0 0 20px rgba(92,255,109,0.5);
    position: relative;
    z-index: 2;
}
.works-section-header .section-title::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 35%;
    width: 30%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(92,255,109,0.4), transparent);
}
.works-section-header .section-title.sub {
    font-size: 1.6rem;
    margin-top: 50px;
}
.works-section-header .section-desc {
    color: rgba(255,255,255,0.5);
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
    margin-top: 4px;
}
.works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    position: relative;
    z-index: 2;
}
.work-card {
    background: rgba(25,25,40,0.8);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(92,255,109,0.1);
    transition: all 0.4s;
    cursor: pointer;
}
.work-card:hover {
    transform: translateY(-8px);
    border-color: rgba(92,255,109,0.35);
    box-shadow: 0 12px 30px rgba(92,255,109,0.12);
}
.work-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.work-thumb {
    position: relative;
    width: 100%;
    padding-top: 72%;
    background: rgba(10,10,20,0.5);
    overflow: hidden;
}
.work-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.work-card:hover .work-thumb img {
    transform: scale(1.05);
}
.work-stats {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}
.work-badge {
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.work-badge.likes { color: rgba(255,255,255,0.7); }
.work-badge.views { color: rgba(255,255,255,0.55); }
.work-info {
    padding: 12px 14px;
    position: relative;
    z-index: 2;
}
.work-title {
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.work-author {
    display: flex;
    align-items: center;
    gap: 8px;
}
.work-author img {
    width: 22px; height: 22px;
    border-radius: 50%;
    object-fit: cover;
}
.work-author span {
    color: rgba(255,255,255,0.45);
    font-size: 0.78rem;
}
.works-footer {
    text-align: center;
    margin-top: 40px;
    color: rgba(255,255,255,0.35);
    font-size: 0.92rem;
    position: relative;
    z-index: 2;
}
.works-footer span {
    color: var(--mc-glow);
    font-weight: bold;
}
.btn-discover {
    display: inline-block;
    padding: 12px 34px;
    border: 1px solid rgba(92,255,109,0.25);
    border-radius: 30px;
    color: var(--mc-glow);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}
.btn-discover:hover {
    background: rgba(92,255,109,0.1);
    border-color: var(--mc-glow);
    box-shadow: 0 0 20px rgba(92,255,109,0.15);
    transform: translateY(-2px);
}
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: rgba(255,255,255,0.35);
    font-size: 0.95rem;
    line-height: 2;
    position: relative;
    z-index: 2;
}
.empty-state a {
    color: var(--mc-glow);
    text-decoration: none;
    font-weight: 600;
}
.empty-state a:hover { text-decoration: underline; }

/* 过渡分隔线 */
.section-divider {
    line-height: 0;
    font-size: 0;
}
.section-divider svg {
    width: 100%;
    height: 50px;
    display: block;
}

/* --- 三大学习世界（图片卡片） --- */
.worlds-section {
    padding: var(--section-pad);
    background: var(--mc-dark);
    position: relative;
    z-index: 1;
}
.worlds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.world-card {
    background: rgba(25,25,40,0.7);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(92,255,109,0.1);
    transition: all 0.4s;
    cursor: pointer;
}
.world-card:hover {
    transform: translateY(-8px);
    border-color: rgba(92,255,109,0.3);
    box-shadow: 0 14px 35px rgba(92,255,109,0.1);
}
.world-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.world-card-img {
    position: relative;
    width: 100%;
    padding-top: 85%;
    background: rgba(10,10,20,0.5);
    overflow: hidden;
}
.world-card-img img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;

}
.world-card:hover .world-card-img img {
    transform: scale(1.06);
}
.world-card-body {
    padding: 24px 22px 28px;
    text-align: center;
}
.world-card-body h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 6px;
    font-weight: 700;
}
.world-card-body .world-sub {
    color: rgba(255,255,255,0.35);
    font-size: 0.78rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.world-card-body p {
    color: rgba(255,255,255,0.5);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 20px;
}
.world-card-link {
    display: inline-block;
    padding: 9px 28px;
    border: 1px solid rgba(92,255,109,0.2);
    border-radius: 20px;
    color: var(--mc-glow);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}
.world-card-link:hover {
    background: rgba(92,255,109,0.1);
    border-color: var(--mc-glow);
}

/* ========== 1对1课程特色对比 ========== */
.home-compare { padding: 70px 0 80px; }
.home-compare-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; max-width: 960px; margin: 30px auto 0; }
.home-compare-card { background: rgba(20,22,40,0.7); border: 1px solid rgba(92,255,109,0.12); border-radius: 16px; padding: 32px 22px 24px; text-align: center; position: relative; transition: all .3s; }
.home-compare-card:hover { transform: translateY(-6px); border-color: rgba(92,255,109,0.3); box-shadow: 0 12px 36px rgba(92,255,109,0.08); }
.home-compare-hot { border-color: rgba(92,255,109,0.25); box-shadow: 0 4px 24px rgba(92,255,109,0.06); }
.home-compare-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 3px 16px; background: linear-gradient(135deg,#FF6B6B,#ee5a24); color: #fff; border-radius: 12px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.home-compare-icon { font-size: 2.8rem; margin-bottom: 10px; }
.home-compare-card h3 { font-size: 1.15rem; font-weight: 700; color: #fff; margin: 0 0 4px; }
.home-compare-sub { font-size: 0.78rem; color: var(--mc-glow,#5CFF6D); margin: 0 0 14px; font-weight: 600; }
.home-compare-card ul { list-style: none; padding: 0; margin: 0 0 18px; text-align: left; }
.home-compare-card li { padding: 5px 0; font-size: 0.82rem; color: rgba(255,255,255,0.65); line-height: 1.5; }
.home-compare-card li::before { content: '✓ '; color: var(--mc-glow,#5CFF6D); font-weight: 700; }
.home-compare-btn { display: inline-block; padding: 8px 20px; border-radius: 20px; font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.15); text-decoration: none; transition: all .3s; }
.home-compare-btn:hover { background: rgba(92,255,109,0.1); border-color: var(--mc-glow); color: var(--mc-glow); }
.home-compare-btn-hot { background: linear-gradient(135deg,#5CFF6D,#3DDD4E); color: #0a0a14; border: none; font-weight: 700; }
.home-compare-btn-hot:hover { background: linear-gradient(135deg,#6FFF7D,#4DEE5E); color: #0a0a14; box-shadow: 0 4px 16px rgba(92,255,109,0.3); }
.home-compare-footer { text-align: center; margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.home-compare-footer span { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.home-compare-cta { padding: 10px 24px; background: rgba(92,255,109,0.1); border: 1px solid rgba(92,255,109,0.2); border-radius: 24px; color: var(--mc-glow); text-decoration: none; font-size: 0.88rem; font-weight: 600; transition: all .3s; }
.home-compare-cta:hover { background: rgba(92,255,109,0.15); color: var(--mc-glow); }
@media (max-width: 768px) { .home-compare-grid { grid-template-columns: 1fr; max-width: 380px; } }

/* ========== ④ 家长信任区 ========== */
.home-trust { padding: 60px 0 70px; }
.trust-stats { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-bottom: 36px; }
.trust-stat { text-align: center; }
.trust-num { display: block; font-size: 2rem; font-weight: 900; color: var(--mc-glow,#5CFF6D); }
.trust-label { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-top: 4px; }
.trust-quotes { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; max-width: 900px; margin: 0 auto; }
.trust-quote { flex: 1; min-width: 240px; padding: 18px 20px; background: rgba(92,255,109,0.04); border: 1px solid rgba(92,255,109,0.1); border-radius: 12px; font-size: 0.86rem; color: rgba(255,255,255,0.7); line-height: 1.6; }
.trust-quote span { display: block; margin-top: 8px; font-size: 0.76rem; color: rgba(255,255,255,0.35); }
@media (max-width: 768px) { .trust-quotes { flex-direction: column; } }

/* --- 精品VIP课程 --- */
.courses-section {
    padding: var(--section-pad);
    background: linear-gradient(0deg, rgba(20,40,15,0.15) 0%, var(--mc-dark) 100%);
    position: relative;
    z-index: 1;
}
.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    position: relative;
    z-index: 2;
}
.course-card {
    background: rgba(25,25,40,0.7);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.4s;
}
.course-card:hover {
    transform: translateY(-6px);
    border-color: rgba(92,255,109,0.25);
    box-shadow: 0 10px 25px rgba(92,255,109,0.08);
}
.course-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.course-thumb {
    position: relative;
    width: 100%;
    padding-top: 63%;
    background: rgba(10,10,20,0.4);
    overflow: hidden;
}
.course-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.course-card:hover .course-thumb img {
    transform: scale(1.04);
}
.course-info {
    padding: 16px 18px;
    position: relative;
    z-index: 2;
}
.course-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.course-type {
    color: rgba(255,255,255,0.35);
    font-size: 0.75rem;
    margin-top: 6px;
}

/* --- 预约试听（微信二维码） --- */
.trial-section {
    padding: 60px 0 70px;
    background: linear-gradient(135deg, rgba(20,40,15,0.25) 0%, rgba(10,10,20,0.95) 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.trial-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/img/icon/wd.jpg') center center / cover no-repeat;
    opacity: 0.04;
    z-index: 0;
}
.trial-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}
.trial-inner h2 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 8px;
    font-weight: 700;
}
.trial-inner h2 span {
    color: var(--mc-glow);
}
.trial-inner > p {
    color: rgba(255,255,255,0.45);
    font-size: 0.92rem;
    margin-bottom: 36px;
    line-height: 1.7;
}
.trial-qrcodes {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.trial-qr-item {
    text-align: center;
}
.trial-qr-item img {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.08);
    object-fit: cover;
    transition: border-color 0.3s;
}
.trial-qr-item img:hover {
    border-color: rgba(92,255,109,0.3);
}
.trial-qr-item .qr-label {
    color: rgba(255,255,255,0.35);
    font-size: 0.78rem;
    margin-top: 8px;
}

/* --- 响应式 --- */
@media (max-width: 992px) {
    .hero-works-grid,
    .works-grid,
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
    .worlds-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2.8rem; }
    .hero .subtitle { font-size: 1.05rem; }
    .hero { padding: 100px 0 50px; }
}
@media (max-width: 768px) {
    .worlds-grid { grid-template-columns: 1fr; max-width: 420px; }
}
@media (max-width: 576px) {
    .hero-works-grid,
    .works-grid,
    .courses-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hero h1 { font-size: 2rem; }
    .hero .subtitle { font-size: 0.9rem; margin-bottom: 24px; }
    .hero { padding: 90px 0 40px; }
    .trial-qrcodes { gap: 20px; }
    .trial-qr-item img { width: 110px; height: 110px; }
}
/* ===== 头像徽章框（与 Scratch 专区完全一致） ===== */
.avatar-badge-frame {
  width:32px !important; height:32px !important;
  flex-shrink:0 !important;
  position:relative !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.avatar-badge-frame .abf-avatar {
  width:55% !important; height:55% !important;
  border-radius:50% !important; object-fit:cover !important;
  position:relative !important; z-index:2 !important;
  display:block !important;
}
.avatar-badge-frame .abf-badge {
  position:absolute !important;
  top:0 !important; left:0 !important;
  width:100% !important; height:100% !important;
  z-index:1 !important;
  object-fit:contain !important;
  pointer-events:none !important;
}
/* ===== 无徽章头像框 ===== */
.avatar-border-wrap {
  width:32px !important; height:32px !important;
  flex-shrink:0 !important;
  position:relative !important;
  display:inline-flex !important;
}
.avatar-border-wrap img {
  width:32px !important; height:32px !important;
  border-radius:50% !important; object-fit:cover !important;
  display:block !important;
}
/* ===== 作品列表（人气/潜力）统一 26px ===== */
.work-author .avatar-badge-frame,
.work-author .avatar-border-wrap {
  width:26px !important; height:26px !important;
}
.work-author .avatar-border-wrap img {
  width:26px !important; height:26px !important;
}
/* ===== 推荐作品区（Hero）统一 26px ===== */
.hero-work-meta .avatar-badge-frame,
.hero-work-meta .avatar-border-wrap {
  width:26px !important; height:26px !important;
  vertical-align:middle;
}
.hero-work-meta .avatar-border-wrap img {
  width:26px !important; height:26px !important;
}
/* ===== 绿宝石排行榜（Hero 右侧浮层） ===== */
.hero-lb {
    position: absolute;
    top: -90px;
    right: -5px;
    z-index: 10;
    width: 220px;
    max-height: 220px;
    background: rgba(10,10,20,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(92,255,109,0.12);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 30px rgba(92,255,109,0.03);
}
.hero-lb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero-lb-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--mc-glow);
}
.hero-lb-sub {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.25);
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
}
.hero-lb-body {
    max-height: 130px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.hero-lb-body::-webkit-scrollbar { display: none; }
.hero-lb-loading {
    text-align: center;
    padding: 30px;
    color: rgba(255,255,255,0.2);
    font-size: 1.2rem;
}
.hero-lb-footer {
    text-align: center;
    padding: 6px 16px;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.25);
    border-top: 1px solid rgba(255,255,255,0.04);
}
/* 排行榜行 */
.lb-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}
.lb-row:hover {
    background: rgba(92,255,109,0.06);
}
.lb-row.lb-self {
    background: rgba(92,255,109,0.1);
}
.lb-rank {
    width: 24px;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.2);
    flex-shrink: 0;
}
.lb-rank.gold { color: #ffd700; }
.lb-rank.silver { color: #c0c0c0; }
.lb-rank.bronze { color: #cd7f32; }
.lb-rank .medal { font-size: 0.9rem; }
.lb-avatar {
    width: 24px; height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
}
.lb-name {
    flex: 1;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.lb-emerald {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--mc-glow, #5CFF6D);
    flex-shrink: 0;
    white-space: nowrap;
}
.lb-emerald i { font-style: normal; font-size: 0.6rem; opacity: 0.5; }
.lb-emerald img { opacity: 0.85; }
.lb-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.2);
    font-size: 0.8rem;
}
@media (max-width: 900px) {
    .hero-lb { display: none; }
}
@media (min-width: 901px) and (max-width: 1200px) {
    .hero-lb { top: -100px; right: 10px; width: 240px; max-height: 260px; }
    .hero-lb-body { max-height: 160px; }
}

/* ===== 滚动入场动画 ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 图片骨架屏 ===== */
.img-skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
}
@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== 移动端 Hero 高度适配 ===== */
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 80px 0 40px; }
}

/* ===== 尊重减少动效偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== 回顶部按钮 ===== */
.back-top {
    position: fixed;
    bottom: 40px;
    right: 24px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(92,255,109,0.12);
    border: 1px solid rgba(92,255,109,0.2);
    color: var(--mc-glow);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
}
.back-top.show {
    opacity: 1;
    visibility: visible;
}
.back-top:hover {
    background: var(--mc-glow);
    color: #0a0a14;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(92,255,109,0.3);
}

/* ===== 快捷导航标签 ===== */
.quick-nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: -30px;
    margin-bottom: 30px;
    position: relative;
    z-index: 3;
}
.quick-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 20px;
    background: rgba(25,25,40,0.8);
    border: 1px solid rgba(92,255,109,0.12);
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s;
    backdrop-filter: blur(8px);
}
.quick-nav a:hover {
    border-color: rgba(92,255,109,0.35);
    color: var(--mc-glow);
    transform: translateY(-2px);
}

/* ===== 联机徽章（绿晶主题） ===== */
.cloud-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  background: rgba(10,10,20,0.75);
  backdrop-filter: blur(4px);
  color: #5CFF6D;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(92,255,109,0.2);
  box-shadow: 0 0 10px rgba(92,255,109,0.08);
  text-shadow: 0 0 4px rgba(92,255,109,0.25);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
  overflow: hidden;
  cursor: default;
}
/* 悬停微亮 */
.work-card:hover .cloud-badge,
.hero-work-card:hover .cloud-badge {
  border-color: rgba(92,255,109,0.4);
  box-shadow: 0 0 16px rgba(92,255,109,0.2);
  transform: scale(1.05);
}
.cloud-badge i {
  font-size: 0.6rem;
  opacity: 0.85;
}

/* ===== 免费资源 CTA 横幅 ===== */
.home-resources-cta { padding: 0 0 60px; }
.resources-cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: linear-gradient(135deg, rgba(92,255,109,0.06), rgba(255,215,0,0.04));
  border: 1px solid rgba(92,255,109,0.15); border-radius: 18px;
  padding: 24px 32px; transition: all .3s;
}
.resources-cta-card:hover { border-color: rgba(92,255,109,0.3); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(92,255,109,0.08); }
.resources-cta-left { display: flex; align-items: center; gap: 16px; flex: 1; }
.resources-cta-icon { font-size: 2.2rem; flex-shrink: 0; }
.resources-cta-left h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin: 0 0 4px; }
.resources-cta-left p { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin: 0; }
.resources-cta-btn {
  display: inline-block; padding: 12px 24px; background: linear-gradient(135deg, #5CFF6D, #3DDD4E);
  color: #0a0a14; border-radius: 25px; font-weight: 700; font-size: 0.9rem; text-decoration: none;
  white-space: nowrap; flex-shrink: 0; transition: all .3s; box-shadow: 0 4px 18px rgba(92,255,109,0.2);
}
.resources-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(92,255,109,0.35); color: #0a0a14; }

@media (max-width: 768px) {
  .resources-cta-card { flex-direction: column; text-align: center; padding: 20px; }
  .resources-cta-left { flex-direction: column; }
  .resources-cta-icon { font-size: 1.8rem; }
  .resources-cta-left h3 { font-size: 1rem; }
}
