/* ==========================
   全局重置
========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================
   Body 样式
========================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    background-image: url("/src/img/jinx.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0); /* 半透明黑色遮罩 */
    z-index: -1;
}

/* ==========================
   全站字体设置
========================== */
body, p, h1, h2, h3, h4, button {
    font-family: 'Kosugi Maru', sans-serif;
}

/* ==========================
   Header / Footer
========================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: #fff;
}

footer {
    margin-top: auto;
    padding: 20px 0;
    text-align: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
    color: #fff;
}

/* ==========================
   Logo 样式
========================== */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container img {
    height: 40px;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.5), 
                0 0 24px rgba(108, 99, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.03) ;
    text-shadow: 
        0 0 8px rgba(0,0,0,0.8),
        0 0 16px rgba(0,0,0,0.9),
        0 0 24px rgba(0,0,0,1);
}

.logo-container .project-name {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    font-family: 'Kosugi Maru', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-shadow: 
        0 0 4px rgba(0,0,0,0.6), 
        0 0 8px rgba(0,0,0,0.7),
        0 0 12px rgba(0,0,0,0.8);
    transition: text-shadow 0.3s ease, transform 0.3s ease;
}

.logo-container:hover .project-name {
    transform: scale(1.02);
    text-shadow: 
        0 0 8px rgba(0,0,0,0.8),
        0 0 16px rgba(0,0,0,0.9),
        0 0 24px rgba(0,0,0,1);
}

/* ==========================
   主内容区域
========================== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    flex: 1;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
    text-shadow: 
        0 0 10px rgba(0, 0, 0, 0.6),
        0 0 12px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(0, 0, 0, 0.4);
}

.main-text {
    color: #FFFFFF;
    text-shadow: 
        0 0 2px rgba(0, 0, 0, 0.7),
        0 0 4px rgba(0, 0, 0, 0.6),
        0 0 6px rgba(0, 0, 0, 0.5);
    font-size: 1.2rem;
    line-height: 1.8;
}

.subtitle {
    color: #4BE30D;
    margin-bottom: 3rem;
    font-size: 1.5rem;
}

/* ==========================
   卡片布局
========================== */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(255,255,255,0.3);
    transition: text-shadow 0.3s ease;
}

.card p.subtitle {
    color: rgba(0,0,0,1);
    font-size: 1rem;
    line-height: 1.5;
}

.card:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent);
    pointer-events: none;
}

.card:has(.support-button):hover h3 {
    text-shadow: 0 4px 16px rgba(255,255,255,0.6);
}

/* ==========================
   按钮样式
========================== */
.support-button {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background: #6c63ff;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.support-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.support-button.pink {
    background: #ff66a3;
}

/* ==========================
   GitHub 按钮
========================== */
.github-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 20px;
    border-radius: 12px;
    font-weight: 600;
    color: #fff;
    background: rgba(30, 30, 30, 0.3);
    border: 1px solid rgba(50, 50, 50, 0.6);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(50, 50, 50, 0.3);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.github-button:hover {
    background: rgba(30, 30, 30, 0.5);
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(50, 50, 50, 0.5);
}

.github-icon {
    margin-right: 4px;
}

/* ==========================
   输入框和上传区
========================== */
.input-group {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    overflow: hidden;
}

.prefix {
    padding: 0.5rem;
    background: #f6f8fa;
    color: #586069;
    border-right: 1px solid #e1e4e8;
}

input {
    flex: 1;
    padding: 0.5rem;
    border: none;
    outline: none;
}

