@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --background: #fff5e6;
    --text: #333333;
    --accent: #ff9500;
    --secondary: #b18053;
    --card-bg: #ffffff;
    --card-shadow: 0 15px 35px rgba(255, 149, 0, 0.1);
    --hover-shadow: 0 20px 45px rgba(255, 149, 0, 0.15);
    --gradient-start: #ff9500;
    --gradient-end: #ffcc00;
}

.dark-mode {
    --background: #2c2520;
    --text: #e6d8cc;
    --accent: #ffa500;
    --secondary: #c0a080;
    --card-bg: #3a3432;
    --card-shadow: 0 15px 35px rgba(255, 165, 0, 0.1);
    --hover-shadow: 0 20px 45px rgba(255, 165, 0, 0.2);
    --gradient-start: #ffa500;
    --gradient-end: #ffcc00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.8;
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

h1,
h2 {
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.5s, gradientShift 5s ease-in-out infinite;
}
h3 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}
@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

h2 {
    font-size: 3em;
    margin-bottom: 30px;
}

.subtitle {
    font-size: 1.5em;
    color: var(--secondary);
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.7s;
}

.profile-card,
.donate-card,
.acknowledgments-card {
    background-color: var(--card-bg);
    border-radius: 30px;
    padding: 60px;
    margin-bottom: 80px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.profile-card:hover,
.donate-card:hover,
.acknowledgments-card:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-10px);
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-right: 40px;
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: 0 0 30px rgba(255, 149, 0, 0.3);
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 149, 0, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 149, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 149, 0, 0);
    }
}

.profile-image:hover {
    transform: scale(1.1) rotate(5deg);
}

.profile-title h2 {
    margin: 0;
    font-size: 2.8em;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -1px;
}

.profile-title p {
    margin: 10px 0 0;
    color: var(--secondary);
    font-size: 1.2em;
    font-weight: 300;
}

.profile-description {
    margin-bottom: 40px;
    font-size: 1.1em;
    line-height: 1.9;
    color: var(--text);
}

.profile-links {
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
}

.profile-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    margin-right: 30px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-radius: 50px;
    background-color: rgba(255, 149, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.profile-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.profile-link:hover {
    color: var(--card-bg);
}

.profile-link:hover::before {
    width: 300px;
    height: 300px;
}

.profile-link svg {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

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

.donate-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
    gap: 30px;
}

.donate-option {
    flex: 1;
    min-width: 220px;
    max-width: 320px;
    padding: 40px;
    background-color: rgba(255, 149, 0, 0.05);
    border-radius: 25px;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    cursor: pointer;
}

.donate-option:nth-child(1) {
    animation-delay: 0.2s;
}

.donate-option:nth-child(2) {
    animation-delay: 0.4s;
}

.donate-option:nth-child(3) {
    animation-delay: 0.6s;
}

.donate-option:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 149, 0, 0.2);
}

.donate-option h3 {
    margin-top: 15px;
    font-size: 1.6em;
    color: var(--accent);
    font-weight: 600;
}

.donate-option p {
    font-size: 1.1em;
    color: var(--secondary);
    margin-top: 15px;
}

.donate-emoji {
    font-size: 4em;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.donate-option:hover .donate-emoji {
    transform: scale(1.2) rotate(15deg);
}

.donate-button,
.acknowledgments-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    color: var(--card-bg);
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.3em;
    transition: all 0.4s ease;
    margin-top: 60px;
    box-shadow: 0 8px 25px rgba(255, 149, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.donate-button:hover,
.acknowledgments-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 149, 0, 0.4);
}

.donate-button::after,
.acknowledgments-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }

    20% {
        transform: scale(25, 25);
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

.donate-button:focus:not(:active)::after,
.acknowledgments-button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

.acknowledgments-list {
    list-style-type: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.acknowledgments-item {
    background-color: rgba(255, 149, 0, 0.05);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.acknowledgments-item:nth-child(odd) {
    animation-delay: 0.2s;
}

.acknowledgments-item:nth-child(even) {
    animation-delay: 0.4s;
}

.acknowledgments-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 20px rgba(255, 149, 0, 0.1);
}

.acknowledgments-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
    border: 3px solid var(--accent);
    transition: transform 0.3s ease;
}

.acknowledgments-item:hover .acknowledgments-avatar {
    transform: scale(1.1) rotate(5deg);
}

.acknowledgments-info {
    flex-grow: 1;
}

.acknowledgments-name {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 10px;
}

.acknowledgments-message {
    font-size: 1em;
    color: var(--secondary);
    margin-bottom: 15px;
}

.acknowledgments-amount {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--accent);
    background-color: rgba(255, 149, 0, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}

.acknowledgments-item:hover .acknowledgments-amount {
    transform: scale(1.1);
}

footer {
    background-color: var(--card-bg);
    color: var(--secondary);
    padding: 60px 0;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 149, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 20px;
}

.footer-logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -1px;
}

.footer-links a {
    color: var(--secondary);
    text-decoration: none;
    margin-left: 30px;
    transition: color 0.3s ease;
    font-size: 1.1em;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: var(--secondary);
    font-size: 1.4em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 149, 0, 0.1);
    font-size: 1em;
    color: var(--secondary);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 3% auto;
    padding: 60px;
    border-radius: 30px;
    max-width: 500px;
    text-align: center;
    box-shadow: var(--hover-shadow);
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.close {
    color: var(--secondary);
    float: right;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text);
}

#qrCode {
    width: 250px;
    height: 250px;
    margin: 40px auto;
    background-color: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

#qrCode:hover {
    transform: scale(1.05);
}

.theme-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    background: var(--card-bg);
    border: none;
    color: var(--text);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
}

.acknowledgments-instructions {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.8s;
}

.acknowledgments-instructions:hover {
    box-shadow: var(--hover-shadow);
}

.acknowledgments-instructions h3 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.acknowledgments-instructions p {
    margin-bottom: 10px;
    color: var(--secondary);
}

/* 新增：滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    z-index: 1000;
    transition: width 0.2s ease;
}

/* 新增：返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.back-to-top.visible {
    opacity: 1;
}

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

    h1 {
        font-size: 3em;
    }

    .subtitle {
        font-size: 1.3em;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-image {
        margin-right: 0;
        margin-bottom: 30px;
    }

    .profile-links {
        justify-content: center;
    }

    .donate-options {
        flex-direction: column;
        align-items: center;
    }

    .donate-option {
        width: 100%;
        max-width: none;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo,
    .footer-links,
    .footer-social {
        margin-bottom: 30px;
    }

    .footer-links a {
        margin: 0 15px;
    }

    .theme-toggle {
        top: 20px;
        right: 20px;
    }

    .acknowledgments-list {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 50px 30px;
    }

    .donate-options {
        justify-content: space-around;
    }

    .donate-option {
        flex-basis: calc(50% - 30px);
    }

    .acknowledgments-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent);
    border-radius: 50%;
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}