@layer utilities {
    /* 自定义工具类 */
    .text-shadow-gold {
        text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
    }
    .bg-gradient-gold {
        background: linear-gradient(120deg, #D4AF3733, #D4AF3700);
    }
    .border-gold {
        border-color: #D4AF37;
    }
    .scroll-smooth {
        scroll-behavior: smooth;
    }
    /* 锚点滚动偏移（避开固定导航栏） */
    .scroll-mt-20 {
        scroll-margin-top: 5rem;
    }
    /* 钥匙文字特殊样式（匹配图片） */
    .key-text {
        font-family: 'SimSun', '宋体', serif;
        font-style: normal;
        letter-spacing: 0.1em;
    }
    /* 联系表单渐变背景（匹配图片） */
    .bg-contact-gradient {
        background: linear-gradient(180deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    }
}

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 关键修复：给html添加平滑滚动（优先级更高） */
html {
    scroll-behavior: smooth; /* 核心：开启全局平滑滚动 */
}

body {
    background-color: #0A0A0A;
    color: #fff;
    font-family: 'elegant', serif;
    overflow-x: hidden;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #121212;
}
::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 4px;
}

/* 钥匙图标样式优化 */
.key-icon {
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.8));
}

/* 匹配图片的文字排版样式 */
.custom-text-layout {
    font-family: 'SimSun', '宋体', serif;
    line-height: 1.8;
    letter-spacing: 0.05em;
    color: #fff;
}

/* 联系表单输入框样式（匹配图片） */
.contact-input {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 2px;
    color: #fff;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}
.contact-input:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.5);
    background-color: rgba(0, 0, 0, 0.4);
}

/* 成员查询弹窗样式 */
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}
.modal-content {
    border: 1px solid #D4AF3740;
    background-color: #1A1A1A;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

/* 卡片悬停效果优化 */
.card-hover {
    transition: all 0.3s ease-in-out;
}
.card-hover:hover {
    transform: scale(1.03);
}

/* 滚动触发的动画效果 */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 导航栏滚动效果 */
nav.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    box-shadow: 0 2px 20px rgba(212, 175, 55, 0.1);
}

/* 按钮悬停效果增强 */
button {
    transition: all 0.3s ease-in-out;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

/* 链接悬停效果增强 */
a {
    transition: all 0.3s ease-in-out;
}

/* 输入框焦点效果增强 */
.contact-input:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.7);
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}