/**
 * OfferKuai 通用样式文件
 * 包含导航栏、底部、Hero区域、容器等公共组件样式
 * 所有页面应引入此文件以保持样式统一
 */

/* ============================================
   1. CSS 变量定义
   ============================================ */
:root {
    /* 品牌色 */
    --brand: #2563EB;
    --brand-soft: rgba(37, 99, 235, 0.08);
    --brand-gradient: linear-gradient(135deg, #2563EB 0%, #4F46E5 50%, #7C3AED 100%);

    /* 功能色 */
    --success: #22C55E;
    --success-soft: rgba(34, 197, 94, 0.1);
    --warning: #F59E0B;
    --warning-soft: rgba(245, 158, 11, 0.1);
    --danger: #EF4444;
    --danger-soft: rgba(239, 68, 68, 0.1);
    --info: #2563EB;
    --info-soft: rgba(37, 99, 235, 0.1);
    --purple: #A855F7;
    --purple-soft: rgba(168, 85, 247, 0.1);

    /* 中性色 */
    --text: #0A0A0A;
    --text-secondary: #6B6B6B;
    --text-muted: #A3A3A3;
    --text-light: #9CA3AF;

    /* 背景色 */
    --bg: #FFFFFF;
    --bg-subtle: #FAFAFA;
    --bg-warm: #F8F7F4;

    /* 边框 */
    --border: rgba(0, 0, 0, 0.06);
    --border-light: rgba(0, 0, 0, 0.1);

    /* 阴影 */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.12);

    /* 间距 */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
}

/* ============================================
   2. 字体定义
   ============================================ */
@font-face {
    font-family: 'Noto Serif SC';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/noto-serif-sc-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Noto Serif SC';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/noto-serif-sc-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Noto Serif SC';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/noto-serif-sc-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Noto Serif SC';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/noto-serif-sc-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/playfair-display-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/playfair-display-800.woff2') format('woff2');
}

/* ============================================
   3. 基础样式重置
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
}

/* 防止菜单打开时页面抖动 - 使用滚动条补偿 */
body.menu-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0px);
}

/* 固定元素在菜单打开时也保持位置 */
body.menu-open .top-nav {
    padding-right: calc(4rem + var(--scrollbar-width, 0px));
}

body.menu-open .mobile-menu {
    width: calc(100% - var(--scrollbar-width, 0px));
}

@media (max-width: 1024px) {
    body.menu-open .top-nav {
        padding-right: calc(1.5rem + var(--scrollbar-width, 0px));
    }
}

::selection {
    background: var(--brand);
    color: white;
}

/* ============================================
   3. 容器系统
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    z-index: 2;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
}

/* ============================================
   4. 顶部导航栏
   ============================================ */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
}

.top-nav.scrolled {
    padding: 1rem 4rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* 导航品牌区域 */
.top-nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* 导航 Logo */
.top-nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.top-nav-logo img {
    height: 26px;
    width: auto;
    transition: transform 0.3s ease;
}

.top-nav-logo:hover img {
    transform: scale(1.05);
}

/* 导航链接 */
.top-nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.top-nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.top-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand);
    transition: width 0.3s ease;
}

.top-nav-links a:hover {
    color: var(--text);
}

.top-nav-links a:hover::after {
    width: 100%;
}

.top-nav-links a.active {
    color: var(--brand);
}

.top-nav-links a.active::after {
    width: 100%;
}

/* 导航 CTA 按钮 */
.top-nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-nav {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text);
    background: transparent;
    border-radius: 100px;
    cursor: pointer;
}

.btn-nav:hover {
    background: var(--text);
    color: white;
    border-color: var(--text);
    transform: translateY(-2px);
}

.btn-nav.btn-primary {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
}

.btn-nav.btn-primary:hover {
    background: #1D4ED8;
    border-color: #1D4ED8;
}

/* ============================================
   5. 移动端菜单
   ============================================ */
