/* ===== GLOBAL ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    color: #333;
}

/* ================= UNIVERSAL SUBPAGE HERO ================= */
.sub-hero {
    position: relative; 
    height: var(--hero-h, 50vh); 
    min-height: 280px;

    background: url("../resources/resources_pic.png") center/cover no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
    transition: height 0.15s linear;
}

/* ================= 高级渐变遮罩（重点） ================= */
.sub-hero::before {
    content: "";
    position: absolute;
    inset: 0;

    /* ⭐中心清晰 + 边缘渐暗 */
    background: radial-gradient(
        circle at center,
        rgba(240,242,245,0.05) 0%,
        rgba(240,242,245,0.12) 45%,
        rgba(240,242,245,0.28) 100%
    );

    z-index: 1;
}

/* ================= 再加一层“边缘暗角（更高级）” ================= */
.sub-hero::after {
    content: "";
    position: absolute;
    inset: 0;

    background: radial-gradient(
        ellipse at center,
        rgba(0,0,0,0.00) 50%,
        rgba(0,0,0,0.20) 100%
    );

    z-index: 2;
}

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 25px;
    right: 40px;
    z-index: 1100;
}

.nav-right {
    display: flex;
    gap: 24px;
}

.nav-right a {
    text-decoration: none;
    color: #2F2433;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    transition: color 0.25s ease, transform 0.25s ease;
}

.nav-right a:hover {
    color: #A63D1E;
    transform: scale(1.08);
}

/* 当前页面 */
.nav-right a.active {
    color: #B85C1A;
    font-weight: 700;
}

.top-glass-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 1000;
    pointer-events: none;
}
/* ================= CENTER TEXT ================= */
.sub-hero-text {
    position: relative;
    z-index: 3;
    text-align: center;
}

.sub-hero-text h1 {
    font-size: 42px;
    font-weight: 700;
    color: #3E3A35;
    margin: 0 0 10px;
}

.sub-hero-text p {
    font-size: 18px;
    color: #8B4513;
    margin: 0;
}

/* ================= Content ================= */
.resources-container {
    max-width: 980px;
    margin: auto;
    padding: 80px 24px;
}

.resource-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    padding: 28px 32px;
    margin-bottom: 22px;
    overflow: visible;   /*让图片放大被可视化*/

    background: rgba(248,248,250,0.95);
    border-radius: 22px;

    box-shadow:
        0 6px 24px rgba(0,0,0,0.04),
        0 1px 2px rgba(0,0,0,0.03);

    transition: all 0.3s ease;
}

.resource-item:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 30px rgba(0,0,0,0.08),
        0 2px 6px rgba(0,0,0,0.04);
}

.resource-left h3 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #2F2F2F;
    font-weight: 700;
}

.resource-left p {
    margin: 0;
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

.resource-right {
    width: 200px; /*右侧预留空间*/    
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 60px; /* 👈 往左挪一点（关键） */
}

.resource-right img {
    width: 64px; /*图片大小*/
    height: 64px;
    object-fit: contain;
    opacity: 0.9;
    transform: scale(3);/*图片视觉效果*/
    transition: transform 0.3s ease;
}

.resource-item:hover .resource-right img {
    transform: scale(3.4); /*悬停图片视觉效果*/
}

/* =========================== top left logo =========================== */
.wu-logo {
    position: fixed;
    top: 3px;
    left: 28px;
    z-index: 1200;
}

.wu-logo img {
    height: 60px;
    width: auto;
    display: block;
}
