* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
}

.header {
    background-color: #306692;
    height: 220px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 80px;
}

.avatar-container {
    position: absolute;
    bottom: 30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #fff;
    border: 3px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.avatar {
    width: 94px;
    height: 94px;
    border-radius: 50%;
    background-color: #f0f0f0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
}

.avatar-placeholder {
    color: #999;
    font-size: 14px;
    text-align: center;
}

.content {
    padding: 20px;
    background-color: transparent;
}

.action-panel {
    margin-top: 70px;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.action-btn {
    display: block;
    width: 100%;
    padding: 16px 20px;
    text-align: center;
    background-color: #fff;
    border: none;
    color: #333;
    font-size: 17px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.action-btn:active {
    background-color: #f9f9f9;
    transform: scale(0.98);
}

.action-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.action-btn:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.divider {
    height: 0.5px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 0;
    border: none;
}

.cancel-btn {
    margin-top: 15px;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.cancel-btn:active {
    background-color: #f9f9f9;
    transform: scale(0.98);
}

.avatar-preview {
    display: block;
    width: 60px;
    height: 60px;
    margin: 12px auto;
    background-color: #f0f0f0;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    background-image: url('../images/wechat-avatar.jpg');
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 80%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: scale(0.9);
    animation: zoomIn 0.3s ease forwards;
}

.modal h2 {
    color: #306692;
    margin-bottom: 15px;
}

.modal p {
    margin-bottom: 20px;
    color: #555;
}

.modal-btn {
    background: #306692;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:active {
    transform: scale(0.95);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 响应式调整 */
@media (max-width: 360px) {
    .header {
        height: 200px;
        padding-bottom: 70px;
    }

    .avatar-container {
        width: 90px;
        height: 90px;
        bottom: 25px;
    }

    .avatar {
        width: 84px;
        height: 84px;
    }
}