/* 特别感谢区域样式 */
/* 特别感谢区域 */
.special-thanks {
    padding: 6rem 0;
    background-color: var(--background-color);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(248,249,255,1) 50%, rgba(255,255,255,1) 100%);
}

.special-thanks::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(122, 162, 247, 0.3), transparent);
}

.thanks-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    list-style: none;
    padding: 0;
}

.thanks-item {
    padding: 0;
    transition: all 0.3s ease;
}

.thanks-item a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(122, 162, 247, 0.1);
    justify-content: flex-start;
    overflow: hidden;
    position: relative;
}

.thanks-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(122, 162, 247, 0.05), rgba(247, 125, 170, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.thanks-item:hover a::before {
    opacity: 1;
}

.thanks-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 2px solid rgba(122, 162, 247, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.thanks-item:hover .thanks-avatar {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 15px rgba(122, 162, 247, 0.25);
    border-color: rgba(122, 162, 247, 0.6);
}

.thanks-item a span {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 60px);
}

.thanks-item:hover a span {
    color: var(--accent-color);
}

.thanks-item:hover a {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(122, 162, 247, 0.15);
    border-color: rgba(122, 162, 247, 0.3);
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20%, 100% {
        left: 100%;
    }
}

.thanks-item a::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent);
    transform: skewX(-25deg);
    transition: all 0.3s ease;
    z-index: 0;
}

.thanks-item:hover a::after {
    animation: shine 2s ease-in-out infinite;
}

