/* 从index.html的<style>标签中复制的样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes backgroundMove {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

@keyframes neonGlow {
    0% {
        text-shadow: 0 0 10px #0ff,
                   0 0 20px #0ff,
                   0 0 30px #0ff;
    }
    100% {
        text-shadow: 0 0 20px #0ff,
                   0 0 30px #0ff,
                   0 0 40px #0ff;
    }
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background: 
        linear-gradient(45deg, 
            #000428 0%, 
            #004e92 25%, 
            #2196F3 50%, 
            #004e92 75%, 
            #000428 100%);
    background-size: 400% 400%;
    animation: backgroundMove 15s ease infinite alternate;
    min-height: 100vh;
    color: white;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding-bottom: 0; /* 移除底部padding */
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    padding: 55px 0 30px;
    position: relative;
}

/* 标题发光效果 */
h1 {
    font-size: 4em;
    color: #fff;
    text-transform: uppercase;
    animation: neonGlow 2s ease-in-out infinite alternate;
    margin-bottom: 20px;
    position: relative;
}

.subtitle {
    font-size: 1.5em;
    color: rgba(255,255,255,0.9);
    margin-bottom: 15px;
}

/* 访问计数器样式 */
.visit-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 25px;
    padding: 10px 18px;
    margin: 0 auto 5px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.visit-counter:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    border-color: rgba(0, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
}

.visit-icon {
    font-size: 1.3em;
    animation: bounce 2s infinite;
    margin-right: -2px;
}

.visit-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1em;
    margin-right: -1px;
}

.visit-number {
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 0 0 10px #0ff,
                 0 0 20px #0ff,
                 0 0 30px #0ff;
    padding: 0 2px;
    animation: neonGlow 2s ease-in-out infinite alternate;
}

/* 版本信息样式 */
.version-info {
    text-align: center;
    margin: 5px auto 10px;
    font-size: 14px;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease;
}

.version-text {
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 10px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    .version-info {
        font-size: 12px;
        margin: 3px auto 8px;
    }
}

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

/* 工具卡片网格布局 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 改为3列 */
    gap: 30px;
    padding: 5px 20px;
    margin-top: 0;
}

/* 响应式布局调整 */
@media (max-width: 1400px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr); /* 保持3列 */
        gap: 25px;
    }
}

@media (max-width: 1100px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr); /* 中等屏幕2列 */
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr; /* 小屏幕1列 */
        gap: 20px;
        padding: 8px;
        margin-top: 2px;
    }
}

.tool-card {
    flex: 1;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,255,255,0.3);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* 卡片发光边框 */
.tool-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00f2fe, #4facfe);
    z-index: -1;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(0,255,255,0.3);
}

.tool-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.2) rotate(10deg);
}

.tool-title {
    font-size: 1.8em;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0,255,255,0.5);
}

.tool-description {
    color: rgba(255,255,255,0.8);
    font-size: 1.1em;
    line-height: 1.6;
}

/* 流光效果 */
.tool-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    transition: 0.5s;
}

.tool-card:hover::after {
    left: 100%;
}

footer {
    text-align: center;
    padding: 20px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,255,255,0.3);
    position: relative;
    overflow: hidden;
    margin-top: auto;
    margin-bottom: 0; /* 移除底部margin */
}

/* 科技感网格 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(0,255,255,0.1) 1px, transparent 1px),
        linear-gradient(rgba(0,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;  /* 确保网格不影响交互 */
}

/* 确保其他元素在网格之上 */
header, main, footer {
    position: relative;
    z-index: 1;
}

/* 意见箱容器 */
.feedback-container {
    position: absolute;
    top: -5px;
    right: 20px;
    z-index: 9999;
}

/* 官方主页容器 */
.homepage-container {
    position: absolute;
    top: -5px;
    left: 20px;
    z-index: 9999;
}

