img.hitandrun {
    width: 35px;
    height: 12px;
    background: url(icons.gif) no-repeat -100px -171px;
    margin-left: 0.5em;
}
.spoiler-title {
    line-height: 28px;
    color: #4d6c99;
    cursor: pointer;
    font-weight: 700;
    background-color: rgba(77, 108, 153, 0.1);
    display: inline-block;
    padding: 0 10px;
}
.spoiler-content {
    display: inline-block;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}
.layui-layer {
    color: black;
}
.layer-form {
    padding: 10px 15px;
}
.layer-form .form-control-row input{
    padding: 4px;
}
.layer-form .form-control-row .label{
    margin-bottom: 4px;
}
.rainbow {
    text-align: center;
    text-decoration: underline;
    /*font-size: 32px;*/
    /*font-family: monospace;*/
    /*letter-spacing: 5px;*/
    background: linear-gradient(to right, #6666ff, #0099ff , #00ff00, #ff3399, #6666ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow_animation 6s ease-in-out infinite;
    background-size: 400% 100%;
}

@keyframes rainbow_animation {
    0%,100% {
        background-position: 0 0;
    }

    50% {
        background-position: 100% 0;
    }
}
.nexus-media-info-raw {
    padding: 0 0.5rem;
    border: none;
}
.nexus-media-info-raw .spoiler-title-box{
    text-align: center;
}
.nexus-media-info-raw pre {
    white-space: break-spaces;
    overflow-wrap: anywhere;
}
.text-muted {
    color: #7d7b7b
}
.codemain>pre {
    margin: 0;
}
.word-break-all {
    word-break: break-all;
}

.form-box {
    padding: 15px;
}
.form-control-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
}
.form-control-row .label {
    width: 80px
}
.form-control-row .field {

}
.form-control-row input[type=text],textarea {
    width: 300px;
    padding: 4px;
}
.form-control-row input[type=checkbox] {
    vertical-align: sub;
}
.logo_img {
    position: absolute;
    z-index: 9;
    top: 0;
    height: 250px;
    display: flex;
    align-items: center;
    margin-left: 5px;
}

/* 装饰系统样式 */
/* 头像框示例样式 */
.avatar-frame-gold {
    position: relative;
    display: inline-block;
}
.avatar-frame-gold img {
    border: 3px solid gold;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.avatar-frame-gold::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px dashed gold;
    border-radius: 12px;
    animation: rotate 10s linear infinite;
}

.avatar-frame-silver {
    position: relative;
    display: inline-block;
}
.avatar-frame-silver img {
    border: 3px solid silver;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}
.avatar-frame-silver::before {
    content: '★';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: silver;
    font-size: 12px;
}

.avatar-frame-diamond {
    position: relative;
    display: inline-block;
}
.avatar-frame-diamond img {
    border: 3px solid #b9f2ff;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(185, 242, 255, 0.7);
}
.avatar-frame-diamond::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(45deg, #b9f2ff, #ffffff, #b9f2ff);
    border-radius: 50%;
    z-index: -1;
    animation: shimmer 2s infinite;
}

/* 用户名样式示例 */
.username-style-fire {
    background: linear-gradient(to right, #ff0000, #ff8800, #ff0000);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
    animation: fire 3s infinite alternate;
}

.username-style-ice {
    background: linear-gradient(to right, #00ffff, #ffffff, #00ffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
    animation: ice 3s infinite alternate;
}

.username-style-neon {
    color: #fff;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #ff00ff, 0 0 20px #ff00ff;
    animation: neon 1.5s infinite alternate;
}

/* 动画定义 */
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes fire {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(30deg); }
}

@keyframes ice {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(-30deg); }
}

@keyframes neon {
    0%, 100% { text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #ff00ff, 0 0 20px #ff00ff; }
    50% { text-shadow: 0 0 2px #fff, 0 0 5px #fff, 0 0 7px #ff00ff, 0 0 10px #ff00ff; }
}

/* 装饰品预览 */
.decoration-preview {
    display: inline-block;
    margin: 5px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    background: #f9f9f9;
}
.decoration-preview.active {
    border-color: #4d6c99;
    background: #e8eff7;
}
.decoration-preview.expired {
    opacity: 0.6;
    filter: grayscale(0.7);
}