/* =========================================
   全局变量与重置
   ========================================= */
:root {
    --brand-blue: #2793ff;      /* 品牌主色 */
    --text-dark: #333333;       /* 深色文字 */
    --text-gray: #666666;       /* 灰色文字 */
    --header-pc: 120px;         /* PC头部总高 */
    --header-mobile: 60px;      /* 手机头部高度 */
    --admin-bar: 32px;          /* WP后台黑条 */
}


/* 全局重置 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ✅ 彻底移除所有链接下划线 */
a, a:link, a:visited, a:hover, a:active {
    text-decoration: none !important;
    color: inherit;
    transition: color 0.3s ease;
    outline: none;
}

/* ✅ 移除所有元素的焦点黑框 */
*:focus, *:focus-visible, *:focus-within {
    outline: none !important;
    box-shadow: none !important;
}

/* ✅ 移除按钮点击黑框和默认样式 */
button, input, select, textarea {
    outline: none !important;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
}

button:focus, button:active,
input:focus, input:active,
select:focus, select:active,
textarea:focus, textarea:active {
    outline: none !important;
    box-shadow: none !important;
}

/* 移除列表默认样式 */
ul, ol {
    list-style: none;
}

/* 图片重置 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border: none;
}

/* 表格重置 */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* 容器居中 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 全局按钮样式 */
.btn-primary {
    display: inline-block;
    background: var(--brand-blue);
    color: #fff !important;
    padding: 12px 35px;
    border-radius: 2px;
    font-weight: bold;
    text-transform: uppercase;
    border: 1px solid var(--brand-blue);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: transparent;
    color: var(--brand-blue) !important;
}

.btn-primary:focus,
.btn-primary:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Scroll Reveal 初始状态 */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* 响应式字体基准 */
@media (min-width: 769px) {
    body { font-size: 16px; }
    h2 { font-size: 36px; line-height: 1.2; margin-bottom: 20px; }
    .container { padding: 0 15px; }
}

@media (max-width: 768px) {
    body { font-size: 14px; }
    h2 { font-size: 26px; line-height: 1.3; margin-bottom: 15px; }
    .container { padding: 0 15px; }
}