/* ==============================
   现代前端通用基础样式 (reset + base)
   ============================== */

/* 通配符重置盒模型及默认 margin/padding */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* 更容易计算宽高 */
}

/* html & body 基础样式 */
html {
    font-size: 16px; /* 基准字体大小 */
    scroll-behavior: smooth; /* 平滑滚动 */
}

body {
    font-family: "Calibre","Helvetica Neue","Helvetica","Roboto","Arial",sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-width: 1280px;
}

/* 基础文本元素 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* 列表元素 */
ul, ol {
    list-style: none;
}

li {
    margin-bottom: 0.5em;
}

/* 图片 & 视频 */
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 表格基础样式 */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

th, td {
    text-align: left;
    padding: 0.5em;
}

/* 表单元素统一样式 */
input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    outline: none;
    border: none;
    background: none;
}

button {
    cursor: pointer;
}

textarea {
    resize: vertical;
}

/* 常用工具类 */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

header{
    width: 100%;
    background-color: #ffffff;
    position: relative;
    display: block;
    padding: 30px 0;
}
.header-main{
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img{
    width: 101px;
    height: auto;
}
.header-nav ul{
    display: flex;
    list-style: none;
}
.header-nav ul li{
    margin-left: 32px;
}
.menu-item{
    text-decoration: none;
    color: #000;
    font-size: 16px;
    line-height: 1.5;
    padding: 12px 0;
    font-weight: 400;
}
.menu-item-active{
    color: #fdb713;
    border-bottom: 2px solid #fdb713;
}
.menu-item:hover{
    color: #fdb713;
    border-bottom: 2px solid #fdb713;
}
.header-nav ul li a.donate-btn{
    background-color: #fdb713;
    color: #fff;
    padding: 10px 12px;
    border-radius: 30px;
    font-weight: 600;
}   
.header-nav ul li a.donate-btn:hover{
    background-color: #e0a00f;
    transition: background-color 0.3s ease;
}
.footer{
    width: 100%;
    background-color: #232944;
    display: block;
    padding: 90px 0 0 0;
}
.footer-main{
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.footer-top{
    display: flex;
}
.footer-involved,.footer-menu,.footer-contact{
    display: block;
    width: 16%;
    margin-right: 2%;
    color: #ffffff;
}
.footer-section-title{
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 26px;
    margin-bottom: 12px;
}
.footer-links a{
    color: #ffffff;
    opacity: 0.6;
    font-weight: 400;
    line-height: 22px;
    text-decoration: none;
    display: block;
}
.footer-links a:hover{
    color: #ffffff;
    opacity: 1;
}
.footer-social-media{
    margin-left: auto;
}
.footer-donate{
    background-color: #fff;
    border-radius: 40px;
    color: #000;
    font-weight: 500;
    font-size: 20px;
    padding: 16px 26px;
    text-align: center;
    display: inline-block;
}
.footer-donate:hover{
    background-color: #fdb713;
    color: #fff;
    transition: background-color 0.2s ease;

}
.footer-bottom{
    margin-top: 22px;
    margin-bottom: 40px;
}
.footer-logo img{
    width: 110px;
    height: auto;
}
.footer-copyright{
    border-top: 1px solid #9b9bff;
    color: #ffffff;
    opacity: 0.6;
    font-weight: 400;
    line-height: 1.5;
    padding: 20px 0;
}
.footer-copyright p{
    margin-bottom: 0;
}
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    min-width: 200px;
    margin-top: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    background: rgba(0,0,0,0.85);
    opacity: 0;
    transform: translateX(100%);
    animation: slideIn 0.5s forwards;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-size: 14px;
    pointer-events: auto;
    cursor: default;
}

.toast.success { background: #28a745; }
.toast.error { background: #dc3545; }

/* 进场动画 */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 出场动画 */
@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}