/* ==========================================================================
   thanks.css - 鸣谢页面样式（独立版，包含深色和浅色模式）
   ========================================================================== */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== 深色模式（默认） ========== */
html[data-theme="dark"] {
    --primary-color: #1db954;
    --secondary-color: #1ed760;
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --card-bg: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --border-color: #3a3a3a;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --link-hover-bg: rgba(29, 185, 84, 0.15);
}

/* ========== 浅色模式 ========== */
html[data-theme="light"] {
    --primary-color: #1db954;
    --secondary-color: #1ed760;
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --card-bg: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --link-hover-bg: rgba(29, 185, 84, 0.08);
}

/* ========== Body 样式 ========== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ========== 容器样式 ========== */
.thanks-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-color);
    position: relative;
}

/* ========== 主题切换按钮（主页风格） ========== */
.theme-toggle-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background-color: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.theme-toggle-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.theme-toggle-btn svg {
    transition: all 0.3s ease;
}

/* 深色模式下显示太阳图标 */
html[data-theme="dark"] .theme-toggle-btn .icon-moon {
    display: none;
}

html[data-theme="dark"] .theme-toggle-btn .icon-sun {
    display: block;
    stroke: var(--text-secondary);
}

html[data-theme="dark"] .theme-toggle-btn:hover .icon-sun {
    stroke: #fff;
}

/* 浅色模式下显示月亮图标 */
html[data-theme="light"] .theme-toggle-btn .icon-moon {
    display: block;
    stroke: var(--text-secondary);
}

html[data-theme="light"] .theme-toggle-btn .icon-sun {
    display: none;
}

html[data-theme="light"] .theme-toggle-btn:hover .icon-moon {
    stroke: #fff;
}

/* ========== 标题部分 ========== */
.thanks-header {
    text-align: center;
    margin-bottom: 50px;
}

.thanks-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.thanks-header h1 i {
    color: #e74c3c;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
}

.thanks-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* ========== 卡片网格 ========== */
.thanks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* ========== 鸣谢卡片 ========== */
.thanks-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.thanks-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.thanks-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
    border-color: var(--primary-color);
}

.thanks-card:hover::before {
    transform: scaleX(1);
}

/* ========== 卡片图标 ========== */
.thanks-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #fff;
    transition: transform 0.3s ease;
}

.thanks-card:hover .thanks-card-icon {
    transform: rotate(5deg) scale(1.05);
}

/* ========== 卡片标题 ========== */
.thanks-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

/* ========== 卡片描述 ========== */
.thanks-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* ========== 卡片链接 ========== */
.thanks-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    background: var(--link-hover-bg);
}

.thanks-card a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateX(5px);
}

.thanks-card a i {
    font-size: 0.85rem;
}

/* ========== 页脚部分 ========== */
.thanks-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.thanks-footer h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.thanks-footer h3 i {
    color: var(--primary-color);
}

.thanks-footer p {
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1rem;
}

/* ========== 返回按钮 ========== */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.back-btn i {
    transition: transform 0.3s ease;
}

.back-btn:hover i {
    transform: translateX(-3px);
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .thanks-container {
        margin: 30px 15px;
        padding: 50px 25px 25px;
    }

    .theme-toggle-btn {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
    }

    .thanks-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }

    .thanks-header p {
        font-size: 1rem;
    }

    .thanks-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .thanks-card {
        padding: 20px;
    }

    .thanks-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .thanks-card h3 {
        font-size: 1.3rem;
    }

    .thanks-footer h3 {
        font-size: 1.2rem;
        flex-direction: column;
        gap: 8px;
    }

    .back-btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .thanks-container {
        margin: 20px 10px;
        padding: 45px 20px 20px;
    }

    .thanks-header h1 {
        font-size: 1.7rem;
    }

    .thanks-card {
        padding: 15px;
    }

    .theme-toggle-btn {
        width: 34px;
        height: 34px;
    }

    .theme-toggle-btn svg {
        width: 18px;
        height: 18px;
    }
}
