body {
    margin: 0;
    overflow: hidden;
    background-color: #121212;
}
canvas {

    display: flex;
    position: fixed;
    /* border: orangered 1px solid; */
    top: 0;
    left: 0;
    z-index: -999;

    justify-content: center;
    justify-items: center;
    align-items: center;
}

.content {
    -webkit-tap-highlight-color: transparent;  
    display: block;
    width: 250px;
    height: 150px;
    border: #C4C7C5 1px solid;

    border-radius: 8px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background-color: #121212;

    color: rgba(196, 199, 197, 0.87);
    
    font-family: sans-serif;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

.content:hover{
    transform: translate(-50%, -50%) scale(1.05);
    border: none;
}

/* 新增：定义旋转角度变量（需要浏览器支持 CSS Houdini API，如 Chrome/Edge/Safari/FF） */
@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* 新增：定义旋转关键帧 */
@keyframes rotation {
  0% { --gradient-angle: 0deg; }
  100% { --gradient-angle: 360deg; }
}

.content:hover::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
    border-radius: 8px;
    border: 3px solid transparent;
    /* 修改：添加 from var(--gradient-angle) */
    background: linear-gradient(#121212, #121212) padding-box, conic-gradient(from var(--gradient-angle), orangered, orange, yellow, lime, cyan, blue, violet, orangered) border-box;
    z-index: -1;
    /* 新增：应用旋转动画 */
    animation: rotation 2s linear infinite;
}

.content:hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
    border-radius: 8px;
    border: 3px solid transparent;
    /* 修改：添加 from var(--gradient-angle) */
    background: conic-gradient(from var(--gradient-angle), orangered, orange, yellow, lime, cyan, blue, violet, orangered) border-box;
    filter: blur(10px);
    z-index: -2;
    /* 新增：应用旋转动画 */
    animation: rotation 2s linear infinite;
}

.snow-cover {
    position: absolute;
    top: -14px;
    left: -2%;
    width: 104%;
    height: 30px;
    background: linear-gradient(to bottom, #ffffff 40%, #eef6fc 100%);
    border-radius: 15px 20px 50% 40% / 15px 20px 60% 50%;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 4px 3px rgba(0,0,0,0.15));
}

.snow-cover::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 10px;
    left: 15px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    box-shadow: 
        0 0 0 2px #8B0000, 
        4px -3px 0 1px #A52A2A,
        -3px 2px 0 0px #8B0000,
        -8px 5px 0 3px #556B2F,
        2px 8px 0 2px #6B8E23,
        -5px 12px 0 1px #556B2F,
        180px 2px 0 1px #8B0000,
        185px -2px 0 0px #A52A2A,
        /* 叶子 */
        175px 6px 0 3px #6B8E23,
        188px 8px 0 2px #556B2F,
        180px 12px 0 1px #6B8E23;
}

/* --- 额外的不规则垂落雪块 (最顶层) --- */
.snow-cover::after {
    content: "";
    position: absolute;
    z-index: 2; /* 在主雪层上面 */
    /* 放在中间偏右的位置，打破整体对称感 */
    top: 50%;
    right: 25%;
    width: 35%;
    height: 90%;
    /* 继承主雪层的颜色 */
    background: inherit;
    /* 像融化水滴一样的不规则形状 */
    border-radius: 40% 60% 70% 30% / 50% 40% 80% 60%;
    box-shadow: -2px 2px 2px rgba(0,0,0,0.05); /* 轻微的自身阴影 */
}