/* 样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 跨浏览器兼容 */
html {
    font-size: 100%; /* 确保基础字体大小的一致性 */
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0; /* 浅灰色背景 */
    display: flex;
     flex-direction: column;
    justify-content: center;
    align-items: center; /* 内容区域靠上 */
    height: 100vh;
    margin: 0 0; /* 增加顶部和底部的外边距 */
}


/* 容器 */
.container {
    background-color: #ffffff; /* 白色背景 */
    padding: 30px; /* 增加内边距 */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 1200px; /* 将内容区域扩大0.5倍 */
    width: 90%; 
     margin: 20px 0;/* 设置宽度为视口宽度的90%以自适应 */
}

/* 内容区头部 */
.header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}



.avatar {
    width: 50px; /* 略微增加头像尺寸 */
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.title {
    font-size: 1.5rem; /* 保持标题字体大小 */
    color: #333;
}

.title_0{
    font-size: 0.8rem; /* 保持标题字体大小 */
    color: #333;
    font-weight: normal;
    flex: 1;
    text-align: right;
}

.title_1{
    font-size: 0.8rem; /* 保持标题字体大小 */
    color: #666;
    font-weight: normal;
}

/* 按钮样式 */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.button {
    display: block;
    text-align: center;
    padding: 15px 0; /* 增加按钮的高度 */
    background-color: #F1E33D; /* 黄色按钮 */
    color: #000;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 50px; /* 按钮两头完全圆形 */
    transition: background-color 0.3s ease-in-out;
    width: 100%; /* 设置按钮宽度为100% */
}

.button:hover {
    background-color: #ffca28;
}

.footer {
    text-align: center;
    font-size: 0.8rem;
    color: #c7c7c7;
    margin-top: 60px;
    padding: 10px 0;
    width: 100%;
}

a {
    color: #FA0505;
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    text-decoration: none;
}

.copy-success {
    display: none; /* 初始隐藏 */
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1rem;
    z-index: 1000;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 25px;
    }

    .title {
        font-size: 1.3rem;
    }

    .avatar {
        width: 50px;
        height: 50px;
    }

    .button {
        padding: 12px 0;
        font-size: 1rem;
    }
}


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

    .title {
        font-size: 1.2rem;
    }

    .avatar {
        width: 45px;
        height: 45px;
    }

    .button {
        padding: 10px 0;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .title {
        font-size: 1rem;
    }

    .avatar {
        width: 40px;
        height: 40px;
    }

    .button {
        padding: 8px 0;
        font-size: 0.8rem;
    }

    .footer {
        font-size: 0.7rem;
    }
}
/* iPhone 12 特别适配 */
@media (min-device-width: 390px) and (max-device-width: 844px) and (-webkit-min-device-pixel-ratio: 3) and (orientation: portrait) {
    .container {
        padding: 20px;
    }

    .title {
        font-size: 1rem;
    }

    .avatar {
        width: 50px;
        height: 50px;
    }

    .button {
        padding: 14px 0;
        font-size: 0.8rem;
    }

    .footer {
        font-size: 0.75rem;
    }
}