/* style.css */

/* 1. 基本重置和全局设置 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
}

/* 2. 头部和页脚 */
header {
    border-bottom: 2px solid #005BBB; /* 颜色A */
    padding-bottom: 10px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: #333;
    margin: 0;
    font-size: 1.5em;
}

footer {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9em;
    color: #777;
}

/* 3. 内容排版 */
a {
    color: #005BBB; /* 颜色A */
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

h2 {
    color: #000;
    border-bottom: 1px solid #FFD500; /* 颜色B */
    padding-bottom: 5px;
}

h3 {
    color: #222;
}

/* 4. 新增：渠道容器样式 
*/
.channel-box {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.channel-box h3 {
    margin-top: 0;
}

/* 5. 捐赠框和按钮样式 */
.donation-box {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.donation-box small {
    display: block;
    margin-top: 10px;
    font-style: italic;
    color: #555;
}

.address {
    font-family: "Courier New", Courier, monospace;
    font-size: 1.1em;
    color: #d9534f; /* 红色以示重要 */
    word-break: break-all; /* 确保长地址换行 */
    display: block;
    margin-bottom: 15px;
}

/* 6. 统一的按钮样式 */
.copy-button, .button-link {
    background-color: #005BBB;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1em;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    display: inline-block; /* 用于 <a> 标签 */
}

.copy-button:hover, .button-link:hover {
    background-color: #003a8a;
    color: white; /* 确保悬停时文本颜色不变 */
    text-decoration: none; /* 确保悬停时无下划线 */
}

.button-link {
    background-color: #FFD500;
    color: #000;
    margin-bottom: 10px;
}
.button-link:hover {
    background-color: #e6c000;
    color: #000;
}

/* 7. 安全警告 */
#safety-warning {
    background-color: #fff8e1;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 20px;
    border-radius: 8px;
}

/* 8. 响应式设计 */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    header h1 {
        margin-bottom: 10px;
    }
    .copy-button {
        width: 100%;
        box-sizing: border-box; /* 确保 padding 不会撑开宽度 */
    }
}