/* =============== 统一呼吸效果系统 =============== */
:root {
    /* 核心呼吸变量 - 调整为更优雅的节奏 */
    --breath-duration: 8s;
    --breath-scale-range: 0.025;
    --breath-opacity-range: 0.08;
    --breath-shadow-range: 0.12;
    
    /* 呼吸节奏控制 - 增加延迟让效果更错落有致 */
    --breath-delay-step: 0.4s;
    --breath-easing: cubic-bezier(0.25, 0.1, 0.25, 1);
    --gentle-easing: cubic-bezier(0.16, 1, 0.3, 1);
    
    /* 交互动画时长 - 统一较慢的优雅节奏 */
    --hover-duration: calc(var(--breath-duration) * 0.8);  /* 6.4s */
    --glow-duration: calc(var(--breath-duration) * 1.0);   /* 8s */
    --magnetic-duration: calc(var(--breath-duration) * 1.25); /* 10s */
    --shadow-duration: calc(var(--breath-duration) * 1.2);  /* 9.6s */
    
    /* 颜色和光效 */
    --primary-color: #3b82f6;
    --secondary-color: #6366f1;
    --accent-color: #8b5cf6;
    --success-color: #10b981;
    --breath-glow: rgba(59, 130, 246, 0.25);
}

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: none;
    border: 0;
}

/* 允许文本选择的元素 */
.info-value, 
.info-value a,
.company-intro-content {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* HTML和Body基础设置 */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 25%, #2a3441 50%, #1a2332 75%, #0f1419 100%);
    background-attachment: fixed;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    touch-action: manipulation;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* iOS Safari 安全区域适配 */
    padding-left: env(safe-area-inset-left, 20px);
    padding-right: env(safe-area-inset-right, 20px);
    padding-top: env(safe-area-inset-top, 20px);
    padding-bottom: env(safe-area-inset-bottom, 20px);
}

/* =============== 统一呼吸动画系统 =============== */

/* 主呼吸动画 - 所有元素的基础 */
@keyframes unifiedBreath {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        filter: brightness(1);
    }
    50% {
        transform: scale(calc(1 + var(--breath-scale-range)));
        opacity: calc(1 - var(--breath-opacity-range));
        filter: brightness(1.05);
    }
}

/* 光影呼吸动画 */
@keyframes shadowBreath {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 12px 35px rgba(0, 0, 0, calc(0.15 + var(--breath-shadow-range)));
    }
}

/* 发光呼吸动画 */
@keyframes glowBreath {
    0%, 100% {
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.15),
            0 0 20px var(--breath-glow);
    }
    50% {
        box-shadow: 
            0 12px 35px rgba(0, 0, 0, 0.2),
            0 0 40px var(--breath-glow);
    }
}

/* 背景动画 */
@keyframes backgroundBreath {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.01);
    }
}

/* 浮动动画 */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* 渐变移动动画 */
@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* =============== 背景装饰 =============== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* 主要色彩渐变光晕 */
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        /* 添加微妙的几何网格纹理 */
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        /* 对角线纹理增加深度 */
        linear-gradient(45deg, rgba(59, 130, 246, 0.02) 25%, transparent 25%, transparent 75%, rgba(59, 130, 246, 0.02) 75%),
        /* 基础渐变背景 */
        linear-gradient(135deg, #0f1419 0%, #1a2332 25%, #2a3441 50%, #1a2332 75%, #0f1419 100%);
    background-size: 
        100% 100%, 100% 100%, 100% 100%,
        60px 60px, 60px 60px,
        120px 120px,
        100% 100%;
    z-index: -2;
}

/* 添加第二层背景装饰以增加深度 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* 大范围的径向渐变创造深度感 */
        radial-gradient(ellipse at top left, rgba(30, 64, 175, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.05) 0%, transparent 70%),
        /* 微妙的噪点纹理 */
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.008) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
    background-size: 
        100% 100%, 100% 100%,
        40px 40px, 40px 40px;
    z-index: -1;
    opacity: 0.6;
}