/* 官方主页按钮样式 */
.homepage-btn,
.feedback-btn {
    padding: 12px 20px;
    width: auto;
    height: auto;
    font-size: 14px;
    position: relative;
    background: linear-gradient(135deg, rgba(36, 198, 220, 0.95), rgba(81, 74, 157, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.homepage-icon,
.feedback-icon {
    display: block;
    font-size: 16px;
    margin: 0;
}

.homepage-icon::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: white;
    clip-path: polygon(0% 0%, 100% 50%, 0% 100%, 20% 50%);
    transform: rotate(-45deg);
}

.feedback-icon::before {
    content: '✉️';
}

/* 主页提示标签样式 */
.homepage-tip {
    position: absolute;
    top: 50%;
    left: calc(100% + 15px);
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    transform: translateY(-50%);
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    opacity: 0;
    animation: tipPulse 3s ease-in-out infinite;
}

.homepage-tip span {
    background: linear-gradient(135deg, #24C6DC, #514A9D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
}

/* 主页提示箭头 */
.homepage-tip .tip-arrow {
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid rgba(255, 255, 255, 0.95);
    border-left: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    header {
        padding: 20px 0 5px;
    }

    .homepage-container {
        position: absolute;
        top: 50px;
        transform: none;
        left: 0;
        z-index: 9999999;
        padding: 10px;
        pointer-events: auto;
    }
    
    .feedback-container {
        position: absolute;
        top: 50px;
        transform: none;
        right: 0;
        z-index: 9999999;
        padding: 10px;
        pointer-events: auto;
    }
    
    .homepage-btn,
    .feedback-btn {
        padding: 12px 8px;
        width: 38px;
        height: 130px;
        font-size: 14px;
        flex-direction: column;
        gap: 2px;
    }

    .homepage-icon,
    .feedback-icon {
        display: block;
        margin-bottom: 2px;
        font-size: 16px;
    }

    .homepage-icon::before {
        content: '';
        display: inline-block;
        width: 20px;
        height: 20px;
        background: white;
        clip-path: polygon(0% 0%, 100% 50%, 0% 100%, 20% 50%);
        transform: rotate(-45deg);
    }

    .feedback-icon::before {
        content: '✉️';
    }

    .homepage-tip,
    .feedback-tip {
        display: none;
    }

    footer {
        margin-bottom: 0;
    }
}

/* 更小屏幕的适配 */
@media (max-width: 360px) {
    .homepage-btn,
    .feedback-btn {
        width: 35px;
        height: 120px;
        font-size: 13px;
        padding: 10px 6px;
    }

    .homepage-icon,
    .feedback-icon {
        font-size: 15px;
    }
}

/* 修改意见箱按钮样式 */
.feedback-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(36, 198, 220, 0.9), rgba(81, 74, 157, 0.9));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 15px rgba(36, 198, 220, 0.3);
}

.feedback-icon {
    font-style: normal;
    font-size: 18px;
}

/* 提示标签样式 */
.feedback-tip {
    position: absolute;
    top: 50%;
    right: calc(100% + 15px);
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    transform: translateY(-50%);
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    opacity: 0;
    animation: tipPulse 3s ease-in-out infinite;
}

.feedback-tip span {
    background: linear-gradient(135deg, #24C6DC, #514A9D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
}

/* 提示箭头 */
.tip-arrow {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid rgba(255, 255, 255, 0.95);
}

/* 提示动画 */
@keyframes tipPulse {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(10px);
    }
    20% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
    80% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(10px);
    }
}

/* 按钮悬停效果 */
.homepage-btn:hover {
    background: linear-gradient(135deg, rgba(36, 198, 220, 1), rgba(81, 74, 157, 1));
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(36, 198, 220, 0.5);
}

/* 移动端适配 */
@media (max-width: 768px) {
    header {
        padding: 20px 0 5px;
    }

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

    .subtitle {
        font-size: 1.3em;
        margin-bottom: 0;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 8px;
        margin-top: 2px;
    }

    .container {
        padding: 15px;
    }

    .tool-card {
        padding: 20px;
    }

    .tool-title {
        font-size: 1.5em;
    }

    .tool-description {
        font-size: 1em;
    }
}

/* 意见反馈对话框样式 */
.feedback-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.feedback-dialog-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