.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px auto;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 6rem 2rem 4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 移动端菜单头部 */
.mobile-menu-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    z-index: 1002;
    background: rgba(255, 255, 255, 0.98);
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.active .mobile-menu-header {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.05s;
}

.mobile-menu-logo img {
    height: 26px;
    width: auto;
}

.mobile-menu-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-menu-lang {
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: none;
    padding: 0.5rem;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.mobile-menu-links a {
    font-size: 1.25rem;
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu.active .mobile-menu-links a {
    opacity: 1;
    transform: translateY(0);
}

/* 交错动画延迟 */
.mobile-menu.active .mobile-menu-links a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.active .mobile-menu-links a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu-links a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu-links a:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu-links a:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-menu-links a:nth-child(6) { transition-delay: 0.3s; }

.mobile-menu-links a:hover {
    color: var(--brand);
    transform: translateX(5px);
}

/* 关闭时重置延迟 */
.mobile-menu-links a:nth-child(1) { transition-delay: 0s; }
.mobile-menu-links a:nth-child(2) { transition-delay: 0s; }
.mobile-menu-links a:nth-child(3) { transition-delay: 0s; }
.mobile-menu-links a:nth-child(4) { transition-delay: 0s; }
.mobile-menu-links a:nth-child(5) { transition-delay: 0s; }
.mobile-menu-links a:nth-child(6) { transition-delay: 0s; }

.mobile-menu-footer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.active .mobile-menu-footer {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.mobile-menu-close {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text);
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: var(--brand);
    color: white;
}

/* 移动端菜单顶部关闭按钮 */
.mobile-menu-close-top {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text);
    transition: all 0.3s ease;
    z-index: 1002;
}

.mobile-menu-close-top:hover {
    background: var(--brand);
    color: white;
    transform: scale(1.1);
}

/* 移动端菜单 CTA 按钮区域 */
.mobile-menu-cta {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.active .mobile-menu-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}

/* ============================================
   6. Hero 区域
   ============================================ */
.page-hero {
    padding: 12rem 0 6rem;
    position: relative;
    background: var(--bg-subtle);
    overflow: hidden;
}

.page-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 80%);
}

.page-hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
}

.page-hero-glow-1 {
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.4) 0%, transparent 70%);
}

.page-hero-glow-2 {
    bottom: -300px;
    left: -200px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.3) 0%, transparent 70%);
}

.page-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-hero-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--brand);
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 600;
}

.page-hero-title {
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.page-hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   6. FAQ 常见问题
   ============================================ */
.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease;
    border-radius: 12px;
}

.faq-item:hover {
    background: #FAFAFA;
}

