/* 铅笔手绘风格主题 */
html {
    scroll-behavior: smooth; /* 平滑滚动 */
}

body {
    font-family: 'Ma Shan Zheng', 'Indie Flower', cursive, sans-serif;
    line-height: 1.6;
    color: #333; 
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 20px 20px 20px; /* 为固定导航留出空间 */
    background-color: #fdf6e3; 
    background-image: radial-gradient(#dcdcdc 1px, transparent 1px);
    background-size: 20px 20px;
}

/* 顶部导航栏 */
#top-nav {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(253, 246, 227, 0.95);
    border: 2px solid #333;
    border-radius: 50px 10px 40px 15px / 10px 40px 15px 50px;
    z-index: 3000;
    filter: url(#sketch);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#top-nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    padding: 10px 20px;
    margin: 0;
}

#top-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

#top-nav a:hover {
    color: #6e8efb;
    text-decoration: underline wavy;
}

header {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 40px;
    border: 3px solid #333;
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px; /* 不规则手绘感边框 */
    filter: url(#sketch); /* 应用 SVG 抖动滤镜 */
    background-color: rgba(255, 255, 255, 0.5);
}

h1 {
    margin: 0;
    font-size: 2.5em;
}

h2 {
    color: #444;
    padding-left: 10px;
    margin-top: 40px;
    text-decoration: underline wavy #6e8efb; /* 波浪下划线 */
}

/* 主要荣誉和普通荣誉的布局 */
.major-honors {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 60px;
    flex-wrap: nowrap; /* 强制大奖状在一排 */
    overflow-x: auto; /* 万一太挤可以滚动而非断行 */
}

@media (max-width: 768px) {
    .major-honors {
        flex-wrap: wrap;
    }
}

.minor-honors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

/* 基础卡片样式 */
/* 荣誉墙升级为剪贴簿风格 */
.honor-card {
    background: #fff;
    border: 2px solid #333;
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    overflow: visible; /* 允许胶带超出边框 */
    filter: url(#sketch);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.08); 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    transform: rotate(var(--rotation, 0deg)); /* 应用 HTML 中的随机旋转 */
}

/* 纸胶带样式 */
.tape {
    position: absolute;
    top: -10px;
    left: 20px;
    width: 60px;
    height: 25px;
    background-color: rgba(220, 220, 220, 0.4);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transform: rotate(-15deg);
    z-index: 10;
    pointer-events: none;
    border: 1px solid rgba(0,0,0,0.05);
}

/* 重点卡片的特定胶带位置 */
.honor-card.major .tape {
    width: 80px;
    left: 30%;
    top: -15px;
}

.honor-card:hover {
    transform: scale(1.05) rotate(0deg); /* 悬浮时正位并放大 */
    z-index: 20;
    box-shadow: 10px 10px 20px rgba(0,0,0,0.12);
}

/* 游戏启动动画覆盖层 */
#game-start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(253, 246, 227, 0.9); /* 米黄色半透明 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.cheer-container {
    text-align: center;
    filter: url(#sketch);
}

.cheer-sprite {
    width: 150px;
    height: auto;
    animation: cheerJump 0.5s infinite alternate ease-in-out;
}

.cheer-text {
    font-size: 2em;
    font-family: 'Ma Shan Zheng', cursive;
    margin-top: 20px;
    color: #333;
}

@keyframes cheerJump {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(-30px) scale(1.05); }
}

.hidden {
    opacity: 0;
    pointer-events: none;
    display: none !important;
}

/* 背景涂鸦装饰 */
.doodle {
    position: absolute;
    pointer-events: none;
    z-index: -1;
    filter: url(#sketch) opacity(0.3); /* 淡淡的手绘感 */
    background-image: url('awards/doodles.png');
    background-repeat: no-repeat;
    background-size: 500px auto; /* 假设合集宽度 */
}

/* 定义具体图案在合集里的位置（根据生成的图片调整） */
.doodle-robot { width: 80px; height: 80px; background-position: 0 0; }
.doodle-sprout { width: 60px; height: 60px; background-position: -120px 0; }
.doodle-lightbulb { width: 70px; height: 70px; background-position: -250px 0; }
.doodle-rocket { width: 90px; height: 90px; background-position: -380px 0; }
.doodle-star { width: 40px; height: 40px; background-position: -100px -100px; }

/* 重点奖状 (大) */
.honor-card.major {
    width: calc(33.33% - 20px);
    min-width: 260px;
    padding-bottom: 15px;
    border-width: 3px;
}

.honor-card.major img {
    width: 100%;
    height: 240px;
    object-fit: contain; /* 确保奖状内容完整可见 */
    background-color: #fcfcfc;
    border-bottom: 2px solid #333;
    transition: transform 0.3s ease;
}

.honor-card.major:hover img {
    transform: scale(1.02);
}

.honor-card.major p {
    padding: 12px;
    font-size: 1.2em;
}

/* 普通奖状 (小) */
.honor-card.minor {
    padding: 15px;
}

.honor-card.minor img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    background-color: #fcfcfc;
    border-radius: 6px;
    border: 1px solid #ddd;
    transition: transform 0.3s ease;
}

.honor-card.minor:hover img {
    transform: scale(1.05);
}

.honor-card.minor p {
    font-size: 1em;
    margin: 8px 0 0 0;
}

.button-group {
    display: flex;
    gap: 25px;
    margin-top: 30px;
}

.game-button {
    display: inline-block;
    padding: 12px 25px;
    border: 2px solid #333;
    color: #333;
    text-decoration: none;
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    font-weight: bold;
    filter: url(#sketch);
    background-color: #fff;
    transition: all 0.3s ease;
}

.game-button:hover {
    background-color: #f0f0f0;
    box-shadow: 0 0 10px rgba(0,0,0,0.2), inset 0 0 5px rgba(0,0,0,0.1);
    transform: scale(1.05) rotate(1deg); /* 悬浮时轻微扭动 */
}

/* 精选游戏卡片 */
.featured-game-card {
    background: #fff;
    border: 3px solid #333;
    border-radius: 15px 50px 20px 45px / 45px 20px 50px 15px;
    padding: 25px;
    margin: 30px 0;
    position: relative;
    filter: url(#sketch);
    box-shadow: 8px 8px 0 rgba(0,0,0,0.05);
}

.sketch-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: #ffde59;
    padding: 5px 15px;
    border: 2px solid #333;
    transform: rotate(5deg);
    font-weight: bold;
}

/* 产品和关于我部分的占位 */
.product-placeholder, .about-intro {
    background: rgba(255, 255, 255, 0.4);
    border: 2px dashed #aaa;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    font-size: 1.1em;
}

hr {
    margin: 60px 0;
    border: 0;
    border-top: 2px dashed #ccc;
}
