/* 基础样式 */
@layer utilities {
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .text-shadow-lg {
        text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    .bg-gradient-blue {
        background: linear-gradient(135deg, #0A2463 0%, #051333 100%);
    }
    .bg-gradient-accent {
        background: linear-gradient(135deg, #3E92CC 0%, #0A2463 100%);
    }
    .transition-all-300 {
        transition: all 300ms ease-in-out;
    }
    .card-hover {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }
    .glass-effect {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* 滚动动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* 导航栏滚动效果 */
.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    animation: navbarSlide 0.3s ease;
}
@keyframes navbarSlide { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* 3D场景容器 */
#hero-3d-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
}

/* 视频背景容器 */
.video-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #0A2463;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #051333;
}

/* 加载动画 */
.loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #FF7F11;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 波浪动画 */
.wave {
    animation: wave 7s ease-in-out infinite;
    transform-origin: 50% 50%;
}
@keyframes wave {
    0% { transform: translateX(0) translateZ(0) scaleY(1); }
    50% { transform: translateX(-25%) translateZ(0) scaleY(0.8); }
    100% { transform: translateX(-50%) translateZ(0) scaleY(1); }
}

html { scroll-behavior: smooth; }

/* 编辑器基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

/* 适配 h2 标题（同步前端的 text-2xl font-bold mb-4 text-primary） */
h2.wp-block-heading {
    font-size: 24px; /* text-2xl 对应 24px */
    font-weight: 700; /* font-bold */
    margin-bottom: 16px; /* mb-4 对应 16px */
    color: #0A2463; /* text-primary 的颜色值 */
    margin-top: 32px;
}

/* 适配 h3 标题（同步前端的 text-lg font-semibold mb-3 text-gray-800） */
h3.wp-block-heading {
    font-size: 18px; /* text-lg 对应 18px */
    font-weight: 600; /* font-semibold */
    margin-bottom: 12px; /* mb-3 对应 12px */
    color: #333; /* text-gray-800 的颜色值 */
    margin-top: 24px;
}

h4.wp-block-heading {
    font-size: 16px; /* 对应 text-base */
    font-weight: 600; /* 对应 font-semibold */
    margin-bottom: 8px; /* 对应 mb-2 */
    color: #4b5563; /* 对应 text-gray-700 */
    margin-top: 16px; /* 与其他标题保持层级间距 */
}

/* 适配段落（同步前端的 text-gray-600） */
p.wp-block-paragraph {
    color: #666; /* text-gray-600 的颜色值 */
    margin-bottom: 16px; /* 统一段落间距 */
}

/* 适配无序列表（同步前端的 list-disc 样式） */
ul.wp-block-list {
    list-style-type: disc;
    margin-left: 2em; /* 左侧缩进 */
    margin-bottom: 1.5em;
}

/* 适配列表项 */
ul.wp-block-list li {
    margin-bottom: 8px; /* 列表项间距 */
    color: #666; /* 与段落文字颜色一致 */
}

/* 适配嵌套列表（如 4. 信息存储 中的二级列表） */
ul.wp-block-list ul.wp-block-list {
    list-style-type: circle; /* 二级列表用 circle */
    margin-left: 2em;
    margin-top: 8px;
}

/* 适配卡片区块（如 5. 安全保护 中的网格卡片） */
.wp-block-group.bg-gray-50 {
    background-color: #f9fafb;
    padding: 16px;
    border-radius: 8px;
}