/* ============================================================
   global.css — 全站通用样式
   ------------------------------------------------------------
   包含：
     0. 设计变量
     1. 全局重置 / 基础
     2. Header 容器
     3. 全宽容器
     4. Header logo / 右侧区域
     5. 通用标题
     6. CTA 区块
     7. 页脚
     8. 响应式工具类
     9. Header 响应式
   ============================================================ */

/* ============================================================
   0. 设计变量
   ============================================================ */
:root {
    --brand-red: #e1000f;
    --brand-red-hover: #b4000c;
    --brand-dark: #1a1a1a;
    --brand-gray: #3b3b3b;
    --brand-light-bg: #f5f5f5;

    --color-primary: #e1000f;
    --color-primary-hover: #b4000c;
    --color-text: #3b3b3b;
    --color-text-light: #787878;
    --color-border: rgba(59, 59, 59, 0.1);
    --color-bg-white: #ffffff;
    --color-bg-hover: #f5f7fa;
    --color-shadow: rgba(0, 0, 0, 0.1);

    --header-height-desktop: 88px;
    --header-height-mobile: 64px;
    --menu-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --panel-width: 280px;

    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                   "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ============================================================
   1. 全局重置 / 基础
   ============================================================ */
html { font-size: 100%; }
body { font-size: 1.0rem; }

body {
    font-family: var(--font-family);
    color: var(--brand-gray);
}

.uk-container { max-width: 1280px; }

/* ============================================================
   2. Header 容器（全宽）
   ============================================================ */
.header {
    background: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height-desktop);
}

.header__container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================================
   3. 全宽容器（与 Header 对齐 · 用于各区块）
   ============================================================ */
.uk-container-full {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
}

/* ============================================================
   4. Header logo / 右侧区域
   ============================================================ */
.header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
    white-space: nowrap;
}
.header__logo .logo-text { color: var(--brand-red); }
.header__logo .header__logo-mark {
    color: var(--brand-red);
    font-size: 18px;
    line-height: 1;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
}

/* ============================================================
   5. 通用标题
   ============================================================ */
.section-heading { font-weight: 700; color: var(--brand-dark); }
.section-heading .highlight { color: var(--brand-red); }
.section-subheading {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 640px;
    margin: 12px auto 0;
}

/* ============================================================
   6. CTA 区块
   ============================================================ */
.cta-section {
    background: var(--brand-dark);
    color: #fff;
    padding: 60px 0;
}
.cta-section .uk-button-primary {
    background: var(--brand-red);
    border-color: var(--brand-red);
    border-radius: 50px;
    padding: 0 44px;
    font-weight: 600;
}
.cta-section .uk-button-primary:hover {
    background: var(--brand-red-hover);
    border-color: var(--brand-red-hover);
}
.cta-section .uk-button-default {
    border-radius: 50px;
    padding: 0 36px;
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}
.cta-section .uk-button-default:hover {
    border-color: #fff;
    background: transparent;
    color: #fff;
}

/* ============================================================
   7. 页脚
   ============================================================ */
.site-footer {
    background: #141414;
    color: rgba(255, 255, 255, 0.55);
    padding: 48px 0 32px;
}
.site-footer h5 { color: #fff; font-weight: 600; font-size: 1rem; }
.site-footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.site-footer a:hover { color: #fff; }
.site-footer .uk-list li { padding: 2px 0; }
.footer-divider {
    border-color: rgba(255, 255, 255, 0.06);
    margin: 28px 0 20px;
}
.footer-social .uk-icon-button {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}
.footer-social .uk-icon-button:hover {
    background: var(--brand-red);
    color: #fff;
}

/* ============================================================
   8. 响应式工具类
   ============================================================ */
@media (min-width: 1024px) {
    .only-mobile { display: none !important; }
}
@media (max-width: 1023px) {
    .only-desktop { display: none !important; }
    .only-mobile  { display: inline-flex; }
}

/* ============================================================
   9. Header 响应式
   ============================================================ */
@media (max-width: 1023px) {
    .header { height: var(--header-height-mobile); }
    .header__container { padding: 0 16px; }
    .header__logo { font-size: 17px; }
}

@media (max-width: 480px) {
    .header__logo { font-size: 15px; }
}

/* 全宽容器内边距（断点跟随 Header） */
@media (max-width: 1023px) {
    .uk-container-full {
        padding-left: 24px;
        padding-right: 24px;
    }
}
@media (max-width: 640px) {
    .uk-container-full {
        padding-left: 16px;
        padding-right: 16px;
    }
}