/* ====全局====*/


h1 {
    color: #2E7D32; /* 深绿色 */
    font-size: 32px;
}

body {
    background: #F5F5DC; /* 米白色 */
    font-family: "Microsoft YaHei", sans-serif;
}

.card {
    margin: 20px;          /* 卡片外间距 */
    padding: 15px;         /* 卡片内间距 */
    border: 2px solid #fbfcfb;  /* 边框 */
    border-radius: 12px;   /* 圆角 */
}


/* ====固定角色 ====*/
#character {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 100px;
}

.card {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.card:hover {
    transform: scale(1.05);  /* 悬停时放大 */
}


/*====头部====*/
.header {
    background: rgb(40,141,89);
    padding: 20px;
}




/*====底部====*/
.footer {
    background: rgb(40,141,89);
    padding: 20px;
    text-align: center;
    color: white;
}

/* ========== 全站统一导航栏 ========== */
.top-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.85);
    padding: 8px 16px;
    border-radius: 999px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(139, 111, 71, 0.15);
    white-space: nowrap;
}

.top-nav a {
    color: #6B8E4E;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    padding: 6px 14px;
    border-radius: 999px;
    transition: all 0.2s;
}

.top-nav a:hover {
    background: rgba(107, 142, 78, 0.1);
    color: #2E7D32;
}

/* 当前页高亮 */
.top-nav a.active {
    color: #fff;
    background: #E67E22;
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.4);
}