.feedback-dialog .dialog-header {
    background: linear-gradient(135deg, #24C6DC, #514A9D);
    padding: 20px;
    border-radius: 16px 16px 0 0;
}

.feedback-dialog .dialog-header h3 {
    color: white;
    margin: 0;
    text-align: center;
    font-size: 20px;
}

.feedback-dialog .dialog-body {
    padding: 20px;
}

.feedback-dialog .input-group {
    margin-bottom: 20px;
}

.feedback-dialog .input-group label {
    display: block;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.feedback-dialog input,
.feedback-dialog textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.feedback-dialog textarea {
    resize: vertical;
    min-height: 120px;
}

.feedback-dialog input:focus,
.feedback-dialog textarea:focus {
    outline: none;
    border-color: #24C6DC;
    box-shadow: 0 0 0 3px rgba(36, 198, 220, 0.1);
}

.feedback-dialog .dialog-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.feedback-dialog .dialog-buttons button {
    padding: 8px 25px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

/* Toast提示框样式 */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    backdrop-filter: blur(8px);
    white-space: nowrap;
}

/* 输入框错误状态样式 */
.feedback-dialog input.error,
.feedback-dialog textarea.error {
    border-color: #ff4d4f;
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
    10%, 90% {
        transform: translateX(-1px);
    }
    20%, 80% {
        transform: translateX(2px);
    }
    30%, 50%, 70% {
        transform: translateX(-3px);
    }
    40%, 60% {
        transform: translateX(3px);
    }
}

/* 修改输入框焦点样式 */
.feedback-dialog input:focus,
.feedback-dialog textarea:focus {
    outline: none;
    border-color: #24C6DC;
    box-shadow: 0 0 0 3px rgba(36, 198, 220, 0.1);
}

/* 修改按钮悬浮效果 */
.feedback-dialog .dialog-buttons button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(36, 198, 220, 0.2);
}

/* 名字输入框包装器样式 */
.name-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.input-container {
    flex: 1;
    min-width: 0; /* 防止内容溢出 */
}

.toggle-anonymous {
    flex-shrink: 0;
}

/* 匿名按钮样式 */
.anonymous-btn {
    padding: 8px 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #514A9D;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 42px;
    white-space: nowrap;
}

.anonymous-btn:hover {
    background: #e9ecef;
}

.anonymous-btn.active {
    background: #514A9D;
    color: white;
    border-color: #514A9D;
}

/* 输入框样式优化 */
.feedback-dialog input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.feedback-dialog label {
    display: block;
    color: #333;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
}

/* 匿名提示对话框样式 */
.anonymous-notice {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.notice-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

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

.notice-header {
    background: linear-gradient(135deg, #24C6DC, #514A9D);
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-header h3 {
    color: white;
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.notice-header .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.notice-header .close-btn:hover {
    transform: rotate(90deg);
}

.notice-body {
    padding: 25px 20px;
    text-align: center;
}

.notice-icon {
    font-size: 36px;
    margin-bottom: 15px;
    color: #f0b90b;
}

.notice-body p {
    margin: 0;
    color: #333;
    font-size: 15px;
    line-height: 1.5;
}

.notice-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    border-radius: 0 0 12px 12px;
}

.notice-buttons button {
    padding: 8px 25px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.notice-buttons .cancel-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
}

.notice-buttons .confirm-btn {
    background: linear-gradient(135deg, #24C6DC, #514A9D);
    border: none;
    color: white;
}

.notice-buttons button:hover {
    transform: translateY(-1px);
}

.notice-buttons .cancel-btn:hover {
    background: #e9ecef;
}

.notice-buttons .confirm-btn:hover {
    box-shadow: 0 4px 12px rgba(36, 198, 220, 0.2);
}

/* 开发中工具卡片样式 */
.tool-card.developing {
    opacity: 0.8;
    position: relative;
}

.dev-badge {
    font-size: 0.6em;
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

/* 开发中提示弹窗样式 */
.dev-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dev-dialog-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

.dev-dialog-header {
    background: linear-gradient(135deg, #24C6DC, #514A9D);
    padding: 20px;
    border-radius: 16px 16px 0 0;
    text-align: center;
}

.dev-dialog-header h3 {
    color: white;
    margin: 0;
    font-size: 20px;
}

.dev-dialog-body {
    padding: 30px 20px;
    text-align: center;
}

.dev-dialog-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.dev-dialog-message {
    color: #333;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.dev-dialog-buttons {
    display: flex;
    justify-content: center;
    padding: 0 20px 20px;
}

.dev-dialog-close {
    padding: 10px 30px;
    background: linear-gradient(135deg, #24C6DC, #514A9D);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dev-dialog-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(36, 198, 220, 0.2);
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 捐献按钮样式 */
.donate-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #24C6DC, #514A9D);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(36, 198, 220, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(36, 198, 220, 0.3);
}

.donate-btn i {
    font-size: 16px;
}

.donate-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.donate-dialog.show {
    display: flex;
}

.donate-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 90%;
    width: 300px;
    animation: slideIn 0.3s ease;
}

.donate-content h3 {
    color: #514A9D;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.donate-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.donate-qr {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.donate-qr img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.donate-close {
    background: #f8f9fa;
    color: #514A9D;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.donate-close:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .donate-btn {
        top: 15px;
        right: 15px;
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .donate-content {
        padding: 20px;
        width: 280px;
    }
    
    .donate-qr {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 360px) {
    .donate-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .donate-content {
        padding: 15px;
        width: 260px;
    }
    
    .donate-qr {
        width: 160px;
        height: 160px;
    }
}