@media (max-width: 1200px) {
    .thanks-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .thanks-list {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    .thanks-item a {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .thanks-avatar {
        width: 36px;
        height: 36px;
        margin-right: 0.8rem;
    }
}

@media (max-width: 480px) {
    .thanks-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.8rem;
    }
    
    .thanks-item a {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .thanks-avatar {
        width: 32px;
        height: 32px;
        margin-right: 0.6rem;
    }
    
    .thanks-item a span {
        max-width: calc(100% - 45px);
    }
}

/* 贡献者网格的移动端适配样式 */
@media (max-width: 768px) {
  .contributors-grid table {
    width: 100% !important;
    border-spacing: 0 !important;
  }
  
  .contributors-grid tbody {
    display: block !important;
    width: 100% !important;
  }
  
  .contributors-grid tr {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    margin-bottom: 15px !important;
  }
  
  .contributors-grid td {
    box-sizing: border-box !important;
    text-align: center !important;
  }
  
  .contributors-grid img {
    margin: 0 auto !important;
    display: block !important;
  }
  
  .contributors-grid sub {
    display: block !important;
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  .contributors-grid td {
    padding: 8px 3px !important;
  }
}

/* 添加响应式样式 */
@media (max-width: 768px) {
    .responsive-qr {
        width: 220px !important;
        height: 220px !important;
    }
    .responsive-method {
        padding: 2rem !important;
    }
    .responsive-label {
        font-size: 1.3rem !important;
    }
    .responsive-icon {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .responsive-qr {
        width: 200px !important;
        height: 200px !important;
    }
    .responsive-method {
        padding: 1.8rem !important;
    }
    .responsive-label {
        font-size: 1.2rem !important;
    }
    .responsive-icon {
        font-size: 1.4rem !important;
    }
}

/* 悬停动画效果 */
.responsive-method {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.responsive-method:hover {
    transform: translateY(-20px) !important;
    box-shadow: 0 25px 50px rgba(122, 162, 247, 0.3), 0 10px 30px rgba(122, 162, 247, 0.15) !important;
}

.responsive-qr {
    transition: all 0.4s ease !important;
}

.wechat-qr:hover {
    transform: scale(1.05) rotate(1deg) !important;
    border-color: #07c160 !important;
    box-shadow: 0 12px 30px rgba(7, 193, 96, 0.15) !important;
}

.alipay-qr:hover {
    transform: scale(1.05) rotate(-1deg) !important;
    border-color: #1677ff !important;
    box-shadow: 0 12px 30px rgba(22, 119, 255, 0.15) !important;
}

.responsive-label {
    transition: all 0.3s ease !important;
}

.wechat:hover {
    color: #07c160 !important;
}

.alipay:hover {
    color: #1677ff !important;
}

.responsive-icon {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.responsive-label:hover .responsive-icon {
    transform: scale(1.3) rotate(-10deg) !important;
    animation: iconWiggle 1s infinite alternate ease-in-out !important;
}

@keyframes iconWiggle {
    0% { transform: scale(1.3) rotate(-10deg) !important; }
    100% { transform: scale(1.3) rotate(5deg) !important; }
}

/* 语言切换按钮样式 */
#language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

#language-toggle i {
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

#language-toggle:hover i {
    transform: rotate(20deg);
    color: var(--accent-color);
}

#language-toggle::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

#language-toggle:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    #language-toggle {
        font-size: 0.9rem;
    }
    
    #language-toggle i {
        font-size: 1rem;
    }
}

/* 双语标签样式 */
.bilingual-hint {
    position: absolute;
    top: -15px;
    right: 0;
    font-size: 0.7rem;
    color: var(--primary-color);
    opacity: 0.7;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: rgba(122, 162, 247, 0.1);
    border: 1px solid rgba(122, 162, 247, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.hero-description:hover .bilingual-hint {
    opacity: 1;
    background-color: rgba(122, 162, 247, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(122, 162, 247, 0.15);
}

/* 英文模式下的描述单词间距调整 */
html[lang="en"] .hero-description .desc-word {
    margin-right: 4px;
    letter-spacing: 0.01em;
}

/* 英文模式下的猫咪词汇特殊样式 */
html[lang="en"] .hero-description .cat-word {
    color: #ffac59;
    font-weight: 500;
}

/* 英文模式下的强调词汇特殊样式 */
html[lang="en"] .hero-description .emp-word {
    color: var(--accent-color);
    font-weight: 600;
}

/* 移动设备适配 */
@media (max-width: 768px) {
    .bilingual-hint {
        top: -12px;
        font-size: 0.6rem;
        padding: 1px 4px;
    }
}

@media (max-width: 480px) {
    html[lang="en"] .hero-description .desc-word {
        margin-right: 2px;
        font-size: 0.9rem;
    }
}

/* 特别感谢区域的背景装饰元素 */
.thanks-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.thanks-decoration-circle {
    position: absolute;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    left: var(--x);
    top: var(--y);
    background-color: var(--color);
    animation: pulse 6s ease-in-out infinite;
    animation-delay: var(--delay);
    transform: translate(-50%, -50%);
}

.thanks-decoration-plus {
    position: absolute;
    width: 20px;
    height: 20px;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    opacity: 0.7;
}

.thanks-decoration-plus::before,
.thanks-decoration-plus::after {
    content: '';
    position: absolute;
    background-color: var(--color);
}

.thanks-decoration-plus::before {
    width: 100%;
    height: 4px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.thanks-decoration-plus::after {
    width: 4px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.thanks-decoration-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    left: var(--x);
    top: var(--y);
    background-color: var(--color);
    transform: translate(-50%, -50%);
    animation: float 10s ease-in-out infinite;
    animation-delay: calc(var(--x) * 0.1s);
}

.thanks-decoration-star {
    position: absolute;
    width: 15px;
    height: 15px;
    left: var(--x);
    top: var(--y);
    background-color: transparent;
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 0.7;
    animation: twinkle 4s ease-in-out infinite;
    animation-delay: calc(var(--y) * 0.1s);
}

.thanks-decoration-star::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    transform: rotate(0deg);
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
    50% { transform: translate(-50%, -50%) translateY(-15px); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) rotate(45deg) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) rotate(45deg) scale(1.2); }
}

/* 调整特别感谢区域的容器，确保装饰不影响内容 */
.special-thanks .container {
    position: relative;
    z-index: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .thanks-decoration-circle {
        opacity: 0.5;
    }
    
    .thanks-decoration-plus,
    .thanks-decoration-dot,
    .thanks-decoration-star {
        transform: translate(-50%, -50%) scale(0.8);
    }
}