/* =============== 语言切换器 =============== */
.language-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-selector {
    position: relative;
    display: inline-block;
}

.language-dropdown-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.4s var(--breath-easing);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: space-between;
    animation: 
        unifiedBreath var(--glow-duration) var(--breath-easing) infinite calc(var(--breath-delay-step) * 1),
        gentleFloat var(--shadow-duration) var(--breath-easing) infinite calc(var(--breath-delay-step) * 2);
}

.language-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px) scale(1.03);
}

.language-dropdown-btn:active {
    transform: translateY(0) scale(0.96);
    background: rgba(255, 255, 255, 0.25);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s var(--breath-easing);
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s var(--breath-easing);
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.language-option:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.language-option:active {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    transform: scale(0.98);
}

.language-option.active {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
}

/* =============== 主卡片容器 =============== */
.card-container {
    max-width: 450px;
    margin: 50px auto 100px;
    background: 
        /* 主背景 */
        rgba(255, 255, 255, 0.95),
        /* 微妙的纹理背景 */
        linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.8) 100%),
        /* 细微的网格纹理 */
        linear-gradient(90deg, rgba(226, 232, 240, 0.3) 1px, transparent 1px),
        linear-gradient(180deg, rgba(226, 232, 240, 0.3) 1px, transparent 1px);
    background-size: 
        100% 100%, 
        100% 100%,
        20px 20px, 20px 20px;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(1);
    animation: 
        unifiedBreath var(--breath-duration) var(--breath-easing) infinite calc(var(--breath-delay-step) * 3),
        shadowBreath var(--shadow-duration) var(--breath-easing) infinite calc(var(--breath-delay-step) * 4);
    position: relative;
}

/* 为卡片添加一个微妙的内部光影效果 */
.card-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* 顶部微妙高光 */
        linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 20%),
        /* 底部微妙阴影 */
        linear-gradient(0deg, rgba(0, 0, 0, 0.02) 0%, transparent 20%),
        /* 左右边缘的微妙渐变 */
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, transparent 10%, transparent 90%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 24px;
    pointer-events: none;
    z-index: 1;
}

/* 确保卡片内容在装饰层之上 */
.card-container > .header,
.card-container > .info-section,
.card-container > .action-buttons {
    position: relative;
    z-index: 2;
}

/* =============== 头部区域 =============== */
.header {
    background: 
        /* 主要渐变背景 - 增加更多颜色节点 */
        linear-gradient(135deg, 
            #1e3a8a 0%, 
            #1e40af 15%, 
            #3b82f6 35%, 
            #2563eb 50%, 
            #3b82f6 65%, 
            #1e40af 85%, 
            #1e3a8a 100%
        ),
        /* 添加纹理和深度 */
        radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    color: white;
    padding: 45px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* 主要光晕效果 */
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        /* 几何图案装饰 */
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        /* 对角线网格 */
        linear-gradient(45deg, rgba(255, 255, 255, 0.015) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.015) 75%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.015) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.015) 75%);
    background-size: 
        100% 100%, 100% 100%,
        50px 50px, 50px 50px,
        100px 100px, 100px 100px;
    z-index: 1;
}

/* 添加header的第三层装饰 */
.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* 顶部微妙的高光 */
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 30%),
        /* 底部微妙的阴影 */
        linear-gradient(0deg, rgba(0, 0, 0, 0.1) 0%, transparent 30%),
        /* 细微的噪点纹理 */
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 
        100% 100%, 100% 100%,
        30px 30px, 30px 30px;
    z-index: 1;
    opacity: 0.8;
}

.header > * {
    position: relative;
    z-index: 2;
}

/* 头像样式 */
.profile-img {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.4s var(--breath-easing);
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    animation: 
        unifiedBreath var(--magnetic-duration) var(--breath-easing) infinite calc(var(--breath-delay-step) * 2),
        shadowBreath var(--shadow-duration) var(--breath-easing) infinite calc(var(--breath-delay-step) * 3);
}

.profile-img:hover {
    transform: scale(1.04);
}

