/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px 0;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect x="0" y="0" width="100" height="100" fill="none"/><path d="M30,10 L70,10 C75,10 80,15 80,20 L80,80 C80,85 75,90 70,90 L30,90 C25,90 20,85 20,80 L20,20 C20,15 25,10 30,10 Z" stroke="rgba(0,0,0,0.03)" fill="none" stroke-width="1"/></svg>') repeat;
    opacity: 0.5;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 520px;
    padding: 20px;
    perspective: 1000px;
}

/* 联系卡片样式 */
.contact-card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px 25px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: cardEnter 0.6s ease-out forwards;
    transform-origin: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes cardEnter {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

h1 {
    font-size: 30px;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #25D366, #128C7E);
    border-radius: 3px;
}

.subtitle {
    color: #555;
    margin: 20px 0 35px;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* 按钮样式 */
.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 18px;
    margin-bottom: 16px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    color: white;
    text-align: center;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.3px;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.contact-btn:hover::before {
    transform: translateX(0);
}

.contact-btn:active {
    transform: translateY(2px) scale(0.99);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.contact-btn::after {
    content: '→';
    position: absolute;
    right: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.contact-btn:hover::after {
    opacity: 1;
    right: 16px;
}

.line-btn {
    background: linear-gradient(135deg, #06C755 0%, #00B349 100%);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.wechat-btn {
    background: linear-gradient(135deg, #07C160 0%, #05A350 100%);
}

.wechat-group-btn {
    background: linear-gradient(135deg, #07C160 0%, #05A350 100%);
}

/* 页脚样式 */
.footer {
    margin-top: 35px;
    color: #777;
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer p {
    line-height: 1.5;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.footer p:hover {
    opacity: 1;
}

/* 头像样式 */
.profile-container {
    margin: -20px auto 25px;
    width: 140px;
    height: 140px;
    position: relative;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

/* 社交信息样式 */
.social-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: -10px;
    margin-bottom: 25px;
    color: #555;
    font-size: 15px;
    line-height: 1.4;
}

.social-info span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.social-info i {
    font-size: 16px;
}

.xiaohongshu-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 2px;
    object-fit: contain;
}

/* 模态窗口样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    margin: 10px;
    padding: 30px;
    border-radius: 20px;
    max-width: 90%;
    width: 350px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: modalopen 0.3s;
}

@keyframes modalopen {
    from {opacity: 0; transform: scale(0.8);}
    to {opacity: 1; transform: scale(1);}
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}

.close-btn:hover {
    color: #333;
}

.qr-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.qr-container img {
    max-width: 100%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 8px;
}

#whatsapp-qr-code {
    display: flex;
    justify-content: center;
}

#whatsapp-qr-code img {
    max-width: 100%;
    height: auto;
    padding: 8px;
    background-color: white;
    border: 1px solid #eee;
    border-radius: 8px;
}

.qr-description {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .contact-card {
        padding: 35px 20px;
        border-radius: 20px;
    }
    
    h1 {
        font-size: 26px;
    }
    
    .contact-btn {
        padding: 16px;
        font-size: 16px;
        border-radius: 12px;
    }
    
    .subtitle {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 20px;
        max-width: 100%;
        padding: 0 5px;
    }
    
    .profile-container {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }
    
    .social-info {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    body {
        background-attachment: scroll;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-card {
        animation: none;
    }
    
    .contact-btn::before,
    .contact-btn::after {
        display: none;
    }
}