.analyze-button {
    width: 100%;
    padding: 0.75rem;
    background: #6c63ff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

.analyze-button:hover {
    background: #5b54d6;
}

.upload-zone {
    margin-top: 1.5rem;
    padding: 2rem;
    border: 2px dashed #e1e4e8;
    border-radius: 6px;
    background: #f6f8fa;
    cursor: pointer;
    transition: 0.2s ease;
}

.upload-zone:hover {
    border-color: #6c63ff;
    background: #f8f9ff;
}

/* ==========================
   Partner / Link 样式
========================== */
.partner-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.partner-link {
    display: block;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    color: #24292e;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.2s ease;
    border: 1px solid #e1e4e8;
    backdrop-filter: blur(5px);
}

.partner-link:hover {
    background: #f0f1f4;
    border-color: #6c63ff;
    color: #6c63ff;
}

/* ==========================
   页脚文字
========================== */
.license-text {
    color: #000;
    font-size: 14px;
}

.license-text a {
    color: #4BE90C;
    text-decoration: none;
    text-shadow: 
        1px 1px 2px rgba(0,0,0,0.7),
        0 0 6px rgba(75, 233, 12, 0.8);
    transition: all 0.3s ease;
}

.license-text a:visited {
    color: #4BE90C;
}

.license-text a:hover {
    color: #fff;
    text-shadow: 
        1px 1px 2px rgba(0,0,0,0.7),
        0 0 8px rgba(75, 233, 12, 1),
        0 0 12px rgba(75, 233, 12, 0.7),
        0 0 16px rgba(75, 233, 12, 0.5);
    text-decoration: none;
}

/* ==========================
   支持者卡片
========================== */
.supporters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.supporter-box {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.supporter-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.supporter-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.supporter-name {
    font-size: 1.1rem;
    color: #333;
}

.support-amount {
    font-weight: bold;
    color: #2ecc71;
    font-size: 1.2rem;
}

.supporter-card h3 {
    text-align: left;
    margin-bottom: 1rem;
    color: #000;
    font-size: 1.8rem;
}

.acknowledgment-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.acknowledgment-content > p {
    margin-bottom: 2rem;
    font-size: 1.4rem;
    color: #FF69B4;
    text-shadow: 
        1px 1px 0 #000, 
        -1px -1px 0 #000, 
        1px -1px 0 #000, 
        -1px 1px 0 #000;
}


/* ==========================
   支持者卡片 - PC端 一行6个，居中
========================== */
@media screen and (min-width: 1280px) {
    .supporters-grid {
        display: grid;
        grid-template-columns: repeat(6, minmax(220px, 1fr)); /* 每个卡片最小宽220px */
        gap: 1.5rem;
        justify-content: center; /* 容器居中 */
        max-width: 1500px;       /* 容器最大宽度，保证卡片足够宽 */
        margin: 0 auto;
        padding: 0 1rem;
    }

    .supporter-box {
        height: auto;          
        overflow: visible;     
        padding: 1.5rem;        /* 内边距保持舒适 */
    }

    .supporter-name,
    .support-amount,
    .supporter-card h3 {
        word-wrap: break-word;
        white-space: normal;
    }
}




/* ==========================
   模态框毛玻璃二次元风格 - 改进版
========================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0); /* 半透明黑色背景，更突出内容 */
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal {
    background: rgba(30, 30, 40, 0.8); /* 深色毛玻璃底色，文字更清晰 */
    border-radius: 20px; /*圆角 */
    padding: 15px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    color: #fff;
    font-family: 'Kosugi Maru', sans-serif;
    
}

.modal p {
    font-size: 1rem;
    margin-bottom: 20px;
    text-shadow: 0 0 6px rgba(0,0,0,0.8), 0 0 12px rgba(50,50,100,0.6);
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 50px;   /* 赞助行为完全自愿，无服务承诺。 */
}



/* 调整模态框文字大小和样式 */
#modalText {
    font-size: 1.4rem;       /* 调整文字大小，可根据需要改 */
    line-height: 1.6;        /* 增加行高，让文字更舒适 */
    color: #fff;             /* 白色文字 */
    text-align: center;      /* 居中 */
    text-shadow: 
        0 0 4px rgba(0,0,0,0.7), 
        0 0 8px rgba(50,50,100,0.5); /* 二次元发光感 */
    margin-bottom: 20px;     /* 下边距，让按钮往下 */
}




.modal-buttons button {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}

.modal-confirm {
    background: rgba(108, 99, 255, 0.9); /* 加深颜色 */
    text-shadow: 0 0 4px rgba(0,0,0,0.7);
}

.modal-confirm:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.7);
}