.profile-img::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #06d6a0, #3b82f6);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s var(--breath-easing);
    z-index: -1;
    animation: gradientMove 3s ease-in-out infinite;
}

.name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.title {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 5px;
    font-weight: 500;
}

.company {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* =============== 信息区域 =============== */
.info-section {
    padding: 35px 30px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding: 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    transition: all 0.4s var(--breath-easing);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    transform: scale(1);
    animation: 
        unifiedBreath var(--shadow-duration) var(--breath-easing) infinite calc(var(--breath-delay-step) * 5);
}

.info-item:nth-child(1) { --info-delay: 0s; }
.info-item:nth-child(2) { --info-delay: 0.5s; }
.info-item:nth-child(3) { --info-delay: 1.0s; }

.info-item:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    transform: scale(1.015);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
}

.info-item:active {
    transform: scale(0.98);
}

/* 图标样式 */
.info-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
    font-size: 18px;
    transition: all 0.3s var(--breath-easing);
}

.info-item:hover .info-icon {
    transform: scale(1.08);
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    color: #1e293b;
    word-break: break-all;
    font-weight: 500;
    line-height: 1.4;
}

.info-value a {
    color: #1e40af;
    text-decoration: none;
    transition: color 0.3s var(--breath-easing);
}

.info-value a:hover {
    color: #3b82f6;
}

/* =============== 公司简介区域 =============== */
.company-intro-section {
    padding: 25px 30px;
    margin: 0 20px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    animation: 
        unifiedBreath var(--shadow-duration) var(--breath-easing) infinite calc(var(--breath-delay-step) * 6);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--breath-easing);
}

.company-intro-section:hover {
    transform: translateY(-1px) scale(1.004);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    filter: brightness(1.015);
}

.company-intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #6366f1, #8b5cf6);
    border-radius: 20px 20px 0 0;
}

.company-intro-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-intro-title::before {
    content: '🏢';
    font-size: 20px;
}

.company-intro-content {
    font-size: 14px;
    line-height: 1.8;
    color: #475569;
    text-align: justify;
    letter-spacing: 0.3px;
    text-indent: 1em;
}

/* =============== 操作按钮 =============== */
.action-buttons {
    padding: 0 30px 35px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.action-btn {
    padding: 16px 24px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s var(--breath-easing);
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
    position: relative;
    overflow: hidden;
    animation: 
        unifiedBreath var(--hover-duration) var(--breath-easing) infinite calc(var(--breath-delay-step) * 7),
        shadowBreath var(--shadow-duration) var(--breath-easing) infinite calc(var(--breath-delay-step) * 8);
}

.action-btn:hover {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.35);
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
}

.action-btn:active {
    transform: translateY(0) scale(0.96);
}

/* =============== 浮动按钮 =============== */
.floating-buttons {
    position: fixed;
    bottom: 35px;
    right: 35px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 1000;
}

.float-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    cursor: pointer;
    transition: all 0.5s var(--breath-easing);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    backdrop-filter: blur(10px);
    transform: scale(1);
    animation: 
        unifiedBreath var(--hover-duration) var(--breath-easing) infinite calc(var(--breath-delay-step) * 9),
        gentleFloat var(--shadow-duration) var(--breath-easing) infinite calc(var(--breath-delay-step) * 10);
    position: relative;
    overflow: hidden;
}

.float-btn:nth-child(1) { --float-delay: 0s; }
.float-btn:nth-child(2) { --float-delay: 0.6s; }
.float-btn:nth-child(3) { --float-delay: 1.2s; }
.float-btn:nth-child(4) { --float-delay: 1.8s; }

.float-btn:hover {
    transform: scale(1.12) translateY(-4px);
}

.float-btn:active {
    transform: scale(0.92) !important;
}