.faq-item.active {
    background: #F8FAFF;
    border-color: rgba(37, 99, 235, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    font-size: 1.05rem;
    font-weight: 500;
    color: #0A0A0A;
    text-align: left;
    cursor: pointer;
    transition: color 0.3s ease;
    border-radius: 12px;
    font-family: inherit;
}

.faq-question:hover {
    color: #2563EB;
}

.faq-item.active .faq-question {
    color: #2563EB;
    font-weight: 600;
}

.faq-question i {
    color: #A3A3A3;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease, background 0.3s ease;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F0F0F0;
    border-radius: 50%;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: white;
    background: #2563EB;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ============================================
   7. 底部区域
   ============================================ */
.site-footer {
    padding: 3.5rem 0;
    border-top: 1px solid var(--border);
    background: var(--bg-subtle);
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo img {
    height: 20px;
    width: auto;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.footer-logo:hover img {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text);
}

/* 标准底部样式 - 与首页一致 */
.site-footer-standard {
    padding: 3.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #FAFAFA;
}

.site-footer-standard .footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer-standard .footer-brand {
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.site-footer-standard .footer-brand:hover {
    opacity: 0.8;
}

.site-footer-standard .footer-brand img {
    height: 20px;
    width: auto;
}

.site-footer-standard .footer-nav {
    display: flex;
    gap: 2rem;
    font-size: 0.75rem;
    color: #A3A3A3;
}

.site-footer-standard .footer-nav a {
    color: #A3A3A3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer-standard .footer-nav a:hover {
    color: #0A0A0A;
}

.site-footer-standard .footer-nav .beian-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-footer-standard .footer-nav .beian-link img {
    width: 14px;
    height: 14px;
}

/* ============================================
   8. 响应式适配
   ============================================ */
@media (max-width: 1024px) {
    .top-nav {
        padding: 1rem 1.5rem;
    }

    .top-nav-links {
        display: none;
    }

    /* 移动端导航布局：Logo左对齐，右侧元素右对齐 */
    .top-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .top-nav-brand {
        flex-shrink: 0;
    }

    .top-nav-cta {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-left: auto;
    }

    /* 移动端隐藏"申请内测"按钮，只保留EN按钮 */
    .top-nav-cta .btn-primary {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* 移动端导航栏滚动后样式 - 保持padding一致 */
    .top-nav.scrolled {
        padding: 1rem 1.5rem;
    }

    .site-footer .container {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* 移动端底部适配 */
    .site-footer-standard .footer-container {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 0 1.25rem !important;
    }

    .site-footer-standard .footer-nav {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.75rem !important;
        text-align: center !important;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 10rem 0 4rem;
    }

    .page-hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* 小屏幕底部优化 */
    .site-footer-standard {
        padding: 2rem 0;
    }

    .site-footer-standard .footer-nav {
        font-size: 0.7rem;
    }

    .site-footer-standard .footer-nav .beian-link img {
        width: 12px;
        height: 12px;
    }
}

/* ============================================
   9. 工具类
   ============================================ */
.font-display {
    font-family: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
}

.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   9. 按钮系统 - 统一规范
   ============================================
   
   所有按钮必须使用以下预定义类，禁止使用内联样式或自定义样式。
   
   按钮类型：
   - .btn-primary: 主要行动点，蓝色背景
   - .btn-secondary: 次要行动点，白色背景
   - .btn-text: 文本链接按钮，透明背景
   - .btn-submit: 表单提交，渐变背景
   - .btn-close: 关闭按钮，圆形
   - .btn-icon: 图标按钮，用于轮播箭头等
   - .btn-mobile-cta: 移动端主要按钮
   
   禁止事项：
   - 禁止修改按钮圆角值（统一为100px）
   - 禁止使用黑色作为按钮背景色
   - 禁止在按钮上使用自定义阴影效果
   - 禁止直接修改按钮尺寸，使用预定义尺寸类
*/

/* 按钮基础样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    line-height: 1.5;
}

/* 主按钮 - 蓝色背景，用于主要行动点 */
.btn-primary {
    background: var(--brand);
    color: white;
    border: 1px solid var(--brand);
}

.btn-primary:hover {
    background: #1D4ED8;
    border-color: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

/* 次要按钮 - 白色背景，用于次要行动点 */
.btn-secondary {
    background: white;
    color: var(--text);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--bg-subtle);
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* 次要按钮（浅色背景专用）- 用于白色/浅色背景上的次要按钮 */
.btn-secondary-light {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.btn-secondary-light:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 文本按钮 - 透明背景，用于辅助操作 */
.btn-text {
    background: transparent;
    color: var(--text);
    border: none;
    padding: 0.5rem 1rem;
}

.btn-text:hover {
    color: var(--brand);
    background: var(--brand-soft);
}

/* 表单提交按钮 - 渐变背景 */
.btn-submit {
    background: linear-gradient(135deg, #2563EB 0%, #4F46E5 50%, #7C3AED 100%);
    color: white;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 关闭按钮 - 圆形，用于弹窗 */
.btn-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-subtle);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    padding: 0;
}

.btn-close:hover {
    background: var(--brand);
    color: white;
    transform: rotate(90deg);
}

/* 图标按钮 - 用于轮播箭头等 */
.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 移动端CTA按钮 */
.btn-mobile-cta {
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    background: var(--brand);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-mobile-cta:hover {
    background: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3);
}

/* 按钮尺寸变体 */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* ============================================
   10. 安全提示弹窗样式
   ============================================ */

/* 悬浮按钮 */
.security-float-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
    z-index: 100;
}

.security-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(245, 158, 11, 0.5);
}

.security-float-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(245, 158, 11, 0.3);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.security-float-tooltip {
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.security-float-btn:hover .security-float-tooltip {
    opacity: 1;
    visibility: visible;
}

/* 弹窗遮罩 */
.security-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.security-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 弹窗内容 */
.security-modal {
    background: white;
    border-radius: 24px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.security-modal-overlay.active .security-modal {
    transform: translateY(0) scale(1);
}

/* 弹窗头部 */
.security-modal-header {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    padding: 1.5rem 2rem;
    border-radius: 24px 24px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.security-modal-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
}

.security-modal-title i {
    font-size: 1.5rem;
}

.security-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.security-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* 弹窗主体 */
.security-modal-body {
    padding: 2rem;
}

.security-alert-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.security-alert-box h4 {
    color: #D97706;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.security-alert-box p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.security-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.security-tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.security-tips-list li:last-child {
    border-bottom: none;
}

.security-tips-list i {
    color: var(--brand);
    margin-top: 0.25rem;
}

.security-tips-list strong {
    color: var(--text);
    font-weight: 600;
}

/* 安全弹窗横幅 */
.security-alert-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.04) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #92400E;
    font-weight: 600;
    font-size: 0.95rem;
}

.security-alert-banner i {
    color: #F59E0B;
    font-size: 1.25rem;
}

/* 双栏内容网格 */
.security-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* 安全面板 */
.security-panel {
    border-radius: 16px;
    padding: 1.25rem;
}

.security-panel.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.04) 0%, rgba(239, 68, 68, 0.08) 100%);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.security-panel.safe {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.04) 0%, rgba(34, 197, 94, 0.08) 100%);
    border: 1px solid rgba(34, 197, 94, 0.15);
}

.security-panel-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.security-panel.danger .security-panel-header {
    color: #DC2626;
}

.security-panel.safe .security-panel-header {
    color: #16A34A;
}

.security-panel-header i {
    font-size: 1.1rem;
}

/* 安全列表 */
.security-list {
    list-style: none;
    font-size: 0.875rem;
    color: #4B5563;
}

.security-list li {
    padding: 0.5rem 0;
    padding-left: 1rem;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.security-list li:last-child {
    border-bottom: none;
}

.security-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.security-panel.danger .security-list li::before {
    background: #EF4444;
}

.security-panel.safe .security-list li::before {
    background: #22C55E;
}

/* 官方链接 */
.security-official-link {
    color: #2563EB;
    font-weight: 600;
    text-decoration: none;
}

.security-official-link:hover {
    text-decoration: underline;
}

/* 底部警示 */
.security-footer-alert {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.06) 0%, rgba(239, 68, 68, 0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    color: #B91C1C;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* 移动端适配 */
@media (max-width: 640px) {
    .security-float-btn {
        width: 48px;
        height: 48px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.25rem;
    }

    .security-float-tooltip {
        display: none;
    }

    .security-modal-header {
        padding: 1.25rem 1.5rem;
    }

    .security-modal-title {
        font-size: 1.1rem;
    }

    .security-modal-body {
        padding: 1.5rem;
    }

    .security-alert-box {
        padding: 1rem;
    }

    .security-content-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .security-alert-banner {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .security-panel {
        padding: 1rem;
    }

    .security-panel-header {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .security-list {
        font-size: 0.8rem;
    }

    .security-list li {
        padding: 0.4rem 0;
        padding-left: 0.875rem;
    }

    .security-footer-alert {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

/* ============================================
   11. 申请表单模态框样式
   ============================================ */

/* 表单模态框遮罩 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.opacity-0 {
    opacity: 0;
    visibility: hidden;
}

.modal-overlay:not(.opacity-0) {
    opacity: 1;
    visibility: visible;
}

/* 表单模态框内容 */
.modal-content {
    background: white;
    border-radius: 1.5rem;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

/* 确保表单主体可以滚动 */
.modal-body {
    padding: 0 1.5rem 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

.modal-overlay:not(.opacity-0) .modal-content {
    transform: translateY(0) scale(1);
}

/* 表单头部 */
.modal-header {
    padding: 1.5rem 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: #0A0A0A;
    margin: 0;
    letter-spacing: -0.01em;
}

.modal-subtitle {
    font-size: 0.8125rem;
    color: #6B6B6B;
    margin-top: 0.25rem;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #6B6B6B;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #F5F5F5;
    color: #0A0A0A;
}

/* 表单字段 */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0A0A0A;
    margin-bottom: 0.375rem;
}

.form-label .required {
    color: #EF4444;
    margin-left: 0.125rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    color: #0A0A0A;
    background: #FAFAFA;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #2563EB;
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
    color: #A3A3A3;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-position: right 0.875rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* 表单错误提示 */
.form-error {
    font-size: 0.75rem;
    color: #EF4444;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-error.hidden {
    display: none;
}

.form-input.border-red-500 {
    border-color: #EF4444;
}

/* 表单备注 */
.form-note {
    font-size: 0.75rem;
    color: #A3A3A3;
    text-align: center;
    margin-top: 0.75rem;
}

/* 提交按钮 */
.btn-submit {
    width: 100%;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 成功模态框 */
.success-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success-modal.opacity-0 {
    opacity: 0;
    visibility: hidden;
}

.success-modal:not(.opacity-0) {
    opacity: 1;
    visibility: visible;
}

.success-modal-content {
    background: white;
    border-radius: 1.5rem;
    width: 100%;
    max-width: 380px;
    padding: 2rem;
    text-align: center;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.success-modal:not(.opacity-0) .success-modal-content {
    transform: translateY(0) scale(1);
}

.success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: white;
    font-size: 2rem;
}

.success-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 0.5rem;
}

.success-message {
    font-size: 0.9375rem;
    color: #6B6B6B;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.success-countdown {
    font-size: 0.8125rem;
    color: #A3A3A3;
    padding: 0.75rem;
    background: #FAFAFA;
    border-radius: 0.75rem;
}

.success-countdown span {
    color: #2563EB;
    font-weight: 600;
}

/* 移动端适配 */
@media (max-width: 640px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal-content {
        max-height: 85vh;
        border-radius: 1.25rem 1.25rem 0 0;
        max-width: 100%;
    }

    .success-modal-content {
        max-height: 85vh;
        border-radius: 1.25rem;
        max-width: calc(100% - 2rem);
        margin: 1rem;
    }

    .security-modal-overlay {
        padding: 0.5rem;
    }

    .security-modal {
        border-radius: 20px;
        max-height: 95vh;
    }

    .security-modal-header {
        border-radius: 20px 20px 0 0;
        padding: 1rem 1.25rem;
    }

    .modal-header {
        padding: 1.25rem 1.25rem 0.75rem;
    }

    .modal-title {
        font-size: 1.125rem;
    }

    .modal-body {
        padding: 0 1.25rem 1.25rem;
        max-height: calc(100vh - 120px);
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    .form-input,
    .form-select {
        padding: 0.625rem 0.875rem;
        font-size: 16px; /* 防止iOS缩放 */
        border-radius: 0.625rem;
    }

    .btn-submit {
        padding: 0.875rem;
        border-radius: 0.625rem;
    }

    .success-modal-content {
        padding: 2rem 1.5rem;
    }

    .success-icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }

    .success-title {
        font-size: 1.25rem;
    }

    /* 移动端按钮防止全宽 */
    .btn.btn-lg {
        width: auto !important;
        min-width: 200px;
    }
}
