/* 重置和基础 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "微软雅黑", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: linear-gradient(270deg, #fdf6e3, #eaeaea, #dcdccc);
    background-size: 800% 800%;
    animation: gradientShift 20s ease infinite;
    color: #003333;
    min-height: 100vh;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 渐变背景动画 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 容器 */
.container {
    max-width: 960px;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
    display: flex;
    animation: fadeSlideIn 1s ease forwards;
}

/* 左侧面板 */
.left-panel {
    background: linear-gradient(135deg, #f7dc6f, #2c3e50);
    padding: 20px;
    flex: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 右侧面板 */
.right-panel {
    background: rgba(255, 255, 255, 0.9);
    flex: 2;
    padding: 30px 35px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    color: #003333;
    transform: translateX(60px);
    opacity: 0;
    animation: slideInRight 1s ease forwards;
    animation-delay: 0.5s;
}

/* 动画定义 */
@keyframes fadeSlideIn {
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* logo盒子和logo */
.logo-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f5dc;
    animation: floatUpDown 4s ease-in-out infinite;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(0, 51, 51, 0.3);
}

/* 漂浮动画 */
@keyframes floatUpDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* 右侧内容样式 */
.reminder-text h3 {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #2c3e50;
}

.reminder-text p,
.reminder-text ul,
.reminder-text li {
    font-size: 1rem;
    line-height: 1.6;
    color: #003333;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.reminder-text ul {
    padding-left: 20px;
    margin: 12px 0;
    list-style-type: disc;
}

.reminder-text li {
    margin-bottom: 8px;
}

/* 使用次数框 */
.usage-box {
    background-color: rgba(245, 245, 220, 0.8);
    border: 2px solid #f7dc6f;
    padding: 18px 24px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    box-shadow: 0 0 25px rgba(247, 220, 111, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.usage-box h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #f7dc6f;
}

.usage-box:hover {
    transform: scale(1.04);
    box-shadow: 0 0 35px rgba(247, 220, 111, 0.7);
    cursor: default;
}

/* 上传说明标题 */
h2 {
    max-width: 960px;
    text-align: center;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 25px;
}

/* 上传表单 */
.upload-form {
    max-width: 480px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

/* 文件输入框 */
.upload-form input[type="file"] {
    flex: 2;
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid rgba(247, 220, 111, 0.4);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.7);
    color: #003333;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.upload-form input[type="file"]:hover,
.upload-form input[type="file"]:focus {
    border-color: #f7dc6f;
    box-shadow: 0 0 24px rgba(247, 220, 111, 0.5);
    outline: none;
}

/* 上传按钮 */
.upload-form button {
    position: relative;
    overflow: hidden;
    flex: 1;
    background: linear-gradient(45deg, #f7dc6f, #eaeaea);
    border: none;
    color: #2c3e50;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    padding: 14px 0;
    box-shadow: 0 5px 20px rgba(247, 220, 111, 0.6);
    font-size: 1.1rem;
    transition: box-shadow 0.3s ease, transform 0.25s ease, color 0.3s ease;
}

.upload-form button:hover {
    color: #fff;
    box-shadow: 0 15px 40px rgba(247, 220, 111, 0.9);
    transform: scale(1.05);
    background-position: 100% 50%;
    background-size: 200% 200%;
}

/* 按钮文字光晕 */
.upload-form button:hover::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(247, 220, 111, 0.6) 0%, transparent 70%);
    animation: pulseGlow 2.5s ease infinite;
    pointer-events: none;
    border-radius: 50%;
    z-index: 0;
}

/* 动画定义 - 光晕脉冲 */
@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

/* 页脚 */
footer {
    max-width: 960px;
    width: 100%;
    text-align: center;
    color: #003333;
    font-size: 0.9rem;
    margin-top: 50px;
    user-select: none;
}

/* 响应式：窄屏时容器纵向排列 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left-panel,
    .right-panel {
        width: 100%;
        padding: 20px;
    }

    .upload-form {
        flex-direction: column;
    }

    .upload-form button {
        width: 100%;
    }

    .logo-box {
        max-width: 100%;
    }

    .image-box {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

/* 图片框 */
.image-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    width: 100%;
    height: auto;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 文字提示框 */
.text-tip-box {
    background-color: rgba(245, 245, 220, 0.9);
    padding: 20px 25px;
    border-radius: 14px;
    box-shadow: 0 0 15px rgba(247, 220, 111, 0.3);
    color: #003333;
    font-size: 1rem;
    line-height: 1.5;
    user-select: none;
    max-width: 460px;
    margin-top: 16px;
}

/* 按钮悬停效果 */
button:hover {
    cursor: pointer;
    filter: brightness(1.05);
    transition: filter 0.2s ease;
}

/* 文字渐变基础样式 */
.gradient-text {
    background: linear-gradient(90deg, #f7dc6f, #2c3e50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.5s ease, text-shadow 0.4s ease;
    background-size: 200% 200%;
    background-position: 0% 50%;
}

/* 悬浮时背景移动并发光 */
.gradient-text:hover {
    background-position: 100% 50%;
    text-shadow: 0 0 8px #f7dc6f, 0 0 12px #f7dc6f, 0 0 20px #2c3e50;
    cursor: pointer;
}

/* 适用于所有h2,h3标题 */
h2.gradient-text,
h3.gradient-text {
    font-weight: 700;
    cursor: default;
}