/* 浮动按钮颜色 */
.phone {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.wechat {
    background: linear-gradient(135deg, #07c160 0%, #00a05c 100%);
}

.share {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

/* =============== 微信二维码模态框 =============== */
.wechat-qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wechat-qr-modal.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.wechat-qr-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    width: 90%;
    max-width: 420px;
    min-width: 320px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s var(--breath-easing);
}

.wechat-qr-modal.show .wechat-qr-content {
    transform: translateY(0) scale(1);
}

/* 为微信对话框内容添加简单的呼吸效果，避免复杂交互系统冲突 */
.wechat-qr-content:hover {
    transform: translateY(0) scale(1.005);
}

.wechat-qr-content::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 5px;
    background: linear-gradient(90deg, #cbd5e1, #94a3b8);
    border-radius: 3px;
}

.wechat-qr-content h3 {
    color: #1e293b;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
    padding-top: 10px;
}

.wechat-qr-content img {
    width: 240px;
    height: 240px;
    margin: 15px auto 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s var(--breath-easing);
}

.wechat-qr-content img:hover {
    transform: scale(1.02);
}

.wechat-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: rgba(248, 250, 252, 0.8);
    padding: 8px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.wechat-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s var(--breath-easing);
    color: #64748b;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
}

.wechat-tab:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    transform: translateY(-1px);
}

.wechat-tab.active {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.wechat-content {
    display: none;
}

.wechat-content.active {
    display: block;
}

.wechat-service-section {
    margin: 25px 0 15px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.wechat-service-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    padding: 16px 30px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s var(--breath-easing);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    min-height: 48px;
}

.wechat-service-btn:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.close-modal {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s var(--breath-easing);
    margin-top: 10px;
}

.close-modal:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* =============== 其他交互元素 =============== */
.refresh-indicator {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%) scale(var(--refresh-scale, 0));
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s var(--breath-easing);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.refresh-indicator i {
    color: #3b82f6;
    font-size: 18px;
    /* spin动画定义移动到interaction-states.css统一管理 */
    animation: spin 1s linear infinite;
}

.edge-swipe-indicator {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(var(--swipe-progress, -100%));
    width: 4px;
    height: 60px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.8));
    border-radius: 0 4px 4px 0;
    z-index: 1001;
    transition: transform 0.3s var(--breath-easing);
}

/* =============== 响应式设计 =============== */

/* 平板设备 */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 30px;
        right: 30px;
        gap: 16px;
    }
    
    .float-btn {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .card-container {
        margin: 30px auto 80px;
    }
    
    .header {
        padding: 35px 25px;
    }
    
    .info-section {
        padding: 30px 25px;
    }
}

