/* 支持项目区域样式 */
.support-project {
    padding: 6rem 0;
    background-color: var(--background-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.support-project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(122, 162, 247, 0.3), transparent);
    z-index: -1;
}

.support-project::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(122, 162, 247, 0.3), transparent);
    z-index: -1;
}

@keyframes supportBgPulse {
    0% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.15; }
    100% { transform: scale(1); opacity: 0.1; }
}

.support-methods {
    display: flex;
    justify-content: center;
    gap: 5rem;
    margin-top: 3.5rem;
    perspective: 1000px;
}

.support-method {
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(122, 162, 247, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.92);
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.support-method::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: radial-gradient(circle at center, rgba(122, 162, 247, 0.15), transparent 60%);
    border-radius: 35px;
    opacity: 0;
    transform: translateZ(-10px);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

.support-method:hover::before {
    opacity: 1;
    transform: translateZ(-5px);
}

.support-method:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(122, 162, 247, 0.25), 0 8px 20px rgba(122, 162, 247, 0.1);
    border-color: rgba(122, 162, 247, 0.2);
}

.support-qr {
    width: 240px;
    height: 240px;
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin: 0 auto;
    transform: translateZ(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.support-qr::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 22px;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.6), transparent 60%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

/* QR码单独的悬停效果 */
.support-qr:hover {
    transform: translateZ(50px) scale(1.06);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
    padding: 14px;
}

.support-qr:hover::before {
    opacity: 0.7;
}

/* 鼠标悬停在卡片上的QR码效果 */
.support-method:hover .support-qr {
    transform: translateZ(30px) scale(1.03);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.alipay-qr,
.wechat-qr {
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.support-method:hover .alipay-qr {
    border-color: #1677ff;
    transform: translateZ(30px) scale(1.03);
    box-shadow: 0 12px 25px rgba(22, 119, 255, 0.15);
}

.support-method:hover .wechat-qr {
    border-color: #07c160;
    transform: translateZ(30px) scale(1.03);
    box-shadow: 0 12px 25px rgba(7, 193, 96, 0.15);
}

.alipay-qr:hover {
    border-color: #1677ff;
    transform: translateZ(50px) scale(1.06);
    box-shadow: 0 20px 35px rgba(22, 119, 255, 0.25);
}

.wechat-qr:hover {
    border-color: #07c160;
    transform: translateZ(50px) scale(1.06);
    box-shadow: 0 20px 35px rgba(7, 193, 96, 0.25);
}

.support-label {
    font-size: 1.4rem;
    margin: 1rem auto 0 auto;
    text-align: center;
    font-weight: 500;
    color: var(--text-color);
    transform: translateZ(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.support-method:hover .support-label {
    transform: translateZ(25px) translateY(-5px);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.support-label::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: currentColor;
    transform: translateX(-50%);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
}

.support-method:hover .support-label::after {
    width: 60%;
    opacity: 0.7;
}

.support-label i {
    margin-right: 0.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.support-method:hover .support-label i {
    transform: scale(1.1);
}

.support-label.alipay i {
    color: #1677ff;
}

.support-method:hover .support-label.alipay {
    color: #1677ff;
}

.support-label.wechat i {
    color: #07c160;
}

.support-method:hover .support-label.wechat {
    color: #07c160;
}

.support-project .section-title i.fa-mug-hot {
    color: #ffac33;
    font-size: 1.2em;
    margin-left: 10px;
    animation: coffeeSteam 3s infinite;
}

@keyframes coffeeSteam {
    0%, 100% { transform: translateY(0) rotate(0); opacity: 0.8; }
    50% { transform: translateY(-10px) rotate(5deg); opacity: 1; }
}

.support-project .section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 80%;
    margin: 1rem auto 2rem;
    transition: all 0.3s ease;
}

.support-project .section-subtitle:hover {
    color: var(--primary-color);
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .support-methods {
        flex-direction: column;
        gap: 3rem;
    }
    
    .support-method {
        padding: 2rem;
        width: 90%;
        margin: 0 auto;
    }
    
    .support-qr {
        width: 220px;
        height: 220px;
    }
    
    .support-label {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .support-project {
        padding: 4rem 0;
    }
    
    .support-method {
        padding: 1.8rem;
        width: 95%;
        min-width: auto;
        margin: 0 auto;
    }
    
    .support-qr {
        width: 200px;
        height: 200px;
    }
    
    .support-label {
        font-size: 1.2rem;
    }
}

.support-project .coffee-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.coffee-particle {
    position: absolute;
    top: -50px;
    font-size: 18px;
    opacity: 0.6;
    animation: coffeeFloat 15s linear infinite;
    z-index: -1;
}

.coffee-particle i {
    animation: rotateCoffee 8s linear infinite;
    display: block;
}

@keyframes rotateCoffee {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes coffeeFloat {
    0% { 
        transform: translateY(-30px) rotate(0deg); 
        opacity: 0; 
    }
    10% { 
        opacity: 0.6; 
    }
    90% { 
        opacity: 0.6; 
    }
    100% { 
        transform: translateY(calc(100vh + 50px)) rotate(360deg); 
        opacity: 0; 
    }
}

/* 其他支持方式样式 */
.support-details {
    padding: 6rem 0;
    background-color: #f9f9ff;
}

.support-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.support-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: 300px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(122, 162, 247, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 380px;
    position: relative;
}

.support-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(122, 162, 247, 0.2);
    border-color: rgba(122, 162, 247, 0.3);
}

.support-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    background: rgba(122, 162, 247, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.support-card:hover .support-icon {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
    animation: pulse 1.5s infinite;
}

/* 星星图标特殊样式 */
.support-card:first-child:hover .support-icon {
    background: var(--primary-color);
    box-shadow: 0 0 20px rgba(122, 162, 247, 0.5);
}

.support-card:first-child:hover .support-icon i.fa-star {
    color: white;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    animation: simpleStarShine 2s infinite ease-in-out;
}

/* Bug图标爬行效果 */
.support-card:nth-child(2):hover .support-icon {
    background: var(--primary-color);
    overflow: visible;
}

.support-card:nth-child(2):hover .support-icon i.fa-bug {
    color: white;
    animation: bugCrawl 3s infinite;
    position: relative;
}

/* 分享图标扩散效果 */
.support-card:nth-child(3):hover .support-icon {
    background: var(--primary-color);
    overflow: visible;
}

.support-card:nth-child(3):hover .support-icon i.fa-share-alt {
    color: white;
    animation: shareExpand 1.5s infinite ease-in-out;
    position: relative;
}

@keyframes shareExpand {
    0% { transform: scale(1); }
    50% { transform: scale(1.3) rotate(15deg); }
    75% { transform: scale(1.1) rotate(-10deg); }
    100% { transform: scale(1); }
}

.support-card:nth-child(3):hover .support-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(122, 162, 247, 0.6);
    border-radius: 50%;
    z-index: -1;
    animation: shareRipple 1.5s infinite ease-out;
    opacity: 0;
}

@keyframes shareRipple {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes bugCrawl {
    0% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(-15px, -10px) rotate(-15deg); }
    40% { transform: translate(15px, -15px) rotate(15deg); }
    60% { transform: translate(-15px, 15px) rotate(-10deg); }
    80% { transform: translate(15px, 10px) rotate(10deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes simpleStarShine {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(122, 162, 247, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(122, 162, 247, 0); }
    100% { box-shadow: 0 0 0 0 rgba(122, 162, 247, 0); }
}

.support-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.support-card:hover h3 {
    color: var(--primary-color);
}

.support-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 80px; /* Fixed height for description */
}

/* Ensure all buttons are positioned at the same height */
.support-card .support-btn {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    margin: 0;
}

/* 优化支持卡片按钮样式 */
.support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    background: linear-gradient(45deg, rgba(255, 148, 184, 0.9), rgba(255, 122, 172, 0.9));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(255, 122, 172, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 160px;
    z-index: 1;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.support-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(122, 162, 247, 0.9), rgba(148, 184, 255, 0.9));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.support-btn:hover {
    background: none;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(122, 162, 247, 0.4);
}

.support-btn:hover::before {
    opacity: 1;
}

.support-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(122, 162, 247, 0.4);
}

.support-btn i {
    margin-right: 0.8rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.support-btn:hover i {
    transform: scale(1.2);
}

/* 重写原有的按钮样式 */
.support-cards .support-btn {
    width: 200px;
    margin: 0.5rem auto 0;
    font-size: 1.05rem;
    height: 45px;
    white-space: nowrap;
    padding: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(255, 122, 172, 0.3);
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Make all buttons identical */
.support-card:nth-child(1) .support-btn,
.support-card:nth-child(2) .support-btn,
.support-card:nth-child(3) .support-btn {
    width: 200px;
    height: 45px;
    padding: 0;
    font-size: 1.05rem;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(255, 122, 172, 0.3);
    font-weight: 600;
    background: linear-gradient(45deg, rgba(255, 148, 184, 0.9), rgba(255, 122, 172, 0.9));
}

.support-cards .support-btn i {
    flex-shrink: 0;
    width: 25px;
    text-align: center;
    margin-right: 8px;
    font-size: 1.1rem;
    display: inline-block !important;
}

/* Override the general margin for card buttons */
.support-card .support-btn i {
    margin-right: 8px;
    width: 25px;
}

/* Fix for all buttons to ensure consistent appearance */
.support-card .support-btn {
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
    min-height: 45px;
    text-align: center;
    background: linear-gradient(45deg, rgba(255, 148, 184, 0.9), rgba(255, 122, 172, 0.9));
}

/* 感谢支持者区域样式 */
.supporters {
    padding: 6rem 0;
    background-color: var(--background-color);
    text-align: center;
}

.heart-animation {
    margin: 3rem auto;
    font-size: 5rem;
    color: var(--accent-color);
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart-animation i {
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

.heart-animation::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247, 125, 170, 0.3) 0%, rgba(247, 125, 170, 0) 70%);
    animation: pulse 2s infinite;
}

/* 支持者列表样式 */
.supporters-list {
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 1rem;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(122, 162, 247, 0.15);
    overflow: hidden;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(122, 162, 247, 0.2);
    transition: all 0.3s ease;
}

.supporters-list:hover {
    box-shadow: 0 15px 40px rgba(122, 162, 247, 0.25);
    transform: translateY(-5px);
}

.supporters-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    border-radius: 15px;
    overflow: hidden;
}

.supporters-table th {
    background-color: rgba(122, 162, 247, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    position: relative;
}

.supporters-table th:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.supporters-table td {
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid rgba(122, 162, 247, 0.1);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.2s ease;
    white-space: nowrap; /* 防止内容换行 */
}

/* 为留言列单独设置样式，允许文本换行 */
.supporters-table td:last-child {
    white-space: normal;
    max-width: 250px; /* 设置最大宽度 */
    word-wrap: break-word; /* 允许单词内断行 */
}

.supporters-table tr:last-child td {
    border-bottom: none;
}

.supporters-table tr:hover td {
    background-color: rgba(122, 162, 247, 0.05);
    color: var(--primary-color);
}

.supporters-table tr {
    transition: all 0.3s ease;
}

.supporters-table tr:hover {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .supporters-list {
        max-width: 95%;
        padding: 0.5rem;
        overflow-x: auto; /* 添加水平滚动 */
    }
    
    .supporters-table th,
    .supporters-table td {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 580px) {
    .supporters-list {
        overflow-x: auto;
    }
    
    .supporters-table {
        min-width: 550px;
        table-layout: fixed; /* 固定表格布局 */
    }
    
    /* 设置列宽 */
    .supporters-table th:first-child,
    .supporters-table td:first-child {
        width: 140px; /* 时间列宽度 */
    }
    
    /* 用户名和金额列宽度 */
    .supporters-table th:nth-child(2),
    .supporters-table td:nth-child(2) {
        width: 80px;
    }
    
    .supporters-table th:nth-child(3),
    .supporters-table td:nth-child(3) {
        width: 60px;
    }
    
    /* 留言列宽度 */
    .supporters-table th:last-child,
    .supporters-table td:last-child {
        width: 250px;
    }
    
    .supporters-table th,
    .supporters-table td {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .support-cards {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .support-card {
        width: 90%;
        max-width: 350px;
        height: 350px; /* Adjusted height for mobile */
    }
    
    .heart-animation {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .support-details {
        padding: 4rem 0;
    }
    
    .support-card {
        width: 95%;
        padding: 2rem;
        height: 350px;
    }
    
    .support-card .support-btn {
        bottom: 2rem;
    }
    
    .support-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .heart-animation {
        font-size: 3.5rem;
        margin: 2rem auto;
    }
}

/* 导航栏支持项目按钮样式 */
.nav-links .support-btn {
    background: linear-gradient(45deg, var(--accent-color), #f799b8) !important;
    box-shadow: 0 4px 15px rgba(247, 125, 170, 0.3) !important;
    color: white !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 50px !important;
    border: none !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
}

.nav-links .support-btn:hover {
    background: linear-gradient(45deg, #f799b8, var(--accent-color)) !important;
    box-shadow: 0 6px 20px rgba(247, 125, 170, 0.4) !important;
    transform: translateY(-3px) !important;
}

.nav-links .support-btn i {
    margin-right: 0.5rem !important;
    animation: coffeeSteam 2s infinite !important;
}

.nav-links .support-btn::after {
    display: none !important;
}

/* 其他支持方式标题图标动画 */
.support-details .section-title i.fa-gift {
    color: #7aa2f7;
    font-size: 1.2em;
    margin-left: 10px;
    animation: giftWiggle 2.5s infinite;
}

@keyframes giftWiggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
} 