.modal-cancel {
    background: rgba(255, 77, 138, 0.9); /* 加深颜色 */
    text-shadow: 0 0 4px rgba(0,0,0,0.7);
}

.modal-cancel:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 77, 138, 0.7);
}

/* ==========================
   二维码容器
========================== */
#qrcodeContainer {
    margin: 0 auto;
    width: 180px;
    height: 180px;
    border-radius: 20px;
    background: rgba(50, 50, 60, 0.8); /* 深色底，更突出二维码 */
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

#qrcodeContainer canvas,
#qrcodeContainer img {
    border-radius: 12px;
}


/* ==========================
   调整二维码位置 + 边框
========================== */
/* 模态框设置相对定位 */
.modal {
    position: relative;  /* 让二维码容器绝对定位基于这里 */
    padding: 60px 30px 30px 30px; /* 保留顶部空间给二维码 */
    max-width: 450px; /* 根据需要调整 */
    background: rgba(30, 30, 40, 0.9);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
}

/* 二维码容器绝对定位 */
.qrcode-wrapper.pink-theme {
    position: absolute;
    top: -35px;              /* 距模态框顶部 15px，可调 */
    left: 50%;              /* 水平居中 */
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    border-radius: 20px;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid #ff66a3;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
    overflow: hidden;
    z-index: 10;
}

/* 二维码本身 */
.qrcode-wrapper.pink-theme canvas,
.qrcode-wrapper.pink-theme img {
    display: block;
    margin: auto;
    border-radius: 12px;
    width: 90%;
    height: 90%;
}

/* ==========================
   Loading 动画
========================== */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid transparent;
    border-top: 4px solid #4caf50;
    border-right: 4px solid #2196f3;
    border-radius: 50%;
    animation: spin 1s linear infinite, hueRotate 3s linear infinite;
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.5), 0 0 8px rgba(76, 175, 80, 0.5);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes hueRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* ==========================
   支付后动画
========================== */
.success-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: popIn 0.6s ease-out;
}

.success-gif {
    width: 120px;
    height: 120px;
}

.success-text {
    font-size: 18px;
    color: #ff69b4;
    font-weight: bold;
    animation: bounce 1s infinite;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ==========================
   赞助卡片特殊样式
========================== */
.card:has(.support-button[data-amount="0.1"]) {
    background: rgba(106,90,205,0.25);
    border: 2px solid rgba(106,90,205,0.5);
}

.support-button[data-amount="0.1"] {
    background: rgba(106,90,205,0.8);
    color: #fff;
}

.card:has(.support-button[data-amount="1"]),
.card:has(.support-button.pink) {
    background: rgba(255,77,138,0.25);
    border: 2px solid rgba(255,77,138,0.5);
}

.support-button[data-amount="1"],
.support-button.pink {
    background: rgba(255,77,138,0.85);
    color: #fff;
}

/* 赞助卡片文字样式 */
.sponsor-text-standard {
    color: #C6A0FF;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8),
                 0 0 8px rgba(0, 0, 0, 0.7),
                 0 0 12px rgba(0, 0, 0, 0.6);
    font-size: 1.2rem;
    line-height: 1.8;
}

.sponsor-text-elite {
    color: #FF6EC7;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8),
                 0 0 8px rgba(0, 0, 0, 0.7),
                 0 0 12px rgba(0, 0, 0, 0.6);
    font-size: 1.2rem;
    line-height: 1.8;
}

.card .card-title-standard {
    font-size: 2rem;
    color: #000;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(198,160,255,0.8),
                 0 0 8px rgba(198,160,255,0.6),
                 0 0 12px rgba(198,160,255,0.5);
}

.card .card-title-elite {
    font-size: 2rem;
    color: #000;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(255,110,199,0.8),
                 0 0 8px rgba(255,110,199,0.6),
                 0 0 12px rgba(255,110,199,0.5);
}


/* 左边卡片（基础赞助）添加浅紫色边框 */
.cards-container .card:nth-child(1) {
    border: 2px solid rgba(198,160,255,0.6);  /* 柔和浅紫边框 */
    box-shadow: 0 0 20px rgba(198,160,255,0.3); /* 发光阴影 */
}