/* 移动设备 */
@media (max-width: 480px) {
    :root {
        --breath-scale-range: 0.02;
        --breath-duration: 8s;
    }
    
    body {
        padding: 15px;
    }
    
    .card-container {
        margin: 20px auto 60px;
        max-width: 95%;
        border-radius: 20px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .name {
        font-size: 26px;
    }
    
    .profile-img {
        width: 90px;
        height: 90px;
        font-size: 42px;
    }
    
    .info-section {
        padding: 25px 20px;
    }
    
    .action-buttons {
        padding: 0 20px 25px;
        gap: 12px;
    }
    
    .action-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .floating-buttons {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }
    
    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .wechat-qr-content {
        width: 95%;
        padding: 25px 20px;
    }
    
    .wechat-qr-content img {
        width: 200px;
        height: 200px;
    }
}

/* 超小屏幕 */
@media (max-width: 360px) {
    .card-container {
        border-radius: 16px;
    }
    
    .header {
        padding: 25px 15px;
    }
    
    .info-section {
        padding: 20px 15px;
    }
    
    .action-buttons {
        padding: 0 15px 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    .float-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* 大屏幕优化 */
@media (min-width: 768px) {
    .card-container {
        max-width: 520px;
        margin: 80px auto 120px;
    }
    
    body {
        padding: 40px;
    }
}

@media (min-width: 1024px) {
    .card-container {
        max-width: 600px;
        margin: 100px auto 150px;
    }
    
    .header {
        padding: 60px 40px;
    }
    
    .info-section {
        padding: 45px 40px;
    }
    
    .action-buttons {
        padding: 0 40px 45px;
        gap: 25px;
    }
}

/* =============== 性能优化和兼容性 =============== */

/* 禁用动画选项 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: 0.01ms !important;
    }
}

/* Safari 优化 */
@supports (-webkit-appearance: none) {
    .language-dropdown-btn,
    .float-btn,
    .card-container,
    .wechat-qr-modal {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

/* 不支持backdrop-filter的降级 */
@supports not (backdrop-filter: blur(1px)) {
    .card-container,
    .language-dropdown,
    .language-dropdown-btn,
    .float-btn,
    .wechat-qr-modal {
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.95);
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .hover-enhanced:hover {
        animation-play-state: running !important;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-img i,
    .action-btn,
    .float-btn {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* 打印样式 */
@media print {
    .floating-buttons,
    .language-switch,
    .action-buttons {
        display: none !important;
    }
    
    .card-container {
        box-shadow: none;
        border: 1px solid #000;
        animation: none;
    }
    
    body {
        background: white;
        color: black;
        padding: 0;
        animation: none;
    }
    
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* === 联系人保存模态框样式 === */
.contact-save-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-save-modal.modal-show {
    opacity: 1;
    visibility: visible;
}

.contact-save-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-save-modal.modal-show .contact-save-content {
    transform: scale(1) translateY(0);
}

.contact-save-content h3 {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.contact-save-info {
    margin-bottom: 24px;
}

.contact-preview {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contact-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.contact-title {
    font-size: 0.9rem;
    color: #5a6c7d;
    margin-bottom: 6px;
}

.contact-phone,
.contact-email {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 4px;
}

.platform-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    padding: 12px;
    border-left: 3px solid #3498db;
}

.platform-hint i {
    color: #3498db;
    margin-top: 2px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.platform-hint span {
    font-size: 0.85rem;
    color: #34495e;
    line-height: 1.4;
}

.contact-save-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 44px;
    transform: var(--gpu-layer);
    animation: unifiedBreath var(--breath-duration) var(--breath-easing) infinite;
}

.contact-save-btn.primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.contact-save-btn.secondary {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.contact-save-btn.cancel {
    background: rgba(149, 165, 166, 0.1);
    color: #7f8c8d;
    border: 1px solid rgba(149, 165, 166, 0.3);
}

.contact-save-btn:hover {
    transform: var(--gpu-layer) translateY(-1px);
}

.contact-save-btn.primary:hover {
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.contact-save-btn.secondary:hover {
    box-shadow: 0 6px 16px rgba(46, 204, 113, 0.4);
}

.contact-save-btn.cancel:hover {
    background: rgba(149, 165, 166, 0.15);
}

.contact-save-btn:active {
    transform: var(--gpu-layer) scale(0.98);
}

.contact-save-btn i {
    font-size: 0.85rem;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .contact-save-content {
        padding: 20px;
        margin: 20px;
        max-width: none;
        width: calc(100% - 40px);
    }
    
    .contact-save-content h3 {
        font-size: 1.1rem;
    }
    
    .contact-save-btn {
        padding: 14px 16px;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    .platform-hint {
        padding: 14px;
    }
    
    .platform-hint span {
        font-size: 0.9rem;
    }
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .contact-save-content {
        background: rgba(44, 62, 80, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .contact-save-content h3 {
        color: #ecf0f1;
    }
    
    .contact-preview {
        background: rgba(52, 73, 94, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .contact-name {
        color: #ecf0f1;
    }
    
    .contact-title {
        color: #bdc3c7;
    }
    
    .contact-phone,
    .contact-email {
        color: #95a5a6;
    }
    
    .platform-hint {
        background: rgba(52, 152, 219, 0.15);
    }
    
    .platform-hint span {
        color: #bdc3c7;
    }
    
    .contact-save-btn.cancel {
        background: rgba(95, 106, 115, 0.2);
        color: #bdc3c7;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .contact-save-btn.cancel:hover {
        background: rgba(95, 106, 115, 0.3);
    }
}